# Wiring the SPARK Flex

## Required Materials

* 12 V battery
* 120 A circuit breaker
* Power Distribution Hub
* SPARK Flex
* NEO Vortex
* Associated wiring and a "test bed" described below
* USB type-C cable
* A Computer Running the REV Hardware Client

## Prepare the Components

### Test Bed

Using a "test bed" is an easy way to get started with the SPARK Flex and to verify connections and code. For the initial bring-up of the SPARK Flex, a test bed with a single Flex, NEO Vortex, and a [properly wired Power Distribution Hub with a breaker](https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-1/intro-to-frc-robot-wiring.html#attach-battery-connector-to-pdp) is recommended.

{% hint style="info" %}
Wiring the SPARK Flex to the Power Distribution Hub is just like wiring a SPARK MAX.
{% endhint %}

### Motor Connections and Mounting

Dock the SPARK Flex on the NEO Vortex by following the [NEO Vortex Docking Instructions](/brushless/neo/vortex/docking-flex.md).

{% hint style="warning" %}
Be sure to fully install the Docking Screws when docking the SPARK Flex. These screws ensure a robust and secure electrical connection. Operating the SPARK Flex and its attached motor or dock without these screws can cause unintended behavior and damage to the system.
{% endhint %}

Mount the docked SPARK Flex and NEO Vortex assembly to a piece of structure to keep it secured when it spins up. The motor has a lot of inertia and upon spin-up it can jump off the table.&#x20;

The SPARK Flex's mounting face includes six #10-32 threaded mounting holes that are on a 2 in bolt circle. This bolt pattern is compatible with many structure types available, including REV ION System. However, two 0.196 - 0.201 in holes, spaced 2 in apart can easily be drilled into a piece of wood to rigidly mount the assembly.

{% hint style="danger" %} <mark style="color:red;">DO NOT</mark> exceed the 0.25 in mounting screw depth of the SPARK Flex. Doing so can permanently damage the SPARK Flex and will void the warranty.\
\
See the [Mounting Holes](/brushless/spark-flex/spark-flex-feature-description/mounting-holes.md) section for more details **before** mounting your SPARK Flex for the first time.
{% endhint %}

### Power Connections

The power wires are permanently connected to the SPARK Flex and are not replaceable. Take care not to cut these wires too short. It is highly recommended to install connectors on these wires to allow for reconfiguration as you experiment and design your robot. WAGO 221 Inline Splicing Connectors (REV-19-2491-PK50) and Anderson Power Pole connectors are commonly used for this purpose.

{% hint style="warning" %}
Make sure the power is disconnected or turned off before making any electrical connections on your test bed or robot.
{% endhint %}

Connect the integrated SPARK Flex power leads labeled + (red) and - (black) to an available channel on the Power Distribution Hub. If you need to extend the length of the integrated wires, it is recommended to use 12 AWG wire or larger (a lower gauge number).


---

# 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/brushless/spark-flex/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.
