LED Neopixel Strip Volume Analyser

by sglawrie25 in Circuits > Audio

1138 Views, 9 Favorites, 0 Comments

LED Neopixel Strip Volume Analyser

Volume analyser.jpg

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.

Note:

This shows volume, NOT frequency.

But I might make a frequency one later.

Gather Parts

Resistors.jpg
Arduino nano.jpg
Breadboard.jpg
Jumper wires.jpg
IMG_20190112_130614126.jpg
IMG_20190627_171150439.jpg

You will need:

  • Arduino (I used Nano, you can use others)
  • 2x 330ohm resistors
  • breadboard
  • jumper wires
  • LED strip (neopixels)
  • 1000uf capacitor
  • 10k potentiometer

optional:

  • speaker
  • audio jack

Circuit

neopixel equalizer diagram.JPG
circuit diagram for volume analyser.jpg

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.

The potentiometer is for changing how high the LEDs go depending on the volume of the input. This is optional, if you don't want it then you can remove it from the code.

Programming

adafruit neopixel library.JPG

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.

Finished!

neopixel equalizer.jpg

You can now impress people with your music volume analyser or just watch it with the music.

TROUBLESHOOTING:

-If the LEDs are all lit up with slight flickering then turn the potentiometer until they go down to the music

-If nothing is happening, make sure the audio source is plugged in and working

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.