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-67294e7590e2d084723718/]
Python Source Code
[crayon-67294e7590e36144125602/]
 

Wiring TCRT5000 IR Tracking Sensor with Raspberry Pi
Exit mobile version