Page 1 of 8

Wifi Candle - illuminate with ESPEasy (WS2812)

Posted: 15 Oct 2016, 23:03
by moelski
Hi @all,

this evening I finished my Wifi Candle based on ESPEasy. This was a long term project of mine but I never had the time to get it done.
But now I think it´s mostly finished. Have to build the hardware into the housing but the coding part is ready :ugeek:

The lampe based on the adafruit Neopixel lib. The code is at some parts inspired by some web templates.
The hardware is only a NodeMCU with 20 WS2812 Pixels in a 4*5 Matrix. Take a look at the picture ...
And I use some paper for a light diffusor.

The rest is some coding (~700 lines of Code) and the great work of the ESPEasy devs 8-)

To make this working I had to tweak the ESPEasy code a little bit. Default there is only a 100ms timer but that is way to slow to drive the candle smoothly.
So i added another timer with 25ms cycle time. This give great results.

I added a first video to my webspace:
http://www.logview.info/Temp/WifiCandle.mp4

You can find the Code in the ESPEasy Playground:
https://github.com/ESP8266nu/ESPEasyPluginPlayground

And I have written some Setup notes for the candle:
http://www.logview.info/Temp/CandleNotes.pdf

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

Posted: 15 Oct 2016, 23:43
by papperone
Great works!! Defnitely 'll use your plugin if you will be so kind to share...
Just a question: is it possible to control the parameters via MQTT or HTTP command, or just via the task interface?

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

Posted: 16 Oct 2016, 00:51
by timsson
:shock: :D :mrgreen: - where can i find a link to the ino?
How do you wired the strips?
Can i use the ino for a ring of 16led?
Thank you in anticipation!

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

Posted: 16 Oct 2016, 06:00
by rajbadri
code please

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

Posted: 16 Oct 2016, 10:00
by moelski
Hi !
Great works!!
thx
will be so kind to share
I will share it. Just have to finish the "remote control" part ...
is it possible to control the parameters via MQTT or HTTP command, or just via the task interface?
Yes. That is really important for the WAF (woman acceptance factor) :lol:
I will code that now ...
where can i find a link to the ino?
I will place it at the playground asap
Can i use the ino for a ring of 16led?
For sure. But some parts are written for a 4*5 matrix of LEDs.
So maybe you need a little bit of tweeking ;)
How do you wired the strips?
They are wired in one line :D
Each side of my candle has 5 Leds and the starting is at the bottom.
So you need some basic math to address the correct LEDs. Not really a big deal ...

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

Posted: 16 Oct 2016, 15:35
by papperone
moelski wrote:
is it possible to control the parameters via MQTT or HTTP command, or just via the task interface?
Yes. That is really important for the WAF (woman acceptance factor) :lol:
I will code that now ...
I guess you read my mind :mrgreen: :mrgreen: :mrgreen:

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

Posted: 20 Oct 2016, 10:44
by Deennoo
Great your my man with this !!!

Waiting for your code asap !

As you use neopixel lib, maybe you can add fire2000 effect who make feel a real candel.

Sadly Domoticz can't send rgb value from dummy for now, this maybe need to create a new hardware just for your plugin.

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

Posted: 20 Oct 2016, 14:08
by moelski
Hi !
maybe you can add fire2000 effect who make feel a real candel.
Where can I find that sample?

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

Posted: 20 Oct 2016, 15:59
by timsson

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

Posted: 21 Oct 2016, 08:59
by Deennoo
Sorry was espfire2012 for ESP8266 (github link)

Off course this need more led but this is really a great "romantic" simulation lol