PCM - Compressor Light not turning on

Hello Chief,

My team is trying to run out pneumatics system, but we are running into a problem with our PCM. We have our compressor plugged in along with the other necessary components, but the compressor light is not turning on. The status light does turn green when we enable the Robot, but the compressor light remains dim. We know that the code is calling the compressor to enable, and no errors are printing to the driver station. How can we fix this so we can run our pneumatics?

Thanks,

Jonathan Daniel

Hi,
You don’t need to create a compressor object in your code, instead you need to create a Solenoid or DoubleSolenoid object in your code, WPILib will take care of the rest and run the compressor for you!

I’ve done that in the other sections and the compressor code still isn’t running. The solenoids are created when our subsystem containing the solenoids is initialized, and still nothing on the compressor LED

Are you able to post your code? It would make the troubleshooting effort much easier.

Failing that, have you checked the pressure switch is wired into the PCM port labled PRESSURE SW?

^^ This. Also, verify that when the system is uncharged, that the pressure switch is closed (little or no resistance between the terminals).

You say that your solenoids are activating, so it sounds like you’re getting power to the PCM.

And I know this sounds like an “is it plugged in” dumb thing, but are you initializing the subsystem in robot init?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.