View Single Post
  #9   Spotlight this post!  
Unread 26-02-2005, 19:43
Fourevilmonkies's Avatar
Fourevilmonkies Fourevilmonkies is offline
Code monkey
#1369 (Minotaur)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Florida
Posts: 11
Fourevilmonkies is an unknown quantity at this point
Send a message via AIM to Fourevilmonkies Send a message via Yahoo to Fourevilmonkies
Re: Programming multi positioning

There is one thing you may want to take into consideration and its the fact this takes up alot of air. I was going to attempt to make a multi position cylinder for a loader however to become rock solid you need to have air going in both ways. I'm rather new to the concept of the solinoid switches but I believe that one double solinoide can do the job for you. So you can set it where one button controlls the out movement of the solinoid and the other can control the in movement of the solinoid. The idea is to let one solinoid let air in untill you reach deired hieght (in my case) where you can stop and have both solinoids pushing air in keeping the cylinder rock solid. All of this is hypothetical to me at the moment but eventually I will test this to see if this works unless someone else has.

I would imagine the code would look a little something like this

if (button1 == 1){
relay1fwd = 1;
relay1rev =0;
{
else if (button1 == 0){
relay1fwd = 1;
relay1rev = 1;
}

This is a very generic idea of how the code for the relays should look.

And if the above looks choppy well during posting I relized that one double solinoid should do the trick.
__________________
Come one guys, I just want to make you go pop.