These are chat archives for Makuna/NeoPixelBus

22nd
Jan 2017
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:22
Hi I opened issue #155, and Makuna directed me here for help. I'm using the Sparkfun Thing with a WS2811. When I try to set full on with either RgbColor(255,255,255) or RgbwColor(255,255,255,255), the outputs on the WS2811 do not come full on, but still switch off for a short amount of time.
I'm using NeoEsp8266UartMethod. With only 1 pixel, the bus shows 32 0 bits, a reset, then 32 1 bits.
Michael Miller
@Makuna
Jan 22 2017 00:25
You state "32 0 bits" and a reset. Are you using a logic analyzer? scope?
How do you define the neopixelbus? (simple sketch helps). You can enter code by having a starting and ending line with three left single quotes (the shifted tilde key).
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:30
Logic analyzer. The output from the WS2811 appears to be about 95%
Michael Miller
@Makuna
Jan 22 2017 00:31
Are the RGBW pixels or just RGB pixels?
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:32

```#include <Arduino.h>

include <SPI.h>

include "NeoPixelBus.h"

RgbColor on(255, 255, 255);

NeoPixelBus<NeoRgbFeature, NeoEsp8266Uart800KbpsMethod> lights(1, 24);

void ICACHE_FLASH_ATTR setup() {
lights.Begin();
lights.Show();
lights.SetPixelColor(0, on);
lights.Show();
}

void ICACHE_FLASH_ATTR loop() {
}```

oops...
Just RGB.
WS2811 has only 3 output channels.
Michael Miller
@Makuna
Jan 22 2017 00:34
try this real quick, set the number of pixels to 10 (don't worry about how many you actually have, just change that one param).
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:34
I've tried 30 with the same results.
Michael Miller
@Makuna
Jan 22 2017 00:34
Pin 24? There is actually a 24 Pin?
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:35
Oops, I forgot about that change.
Michael Miller
@Makuna
Jan 22 2017 00:35
It doesn't matter, the pin is ignored for both Dma and Uart methods.
Ok, so you set the number to 10, what does the logic output look like?
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:36
I was trying to figure out how to change the elementSize paramater.
Michael Miller
@Makuna
Jan 22 2017 00:37
you don't need to worry about that, this is what the Feature provides (the NeoRgbFeature)
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:38
Why does it output 32 bits? The ws2811 takes 24 bits. (8 bits each for red, green,and blue)
Michael Miller
@Makuna
Jan 22 2017 00:38
the strange this is, you should only being seeing 24 bits output.
In the code above, is that all you are running? Please provide a complete small sketch that demonstrates the problem.
What pin do you have the hardware connected on?
p.s. The first line and last line for code should only be the three single left quotes, nothing else on the line. You can go edit the original post by using the menu on the right of the post that shows up when you hover the mouse over the post.
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:46
With 10, I am getting 24 1 bits the second transmission.
I believe the first transmission is from calling lights.Begin() and lights.Show()
Michael Miller
@Makuna
Jan 22 2017 00:47
but the first is still 32?
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:48
no, all 0 bits, and I didn't count them.
Michael Miller
@Makuna
Jan 22 2017 00:49
data is only sent when you call show; the first should have been 24 0 bits (default colors are black).
So, when you set the count of pixels to 10, it works correctly?
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:49
No, it works the same.
Now there's a new comment on the issue which may explain my problem.
looking into it.
Michael Miller
@Makuna
Jan 22 2017 00:51
he is talking about JUST a visual (imperceptible flash due to how short it is); but since you are not calling Show in your loop (are you? again full sketch) then sending is not causing the flashing.
How are you powering your NeoPixels (if by power supply, provide voltage and amp rating)?
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:53
It's not visually flashing. I'm showing 128.75 us of off time.
...which is about the same amount as described in the article.
Computer USB port. Doesn't matter, I'm sure my problem is as described in the article linked.
Michael Miller
@Makuna
Jan 22 2017 00:54
Visually off time, logic data off time?
David Holdeman
@chuckwagoncomputing
Jan 22 2017 00:54
WS2811 output off time.
closing issue.
I'm sorry for wasting your time.
Michael Miller
@Makuna
Jan 22 2017 00:56
its ok, being a little more precise in your description initially would help. I wasn't sure you weren't seeing a slow flash (1 Hz) or something else.
BUT, if you set it back to one pixel, as your still seeing 32 bits instead on only 24 bits? that sounds like a bug ;-)
David Holdeman
@chuckwagoncomputing
Jan 22 2017 01:03
I just double checked and it's only 24. The 32 must have been when I was testing Rgbw to see if it behaved differently.