> For the complete documentation index, see [llms.txt](https://nybble.petoi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nybble.petoi.com/russian/chapter5.md).

# 5 🔌 Connect Wires

"Everything is connected." 🤝

## 5.1. Joint map

Nybble's servos are connected to NyBoard's PWM pins symmetrically and resembles the nerves along the spinal cord. Though Nybble doesn't have shoulder roll DoF, those indexes(4\~7) are reserved for the full OpenCat framework.

![](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-LztxNerld-G-vPuJOso%2F-LztzfKi1t-h0c3PrAKu%2FjointIndexNybble.png?alt=media\&token=0691cee9-39cc-4d68-b3e9-ef7a311e4a41)

![](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-LztxNerld-G-vPuJOso%2F-LzutwN-uGTXiC8ELCNN%2FservoPin.png?alt=media\&token=3258b618-464e-4aee-b835-2b1ee5cd6730)

{% hint style="info" %}
NyBoard V0\_1 and V0\_2 have different PWM pin orders, but the physical servo connection remains the same. All adjustments are done in the software.&#x20;
{% endhint %}

Use h for head, t for tail, r for shoulder roll joint, s for shoulder pitch joint, k for knee joint, F for front, H for hind, L for left, R for right, the full joints map of OpenCat is:&#x20;

![](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-LztxNerld-G-vPuJOso%2F-LzutPHSWo558pOpogkN%2FjointMap0_1.png?alt=media\&token=eed450cc-8897-4dee-94c5-535623ff7692)

![](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-LztxNerld-G-vPuJOso%2F-LzuthE7bbrVCAX6Q4ba%2FjointMap0_2.png?alt=media\&token=78ecf666-74fe-47e6-a3d9-d699d8673bb1)

## 5.2. Plug in the servos

Observe the indexing pattern to connect servos with correct PWM pins. Be careful with the wires’ direction. The brown wire of servo is GND, while the GND on NyBoard V0\_1 are along the centerline. On NyBoard V0\_2 they are opposite.

![  (NyBoard V0\_1 Front)                            (NyBoard V0\_1 Back)](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-LztxNerld-G-vPuJOso%2F-LzuyCaI5UQ9IINbFLYz%2FNyBoardPWM.png?alt=media\&token=d19ab1cb-df0e-427f-9720-da0fc2dc64ad)

A quick check is that all On NyBoard V0\_1 the brown wires should be far away from the board surface. On NyBoard V0\_2 the brown wires should be close to the board surface.&#x20;

![NyBoard V0\_1](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-LztxNerld-G-vPuJOso%2F-LzuyVgawhAOMGHGuNH3%2FservoGND.jpg?alt=media\&token=cfaac67e-5d05-4204-b137-f90ee9cd222c)

![](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-LztxNerld-G-vPuJOso%2F-LzuyeF0enbBsNQnuiwW%2FservoPlug.png?alt=media\&token=d2e69f0f-797f-44fd-bf35-bb34935548b7)

{% hint style="warning" %}
For NyBoard V0\_2, the location of servo wires will still be the same, but their direction of colors will be opposite
{% endhint %}

![NyBoard V0\_2](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-LztxNerld-G-vPuJOso%2F-Lzuym49Zmsm4EAeX_7U%2FservoGND2.png?alt=media\&token=0abcca9d-89ad-40cd-ba62-9a9ad00dc38f)

## 5.3. Wiring

After calibration, troubleshooting and final assembling, It’s time to think about wiring routes to make Nybble look neat. There are multiple slots on the frame designed as wire organizer. Feel free to develop your own style for connecting future accessories. Make sure the wires doesn’t get in the way of servos‘ movement.&#x20;

Below is my wiring routes.&#x20;

![NyBoard alone](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-LztxNerld-G-vPuJOso%2F-Lzux4DyWVNeLFyWg9tA%2Fwiring.jpg?alt=media\&token=bc8825d8-0565-4d35-bf42-a6e5ec422def)

![NyBoard with Raspberry Pi](https://1612257218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LygA-EAoP4h8Q2BOGHR%2F-LztxNerld-G-vPuJOso%2F-LzuwaVYFLC1C6TvmDNM%2FNyBoardWithPi.jpg?alt=media\&token=b99d9efd-2c4e-49d1-830e-9da725aa3243)

## 5.4. Connect Ultrasonic Sensor

If you have not already, plug in the 4 pin cable, make a note of which cable colors are attached to which signals. When looking into Nybble’s eyes, the connections from left to right are:

| VCC | Trigger | Echo | Ground |
| :-: | :-----: | :--: | :----: |

Connect the other end of the cable to the header you soldered in place earlier in assembly. Use the following mapping

| Sensor Side | NyBoard Side |
| :---------: | :----------: |
|     Vcc     |      D8      |
|   Trigger   |      D9      |
|     Echo    |      D10     |
|     GND     |      GND     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://nybble.petoi.com/russian/chapter5.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
