# Wiring MAXSwerve

## Optional Fourth Mounting Hole

The SPARK MAX Mounting Bracket has an optional fourth hole that teams can use to secure the Mounting Bracket directly to their MAXSwerve module!

<figure><img src="/files/WWuMpfkghKzgvvh8Ra3k" alt=""><figcaption></figcaption></figure>

Teams can use [#10-32 3/8in Button-Head Socket Cap Screws](https://www.revrobotics.com/rev-29-1221/) to attach this Mounting Bracket to the module, as pictured below.

<figure><img src="/files/CJLj7gHuSs7m4O2CP0po" alt=""><figcaption></figcaption></figure>

## Wiring Steps

### Materials Needed

{% hint style="success" %}
The materials listed below will complete the wiring for ONE MAXSwerve Module
{% endhint %}

<table><thead><tr><th width="370">Item &#x26; SKU</th><th>QTY</th></tr></thead><tbody><tr><td><a href="https://www.revrobotics.com/rev-21-3005/">MAXSwerve Module (REV-21-3005), </a>Completed with one <a href="https://www.revrobotics.com/rev-21-1650/">NEO</a> and one <a href="https://www.revrobotics.com/rev-21-1651/">NEO 550</a> installed to the module</td><td>1</td></tr><tr><td><p><a href="https://www.revrobotics.com/rev-11-2158/">SPARK MAX Motor Controller </a></p><p><a href="https://www.revrobotics.com/rev-11-2158/">(REV-11-2158)</a></p></td><td>2</td></tr><tr><td><p><a href="https://www.revrobotics.com/rev-11-3326/">Absolute Encoder Adapter </a></p><p><a href="https://www.revrobotics.com/rev-11-3326/">(REV-11-3326)</a></p></td><td>1</td></tr><tr><td><p><a href="https://www.revrobotics.com/rev-11-1880/">SPARK MAX CAN Cable V2</a></p><p><a href="https://www.revrobotics.com/rev-11-1880/">(REV-11-1880-PK2)</a></p></td><td>2</td></tr><tr><td><p><a href="https://www.revrobotics.com/rev-11-3327/">JST PH 6-pin Extension Cable - 15cm</a></p><p><a href="https://www.revrobotics.com/rev-11-3327/">(REV-11-3327)</a></p></td><td>1</td></tr><tr><td><p><a href="https://www.revrobotics.com/rev-15-2491/">WAGO 221 Inline Splicing Connector </a></p><p><a href="https://www.revrobotics.com/rev-15-2491/">(REV-19-2491-PK50)</a></p></td><td>10</td></tr><tr><td>Zip-Ties - 10in</td><td>2 Required, 5 Suggested</td></tr></tbody></table>

<figure><img src="/files/EI0RCsk65eSuIdyLgxcb" alt=""><figcaption></figcaption></figure>

| 1) Locate the 6-pin JST port for the Through Bore Encoder inside of the MAXSwerve Module                                                                                                                                                                                                                       | ![](/files/wLgmMDz2cT1KAy5vCxOB) |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| 2) Plug in the 15cm 6-Pin JST Extention Cable to your Through Bore encoder and then separate the wires into groups so that the NEO 550's wires and the Through Bore Encoder's Cable are on either side of the module                                                                                           | ![](/files/NilYjmUtd19Ww9qF980E) |
| <p>3) Ensure the SPARK MAX Mounting Bracket is attached to your MAXSwerve Module Drivetrain. Then thread a zip-tie through the top two mounting holes. </p><p></p><p>Secure the zip-tie in a very loose loop, only letting the zip-tie click a couple of times to latch. </p>                                  | ![](/files/DZT3HTr5xnM2fYjbvZ3U) |
| <p>4) Slide the power input side of both SPARK MAX Motor Controllers into the zip-tie loop so that the power and ground wires are facing away from the MAXSwerve Module and the data port on the top is facing away from the SPARK MAX Mounting Bracket. </p><p></p><p>Then tighten the zip-tie to secure.</p> | ![](/files/Pnm8u0DUYibw4paSMe13) |
| 5) Attach the Through Bore Encoder Cable to the Absolute Encoder Adapter                                                                                                                                                                                                                                       | ![](/files/o7g8BTMBin2soEYeTNVF) |
| 6) Thread a zip-tie through the other two mounting holes as shown.                                                                                                                                                                                                                                             | ![](/files/oO5V878E9vDqTIjFUT41) |
| <p>7)  Plug in the Absolute Encoder Adapter to the Data port on the top of the SPARK MAX that will be driving your NEO 550. In this image, we chose to use the Upper SPARK MAX. </p><p></p><p>Then tighten the zip tie to secure both SPARK MAXs and the Encoder Adapter. </p>                                 | ![](/files/8LiYvwLEjHJ0Z8xU9VqG) |
| <p>8) Wire the Phase Wires of the NEO motor to the SPARK MAX on the underside of your swerve module. </p><p></p><p><strong>Be sure to plug in the NEO's Sensor Wire!</strong></p>                                                                                                                              | ![](/files/O6sHICLXfV2q2MeaxLQG) |
| 9) Wire the Phase wires of the NEO 550 motor to the controller on the underside of your swerve module.                                                                                                                                                                                                         | ![](/files/0qMN1hcUwFlzPMkAnXE3) |
| 10) Ensure that you have plugged in both the Through Bore Encoder into the Absolute Encoder Board and the NEO 550's sensor wire directly into the SPARK MAX's Encoder Port.                                                                                                                                    | ![](/files/949cm4np8yNEggi1i5kA) |
| 11) Bundle your wires for each SPARK MAX, checking to make sure that there is enough slack, and then secure them to the top mounting hole with another zip-tie.                                                                                                                                                | ![](/files/WU5qBKnjAgZ0j8w28faO) |
| <p>12) Plug in your CAN/PWM cables to the SPARK MAX's 4-pin JST signal port. </p><p></p><p>It is next to the USB C port on the SPARK MAX itself. </p>                                                                                                                                                          | ![](/files/rbpGEiXQmmssabjk4trS) |
| 13) Finish wiring for both SPARK MAXs and the CAN by connecting the V+ and V- wires to your Power Distribution and the CAN cables to the rest of your CAN Bus.                                                                                                                                                 | ![](/files/KxNsl0VM066iqZG0SkMM) |


---

# 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-build/motion/maxswerve/wiring-maxswerve.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.
