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

# 5 Way Line Follow Module

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/5wayline2.png" alt=""><figcaption></figcaption></figure>

This is a line follow module, it has 5 IR sensors and returns an analog value.

The darker the reading is(black line), the lower the return value.

### Specifications

* Voltage：3V-5V
* Distance between Sensors：11mm
* Mounting Hole Diameter：5mm
* Effective Distance：1cm-5cm
* Interface：Dupont Cable

### Wiring Diagram

5 Way Line Follow Module can be connected to 3.3V or 5V power.

```
This is an analog module, it can only use P0-P2.(Remove the buzzer jumper when P0 is in use.)
```

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

### MakeCode Coding Tutorial

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

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

#### This module can be used with Microbit and Meowbit.

**Line Follower Sensor Coding**

```
The sensors return value may change in different environments, such as height of sensors and color or material of tape。
It is recommended to calibrate values before using the module.
```

#### Microbit:

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

[Sample Code Link](https://makecode.microbit.org/_c7rXpLY791Cw)

#### Meowbit:

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

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

### KittenBlock Coding Tutorial

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

#### Load Robotbit Extension

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

**Line Follow Sensor Coding**

```
The sensors return value may change in different environments, such as height of sensors and color or material of tape。
It is recommended to calibrate values before using the module.
```

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