Adafruit LPD8806 160-LED Strip Using SPI Driver

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,337
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 17, 2011

This is the sample Arduino sketch using a modified SPI that I created. The full sequence runs under 30 seconds (compared to over 12 minutes for the original library).

The code can be downloaded from https://github.com/cjbaar/LPD8806

See the original here: http://www.youtube.com/watch?v=4iXgoBn9sLU

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (cjbaar1)

  • Not a problem; I thought had posted the link to the code before, but apparently not... so I just updated the description to include it.

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • Here is how I sped up the LPD8806:

    I have the Ardunio Uno. This is the connection change I made from the LPD8806 strip to the Arduino:

    Moved the "DI" line from pin 3 to pin 11

    Moved the "DO" line from 4 to 13

    Load the sketch and changed this line of the code from:

    LPD8806 strip = LPD8806(numPixels, dataPin, clockPin);

    To this:

    LPD8806 strip = LPD8806(numPixels);

    Click the Send button.

    I hope this helps!

  • Could you post a link to the code?

    Beautiful work!!!!

  • @Craigkc Heh, nevermind... I just found your post on adafruit forums where you even gave credit to my earlier post about the port manipulation. Looks like we already crossed paths there! I'm grabbing your code now and very excited to try it. GREAT work.

  • Did you just change the digitalWrite() calls to direct port manipulation or did you get a datasheet or something to get some more functionality out of the LPD8806? I've already modified the adafruit library to use port manipulation but at 16mhz I still can't get that kind of speed. Would you mind sharing your code!? I'd absolutely love to see what you worked out.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more