|
Re: Programming the Pressure Sensor
The pressure switch is a digital sensor, no analog.
When you Open Compressor, you set the digital port for the pressure switch and the relay port for the compressor. Then, when you start the compressor (with Compressor Start), it sets up an interrupt on the digital port, allowing you to not have to worry about the pressure switch at all.
There are other threads on this topic, next time search before posting.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|