KOI 2 in MakeCode Quick Start Guide
Last updated
Last updated
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.
If you wish to power the KOI using USB power, please remove the black(GND) and red(5V) wires.
KOI 2 RX Port(Yellow) Connects to Robotbit TX Port(P2)
KOI 2 TX Port(Blue) Connects to Robotbit RX Port(P12)
Use the cable included to connect KOI to Robotbit.
Refers to the following illustration for correct wiring.
Black - GND
Red - 5V
Yellow - P2 (TX)
Blue - P12 (RX)
Do not connect Red to Ground and Black to 5V!!!
Ensure the connection is correct and switch the power on.
It is easier to connect to an Armourbit because they both use PH2.0 connectors.
When using KOI with an Armourbit, KOI needs an extra 5V power source.
Using the USB port on the battery box, 5V power can be supplied to KOI. (See figure below)
Use the corresponding programming block and select the correct port.(Default Port 1)
Extension Address:
Open the extension tab in MakeCode.
Search for KOI2 in the search bar, select KOI 2.(KOI 2 has been approved by Microsoft)
The extension will be imported into your project.
Initializes the communication between KOI 2 and Micro:bit, must be included at the top of the program.
Basic Operations for KOI 2 such as taking pictures and showing text.
Switching function is required to run the corresponding AI function.