Wifi Candle - illuminate with ESPEasy (WS2812)

Moderators: BertB, rtenklooster, Voyager, Stuntteam, Martinus

Message
Author
uhrheber
Normal user
Posts: 22
Joined: 26 Sep 2016, 14:03

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#21 Post by uhrheber » 26 Oct 2016, 21:15

Martinus wrote: I uploaded my basic test plugin for neopixel in the playground:
I'm just testing it.
Great! Exactly what I was searching for, because I'm just modifying a Chinese LED light bulb by adding an ESP and some WS2812, and I want to use it as a universal status indicator for my home automation. Like, pulsing red when there's something wrong with the oven, or blue when it's freezing outside, and such.

It's working great so far, it only eats much of the rules space, so I think I'll add some effects to the plugin itself.

Anyways, many thanks for your code.

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

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#22 Post by timsson » 27 Oct 2016, 11:13

Martinus wrote: I uploaded my basic test plugin for neopixel in the playground:
https://github.com/ESP8266nu/ESPEasyPlu ... oPixel.ino
Use rules commands to control single WS2812 leds into any color:
neoPixel <led nr>,<red>,<green>,<blue>
Who can change the code to use it with mqtt?
its too strong coding for me, maybe i can follow the steps after change..?
regards
Tim

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

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#23 Post by moelski » 27 Oct 2016, 11:28

Hi,

@Martinus:
Wouldn´t it be better to open a new topic for your neopixel plugin?
It get´s a little bit offtopic here :oops:
regards
Dominik

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

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#24 Post by papperone » 27 Oct 2016, 11:34

timsson wrote:
Martinus wrote: I uploaded my basic test plugin for neopixel in the playground:
https://github.com/ESP8266nu/ESPEasyPlu ... oPixel.ino
Use rules commands to control single WS2812 leds into any color:
neoPixel <led nr>,<red>,<green>,<blue>
Who can change the code to use it with mqtt?
its too strong coding for me, maybe i can follow the steps after change..?
regards
Tim
Did you try to send MQTT command to the topic "/<%sysname%>/cmd"; it shoudl work...

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

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#25 Post by Deennoo » 27 Oct 2016, 11:58

On my side that a total fail.

Tweaking r141 core 2.3.0
using a ws2812b led strip (11 pixel)
nodemcu esp12e and wemos mini
tweaking candle.ino to match to 11 pixel in 1 raw
reading this topic again and again

No way to make ws2812b bright (separate power for esp and led, use the same pin port as the video, led stay off.

What i'hve miss ? can you share a .bin working conf ?

I test the same hardware with ESP Fire 2012 all is find.

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

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#26 Post by moelski » 27 Oct 2016, 12:36

Hi !

Maybe you missed this one:
There is one thing in the github version that I had to add to make it compile and run and this was to define the variable "timer25ms" using:

Code: Select all

unsigned long timer25ms;
This is placed next to where the "timer100ms" is defined.
I have fixed that in the Github text ...
What i'hve miss ?
Hope you tweaked your ESPEasy code. Just copy the candle.ino wouldn´t work here.

If you can´t get it working just send me a private message with your mail address. I will contact you and you can send me your code for review ...
regards
Dominik

snow
Normal user
Posts: 2
Joined: 20 Oct 2016, 09:11

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#27 Post by snow » 29 Oct 2016, 00:43

It's possible to use FastLED library instead of Adafruit_NeoPixel in your sketch?
FastLED supports basically all types of LED controllers, including NeoPixel ws28121B

TomasB
Normal user
Posts: 3
Joined: 25 Oct 2016, 23:16

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#28 Post by TomasB » 29 Oct 2016, 19:17

Hi @moelski

This works really well but I'm struggling with one thing and this is how to control the Wifi candle over mqtt. Could you (or someone else more enlightened than me) please provide the mqtt messages required to control Color, Brightness and Type?

Thank you for all the help

tozett
Normal user
Posts: 713
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#29 Post by tozett » 31 Oct 2016, 09:27

moelski wrote:
There is one thing in the github version that I had to add to make it compile and run and this was to define the variable "timer25ms" using:

Code: Select all

unsigned long timer25ms;
This is placed next to where the "timer100ms" is defined.
I have fixed that in the Github text ...
@devs...
can this go into the mainline source, so any version update wont break ?

would be great ... long waited for LED integration to espeasy (not only sensors...)
;-)

tozett
Normal user
Posts: 713
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: Wifi Candle - illuminate with ESPEasy (WS2812)

#30 Post by tozett » 31 Oct 2016, 11:00

Martinus wrote: I uploaded my basic test plugin for neopixel in the playground:
https://github.com/ESP8266nu/ESPEasyPlu ... oPixel.ino
Use rules commands to control single WS2812 leds into any color:
neoPixel <led nr>,<red>,<green>,<blue>

Just a demo rules set for a single LED:

Code: Select all

on System#Boot do
  timerSet 1,10
endon

on Rules#Timer=1 do
  neopixel,1,50,0,0 // red
  delay 100
  neopixel,1,0,50,0 // green
  delay 100
  neopixel,1,0,0,50 // blue
  delay 100
  neopixel,1,25,25,25 // white
  timerSet 1,5
endon

can the demo-rules go into the header of the playground plugin?

its hard to keep track on this details, to get started.

the plugins are mostly bare code, so its really a challence to try them ...
little help in the header would be helpful for testing...

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests