View Single Post
  #6   Spotlight this post!  
Unread 24-01-2008, 18:04
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: Rigging The System...

Quote:
Originally Posted by Spartan151 View Post
Okay. We have the solenoid, compressor, and, switch wired up right. Now here's another question: will I have to use a second solenoid to run another pneumatic cylinder off of the same system so they work simultaneously, cuz if that's the case, it may be a no go unless we can order another solenoid; the solenoid we originally had on there was defective and we had to use another one. I just need help toggling the trigger where, when it's pulled the first time, the rod extends and stays extended until the trigger is pulled a second time.
If you want them to fire simultaneously, You can use one solenoid and just use one of those 3 holed elbow things. There are two ways that I know of to make it stay extended without holding the trigger. One way is to use the SMC double solenoid, the one you have to assemble with 4 wires connected to the solenoid. You'd be using it like a single solenoid, the double solenoid will stay in the last position you fire.

The other way is to write some code. There are probably a few ways to do it using code... umm so Here comes so code... no guarantee it works.

if(p1_sw_trig)
{relay1_fwd = 1;
}
if(p1_sw_top)
{relay1_fwd =0;
}

So I think this will extend it when you hit the trigger on p1 and retract it when you hit the top button on p1. Just one way of doing it... Of course you'll have to make it the relay you're using.
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers