Thread: Compressor
View Single Post
  #5   Spotlight this post!  
Unread 10-02-2010, 17:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,851
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Compressor

Yea, we're not in the shop today either. The snow is pretty though...

If the Relay LED corresponding to the Compressor Spike is not lit, then the code isn't ordering the compressor to turn on. With the example code, that LED should go on with only the Pressure Switch wired into DIO 1. Regardless of any other wiring. The Pressure Switch doesn't even have to be tubed to anything.

That'd mean the problem is before your Spike or Compressor wiring.

If that LED is out, then one test would be to use a wire to directly connect the signal and ground pins on DIO 1. That'd take the Pressure Switch out of the loop too, and eliminated it as a culprit.

P.S. Your code execution sounds fine too.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-02-2010 at 17:54.