IR controlled Mood Lamp
Here is a second fun project with High Power RGB LED Shield and Arduino.
It is very easy to make a Infrared remote controlled RGB mood lamp with Arduino. All you need are a common IR receiver diode and IR remote. Now, you have full control of color and brightness of the LED.
Receiving IR code from a remote is handled by Ken’s fantastic IRremote library.
What you need.
- Arduino (any version)
- High Power RGB LED shield
- RGB LED
- Infrared receiver diode (38KHz, TSOP328)
- IR remote (NEC, SONY, RC5, RC6 compatible)
You can find IR receiver diode from followings:
- Mouser : http://www.mouser.com/Search/ProductDetail.aspx?R=TSOP38238virtualkey61370000virtualkey782-TSOP38238
- Sparkfun : http://www.sparkfun.com/products/10266
- RadioShack : http://www.radioshack.com/product/index.jsp?productId=2049727
The IRremote library only decode 4 different IR codes, however they are very common types. It is highly likely you have one of those that are supported. I used a Canon camcorder remote.
Depending on receiver diode. Normally 5V, GND, and signal.
Connect Signal pin to any digital pin (11). IR receiver does not look like in the picture though.
Arduino + High Power RGB LED Shield + Heatsink + RGB LEDs + IR receiver
First, install IRremote library from https://github.com/shirriff/Arduino-IRremote
You can find IR code of a remote by running IRrecvDemo example of IR remote library.
Change IR code of the sketch based on your IR remote code.
The Arduino sketch read IR code and output Hue or brightness value to the shield.
Demonstration of setup and code