# Wiring the Pneumatic Hub

The Pneumatic Hub is powered off of one of the three Power Distribution Hub side channels (not the switchable side channel) and can be wired into the CAN bus using the yellow and green channel ports.&#x20;

It's recommended to use a 20A circuit breaker on the low-current channel where the Pneumatic Hub is wired.

<figure><img src="/files/xhSGnzkTJJH4KzehcFAL" alt=""><figcaption><p>Portions of diagram courtesy of: sacepcion</p></figcaption></figure>

{% hint style="danger" %}
Always make sure the Pneumatic Hub is disconnected from any power source before adding or modifying connections.&#x20;
{% endhint %}

## Wiring the Power Input (12 Volt Supply - Battery, Power Supply, etc.)&#x20;

* Use 24-16 AWG Wire, Stripped back \~0.375” (9mm)
* Make sure that a red colored wire is connected to the red/positive ( + ) terminals and that the black colored wire is connected to the black/negative ( - ) terminals. Press and hold down connector button.&#x20;
* Insert wire into connector opening
* Release connector button
* Test the wire by giving it a **smart tug** to ensure wire is connected securely.&#x20;
* Visually inspect to make sure no stray wires are outside of the connector port

{% hint style="info" %}
**Smart Tug** - tugging on a wire to test the connection with a reasonable amount of force.&#x20;
{% endhint %}

#### Wiring the Compressor

* Use 24-16 AWG Wire, Stripped back \~0.375” (9mm)
* Make sure that a red colored wire is connected to the red/positive ( + ) terminals and that the black colored wire is connected to the black/negative ( - ) terminals. Press and hold down connector button.&#x20;
* Insert wire into connector opening
* Release connector button
* Test the wire by giving it a **smart tug** to ensure wire is connected securely.&#x20;
* Visually inspect to make sure no stray wires are outside of the connector port

{% hint style="info" %}
To test your Compressor and Pressure Relief Valve, use [Compressor Test Mode!](/ion-control/ph/troubleshooting.md#compressor-test-mode)
{% endhint %}

#### Wiring the Digital Pressure Switch

* The digital pressure switch should be wired to the Digital Sensor Port on the PH. The polarity of the digital switch does not matter and can be wired in either direction.

#### Wiring an Analog Pressure Sensor

* Most sensors that connect to analog input ports will have three wires - signal, power, and ground - corresponding precisely to the three pins of the analog input ports - see highlighted legend pic below

![](/files/vn5OUj8ZULvjzPOcfxUI)

* Additionally, some sensors may need to connect to multiple analog input ports in order to function. In general, these sensors will only ever require a single power and a single ground pin - only the signal pin of the additional port(s) will be needed.

{% hint style="info" %}
The Analog Pressure Sensor port is a very tight fit and requires special attention
{% endhint %}

|                                  |                                                                                 |
| -------------------------------- | ------------------------------------------------------------------------------- |
| ![](/files/mcbEWdgGlioSLGQo5o19) | 1) Insert the 3 pin sensor connector at an angle on the sloped part of the case |
| ![](/files/dQcpnkKFWlChqJ9PhLSc) | 2) Pivot the connector so its horizontal                                        |
| ![](/files/JhO24DqonBIwKRFO6Kux) | 3) Push the connector along the slot into position above the pins               |
| ![](/files/GnNQzbrKOyOPLfNA9q7z) | 4) Push down to plug in the connector                                           |

#### Wiring the Solenoids (please read caution below)

* Use 24 AWG wire, Stripped back \~0.375” (9mm) Press and hold down connector button.&#x20;
* Insert wire into connector opening
* Release connector button
* Test the wire by giving it a **smart tug** to ensure wire is connected securely.
* Visually inspect to make sure no stray wires are outside of the connector port
* set single acting vs double acting

{% hint style="warning" %}
Ensure voltage is set for solenoids before applying power, using a mix of 12V and 24V is not supported
{% endhint %}

#### Wiring the CAN bus

* Use 24 AWG - 18 AWG Wire, Stripped back \~0.375” (9mm) Press and hold down connector button.&#x20;
* Insert wire into connector opening
* Release connector button
* Test the wire by giving it a **smart tug** to ensure wire is connected securely.
* Visually inspect to make sure no stray wires are outside of the connector port

{% hint style="info" %}
The Pneumatic Hub does not come with a terminating resistor.&#x20;
{% endhint %}

## Building Pressure!

The complexity of your pneumatic system is dependent on your design and governed by the tightly defined FRC robot rules. Because of the number of variables inherent in these systems, we do not cover them within this documentation. There are, however, several references we can suggest!

* [FIRST Robotics Competition Pneumatics Manual](https://firstfrc.blob.core.windows.net/frc2017/pneumatics-manual.pdf)
* [WPI Pneumatics](https://docs.wpilib.org/en/stable/docs/software/actuators/overview.html?highlight=pneumatics)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.revrobotics.com/ion-control/ph/gs/wiring.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
