Fixes for Raspberry Pi 3 and notmatt/audio-reactive-led-strip
Go to file
2016-12-27 18:18:01 -07:00
arduino/ws2812_controller Added a status indicator LED that blinks when command is received 2016-12-24 20:37:43 -07:00
images Moved images to separate folder to reduce clutter 2016-12-27 17:29:10 -07:00
python Updated dsp.py and led.py to be Python 3.5 compatible 2016-12-27 03:06:57 -07:00
.gitattributes 🎉 Added .gitattributes & .gitignore files 2016-10-12 14:44:03 -07:00
.gitignore Added new visualization module that uses a mel filterbank instead of onset detection 2016-11-07 17:45:52 -08:00
README.md Improved information about installing dependencies 2016-12-27 18:18:01 -07:00

audio-reactive-led-strip

Real-time LED strip music visualization using the ESP8266 and Python

block diagram

overview

Demo (click gif for video)

visualizer demo

Overview

The repository includes everything needed to build an LED strip music visualizer (excluding hardware):

  • Python real-time visualization code, which includes code for:
  • Arduino firmware for the ESP8266 (ws2812_controller.ino)

What do I need to make one?

The following hardware is needed to build an LED strip music visualizer:

  • Computer with Python 2.7 or 3.5 (Anaconda is recommended on Windows)
  • Any ESP8266 module with RX1 pin exposed. These modules are known to be compatible (but many others work too):
    • NodeMCU v3
    • Adafruit HUZZAH
    • Adafruit Feather HUZZAH
  • Any ws2812b LED strip (such as Adafruit Neopixels)

Installation

Python Dependencies

Visualization code is compatible with Python 2.7 or 3.5. A few Python dependencies must also be installed:

  • Numpy
  • Scipy (for digital signal processing)
  • PyQtGraph (for GUI visualization)
  • PyAudio (for recording audio with microphone)

On Windows machines, the use of Anaconda is highly recommended. Anaconda simplifies the installation of Python dependencies, which is sometimes difficult on Windows.

Installing dependencies with Anaconda

Create a conda virtual environment (this step is optional but recommended)

conda create --name visualization-env python=3.5
activate visualization-env

Install dependencies using pip and the conda package manager

conda install numpy scipy pyqtgraph
pip install pyaudio

Installing dependencies without Anaconda

The pip package manager can also be used to install the python dependencies.

pip install numpy
pip install scipy
pip install pyqtgraph
pip install pyaudio

If pip is not found try using python -m pip install instead.

Arduino dependencies

The ws2812b i2s library must be downloaded and installed in the Arduino libraries folder.

Setup / Getting Started

Information coming soon. README is currently under active development.