# For BiBoard V1

### Hardware Connection

You can solder a 5-pin socket on BiBoard V1 to plug in a Raspberry Pi.

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

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

<div align="left"><figure><img src="/files/GIaGepFx6zyKGumi9RWl" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="/files/U1u4OjhnxZt4cdQjb0El" alt="" width="375"><figcaption></figcaption></figure></div>

The white [Pi standoff](https://github.com/PetoiCamp/NonCodeFiles/blob/master/stl/Bittle%20%26%20BittleX/RaspberryPiStandOff/Pi_StandOffRegular.stl) can be 3D printed.

You can 3D print a new [back cover](https://github.com/PetoiCamp/NonCodeFiles/blob/master/stl/Bittle%20%26%20BittleX/BittleCover/Bittle_Cover_with_hole_for_Pi.stl) that fits the Raspberry Pi socket, as follows:

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

After plug in the Raspberry Pi board , power on the BiBoard via USB data cable or Battery.&#x20;

### Software Setup

Open the [serial monitor](https://docs.petoi.com/arduino-ide/serial-monitor#biboard), and send serial command **XS** to enable the [Serail 2](https://docs.petoi.com/arduino-ide/upload-sketch-for-biboard#id-2.9-swith-working-mode-via-the-serial-commands-optional) working mode.

{% hint style="info" %}
You can also modify the source code (***OpenCat.h***) and [upload the sketch for BiBoard](https://docs.petoi.com/arduino-ide/upload-sketch-for-biboard) to enable the Serail 2 working mode:

![](/files/GsItKTXyh9qfqiBZqMDr)
{% endhint %}

### Serial port name on Pi

{% hint style="info" %}
Generally, the serial port name on Raspberry **Pi 3 and 4** is "**/dev/ttyS0**," and the one on Raspberry **Pi 5** is "**/dev/ttyAMA0**." If the Pi can't open the serial port after it is connected to the mainboard, you can uncomment the line of code as follows to check all the serial ports on the Raspberry Pi in the terminal when the Python script(ardSerial.py) is running.

![](/files/ksCaWSr3jNvwSGQjRrma)
{% 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.petoi.com/apis/raspberry-pi-serial-port-as-an-interfac/for-biboard-v1.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.
