Neopixel (Basic) WS2812b do not work on wemos d1

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
barakatec
New user
Posts: 6
Joined: 24 Nov 2020, 13:00

Neopixel (Basic) WS2812b do not work on wemos d1

#1 Post by barakatec » 24 Nov 2020, 13:17

Hallo,

i have a little projekt on my Wemos D1 with Firmware "ESP_Easy_mega_20201102_normal_ESP8266_4M1M". I test a neopixel stripe with 36 leds on
GPIO-13 (D7). Between the port D7 (3,3V out) and the neopixel stripe Input Din i placed a converter from 3,3V to 5V Level.
The hardware works fine and the levels are correct. i measure this with an oscilloscope.

I configure this in Devices:

Device: Output - NeoPixel (Basic) ❔
Name: neopixel
Enabled: yes
Led Count: 36
GPIO: GPIO-13 (D7)
Strip Type: GRB


in tools > command i place the command "NeoPixelAllHSV,255,255,255" but no led has a reaction.
i measure the D7 port with the oscilloscope the d7 port and i see only a short high Impulse. That is not correct for the output!

Where is the Problem? Firmware bug? Anyone can help me ?

TD-er
Core team member
Posts: 8736
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#2 Post by TD-er » 24 Nov 2020, 14:57

Do you see anything in the logs when trying to send this command?

barakatec
New user
Posts: 6
Joined: 24 Nov 2020, 13:00

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#3 Post by barakatec » 24 Nov 2020, 15:39

yes , there is only this:

12059578: P038 : NeoPixelAllHSV,255,255,255 HSV converted to RGB(W):53,0,201,0

TD-er
Core team member
Posts: 8736
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#4 Post by TD-er » 24 Nov 2020, 16:36

Is the selection between "GRB" and "GRBW" correct? (and/or does changing this setting make any difference?

barakatec
New user
Posts: 6
Joined: 24 Nov 2020, 13:00

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#5 Post by barakatec » 24 Nov 2020, 17:14

with "GRBW"
Log:
17555488: P038 : NeoPixelAllHSV,255,255,255 HSV converted to RGB(W):53,0,201,0

but on D7 no data/clock impulses only a short high impulse

there is no difference on the output D7

User avatar
Grumpf
Normal user
Posts: 124
Joined: 05 May 2017, 23:45
Location: Namur

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#6 Post by Grumpf » 25 Nov 2020, 15:21

Can we have a schematic of your HW ?

Here's what I use for a project of mine (not Espeasy though), ignore the blue.
Untitled-1.jpg
Untitled-1.jpg (1.08 MiB) Viewed 10213 times

I expiremented a bit and I can tell you that not every pins of the Wemos works. Don't ask me why but it's like that. For sure D4 works I have several units running.
I power the Din of the strips through it with a 330ohm resistor in between. I also place a 1000µF capacitor between GND & VCC.
It's custom and I'm using Domoticz to swap one mode to another, the Esp does all the changes on the strips and maintain de "mood" until domoticz tells him otherwise.

I'll share this project when I'm ready but if it is what you're trying to do, I'm happy to explain.

Tested with strips, the sorotff Xmas garland & RGBW (alternate firmware). With a good PSU I was abled to drive 300 (need 600).

So TL;DR

What's the pin you use? and do you have a capacitor & no need to convert for 3.3v to 5 for DIN.

barakatec
New user
Posts: 6
Joined: 24 Nov 2020, 13:00

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#7 Post by barakatec » 25 Nov 2020, 20:32

Thank you for you information and checked this for a few minutes.

here is my schematic diagram
IMG_20201125_202300.jpg
IMG_20201125_202300.jpg (843.28 KiB) Viewed 10201 times
.

I have check following ports D4, D5, D6, on all defined Ports i have only a short high 3,3V impulse at the Wemos D1, but no Data Impulses at the D4 or D5 or D6 or D7 GPIO Ports.
My LED Din get so a short high 5V impulse, the hardware works fine but not on that firmware "ESP_Easy_mega_20201102_normal_ESP8266_4M1M" with a wemos D1 !!!

Something went wrong at the actual firmware. :cry:

User avatar
Grumpf
Normal user
Posts: 124
Joined: 05 May 2017, 23:45
Location: Namur

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#8 Post by Grumpf » 25 Nov 2020, 21:09

I just tried with my HW, configuring output as GPIO12 (D6) and it worked. (don't pay attention to the mess it's early debugging)
IMG_20201125_205558.jpg
IMG_20201125_205558.jpg (3.12 MiB) Viewed 10195 times
I don't know but I'll bypass the converter and feed the led in directly from D6 after a 330 ohm resistor. Maybe 2.2k is too much for this version ? If it doesn't work like that, adding a little capacitor may help.

Here's the board I'm using (the red version you see is the strict minimum for driving the strip, connectors, 1 capa, 1 resistor. I can send you one if you want. I haven't tested de Dallas but all the rest is functionnal.
IMG_20201103_160147 (Small).jpg
IMG_20201103_160147 (Small).jpg (132.84 KiB) Viewed 10195 times
The yellow messy one you see is populated with everything but the dallas and everything works with Espeasy.

PS: forgot to mention I'm using the ESP_Easy_mega_20201102_dev_ESP8266_4M1M firmware but I really doubt that's the reason. I can check with your version tomorrow if you want.

TD-er
Core team member
Posts: 8736
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#9 Post by TD-er » 25 Nov 2020, 22:20

Just as a side note, the changed/updated Dallas code is included in the build I made today.

barakatec
New user
Posts: 6
Joined: 24 Nov 2020, 13:00

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#10 Post by barakatec » 25 Nov 2020, 22:57

As i say, it is not a hardware problem of my or your circuit.
if i sent this Command: "NeoPixelAllHSV,255,255,255"
i have at the outputs, which i before define, only this signal measuring with an oscilloscope it looks like that:

------------
| |
| |
____________| |___________________________________________

but that is not correct!!!!!

The data signal must be look like that:
------------ ------------ ------------ ------------
| | | | | | | |
| | | | | | | |
____________| |_______| |_ __| |___________| |_ ........


so if you have a firmware before, it would may be declare your working project.

TD-er
Core team member
Posts: 8736
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#11 Post by TD-er » 25 Nov 2020, 23:08

It looks like you both claim to be running the same build data, only a different set of other included plugins (normal vs. dev)
So I am really curious to what actual version is used and what exact command is given to make it work.

User avatar
Grumpf
Normal user
Posts: 124
Joined: 05 May 2017, 23:45
Location: Namur

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#12 Post by Grumpf » 26 Nov 2020, 09:40

I flashed ESP_Easy_mega_20201102_normal_ESP8266_4M1M, it still works.
TD-er wrote: 25 Nov 2020, 22:20 Just as a side note, the changed/updated Dallas code is included in the build I made today.
I'll check it then, TX.

barakatec
New user
Posts: 6
Joined: 24 Nov 2020, 13:00

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#13 Post by barakatec » 26 Nov 2020, 16:44

Now it works
i do not need the 3,3V to 5V Level Transistor Converter, he is not fast enough. He make from the data packet only one Impulse, which i saw at the oscilloscope yesterday.

today I take a better Osci with more MHz and then i saw the Problem.

Only a Resistor 330R or 470R works between Wemos D1 Port and the Neopixel Stripe Din, that told me "Grumpf". Thanks

So please make a notice at the neopixel Device Mask for the other people, who do work with neopixels.

Now i can make my Rules for my Project. Thanks for the help.

User avatar
Grumpf
Normal user
Posts: 124
Joined: 05 May 2017, 23:45
Location: Namur

Re: Neopixel (Basic) WS2812b do not work on wemos d1

#14 Post by Grumpf » 26 Nov 2020, 17:01

Happy to help. And if you want to drive a lot of leds, don't forget the capa.
Cheers.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 15 guests