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


---

# Agent Instructions: 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/5wayline.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.
