Page 1 of 1

Jonisk smart light (with ESP Easy and LED WS2812B 5050 RGB LED Strip light)

Posted: 27 Dec 2017, 14:03
by Cheaps
I'm busy with a new project, a smart Jonisk light. The cheapest way to make the light smart is to insert a E27 Philips Hue colour light, but of course it's cheaper and more interesting to 'hack' it with a custom made solution.

I have a NodeMCU 0.9 and a WS2812B LED strip (https://www.ebay.com/itm/WS2812B-5050-R ... 2749.l2649

The first thing I did was to 'demolish' the Jonisk light so that I can have wire acces via the original hole in the lamp.
Image


Secondly I flashed ESP easy Mega on it, and tried to configure the LED strip. I added a device (Neopixel candle) and after wiring the 5V, GND and GPIO-0 (D3)I was able to light op my LED and control it via the webinterface of ESP easy. Sadly I can't find anywhere a way to control the LED strip via HTTP commands or via Domoticz. After lot's of headache I still don't know a good solution to control the LED via Domoticz. I already added a dummy RGB controller but it doesn't work.

Re: Jonisk smart light (with ESP Easy and LED WS2812B 5050 RGB LED Strip light)

Posted: 27 Dec 2017, 20:47
by Shardan
Hello,

if you want to control "LED by LED" use the NEOPIXEL plugin instead of Neopixel_Candle.

As far as I can see the external commands in the candle plugin are commented out at this time
so they won't work.

Regards
Shardan

Re: Jonisk smart light (with ESP Easy and LED WS2812B 5050 RGB LED Strip light)

Posted: 28 Dec 2017, 22:22
by Cheaps
Thanks for the suggestion! It worked out when I added a device, Neopixel basic, and enabled it, in stead of Neopixel Candle.

I finally made it, still not the full implementation in Domoticz, but it's a start, and controllable via http request,
http://myipadress/ control?cmd=neopixelall,255,100,0 for example
I can make a few shortcuts to pre-defined colours, but it's not ideal.


Image

A picture in a WAF colour ;) .

Re: Jonisk smart light (with ESP Easy and LED WS2812B 5050 RGB LED Strip light)

Posted: 03 Jan 2018, 20:51
by Duci
Cool! Can I ask you if you have a wiring scheme for the NodeMCU + the LED strip?

Re: Jonisk smart light (with ESP Easy and LED WS2812B 5050 RGB LED Strip light)

Posted: 06 Jan 2018, 20:35
by Cheaps
I connected the green cable (Din) GPIO pin to GPIO-0 (D3).

The LED strip is GND connected to GND on NODEMCU and
5V to 5V.

Be aware that you connect it well, and don't connect to the green cable to the wrong. I think I blew up one of my nodemcu's when the ground wasn't connected anymore and I think the 'gnd' went via the GPIO-0 pin. (the esp8266 won't boot anymore, and if I'm checking with a multimeter i see the 5v still 'awake' but on the 3v i don't see anything...