deckle studio
Open the editor
Behavioural mixed-signal modelTCRT5000 module (LM393)tcrt5000

Line sensor TCRT5000 module

Infrared reflective sensor that looks at the floor: a light surface reflects, AO goes low and DO low (its LED lights); black tape reflects little, AO near VCC, DO high. Best 1–8 mm above the floor (most signal at 2.5 mm). The trimmer sets where DO switches. In the World, stick it under a robot board near the floor (a standoff brings it down) and lay black tape on a white course mat.

VCCGNDDOAOTCRT5000 module
Schematic symbol

Key data

Category
Modules
Simulation model
Behavioural mixed-signal model
Manufacturer part number
TCRT5000 module (LM393)
Reference prefix
U
Pins
4
Land pattern
PinHeader_1x04_P2.54mm_Vertical

Used in these examples 1

Simulation model

A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.

Model
tcrt5000
Supply pins
VCC / GND

Pins 4

PinNameUse
VCCVCCSupply pinSupply input: decouple with 100 nF close to the pin
GNDGNDGround pinGround
DODOOutput pinLogic output: drives the next input; do not tie outputs together
AOAOOutput pinLogic output: drives the next input; do not tie outputs together

Parameters 3

Surface reflectancesurfacelive
Default90 %

Without the World: what it looks at. White paper ~90 %, a grey floor ~30 %, black tape ~5 % (estimates)

Distance to the surfaceheightlive
Default3 mm

Without the World: data sheet: most signal at 2.5 mm, half of it at 8 mm

Trimmer (switching point)trimlive
Default50 %

DO goes low when AO falls below this share of VCC

PCB

Connector / off-boardPinHeader_1x04_P2.54mm_Vertical

Line sensor TCRT5000 module as a module on a 4-pin header (VCC, GND, DO, AO) – compare the order with your own module