Posts

Showing posts from February, 2018

Arduino - Switch celling light with TV remote (2/2)

Image
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

Arduino - Switch celling light with TV remote (1/2)

Image
 Preface It must be happened to you before that in a very cold night watching TV or movie in bed and you were ready for bed. You turned off the TV or DVD player with remote control easily. However, for the celling light, you just had to get out of the bed to turn the light off. What a pain!  After I searched the Internet, there are many examples out there suit for this purpose, such as IR receiver, relay module, and RGB LED shift hue and most of them have codes that I could utilize on this project.   Quick Link To find out the IR codes for you remote, check this tutorial:    IR Repeater Tutorial (Part 2) Tutorial Part 1:  Switch celling light with TV remote (1/2)   Material Needed Arduino mini pro *1  USB upload module *1  Relay module (5V/10A/125V) * 1  IR Receiver LED * 1 (Aixin AX-1838HS 38KHz * 1 / All 38KHz should work)  RGB LED *2  Resister 220 Om * 3 Few jump wires Any TV or DVD remote you have at home Breadboard * 1 It's not difficult