> 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/line.md).

# IR Line Trace Module

雙路巡線魔塊

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

This is an infra red line tracing module, it has 2 line tracing sensors.

The LEDs on the back turn off when a black line is detected.

![](https://kittenbothk.readthedocs.io/en/latest/_images/IMG_2570.GIF)

### Details

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

### Specification

* Voltage: 3V-5V
* Dimensions: 56mm X 24mm X 16mm
* Connector: 4Pin PH2.0

### Precautions

* The module should be as close to the ground as possible.
* The ground or table must have a non-reflective surface.

### Connecting the module

Connect the Line Trace Module to Armourbit with a 4Pin cable.

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

### MakeCode Coding Tutorial

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

#### Load Powerbrick Extension:

#### Search "Powerbrick" in the search bar.

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

#### Or search the following link.

<https://github.com/KittenBot/pxt-powerbrick>

#### Line Trace Module Blocks

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

#### Tracing black lines

{% embed url="<https://makecode.microbit.org/_3tj8kdf8jhft>" %}

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

#### Makecode Video

{% embed url="<https://www.youtube.com/watch?v=BT1TUlmbMm8>" %}

#### Demo Video

{% embed url="<https://www.youtube.com/watch?v=epcs80fGryM>" %}

### 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](/programming-platforms/makecode-tutorial/makecode-extension-updates.md)

### KittenBlock Coding Tutorial

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

#### Load Powerbrick Extension

Select Powerbrick from the hardware column.

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

#### Line Trace Module Blocks

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

#### Tracing black lines

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

[Sample Code Download](https://bit.ly/PowberbrickM5_01sb3)

### FAQ

1：Why is there no reaction when I click the blocks?

Make sure you have connected the Micro:bit correctly and flash the firmware again.
