# Infra Red Tracker Sensor

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

This is an infra red tracker sensor, it can detect when an object is close, it returns an analog value.

The range of the return value is 0-1023, a higher value means the object is closer to the sensor.

### Specifications[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#specifications)

* Voltage: 3.3V\~5V
* Type: Analog Module
* Interface: 3Pin Dupont Cable
* Detection Distance: 10-60mm

### Wiring Diagram[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#wiring-diagram)

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

Connect the sensor to Robotbit’s pin and 3V pin.

![../../\_images/infrared\_wire.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/infrared_wire.png)

### Adjust Sensitivity[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#adjust-sensitivity)

The sensor’s sensitivity can be adjusted via this potentialmeter. Use a screwdriver to turn.(Turn left to increase, turn right to decrease)

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

### MakeCode Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#makecode-coding-tutorial)

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

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

#### This module can be used with Microbit and Meowbit.[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#this-module-can-be-used-with-microbit-and-meowbit)

**Read the IR sensor value**[****](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#read-the-ir-sensor-value)

#### Microbit:[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#microbit)

![../../\_images/poten\_code.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_code.png)

#### Meowbit:[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#meowbit)

![../../\_images/poten\_codeMeow.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_codeMeow.png)

### KittenBlock Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#kittenblock-coding-tutorial)

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

#### Load the Robotbit extension[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#load-the-robotbit-extension)

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

**Read the IR sensor value**[****](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#id1)

![../../\_images/poten\_codekb.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_codekb.png)

### Mu Editor Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#mu-editor-coding-tutorial)

#### Read the IR sensor value[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/infrared.html#id2)

![../../\_images/poten\_codemu.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_codemu.png)
