View Single Post
  #3   Spotlight this post!  
Unread 16-02-2009, 12:49
T3H_K3YM45T3R's Avatar
T3H_K3YM45T3R T3H_K3YM45T3R is offline
Registered User
AKA: Christopher Robinson
FRC #1737 (Project X)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Excelsior Springs, Mo
Posts: 23
T3H_K3YM45T3R is an unknown quantity at this point
Re: need help with compressor code

here is a link to an image of the code, sorry it's a link and not an attachment, it was the fastest way for me to get the whole thing up.

http://www.firstwiki.net/media/2/2d/1737_robot_code.jpg




now for the way we have the compressor and relay electrically connected: we have the main power connected to the "12v" side and the output is hooked up to the m+ and m- side of the spike. the pwm cable is plugged in with the black wire (ground) closest to the fuse on the spike. we have the pressure switch wired with a pwm cable, the signal (white) and the ground (black) with the red (power) not connected to anything, that cable is plugged into the 1st slot on the digital sidecar "Digital I/O" section.
The spike is plugged into the 1st relay spot on the digital sidecar.

we are sure that me have the spike wired correctly, if we take the pwm cable from the spike and place it in the DIO as apposed to the relay spot it will allow the compressor to run and keep filling until you remove the wire. also when we fill the tanks when it gets up to about 115-120psig you can see the pressure switch close on the main dashboard.

...and thanks for the help on this problem, Team 1737 is very grateful for it.
Reply With Quote