View Single Post
  #2   Spotlight this post!  
Unread 18-02-2007, 14:20
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: PROGRAMMING PNEUMATICS

well, the compressor is easy:

Code:
 relay3_fwd = !rc_dig_in18;
Wire the compressor's + and - leads to the +/- on the output of the 3rd spike, and wire the pressure switch in the pneumatic system into the 18th digital input.

single solenoids are similarly easy:

Code:
 relayN_fwd = 1; //to go
relayN_fwd = 0; //to stop
wire the solenoid to the +/- leads of the spike.

double solenoids are slightly trickier.

different people do them different ways, but 1075 in the past has coded them by wiring the +ve's of each side of the double solenoid to + and - on the spike, and wiring the -ve's of each side of the double solenoid to the ground reference on the robot. switching _fwd gives one direction, and _rev goes the other way.