Neopixel (WS2812B) Question/s


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562

    Default Neopixel (WS2812B) Question/s

    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.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,380


    Did you find this post helpful? Yes | No

    Default Re: Neopixel (WS2812B) Question/s


    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
    Warning I'm not a teacher

  3. #3
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default Re: Neopixel (WS2812B) Question/s

    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

  4. #4
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default Re: Neopixel (WS2812B) Question/s

    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

Similar Threads

  1. Dynamic NeoPixel Demo
    By Dave in forum Code Examples
    Replies: 6
    Last Post: - 19th May 2020, 21:54
  2. NeoPixel (WS2812B) Demo
    By MichelJasmin in forum Code Examples
    Replies: 11
    Last Post: - 18th August 2018, 22:07
  3. PIC to WS2812B / WS2811 IC
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 19th January 2018, 20:37

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts