# Pneumatic Hub

The Pneumatic Hub (PH) is a CAN-based device that provides complete control over the compressor and up to 16 solenoids per module. The PH is integrated into WPILib through a series of classes that make it simple to use.

The closed loop control of the Compressor and Pressure switch is handled by the Compressor class (Java, C++), and the Solenoids are handled by the Solenoid (Java, C++) and DoubleSolenoid (Java, C++) classes.

An additional PH module can be used where the module’s corresponding solenoids are differentiated by the module number in the constructors of the Solenoid and Compressor classes.

For more information on controlling the compressor, see Operating a Compressor for Pneumatics.

For more information on controlling solenoids, see Operating Pneumatic Cylinders.