TINKER PiEDESIGN IN INDIA

Line tracker TCRT5000 with TinkerPie

Two of them under a robot make a line follower.

TypeDigital sensors
Connect toany accessory pin
Givestrue over a black line
SimulatorYes: a control appears under the simulated board

How it works

The TCRT5000 shines infrared light down and measures how much reflects back. White or shiny surfaces reflect a lot; black tape absorbs it. So the sensor can tell when it is over a black line.

How to wire it

Signal (DO / OUT / S) to any accessory pin: S1-S4, P10-P13, P43 or P44. Power from 3.3 V where the module allows it.

Code

In blocks: Accessories category in TinkerPie Studio. As code:

// JavaScript
sensors.lineTracker(Pin.S1)

// Arduino C++
sensors::lineTracker(Pin::S1)

Good to know

Projects with the Line tracker TCRT5000

Line follower robotTwo line trackers keep the robot on a black tape line.Sensor projects

Similar modules

Questions

Can I try the Line tracker TCRT5000 without buying one?

Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.

Why does my line follower lose the line?

Check the height above the floor, use matt black tape on a light floor, slow the robot down and make the curves gentler.