Site icon 14core.com

Wiring TCRT5000 IR Tracking Sensor with Raspberry Pi

IR Light reflection switch, useful for obstacle avoidance or line following, for obstacle avoidance you can place this module in front of the sender /receive diodes that will cause the out pin to be pulled low at distance of 1cm.

The board has two main components IR Transmitter and IR Receiver in one package named TCRT5000. The TCRT5000 are reflective sensors which include an infrared emitter and photo-transistor in a leaded package which blocks visible light. The package included two mounting clips. As you look at the board you can see a Potentiometer or Trimmer which used to adjust the sensitivity of the sensor.

Components Required

Wiring Guide

Compiling the Code

C Source Code
[crayon-6741ae262ed8c022902680/]
Python Source Code
[crayon-6741ae262ed97879731403/]
 

Wiring TCRT5000 IR Tracking Sensor with Raspberry Pi
Exit mobile version