# Wiring Guide

{% hint style="info" %}
The images in this guide depict CANnect V1 modules, the wiring is the same between V1 and V2. See [V2 Migration Guide](/electronics/swyft-cannect/v2-migration-guide.md) for more info.
{% endhint %}

SWYFT CANnect products provide the capability to pass two CAN buses and power over traditional ethernet cabling, allowing for reduced robot wiring!

There are currently two CANnect products available: SWYFT Inject and SWYFT Direct. These products were co-designed to simplify Swerve drivetrain wiring, but they can be used anywhere on the robot where you would want both CAN and power.

{% hint style="warning" %}
The following guidelines are very important to ensure your setup is not only FRC legal, but safe to use, we recommend you double check that your setup is both safe and FRC legal yourself as well.

In general, use high-quality twisted pair ethernet cabling. We recommend the following cables based on your application's maximum total current draw:

* Total current draw < 0.5A (swerve drive with 4x CAN-based encoders):
  * [Monoprice Micro SlimRun cables](https://a.co/d/eh7igTT) or better
* Total current draw ≥ 0.5A:
  * [Monoprice Cat6A PoE Patch cables](https://a.co/d/hre6cnS) (22AWG) or better

\
We recommend powering your Inject from a fused circuit, with the value of the fuse depending on your chosen ethernet cabling:

* For any ethernet cabling:
  * Fuse rated no larger than 2A (≤2A)
* For ethernet cabling that uses 22AWG (or physically larger) wires:
  * Fuse rated no larger than 10A (≤10A
    {% endhint %}

<figure><img src="/files/6KpgIZ3jY0MomYXkQK13" alt=""><figcaption><p>CANnect System Wiring Guide</p></figcaption></figure>

### CAN Wiring Guidelines

Since CANnect incorporates CAN bus wiring, there are some guidelines that should be followed carefully to ensure bus integrity.

*CAN 2.0 and CAN FD buses can both be used with CANnect.*

* The CAN bus should be terminated with 120 Ohm resistors on the most extreme points of the bus
* Branch / Stub lengths should be kept < 12 inches, ideally shorter.
* The overall CAN bus length should be kept to a minimum; < 40 / 10 meters (2.0 / FD, respectively)

While these guidelines are important for both CAN 2.0 and CAN FD technologies, CAN FD is much more fickle, due to significantly higher bitrates.

CANnect products support daisy chain topology between themselves, through the ethernet cabling, but any devices connected to the CAN bus through an CANnect device ***is a stub / branch on the bus.***

{% hint style="warning" %}
This means that devices connected via a CANnect device should have CAN wire lengths NO LONGER than 12 inches.
{% endhint %}


---

# 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.swyftrobotics.com/electronics/swyft-cannect/wiring-guide.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.
