View Single Post
  #11   Spotlight this post!  
Unread 14-02-2008, 11:44
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,801
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: Automated Air Compressor code

Quote:
Originally Posted by Japper View Post
Is this a bad pressure switch or is there something that we don't have connected correctly?
The code you posted is for MPLAB, while this is a sub-forum for EasyC Pro discussions.

It sounds as if you are wired correctly, so concentrate on the behavior of the pressure switch first, but test it in isolation.
Disconnect one of the pressure switch terminals so there is no possibility of a short along the wire or grounded through the RC.
Then take a ohm measurement of the pressure switch with your multi-meter when there is no pressure in the system, then allow the system to run up to 120psi and take another measurement.
If there is no change then it's the pressure switch, otherwise...
reconnect the pressure switch, but disconnect the cable from the RC, and repeat your measurements at the RC end of the cable.

Work step-by-step on narrowing down the possibilities.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle