Wifi Candle - illuminate with ESPEasy (WS2812)

Moderators: Voyager, BertB, rtenklooster, Stuntteam, Martinus

Post Reply
Message
Author
User avatar
moelski
Normal user
Posts: 124
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Wifi Candle - illuminate with ESPEasy (WS2812)

#1 Post by moelski » 15 Oct 2016, 23:03

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
Attachments
WifiCandle.jpg
Hardware for the wick ...
WifiCandle.jpg (37.18 KiB) Viewed 5838 times
Last edited by moelski on 29 Dec 2016, 08:03, edited 1 time in total.
regards
Dominik

papperone
Normal user
Posts: 307
Joined: 04 Oct 2016, 23:16

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#2 Post by papperone » 15 Oct 2016, 23:43

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?

timsson
Normal user
Posts: 76
Joined: 25 Mar 2016, 22:00

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#3 Post by timsson » 16 Oct 2016, 00:51

: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!

User avatar
rajbadri
Normal user
Posts: 56
Joined: 21 Dec 2015, 21:38
Location: India

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#4 Post by rajbadri » 16 Oct 2016, 06:00

code please

User avatar
moelski
Normal user
Posts: 124
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#5 Post by moelski » 16 Oct 2016, 10:00

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 ...
regards
Dominik

papperone
Normal user
Posts: 307
Joined: 04 Oct 2016, 23:16

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#6 Post by papperone » 16 Oct 2016, 15:35

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:

Deennoo
Normal user
Posts: 158
Joined: 07 Sep 2015, 13:03

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#7 Post by Deennoo » 20 Oct 2016, 10:44

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.

User avatar
moelski
Normal user
Posts: 124
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#8 Post by moelski » 20 Oct 2016, 14:08

Hi !
maybe you can add fire2000 effect who make feel a real candel.
Where can I find that sample?
regards
Dominik


Deennoo
Normal user
Posts: 158
Joined: 07 Sep 2015, 13:03

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#10 Post by Deennoo » 21 Oct 2016, 08:59

Sorry was espfire2012 for ESP8266 (github link)

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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests