Skip to content

A processing sketch that performs an FFT (using the Minim library) to visualize music on an LED strip (WS2812) controlled via Arduino

License

Notifications You must be signed in to change notification settings

andrewhamon/FFT-LED-Visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFT-LED-Visualization

A processing sketch that performs an FFT (using the Minim library) to visualize music in real time on an LED strip (WS2812) controlled via Arduino. It also displays a live histogram and a simulation of the LED strip.

Setup

  1. Verify that ledStripLength in EQ.pde (under setup()), stripLength in Reciever.ino, and the length of your actual LED strip are all in agreement.
  2. Upload Reciever.ino to your Arduino; attach your LED strip to pin 6.
  3. Make sure the correct serial port is selected in EQ.pde (under setup()). Currently it is set to dev/tty.usbmodem1421

If the sketch fails to connect to the specified serial port, it will still run as normal.

Usage

You can control the behavior of the LED strip by clicking in various places on the screen. The Y position of the mouse affects the light fall-off. A higher value (closer to the bottom of the screen) means only really loud parts of the spectrum get through. The X position is a scale factor that is multiplied by each value. A higher X value (more toward the right edge of he screen) makes all the LEDs brighter.

NB: The constants will only be updated when the mouse is clicked. The current value of the two constants are the top two numbers displayed in the upper left corner of the screen.

The current frame rate is the third number displayed in the upper left corner of the screen.

Because most LED strips will be too short to view all the data at once, you can "scroll" back and forth (using a scroll wheel or two finger swipe if your trackpad supports it). The default position is all the way left (showing the bass end of the spectrum) and the current position is given as the bottom number displayed in the upper left corner (the number is the number of LEDs scrolled to the right; default is 0).

Licensing

Copyright (c) 2013 Andrew Hamon

FFT-LED-Visualization is licensed under the MIT License. To read the full terms, please see the LICENSE file that should have been provided with all copies or substantial portions of the Software. Alternatively, the generic MIT license text can be read here

About

A processing sketch that performs an FFT (using the Minim library) to visualize music on an LED strip (WS2812) controlled via Arduino

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages