> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/functional_module/powerbrick/powerbrick-makecode-programming-for-robotbit.md).

# Powerbrick MakeCode Programming for Robotbit

Create MakeCode Project.

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

### Load PowerEDU Extension

Go to "Extensions"

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

Search for ”<https://github.com/kittenbothk/pxt-PowerEdu”> .

```
https://github.com/kittenbothk/pxt-PowerEdu
```

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

Click the icon to load the extension.

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

### Connecting Powerbrick modules to Powerbrick

#### Standard Modules

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

The functions for each pin (A, B) labelled for each module.

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

For example, P12 is connected to B and P2 is connected to A for this ultrasound module.

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

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

#### MP3

Connect both A and B to P2, P12.

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

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

#### I2C Modules

Use 4PIN cable to connect I2C modules to the I2C port.

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

### 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://kittenbothk-eng.readthedocs.io/en/latest/Makecode/makecode_extensionUpdate.html)


---

# 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 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/functional_module/powerbrick/powerbrick-makecode-programming-for-robotbit.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.
