View Single Post
  #7   Spotlight this post!  
Unread 28-01-2013, 10:11
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Issue with FRC Pneumatic compressor, all details upfront.

First, on the hardware:
- The spike should be wired to the Relay output on the DSC. (There are 8 of them)
- The pressure switch should be wired to the DIO on the DSC. (There are 14 of them)
- There are two LED's next to each of the Relay ports on the DSC. They only light up when your code tells the relay to go forward/reverse. You should see the following behavior with these LEDs and the LED on the spike:
-- No DSC LEDs lit, spike LED yellow
-- Green DSC LED lit, spike LED Green
-- Red DSC LED lit, spike LED Red
-- Both DSC LEDs lit, spike LED yellow

If you aren't seeing the LED's on the spike turn on, then you know there's something wrong with the code.


To test your code, hook up a simple limit switch to the DIO your pressure switch should go to. Enable the robot, and see if your relay LED's light up/turn off in sync with the limit switch. If so, then your code is working fine! If not, then you've got something wrong - either an error in your code, or you aren't plugging the switch into the port the code expects.

Once you know your code is working correctly, hook everything up correctly, as listed above, and you should see it work.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA