View Single Post
  #4   Spotlight this post!  
Unread 06-02-2007, 09:51
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Pneumatics Rookie Problem

One small correction: Spikes should be plugged into the RELAY outputs, not digital inputs / outputs. The relay outputs can be reversed to reverse the spike, which actually allows it to control two solenoid valves. See the best practices document and the pneumatics manual.

relay1_fwd = 1; // turn on + side of spike
relay1_rev = 1; // turn on - side of spike

By wiring one solenoid to each side of the spike and the common of the solenoid to ground at the breaker panel, you can control both independently.

Brian
__________________
Brian K
Team 1225 Robotics Mentor