View Single Post
  #10   Spotlight this post!  
Unread 26-02-2005, 19:48
bombadier337's Avatar
bombadier337 bombadier337 is offline
1337 U53R
AKA: Shaver
None #1541 (MidloCANics)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Richmond VA
Posts: 123
bombadier337 is just really nicebombadier337 is just really nicebombadier337 is just really nicebombadier337 is just really nice
Send a message via AIM to bombadier337
Cool Re: Programming multi positioning

You need two. If you just have one double, one side will always exhaust and then other will let air into the cylinder. There unfortunely isn't a way to turn the double solenoids "off", you can only change the direction of the airflow.
here's our code

if(p2_y>240)
{
relay7_fwd=1;
relay7_rev=0;
}
else if(p2_y<15)
{
relay7_rev=1;
relay7_fwd=0;
}
else
{
relay7_fwd=0;
relay7_rev=0;
}

please note that used the wiring method described in my previous post
__________________
Midlothian High School - Team 1541
2005 Radioshack Innovation in Control - NASA/VCU Regional
2005 Rookie Inspiration - NASA/VCU Regional