PDA

View Full Version : would this work?!?


Asheron
02-18-2007, 11:23 AM
Would this work or burn something out?

Using EasyC:

I have the same setup on both sides of the robot; a pump that heads out/in to lower a ramp on either side (so its actually 2 pumps, 1 on each side of robot)

Could I use the same button to lower each and raise each by doing the following

OIToRelay (3,1,2,1) //jostick on port 3 trigger button forward to relay 2

OIToRelay (3,2,2,2) //joystick on port 3 thumb button reverse to relay 2

OIToRelay (3,1,3,1) //jostick on port 3 trigger button forward to relay 3

OIToRelay (3,2,3,2) //joystick on port 3 thumb button reverse to relay 3

Would it cause problems trying to use the same input to control relay outputs???

DonRotolo
02-18-2007, 06:33 PM
I'm not a programmer, but it looks to be fine.