Skip to main content

Pneumatics Overview

This page summarizes setup for REV Pneumatic Hub (PH) or NI PCM with WPILib.


1 Requirements

  • Pneumatics module (PH/PCM) powered from PDH/PDP
  • Solenoids plumbed and wired to module channels
  • Pressure sensor wired per vendor docs

2 Code Basics (Java)

// PH example
PneumaticHub ph = new PneumaticHub(); // default CAN id 1
Compressor compressor = new Compressor(PneumaticsModuleType.REVPH);
Solenoid claw = new Solenoid(PneumaticsModuleType.REVPH, 0);

// control
compressor.enableDigital(); // closed-loop on pressure switch
claw.set(true); // open

3 Ironclad Tips

  • Mount the module away from vibration and oil.
  • Label air lines and document channel → function in the pit binder.
  • Use enableDigital() unless you need analog control.

Troubleshooting

SymptomFix
Compressor never runsCheck pressure switch wiring; verify module type
Solenoid clicks but no motionCheck air pressure and valve orientation
CAN faultsVerify CAN daisy chain and module ID