Skip to content

Enabled frequencies from music to be displayed in columns via Raspberry Pi and LPD8806 or WS2801 LED chipset

License

Notifications You must be signed in to change notification settings

kbeyer/RPi-LED-SpectrumAnalyzer

Repository files navigation

RPi-LED-SpectrumAnalyzer

Spectrum analyzer for RaspberryPi that lets you use LPD8806 or WS2801 LED chipset, and also takes input either from a local file or via airplay/line-in.

Inspiration

This project started by following a guide on Adafruit. After encountering some issues getting the code to work with our hardware, we refactored into this repository.

To get the hardware setup (i.e. - configure Raspberry Pi, wire up LEDs, tune SPI) the guide referenced above is a good starting point. Once you verify that the LEDs are functional, you can clone this repository into a new directory then follow instructions below to install and run.

Install

Run the install shell script using

bash install.sh

This will create a python virtual environment for you at BUILD/venv. Source this virtualenv for all future work, on this project.

source BUILD/venv/bin/activate

Usage

run.py is the main entry point. python run.py will give you usage information.

You can use a local file as input, as follows:

python run.py local /path/to/file.mp3

To use airplay, run:

python run.py airplay

To use line input, run:

python run.py linein

Attributions

The sample file included in this project is Lack Of Colour by Krish Ashok, licensed under a Creative Commons Licence.

About

Enabled frequencies from music to be displayed in columns via Raspberry Pi and LPD8806 or WS2801 LED chipset

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published