Arduino - Switch celling light with TV remote (2/2)
This is the part two of Switch celling light with TV remote tutorial. If needed, please check out the part one from link below. By the way, the source code is also available there. Quick Link Tutorial Part 1: Switch celling light with TV remote (1/2) To find out the IR codes for you remote, check this tutorial: IR Repeater Tutorial (Part 2) System Design See the illustration below. I used a phone charger( purple block; AC110V to DC5V ) to supply power from 110v AC power outlet from the celling. The Arduino controls the relay module to switch the celling light and Arduino interpret IR code to change RGB LED to shift color and on/off accordingly. Connections IR Receiver to Arduino pin 2 IR Receiver + to VCC IR Receiver - to GND Relay + to VCC Relay - to GND Relay to Arduino pin 8 RGB Red to Resistor to Arduino pin 3 RGB Green to Resistor to Arduino pin 5 RGB Blue to Resistor to Arduino pin 6 *** CAUTION: Turn off home main power switch first