View Single Post
  #3   Spotlight this post!  
Unread 07-02-2005, 17:20
Goaliexam Goaliexam is offline
Registered User
AKA: Max
FRC #1656 (Haverford Robotics)
Team Role: Alumni
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Gladwyne
Posts: 28
Goaliexam is a jewel in the roughGoaliexam is a jewel in the roughGoaliexam is a jewel in the rough
Send a message via AIM to Goaliexam Send a message via MSN to Goaliexam
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.