> For the complete documentation index, see [llms.txt](https://docs.petoi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.petoi.com/apis/raspberry-pi-serial-port-as-an-interfac/for-biboard-v1.md).

# For BiBoard V1

### Hardware Connection

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

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2F1p6RDnK8VF4T1zswZHJe%2Fimage.png?alt=media&amp;token=0c5a9f64-4232-429e-9563-0be13e829a25" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FUaKLKe9hZYFjr2JyEUUA%2FPANA3446.JPG?alt=media&amp;token=58a7576c-efd3-4a13-8420-0dae6ac44cf7" alt=""><figcaption></figcaption></figure>

<div align="left"><figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FMnme55L0IzfRRcEUViRk%2FPANA3447.JPG?alt=media&amp;token=02907217-bc20-4532-9c11-14f0e573304b" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FJ9vd8BEI9KVUarQChGnD%2FPANA3448.JPG?alt=media&amp;token=ab5da355-9ce9-46f0-93b6-80feae379dcf" 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="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FRQE391IANuE7dfQ0eCuu%2FIMG_5885%202.jpeg?alt=media&amp;token=ea5c5e4c-6278-4166-a0d1-e4aebb4f312f" 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:

![](https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FLm6bpXmqzboPBd02ZYRH%2Fimage.png?alt=media\&token=7f04445e-993e-4cbd-91a4-d617fb42deca)
{% 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.

![](https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FzNKau8PdufkseswWLbmt%2Fimage.png?alt=media\&token=488574af-7ced-451f-8943-f8ec331b747f)
{% 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 by asking a question.

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

```
GET https://docs.petoi.com/apis/raspberry-pi-serial-port-as-an-interfac/for-biboard-v1.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.
