Friday, September 5, 2014

Candle with remote control and Arduino Pro Mini

Candle with remote control and Arduino Pro Mini




Here I present another project based on a addressable LEDs strip, based on WS2812b leds.

It consists of an 'electronic' candle, which lets you select set colors, adjust the intensity, and have different effects like rainbow, fade and fire. The project arose from the purchase of an IKEA lantern model BORBY ... the idea was to replace a candle of considerable size, for something more ... modern.



Candle with remote control and Arduino Pro Mini

Thanks to Neopixel strip LED (for more on these strips, you can see the previous post ), the circuit is very simple and only consists of an Arduino Pro Mini  (so that it can be hidden inside the 'fake' candle), a piece of addressable LED strip (5 leds in my case), a infrared receiver TSOP1738 (the TSOP1736 works well), a resistance of 330 OMHS, an electrolytic capacitor 4.7uF, a small switch and a battery holder.

This is the scheme:

Scheme  Candle with remote control and Arduino Pro Mini

For the candle I used a pot sweetener a known supermarket ... then I've dropped wax on top to give the desired look.

Candle with remote control and Arduino Pro Mini

The circuit I have mounted on a small prototyping board, attached to the battery holder

Circuit Candle with remote control and Arduino Pro Mini

The code

The program is based on the IRRemote libraries for remote and Adafruit Neopixel for LED strip.
The program executes a loop in which it reads the code on the remote control, and depending on these changes the status of the LEDs.
Should be noted that you need to use some delays and make several calls to the routine that reads the code to allow time to 'catch' the time just press a button on the remote.
Of course you could leave fixed the candle effect and would not require or remote control or receiver ... but would be more boring.

Here I leave the videos:



The code

If you liked it, remember to share it on your favorite social network. Thanks


10 comments:

  1. What is the "pot sweetener" you used for the candle? I would like to build this but the candle is a key element and an unknown. Thanks.

    ReplyDelete
  2. Hola, esta super tu proyecto, tanto que estoy pensando en hacerlo yo tambien. Tienes algun estimado de cuanto duran las baterias?

    ReplyDelete
  3. @Rob Rdz
    Según pude medir, con el efecto vela consume entre 40 y 60 mA, es decir una media de 50 mA.
    Las pilas AAA, tienen una capacidad de unos 540 mAh para las normales y hasta 1200 mAh para las alkalinas 'buenas', según eso debería aguantar hasta 10 horas con unas normales, pero siendo conservadores calculo unas 8 horas ..., con las alkalinas más.
    Si se utilizan otros efectos, el consumo aumentará, sobre todo con luces fijas (el color blanco enciende todos los leds RGB).
    Cuando pueda haré una prueba.

    ReplyDelete
  4. Hi !

    This project is really cool. But I want to create a "fork" which uses the ESP8266 instead the IR module.

    I hope it is ok if I use your basic code for that?

    Dominik

    ReplyDelete
  5. I would like to add a timer to the strobe button. 30 minute increment per press. How would I do this?

    ReplyDelete
  6. @Arduino Guay
    hello sir nice work i remote is not working plz.

    ReplyDelete
  7. Hola, me encanta este proyecto, lo voy a incluir a mis tiras led en mi escritorio, solo me faltaría añadir diferentes códigos para añadir algún efecto que funcione con la música,conjunto un microfono y tal!

    ReplyDelete

Note: Only a member of this blog may post a comment.

Arduino Chromatic Clock, with Steampunk style

Arduino Chromatic Clock, with Steampunk  style Need a unique gift for Christmas? ... This watch unlike normal, uses colors instead of...