# Meowbit & Robotbit

Meowbit can be used in conjunction with a Robotbit to achieve even more possibilities.

### Robotbit Precautions:

#### 1: The battery must be installed in the right way.

#### 2: The screen of the Meowbit must be facing outwards.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/robotbit24.png)

### MakeCode Arcade Coding Tutorial

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/acbanner1.png)

### Using Robotbit

#### Load Robotbit Extension

#### Robotbit Extension: <https://github.com/KittenBot/meow-robotbit>

#### [Loading Extensions](https://sharinghub-eng.kittenbot.hk/programming-platforms/makecode-tutorial/kittenbot-and-makecode)

```
Loading the extension for Robotbit would automatically load the extension for IO pins.
```

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/sd5_1.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/robotbit1_1.png)

#### Blocks for controlling Robotbit

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/robotbit2_1.png)

#### Using Meowbit and Robotbit

**1. Controlling Motors**

Connect DC motors to the motor ports M1A and B of the Robotbit.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/motor_wire.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/robotbit5_1.png)

[Sample Code Link](https://makecode.com/_PtE25Ke69X5h)

#### 2. Controlling Servos

Connect a servo to the servo port S1 of the Robotbit.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/servo_wire.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/robotbit6_1.png)

[Sample Code Link](https://makecode.com/_FdTVtYRy55kr)

#### 3. Controlling Stepper Motors

Connect stepper motors to the motor ports M1 and M2 of the Robotbit, with the red wire connecting to VM.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/stepper_wire.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/robotbit7_1.png)

[Sample Code Link](https://makecode.com/_9hk2UwcvsCAo)

### Kittenblock Coding Tutorial

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kbbanner.png)

#### Blocks for controlling Robotbit

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kb15_1.png)

**1. Controlling Motors**

Connect DC motors to the motor ports M1A and B of the Robotbit.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/motor_wire.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/robotbit16_1.png)

#### 2. Controlling Servos

Connect a servo to the servo port S1 of the Robotbit.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/servo_wire.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/robotbit17_1.png)

#### 3. Controlling Stepper Motors

Connect stepper motors to the motor ports M1 and M2 of the Robotbit, with the red wire connecting to VM.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/stepper_wire.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/robotbit18_1.png)

### Troubleshooting

#### Q: How to solve the problem of “Robotbit is not defined” error on Meowbit after uploading the program from Kittenblock?

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/robotbit23.jpg)

#### A: Robotbit could not be initialized because Meowbit is not connected to Robotbit, connect Meowbit to Robotbit and reset to run the program as normal.
