Posts

Showing posts from 2015

Arduino - IR Repeater Tutorial (Part 2)

Image
If you want to see the complete tutorial, please visit IR Repeater Tutorial Part 1 first. Test out everything on the proton board: It's always a good practice to test out the wiring before solder components together.  Connect IR receiver LED to Arduino Pro Mini Connect IR emitter LED through 100 Ohm resister The program below was created by Lauszus that I found on Gighub . The original program was written to receive IR code and decode IR then save the IR code in the memory until a button is pressed to emit IR code. To meet my requirement, I made few modifications to make it receive IR, decode IR, and then emit the IR immediately. Here is my code: [Programming code] /* * IRrecord: record and play back IR signals as a minimal * An IR detector/demodulator must be connected to the input RECV_PIN. * An IR LED must be connected to the output PWM pin 3. * A button must be connected to the input BUTTON_PIN; this is the * send button. * A visible LED c

Arduino - IR Repeater Tutorial (Part 1)

Image
Goal:   To share a Set Top Box in living room with Bedroom TV using the same Remote Control. Preface:  Recently, I subscribed a VOD (Video On Demand) service that came with a Set Top Box in the living room. However, I would like to occasionally watch VOD in the bedroom, but the Set Top Box is in the living room. As you know, there is no way to control the Set Top Box in the living room from the bedroom.  Yeah, an IR repeater is all I need. There are commercial products available in the market already, but I quickly thought about the  Control celling light with a TV remote  Arduino project I have done before might be an replacement for the IR repeater I need. After all, this is why I learn Arduino - May my life easier!! Drawbacks of this project: Either one VOD TV program can be watched from living or bedroom at a time, since the Set Top Box is shared.   Arduino Programming Logic: The programming logic to repeat the IR signal is quite simple Receive remote control

Android control RGB LED using HC-05 Bluetooth module with Arduino (Part III) - Make A Night Lamp

Image
It's been a while since I wrote the RGB LED tutorial on my blog. Not sure if you have done yours. If you would like to learn the whole project from the scratch, please visit these two tutorial first. - Tutorial 1 - Tutorial 2 Recently, I have found a night lamp laying around and we were not used it anymore. I thought, umm.. it might be a good idea to DIY RGB LED into this lamp. Let's get started! This is what the lamp looks like below. It's powered up by a 9V/300mAh adapter. Since Arduino Mini Pro only take 5V or 3.3V, I had to replace a 5V/500mAh adapter from older 2G phones to use with this night lamp. After I opened the light lamp, there was tiny PCB, few wires, and a very small lightbulb under the transparent cover. I removed most of stuff inside to make room for my Arduino board. Since this is a night lamp, there is no need to let this lamp too bright. I decided to use 6 RGB LED to be the light source.  Please refer to my RGB LED tutoria