View Single Post
  #12   Spotlight this post!  
Unread 09-04-2010, 10:29
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Compressor Coding Question

Quote:
Originally Posted by team3329 View Post
The pressure switch isn't working when shortened. The relay light isn't on on the dashboard and I'm not sure if the GPIO State is the DIO indicator - if it is then the light isn't on.
If both the GPIO and relay lights are dark, it sounds like the program is not doing its job correctly. We might need to revisit the code.


The switch is already closed when the pressure is low. That will put a low level on the GPIO input, and the light will be off. Shorting it will have no effect. The light should be on only if the switch is open, which will happen when the pressure has reached 115 PSI. Shorting the pressure switch in that situation will force the compressor to remain on (that's how the main 120 PSI pressure relief valve is tested during inspection).

To further verify that the wiring is good, unplug the sensor from the DIO pin and make sure the light comes on (just like all the other lights associated with unconnected DIO pins should be).

Quote:
Could you show me a pic of a 20A breaker just so i don't insert the wrong thing.