View Single Post
  #1   Spotlight this post!  
Unread 04-02-2014, 21:41
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Programming issues

I'm having a very weird programming issue. We're trying to add a compressor to the robot.

http://i.imgur.com/caAmo2B.png
http://i.imgur.com/yWJXS5Z.png

The spike is connected to the digital sidecar on relay 1, and I confirm the relay is working (because I wrote a very simple test program and all it does is open relay 1 and set it to run forward).

Additionally, we have the pressure switch that is supposed to open at 115 psi connected to Digital I/O 1 on the digital sidecar. The two outer pins of the DIO is connected to the two terminals of the pressure switch. The problem is when the pressure rises to 125psi (beyond 115) the pump keeps running. To diagnose the problem I tried to read the DIO directly and send it to the dashboard but adding the DIO to the code stops the code from working. Simply adding the DIO stops the compressor from running.

http://i.imgur.com/Qd153yO.png

Additionally sometimes when teleop is started, the motors will sometime randomly jitter, turning the wheel a tiny amount. Very weird. The drive system seems to respond correctly though. The rangefinder attached to the analog module seems to work correctly through all this.

Any idea what could have gone wrong? I can't figure out what could possibly be wrong. Could this be a bad sidecar? I remember one year we had a problem like this because the cable was incorrectly assembled, but the cable seems ok this time. Has anyone had this problem before?