# 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)
