|
Re: How to control piston?
Quote:
|
Originally Posted by Tom Bottiglieri
You can connect the piston to a double solenoid. Then connect one of the red wires coming from the solenoid to the M+ on a spike relay. Attach the other red wire to the M-. Attach both black wires to your ground hub on the circuit breaker. Then in code, you can write this.
Code:
relayX_fwd = pY_sw_trig;
relayX_rev = pY_sw_top;
//In this, X represents the relay output number and Y is the joystick port.
|
Thanks, I'll give that a try.
Last edited by Goaliexam : 07-02-2005 at 17:25.
|