Output pin connected with GPIO24 of Raspberry Pi.If the variable resistor rotates in a clockwise direction distance range will be increased whereas if the variable resistor rotates in an anticlockwise direction distance range will get decreased. The IR sensor has a variable resistor or trimmer for calibration of the distance range. IR LED emits rays angle is approx 20 to 60 degrees and the range is approx from 2cm to 10cm (depending on manufacture). The transmitter LED emits IR ranges with the wavelength of 700nm to 1 mm which is invisible to the eyes. The IR sensor consists of LM393 comparator IC, a variable resistor, a power LED, an infrared transmitter LED, and a photodiode receiver LED. The IR sensor is a useful sensor in the electronics community to detect objects using IR (Infrared Rays). Also, print the status of object detection on the serial monitor. Write a python code to detect objects and turn on or off external led accordingly. Python Program for IR sensor using Raspberry Pi.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |