PDA

View Full Version : Neopixel (WS2812B) Question/s



LEDave
- 28th June 2020, 13:58
I have a string of 8 Neopixels which I can light using a FOR/NEXT loop each cycle setting a pin HIGH/LOW to light the string (24 BYTES * 8 cycles total).

So Question: After I've written all 8 pixels say Green, how do I overwrite them with the next FOR/NEXT cycle to change the colour as the Green colour has 'latched on' on all 8 pixels and needs clearing / resetting?

Do I have to send a 'single' RESET pulse pin LOW 50u_sec (from data sheet) or 8 separate RESET pulses for all 8 pixels?

Or am I barking up the wrong tree with the above?

Thanks for any help in advance.

richard
- 29th June 2020, 03:48
Do I have to send a 'single' RESET pulse pin LOW 50u_sec (from data sheet) or 8 separate RESET pulses for all 8 pixels


the reset is implicit , as soon as input data has ceased for 50us the chips reset and lightup with the currently loaded data
they remain like that untill the data is changed and another reset condition occurs.
there are many examples on the forum

LEDave
- 29th June 2020, 14:45
Thanks for the reply Richard.

So am I reading it right that when the led's have lit up, they are in the 'ready' condition to receive another run of data?

Problem I'm having is when I run the next run of bytes to change colour nothing happens.

Bearing in mind what you've said I'll have a play tonight a let you know how I get on.

Just to add, when the data stream stops for >=50us the Data_Pin must be in the pin LOW condition?

Thanks again: David

LEDave
- 30th June 2020, 01:07
Hi Richard

Have spent sometime on the Neopixels tonight and managed (after tweaking the RESET time) to get them to reset. I can now run 3 lines of Green, Red, and Blue in a loop, so making some progress.

I'm sure I'll more questions on these in the coming days but in the meantime thanks again for you help.

David