# Connecting all FMU wires

## Connector pinout <a href="#connector-pinout" id="connector-pinout"></a>

We are almost ready. We only need to connect the wires to the right connectors on the FMU. A diagram showing all port locations is available below. [More indepth information](https://nxp.gitbook.io/HoverGames/rddrone-fmuk66/connectors) is also available in the technical reference section.

![Port locations on the RDDRONE-FMUK66 Rev. C. ](https://1329960936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L9GLtb-Tz_XaKbQu-Al%2F-Lb4JCAYBfGv_1_7x9Eo%2F-Lb4JfRjq6gAyj8_67st%2Fimage.png?alt=media\&token=8574fcd2-3c55-443f-b0f2-8abe30c6f687)

{% embed url="<https://www.youtube.com/watch?v=G72q62d7z2A>" %}

There are four connectors that you should plug in. The 6 pin POWER IN connector at the top right. Below that is the 10 pin GPS connector. On the left side is the 6 pin TELEM connector for the telemetry radio. And below the GPS there is also the 5 pin RC IN connector for the RC receiver.

{% embed url="<https://www.youtube.com/watch?v=iw5B-l-XQWI>" %}

![Telemetry radio plugged in with JST-GH cable into the TELEM port. Also shows other port locations. ](https://1329960936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L9GLtb-Tz_XaKbQu-Al%2F-Lszh_BvI-198Mj8Ut3J%2F-LsziT7zMavgwQd2cghE%2Ftelemradio.jpg?alt=media\&token=0543400f-2cd5-42d9-a0b9-b166404fbaa3)

![Top view: All required cables plugged into the RDDRONE-FMUK66.](https://1329960936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L9GLtb-Tz_XaKbQu-Al%2F-Lbx0ntGZvtiMxg6SQy4%2F-Lbx0yypY1D1O56HItHz%2F20190408_145739.jpg?alt=media\&token=5bdab6d8-1574-470d-9fe8-7e8aaf907231)

## Servorail

The servorail pinout is shown in the diagram below. If you have a BEC (not included in the standard HoverGames kits), it should be connected to the leftmost pins. The ESCs should be connected to the first four sets of pins on the right side.

![Pinout of the servo rail.](https://1329960936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L9GLtb-Tz_XaKbQu-Al%2F-LX3taaytCr6dvRSZ_kd%2F-LX3u-d98cIxjmgzlk3b%2Ffmu-servorail-pinout.jpg?alt=media\&token=f4f21893-ca38-442a-a5d2-df56ec0da80e)

{% hint style="warning" %}
The +5V rail can only be powered with an **external BEC** (not included). The FMUK66 itself does not provide any power to these pins.
{% endhint %}

The order in which the ESCs should be connected to the servo rail is given by the diagram below. The red arrow indicates the front of the drone. Because the ESCs are mounted in a very tight space, it might be hard to find which wire is coming from which ESC, and which ESC is connected to which motor.

![Numbering of the motors.](https://1329960936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L9GLtb-Tz_XaKbQu-Al%2F-LX3taaytCr6dvRSZ_kd%2F-LX3u2kyoarsjavV9Wln%2Fmotordirection.jpg?alt=media\&token=b612aade-22fa-49be-8d94-210951076a74)

If you followed the assembly instructions on the previous pages, the position of the ESCs should correspond to the table below. If you are not sure if you followed the previous instructions correctly, you might want to have a good look at where the wires are going, and write down which motor they control.

| Motor number | Motor position | ESC position | PWM wire coming from |
| ------------ | -------------- | ------------ | -------------------- |
| 1            | Front right    | Right        | Back right           |
| 2            | Back left      | Left         | Front left           |
| 3            | Front left     | Front        | Front right          |
| 4            | Back right     | Back         | Back left            |

When inserting the connectors to the servorail, the black (ground) wires should be on top, and the white (signal) wires on the bottom. The BEC doesn't have a white wire, but it has a red wire, which goes in the middle. It will provide 5V power to all pins in the middle row. However, the ESCs included in the HoverGames drone kit already receive power directly from the PDB and therefore don't have a wire that connects to the middle pins of the servo rail.

![ESC PWM inputs connected to the servo rail.](https://1329960936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L9GLtb-Tz_XaKbQu-Al%2F-Lbx0ntGZvtiMxg6SQy4%2F-Lbx1R5d4buJjbRJmoy7%2F20190408_150009.jpg?alt=media\&token=ba19b13a-f1a6-47a5-b765-aa4b47b59c06)

At this point, the drone should look similar to the picture below.&#x20;

![](https://1329960936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L9GLtb-Tz_XaKbQu-Al%2F-Lbx0ntGZvtiMxg6SQy4%2F-Lbx2i_gl2lMtheLkjbt%2F20190408_150313.jpg?alt=media\&token=0180857c-c4c0-4d80-aee7-39e608fc41a7)

## Final result

Finally, you can use some zip ties to make sure the propellers won't cut through any loose wires. You could already install the propellers, but you might have to remove them again later. The propellers with black nuts go on the clockwise rotating motors (with a notch on the shaft), the propellers with silver nuts go on the counter clockwise rotating motors.

{% hint style="warning" %}
You probably still have the extension cables coming out of the carbon tubes. Unless you have already verified that all motors are rotating in the right direction, you should leave it like that for now. You can put the wires into the tubes later, after spinning the motors for the first time.
{% endhint %}

{% hint style="info" %}
You should **insert the microSD card** into the FMU if you haven't already done so!
{% endhint %}

{% hint style="danger" %}
When you are setting up the software you should take the propellers off for your own safety. It is a good idea to only have the propellers installed when you are ready to fly. Also have a look at our section about [flying safely](https://nxp.gitbook.io/HoverGames/userguide/flying).
{% endhint %}

![](https://1329960936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L9GLtb-Tz_XaKbQu-Al%2F-Lbx0ntGZvtiMxg6SQy4%2F-Lbx2kXuE9EG_l_kIZaQ%2F20190408_150513.jpg?alt=media\&token=bc80dc5e-9352-44f2-8361-ac652b0661f3)
