IR 220v controller
My design uses an Arduino nano to control the circuit. The Arduino uses a transistor to turn on and off the relay which allows 220v to flow, and IR sensor is directly connected to the Arduino. I used 220v AC to 5v DC converter to power the Arduino. When the Arduino receives a specific IR signal, it will trigger the transistor which makes the relay on and making the 220v go through.