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.
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:
For the candle I used a pot sweetener a known supermarket ... then I've dropped wax on top to give the desired look.
The circuit I have mounted on a small prototyping board, attached to the battery holder
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 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
Cool! Good job.
ReplyDeleteWhat 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@Anonymous
ReplyDeleteThis is ...
Aspartamo Hacendado
Hola, esta super tu proyecto, tanto que estoy pensando en hacerlo yo tambien. Tienes algun estimado de cuanto duran las baterias?
ReplyDelete@Rob Rdz
ReplyDeleteSegú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.
Hi !
ReplyDeleteThis 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
@Dominik
ReplyDeleteOf course!
Let me know when you have it!
I would like to add a timer to the strobe button. 30 minute increment per press. How would I do this?
ReplyDelete@Arduino Guay
ReplyDeletehello sir nice work i remote is not working plz.
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