Go to Post Consider yourself mentored, you have learned a lesson: "Don't stick your hands in icky things." - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 06-01-2008, 17:15
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Double solonoids

You can hook it to a single Spike. Look at the drawing in the attachment.
Click image for larger version

Name:	Spike.png
Views:	113
Size:	38.8 KB
ID:	5928
For the programming, you would fire each solenoid by setting either side of the spike to 1. Ex:
Code:
 
//Start Compressor Code
relay8_fwd = !rc_dig_in18;  //Turn on the compressor when the pressure sensor is closed
relay8_rev = 0; //Without this, the compressor might run backwards or might not run at all
//End Compressor Code
//Start Pneumatic Piston Code
if (p1_sw_top == 1)  //If you press the thumb button on the joystick plugged into port one... 
	{
		relay1_rev = 0; //Turn off the extend side of the solenoid
		relay1_fwd = 1; //Turn on the retract side of the solenoid
	}
if (p1_sw_trig == 1) //If you press the trigger on the joystick plugged into port one...
	{
		relay1_fwd = 0; //Turn off the retract side of the solenoid
		relay1_rev = 1; //Turn on the extend side of the solenoid
	}
//End Pneumatic Piston Code
With this code, you will plug the relay into relay port 1, the compressor into relay port 8, and the pressure sensor into digital i/o port 18.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364

Last edited by RyanN : 06-01-2008 at 18:02. Reason: Fixed a small error in my drawing.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Double Helix Jimbo5051 Inventor 3 08-02-2006 20:10
FIRST Double Jeopardy 2.0! (8/27) EddieMcD Games/Trivia 1 29-08-2004 18:48
FIRST Double Jeopardy 2.0! (7/30) EddieMcD Games/Trivia 1 31-07-2004 19:08
FIRST Double Jeopardy! (3/30) EddieMcD Games/Trivia 2 31-03-2004 21:42
double solenoid gail OCCRA 0 11-10-2002 19:42


All times are GMT -5. The time now is 11:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi