NeoPixel (WS2812B) Demo


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: NeoPixel (WS2812B) Demo

    Where can I get the file NeoPixelDemo.ZIP as well as the INCLUDE file? I would like to try them.
    Dave Purola,
    N8NTA
    EN82fn

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: NeoPixel (WS2812B) Demo

    Scroll down code and you will find link, or click here
    http://www.picbasic.co.uk/forum/atta...7&d=1417555928

  3. #3
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: NeoPixel (WS2812B) Demo

    That is really nice piece of code, even if i cannot understand the include asm file.

    Have anyone used it with a 16 or 24 led WS2812 ring? (not the B version)

    I've tried with the pic currently have 18F26K22 at 64 Mhz. On a 16 ring or 24 ring, i cannot set up all the led's to be functioned.

    when i set

    Code:
    NEO_NUM     CON 16  'Number of pixels in Cyrcle
    Only 8 out of 16 LED are functioned.

    In case i increase the number, to 29, only 14 LED's are working, then no matter what number i use.....30+, still 14 LED's are light.

    The last two LED's are not working. Have been test it with 24 ring as well, and the last 2 LED's are not working.

    If anyone have experienced the same, would be nice to share your comments.

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,698


    Did you find this post helpful? Yes | No

    Default Re: NeoPixel (WS2812B) Demo

    I've tried with the pic currently have 18F26K22 at 64 Mhz. On a 16 ring or 24 ring, i cannot set up all the led's to be functioned.
    given that the include files expect a 20mhz clock what steps have you taken to compensate for running at more than 3 times the expected speed
    Warning I'm not a teacher

  5. #5
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: NeoPixel (WS2812B) Demo

    Ooops havent seen that. I might try a 20 Mhz crystal then. Should be easier.

  6. #6
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: NeoPixel (WS2812B) Demo

    I used 4Mhz crystal to 4xPLL and it worked. I couldnt see in the datasheet of the PIC18F26K22 any 20Mhz configuration.

    The code is really good. thanks the Author: Michel Jasmin
    Last edited by astanapane; - 12th August 2018 at 21:25.

  7. #7
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: NeoPixel (WS2812B) Demo

    May i ask something?

    Could i use all this code as a secondary code?

    I'm thinking to use it only as an effect when the PIC is powered up, the RGB led ring to do its pattern.

    But the main program not to be affected by this code.

    DT has given to us the interrupt function of a flashing LED without disturbing the main program.

    But i really dont know how to import all this code or how to use this DT's interrupt method here.

    Could anyone guide me? Thanks a lot.
    Last edited by astanapane; - 17th August 2018 at 13:25.

Similar Threads

  1. PIC to WS2812B / WS2811 IC
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 19th January 2018, 20:37
  2. Simple Array Demo
    By Archangel in forum Code Examples
    Replies: 5
    Last Post: - 15th February 2010, 05:46
  3. PicBasic Pro Demo
    By nbrucew in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th August 2009, 20:10
  4. Nested For Next Loop Demo
    By Archangel in forum Code Examples
    Replies: 0
    Last Post: - 8th June 2009, 09:57
  5. Demo version...
    By simransingh in forum mel PIC BASIC
    Replies: 4
    Last Post: - 21st November 2007, 22:10

Members who have read this thread : 3

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

Tags for this Thread

Posting Permissions

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