Dynamic NeoPixel Demo


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166

    Default Dynamic NeoPixel Demo

    Well Over the holidays I was in Florida with my family and during that time my daughter was designing a wearable Arduino / NeoPixel article of clothing. It was to be a belt that would scroll messages. Well her and I went our own ways as far as designing the thing. What I did was somewhat based on the work of Michel Jasmin who wrote an article here. I however wanted the messages to be dynamic in nature meaning they should be able to be changed while the system is up and running and not only during compile time. The attached code and include file are a complete system for building a scrolling display using the popular WS2812B (NeoPixels) with a couple of test display modes. I have tested the code to 1008 series connected pixels with 100% success. That many pixels do draw a bit of power so if you are doing to build a portable unit, you will need a car battery..... The display was designed as displaying any number of 5 x 7 characters. However I made the matrix for 6 x 7 so as to leave 1 collum between each character. 1008 pixels would then yield 24 characters per display. I was doing to build a top hat with a scrolling display for new years but didn't have time to get the hat. The design is for the same number of pixels per row x 7 rows. the rows are to be connected in series starting from the left to the right. This is easy if the display is in the configuration of a circle, as I mentioned in the hat design. That was the start of each row from the top down to the bottom is mearly offset as far as the wiring goes. I also designed the input to use a Bluetooth connected device to enter the mode, messages, and color levels for the display, as well as the scrolling speed of each mode. The Bluetooth device I used was an HC-03 running at 38,400 baud. The PIC I used was an 18F26K22 as it afforded enough memory and 2 USARTs. This came in handy during debug and bootloading. I have to admit though, there are a butt load of extra pins not used as the entire project only needed 5 pins. 2 for each comm port and 1 for the NeoPixel strip. Well enough of me talking about it. Enjoy... and Happy NewYear...
    Attached Files Attached Files
    Last edited by Dave; - 16th January 2015 at 13:28.
    Dave Purola,
    N8NTA
    EN82fn

  2. #2
    Join Date
    Feb 2013
    Location
    Quebec, Canada
    Posts
    67


    Did you find this post helpful? Yes | No

    Default Re: Dynamic NeoPixel Demo

    Great work Dave! 1008 pixels, wow! I like how you converted in ASM the bit testing for the "bit banging" part.
    But you cannot just post some code, we want proof! Show the video! It's easy: there's a thing called "the Internet" and there's a place named "YouTube"...

    Just before Christmas I designed a Christmas tree ornament and sent the Gerber files to Dirty Cheap PCB. It was a fun project and the result is nice:


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


    Did you find this post helpful? Yes | No

    Default Re: Dynamic NeoPixel Demo

    Well Michel, I'm not much of a UTUBE type of guy. I wouldn't even know where to start...
    Dave Purola,
    N8NTA
    EN82fn

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: Dynamic NeoPixel Demos

    Great work by you two guys, I have been studying your code and I hope you are both still watching the thread.

    I'm repurposing some of the code for a coffee table top Conway's 'life' simulator.
    I'll be using 256 led matrixes or a 1024 led matrix for the giant version.

    I notice some of the code mentions recompiling for ASM64 instead of 32?

    I could not find the older 'NeoPixelASM32' bas file, is/was that available?

    Also I see it mentions code development on a 12F1840 etc, is that code available to have a look at.

    Many thanks Peter

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: Dynamic NeoPixel Demo


  6. #6


    Did you find this post helpful? Yes | No

    Default Re: Dynamic NeoPixel Demo

    I've seen all that thanks.

    Sadly it doesn't help with my specific questions about the earlier work they did.

    I'm interested in the 32mhz code and the 12F1840 code.

  7. #7
    Join Date
    Feb 2013
    Location
    Quebec, Canada
    Posts
    67


    Did you find this post helpful? Yes | No

    Default Re: Dynamic NeoPixel Demo

    Quote Originally Posted by retepsnikrep View Post
    I've seen all that thanks.

    Sadly it doesn't help with my specific questions about the earlier work they did.

    I'm interested in the 32mhz code and the 12F1840 code.
    See attached file for my 32MHz include file. The 12F1840 will not handle your big matrix with my example because of the memory limitation for arrays. You need a 18F which can handle arrays over multiple banks. It's a PICBasic's limitation.

    NeoPixelBitBang32MHz.pbp.txt

Similar Threads

  1. NeoPixel (WS2812B) Demo
    By MichelJasmin in forum Code Examples
    Replies: 11
    Last Post: - 18th August 2018, 22:07
  2. ADC, pref and dynamic range
    By HankMcSpank in forum General
    Replies: 4
    Last Post: - 21st June 2011, 09:02
  3. Dynamic array??
    By lerameur in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th November 2010, 23:16
  4. OWOUT dynamic memory addresses
    By scottl in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th March 2008, 21:39
  5. SerOut2 Dynamic Port Selection
    By nba30 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 11th April 2005, 17:27

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