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-67698464bc2af614317040/]
Python Source Code
[crayon-67698464bc2b8618680335/]
 

Wiring TCRT5000 IR Tracking Sensor with Raspberry Pi
Exit mobile version