|
One Switch Debounce
You could set the one switch to 120 psi. Then use the program to debounce the pressure switch. When the switch first indicates that the pressure is at 120 or above, use a counter variable to wait 1 sec (roughly 40 cycles of the main loop) before turning the pump off. Use the same delay before turning on the pump after the pessure drops below 120.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
 Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
|