Skip to content

bourgeois27/audio-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Audio Visualizer

Allows to view audio waves in the air.

The Arduino UNO R3 listen to an audio signal and light up the columns of a LED panel depending on how loud the music is. All this is possible by controlling an array of 32 smart LEDs.

The smart LEDs

This project uses a special kind of LEDs. These LEDs have very tiny chips inside of them that allow them to communicate with each other. Rather than plug each LED into the UNO R3 separately, this tiny chip allows me to control two 4x4 LED panels with only one pin.

Since I have two panels next to each other, I have a 8 columns and 4 rows to work with. I use the output of the microphone to light up these LEDs, with more LEDs representing a louder volume.

Interrupts

This project utilizes a feature known as interrupts. Interrupts allow to set a pin on the UNO R3 so that as sonne as the pin is activated, the current program is paused and a separate function is run. So as soon as the microphone is triggerd, the main loop will pause dans a function called turnOn() will run to make the LEDs light up. As soon as this function finishes, the main loop starts where it left off.

attachInterrupt(digitalPinToInterrupt(MICPIN), turnOn, RISING);

RISING means that the interrupt will trigger when the pin goes from LOW to HIGH.

FALLING would trigger the interrupt when the pin goes from HIGH to LOW

External Libraries

I'll be using Adafruit's NeoPixel library to interface with the LEDs.

import np lib img

About

Make an Arduino UNO R3 listen to an audio signal and light up the columns of a LED panel depending on how loud the volume is.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages