Quote:
Originally Posted by Sir_Fenwick
Instead of running the compressor off of the PCM as is normal, run it instead off of a spike using 20 Amp breaker. Connect the spike directly to the power distribution board with a 20 Amp breaker, then connect the spike's PWM to one of the RoboRIO's relay pins. Connect the compressor to the spike, and with a little coding, the compressor will be unaffected by any brownouts. This is also completely legal
|
I should point out that you also MUST wire the pressure switch into the roboRIO as well.
You can't simply hook up the spike and say in your code:
compressorRelay.Set(Forward);
It has to turn off when the pressure switch trips.
See R88: (Insert remark that 2016 rules don't apply to 2017 or offseason projects).
But yes, this is a valid way to do so. Also doing it this way allows you to turn the compressor OFF when you are in a high-current draw situation, where every last bit of power helps.