> 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/chinese-1/5-connect-wires.md).

# 5 🔌 连线

## 5.1 关节映射

类似于四肢到脊髓的神经连接，狸宝的舵机对称地连接在NyBoard的PWM插头上。虽然狸宝没有肩膀的滚转自由度，但对应的关节序号（3\~7）仍然预留着，和完整的OpenCat架构保持兼容。

![](/files/-LztzfKi1t-h0c3PrAKu)

![](/files/j8YxcmbIAHPmQmN193tp)

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

{% hint style="info" %}
NyBoard V0\_1 和 V0\_2 的 PWM 脚序号顺序是不一样的，但是实际连线的模式一样，所有调整都通过修改程序里的映射表完成了。

直接按照上图所示舵机编号与PWM引脚针位置的对应关系连线即可。
{% endhint %}

## 5.2 连接舵机

{% hint style="warning" %}
观察舵机索引号与正确的 PWM 引脚连接起来。 小心电线的方向。 舵机的棕色线为 GND (-)，在NyBoard V0\_1上沿中线排列。 在更高版本的 NyBoards上，它们沿外沿排列。

快速检查一下 NyBoard V0\_1 上的所有棕色电线都应该远离电路板表面。 在 NyBoard V0\_2 上，棕色线应靠近电路板表面。

从 NyBoard V0\_2 开始（包括 V1\_\*的主板），舵机插线的位置还是一样的，但是颜色的方向会 NyBoard V0\_1 相反。

<img src="/files/-LzuyeF0enbBsNQnuiwW" alt="" data-size="original">
{% endhint %}

尽管各版本NyBoard的PCB不尽相同，但连线的模式是相同的。你不需要查看电路板上的舵机序号，因为相关的映射已经在程序中解决了。你只需要在上传代码时选择正确的电路板型号。

## 5.3 准备校准

{% hint style="info" %}
安装头尾和腿前必须先进入校准模式。校准时，需要将头、尾、腿部组件安装在舵机输出轴的齿轮上。暂时不要拧上螺丝。

进入校准状态有5种方法：

* 长按电池上按钮，将机器人身体左/右侧立开机，机器人会自动进入校准状态。&#x20;
* 使用移动端应用 **Petoi**  app 进入校准页面
* 使用 Petoi 桌面应用程序中 **关节校准** 子程序
  * 如果您已经用串口适配器连接了机器人和电脑，点击“**关节校准**”按钮会自动进入校准状态
  * 点击校准界面中的“**校准位**”按钮
* 在Arduino IDE的串口监视器中，输入串口命令“**c**”&#x20;
* 按下遥控器上的校准按钮 ![](/files/Z6sDyx6Cg8ET03cAPOAx)（3,3 - 第 3 行和第 3 列）。
  {% endhint %}

如下图所示安装头部、尾部和腿部组件：

![](/files/uONYGimCDzN46Z6LNYIc)

可以借助套件中的 L 形尺作为参考进行安装。

![](/files/QtB9oYji6WEUTRfjWNfU)

## 5.4 布线

在校准、排查和最终安装后，可以花些时间来优化布线，使狸宝看起来更清爽。在机身上分布着很多布线的小窗口可用来整理线缆，您可以发展出自己喜欢的模式，基本原则是不要让线缆干涉到舵机的运动，并且留有一定的缓冲余地。

下面是我们建议的布线方式：

NyBoard V1\_\* 主板 :

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

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

{% hint style="info" %}
NyBoard V0\_\* 主板 :

<img src="/files/-Lzux4DyWVNeLFyWg9tA" alt="只有NyBoard" data-size="original">

<img src="/files/-LzuwaVYFLC1C6TvmDNM" alt="NyBoard 加树莓派" data-size="original">
{% endhint %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://nybble.petoi.com/chinese-1/5-connect-wires.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
