# 9g Servo

![](https://kittenbothk.readthedocs.io/en/latest/_images/9gservo.png)

An entry level servo.

### Product Specifications

* Voltage: 3.3V\~6V
* Rated Voltage: 4.8V
* Torque: 1.6kg±0.2kg/cm(4.8V)
* Range: 0°\~180°
* Weight: 9g
* Connector: Dupont

### Hardware Connection

Connect the servo to the servo port.

![](https://kittenbothk.readthedocs.io/en/latest/_images/9gservo_con.png)

### MakeCode Programming Tutorial

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

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

#### This module can be used by Micro:bit and Meowbit.

#### The programming for ArmourBit and Robotbit are identical.

#### ArmourBit

***

#### Load Powerbrick Extension: <https://github.com/KittenBot/pxt-powerbrick>

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

#### RobotBit

***

#### Load Robotbit Extension:

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

***

#### Blocks for controlling servos:

![](https://kittenbothk.readthedocs.io/en/latest/_images/9gservo_block.png)

#### Programming

![](https://kittenbothk.readthedocs.io/en/latest/_images/9gservo_code.png)

[Sample Program](https://makecode.microbit.org/_XkbgVe1cjV9A)

#### Meowbit:

#### Load Robotbit extension:

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

#### Blocks

![](https://kittenbothk.readthedocs.io/en/latest/_images/9gservo_block1.png)

### Programming

![](https://kittenbothk.readthedocs.io/en/latest/_images/9gservo_code_meow.png)

Sample Program

### Extension Version and Updates

There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.

[Makecode Extension Update](https://sharinghub-eng.kittenbot.hk/programming-platforms/makecode-tutorial/makecode-extension-updates)

#### Armourbit

#### Load Powerbrick extension

Select Powerbrick from the Hardware Menu.

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

#### Blocks for controlling servos:

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

#### Programming the servos:

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

[Sample Code Link](https://bit.ly/PowerbrickM12_01sb3)

***

#### Robotbit

#### Load Robotbit Extension

Open the hardware menu and select Micro:bit to load the extension for Micro:bit and Robotbit.

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

#### Blocks for controlling servos:

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

#### Programming the servos

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

### FAQ

1: The Micro:bit does not react when I click the programming blocks.

Make sure the Micro:bit has been connected to the Kittenblock and then try flashing the firmware.
