# KOI 2 in KittenBlock Quick Start Guide

## <mark style="color:orange;">**Wiring**</mark>

### **1. Use with Robotbit EDU**

Use the cable included to connect KOI to Robotbit.

Connect KOI 2 to the serial port of the Robotbit EDU as shown in the illustration.

As Robotbit EDU uses P2 and P12 for its serial port, you will need to select the appropiate pins in the MakeCode program.

{% hint style="info" %}
If you wish to power the KOI using USB power, please remove the black(GND) and red(5V) wires.
{% endhint %}

<figure><img src="https://686851495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Bv9xBdKh3R9w6Vp7asd%2Fuploads%2FlSf5amP5cH73qyYeGQFg%2Fedu_wiring.png?alt=media&#x26;token=4bb63a7b-308e-4988-9b7b-52a91384bf1b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
KOI 2 RX Port(Yellow) Connects to Robotbit TX Port(P2)

KOI 2 TX Port(Blue) Connects to Robotbit RX Port(P12)
{% endhint %}

### **2. Use with Robotbit 2.2**

Use the cable included to connect KOI to Robotbit.

Refers to the following illustration for correct wiring.

&#x20;           Black - GND

&#x20;           Red - 5V

&#x20;           Yellow - P2 (TX)

&#x20;           Blue - P12 (RX)

```
The (Blue)TX wire must be connected to an analog pin(Pin0-Pin2).
Remember to remove the buzzer jumper when Pin0 is used.
```

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/robotbit_connection1.png" alt=""><figcaption></figcaption></figure>

**Do not connect Red to Ground and Black to 5V!!!**

Ensure the connection is correct and switch the power on.

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/robotbit_connection2.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/robotbit_connection3-1.png" alt=""><figcaption></figcaption></figure>

### Quick Start on KittenBlock

Open KittenBlock in browser.

{% embed url="<https://kblock.kittenbot.cn/>" %}

Select FutureBoard Hardware. (Futureboard or Futureboard Lite)

<figure><img src="https://686851495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Bv9xBdKh3R9w6Vp7asd%2Fuploads%2Fg8rN7X0GWotBs5bru0fQ%2Fimage.png?alt=media&#x26;token=8343f02a-5329-46cb-876e-dd2dc1072771" alt=""><figcaption></figcaption></figure>

Turn on REPL mode on the Futureboard by connecting it on KittenCode.

<figure><img src="https://686851495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Bv9xBdKh3R9w6Vp7asd%2Fuploads%2FMG8y50wHRaniEZCCHqfD%2Fimage.png?alt=media&#x26;token=dbefacf4-c0ec-4361-94a8-847f1bc280cf" alt=""><figcaption></figcaption></figure>

<figure><img src="https://686851495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Bv9xBdKh3R9w6Vp7asd%2Fuploads%2FX0XzHETbS3L7bJDbYX8Y%2Fimage.png?alt=media&#x26;token=b8de9fd3-651c-407e-87c8-7fcb2bf8fc41" alt=""><figcaption></figcaption></figure>

<figure><img src="https://686851495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Bv9xBdKh3R9w6Vp7asd%2Fuploads%2F1LATCGLzqlXkurZaLVs6%2Fimage.png?alt=media&#x26;token=5be68715-ef55-4e4b-8002-efbfd4de6928" alt=""><figcaption></figcaption></figure>

<figure><img src="https://686851495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Bv9xBdKh3R9w6Vp7asd%2Fuploads%2Fz7mxlbjcq0fX4bCixoMK%2Fimage.png?alt=media&#x26;token=49076379-410b-473e-809d-696b0842bf3f" alt=""><figcaption></figcaption></figure>

Open Coding Mode to Uploadthe program onto your Futureboard.

<figure><img src="https://686851495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Bv9xBdKh3R9w6Vp7asd%2Fuploads%2Fzr0BV175aTPRboB9vxGC%2Fimage.png?alt=media&#x26;token=44bc6251-8d69-485d-8bb9-71aec444c60f" alt=""><figcaption></figcaption></figure>


---

# 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://sharinghub-eng.kittenbot.hk/airelated/ai-camera-koi-2/kittenblock-programming/koi-2-in-kittenblock-quick-start-guide.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.
