README
Description
This program creates and LED music visualizer using Fast Fourier Transforms. An LED array controlled by a Raspberry Pi lights up in time to music, displaying the FFT bars.
How to Use It
The music visualizer comes with a few preloaded songs. To use these songs, follow the instructions below:
- Connect the hardware components to the Raspberry Pi (see instructions under Hardware Required)
- Run web app (page.py) in a local server from the Raspberry Pi
- Choose a song from the list
- Press start. The bar graph visualizer will play on the screen while the LEDs start to light up in time with the music.
Hardware Required
Raspberry Pi and connecting cables
WS2812 LEDs
Power supply and power jack
Level shifter
Breadboard and appropriate jumper wires
Connecting LEDs
Creating visualization for a new song
- In the file AV_FFT.py, change the song_file to the directory of your song of choice
- Uncomment the CSV creator code(at the bottom of the page)
- Run the file to compile the frames of the song you created into an animation and export the csv file to your LED program
- Add the new song to the directory in page.py and index.html.This adds the new song to the web app
- You can now use this like all of the preloaded songs!
Dependencies
Flask
Ffmpeg
Rpiws281x
NumPy
Matplotlib
Pygame