I want to control the light in different rooms.
Use IR sensor to control the brightness of LED, and turn on/off of LED
Core components
1* IR sensor
1* remote control
2* LED
2 * 220 ohms resistors
Wires & jumpwires
Arduino board
Circuit/Schematics
How it works
Button 1 : switch on/off of blue LED
Button 2 : switch on/off of yellow LED
Button + : increase brightness (++ 50)
Button – : decrease brightness (- – 50)
Two LEDs have different on/off state, but have the same brightness.
Problems
Two LEDs can’t be adjusted separately
The remote control is inaccurate
Code
pcom/IR sensor