Site icon 14core.com

Wiring IR (Infrared) Obstacle Avoidance Sensor with Raspberry Pi

IR (Infrared) obstacle avoidance Sensor module uses infrared reflection principle to detect obstacle. This sensor has a high precision components paired of infrared transmitter and receiver. The transmitter tubes emit a certain frequency of infrared when detecting a direction or obstacle or a reflector the infrared receiver tube receive a reflected signal came from the obstacle then the indicator output will turn to HIGH as you can see at the board there are two type of trimmer or potentiometer knob to adjust the distance from 2 to 40 cm. running at 3.3v or 5v dc.

Required Components

Wiring Diagram

CCode with WiringPi




[crayon-674f425ddb059505056416/]




Python Code
[crayon-674f425ddb067126814305/]
 

Wiring IR (Infrared) Obstacle Avoidance Sensor with Raspberry Pi
Exit mobile version