Project showcase
Animating an LED strip from a computer

Animating an LED strip from a computer

By controlling the LED strip from a computer, you can do almost anything! I used it to create a dancing light show for music.

  • 19,761 views
  • 16 comments
  • 87 respects

Components and supplies

About this project

After seeing some captivating Christmas light and music shows, I realized I could make my own mini version of that with an addressable LED strip.

I decided to control everything from my computer, since the memory limit on a microprocessor is too limiting to store complex animations. Originally I was going to control the lights with MIDI, but eventually I realized that the easiest way was to use an image file. Each line of the image represents a new frame of animation. Not only does this make animations easier to visualize while editing, but many image editors have a lot of powerful tools that can make it easy to create complex and fun animations.

I wrote a small program for my Arduino that takes in a stream of data over a serial connection and lights up the LEDs from that. I designed a simple custom protocol with synchronized animations in mind. Then I wrote a program on my computer that could load an audio file and an LED strip animation, and play them in sync.

It took about 20 hours to create the animation for this song. If you want to create your own animations, I recommend Paint.NET. You will also find a spectrogram very useful. You can generate them with this program: http://spectrogram.software.informer.com/16.0/ Note: animation bitmaps must be the same number of pixels wide as the number of LEDs on your strip.

Code

syncstrip binariesC#
Use this if you do not want to compile syncstrip yourself. It may have bugs, and may be outdated.
No preview (download only).

Schematics

Basic Connections
Basic connections for a NeoPixel LED strip and an Arduino (image from Adafruit)
Leds wiring diagram

Comments

Similar projects you might like

Music Reactive LED Strip

Project showcase by buzzandy

  • 23,856 views
  • 51 comments
  • 59 respects

Programming 8x8 LED Matrix

by SAnwandter1

  • 113,922 views
  • 26 comments
  • 105 respects

5 Minute Christmas Neopixel Led Strip

Project showcase by Alexander

  • 9,884 views
  • 14 comments
  • 24 respects

Robotics LED Strip

Project tutorial by Arduino “having11” Guy

  • 2,609 views
  • 3 comments
  • 12 respects

Bluetooth control led with lcd led status display real time.

Project tutorial by Youssef Sabaa

  • 17,290 views
  • 4 comments
  • 34 respects

Music Adaptive RGB LED with Arduino and Processing

Project in progress by ounane mohamed elfarouk

  • 2,954 views
  • 8 comments
  • 24 respects
Add projectSign up / Login