ohmio

Circuits / Sensors

Arduino UNO: TCRT5000 line follower

White paper sends the infrared back and the phototransistor pulls AO low, so DO reads LOW; black ink absorbs it, AO rises and DO reads HIGH: the program prints LINE

Arduino UNO: TCRT5000 line follower, simulated on a breadboard

Tap a part to see its voltages and currents. It is a model, not a measurement.

What do you need?

The AliExpress links are affiliate links: if you buy through them ohmio.dev gets a commission, at no extra cost to you. Affiliate links

This page is a guide: the numbers come from a simulation, and real parts vary. Check your parts before you power the circuit. Safety and responsibility

How does a line follower tell a black line from white paper?

The TCRT5000 module has an infrared LED and a phototransistor side by side. White paper sends the infrared back, the phototransistor conducts and AO falls; a black line absorbs it and AO rises. The module's comparator turns AO into DO by comparing it with the trimmer's reference. In the model, with the sensor 3 mm over the surface, white paper at 80 % reflectance gives AO 0.20 V, DO is LOW and the program prints NO LINE 42. Black at 10 % gives 3.09 V, DO is HIGH and it prints LINE 635. With the trimmer in the middle, DO changes near 13 % reflectance. The module takes about 32 mA from the 5 V pin. Use black electrical tape for the line, and check that the board's LED agrees with what the program prints, because some brands invert DO.

Values from the Protoboard ISO simulation: a model, not a bench measurement.