I had a spare Neopixel strip lying around and I thought it would be cool to make a spectrum analyser for my soundsystem.
I am assuming you are familiar with the arduino developing environment, if not then there are many tutorials out there.
This shows volume, NOT frequency.
But I might make a frequency one later.
Step 1: Gather Parts
You will need:
- Arduino (I used Nano, you can use others)
- 2x 330ohm resistors
- jumper wires
- LED strip (neopixels)
- audio jack
Step 2: Circuit
Construct the circuit as shown, if you want, you can build it on perfboard for a more permanent solution.
You can connect this straight to an audio source as well (shown in schematic) e.g. an amplifier output, just connect the wires to your other source instead of the audio jack. Using this method, you don't need the speaker because the wires are connected in parallel with other speakers anyway.
Step 3: Programming
Make sure you have the Adafruit Neopixel library installed.
If not, then open library manager (sketch-->include library-->manage libraries). Then search for 'Adafruit Neopixel'.
Click on the one shown and hit 'install'.
Next open the attached code, make sure the 'STRIP_LENGTH' is set to your strip length, select the board and port from the 'Tools' menu and upload.
Step 4: Finished!
You can now impress people with your music volume analyser or just watch it with the music.
It may be a good idea to make a custom PCB from perfboard and mount them somewhere nice if it is to be permanent. See video of them working.
This is an entry in the
Arduino Contest 2019