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


8 comments

Anonymous
September 10, 2014 at 1:56 PM

Cool! Good job.

Anonymous
September 11, 2014 at 12:24 PM

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.

September 15, 2014 at 9:41 AM

@Anonymous
This is ...
Aspartamo Hacendado

September 15, 2014 at 3:46 PM

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

September 15, 2014 at 9:20 PM

@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.

November 21, 2014 at 12:34 PM

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

November 21, 2014 at 12:41 PM

@Dominik
Of course!
Let me know when you have it!

July 29, 2016 at 10:51 AM

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

Post a Comment

Topics

Search in this blog

Loading...

Popular Posts

Versión española

Versión española
Arduino es Guay!!

Follow in Facebook

Powered by Blogger.