Simple Infrared Sensor Switch
Simple Infrared Sensor Switch
- Required components
- Circuit schematic
- Using STC12C4052AD or STC12C2052AD(1pcs) for microcontroller
- LTH1550-01 Infrared Reflector Module (1pcs)
- Other infrared reflectors module of the same type can be used instead (such as RPR220)
- Can be replaced with the same type of module
- LED for output indication, the pin expandable relay or other output (1pcs)
- Breadboards (1pcs)
- Battery case for 3 AAA batteries(1pcs)
- The output voltage is 4.5V. The red line is positive pole and the black line is negative pole. It can be replaced by other power supply
- Insert the microcontroller into the breadboard
- Insert the infrared reflection module into the breadboard according to the circuit schematic
- Insert breadboard with wires, have a short circuit of P1.3 and P1.4
- Insert LED indicator, LED negative pole connect with P1.7 is no-latch switch and connects with 1.6 is latch switch
- Connect the power supply to pins 20 (positive) and 10 (negative) of the microcontroller
- Turn on the power switch when finished
- Block the reflection area with your hand or other objects
- Inductive processing use microcontroller ADC acquisition and mathematical algorithm, high stability
Source from:Geekfans
Translated by:Utsource
Here is the product links you can take as reference
PS The material URL
STC12C4052AD https://www.utsource.net/pro/STC12C4052AD.html
STC12C2052AD https://www.utsource.net/pro/STC12C2052AD.html
LED https://www.utsource.net/sch/led%20mm
Breadboard https://www.utsource.net/sch/breadboard
Battery case https://www.utsource.net/itm/p/6524558.html