|
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.
|