Attachments

Step 1: The Program

First you make sure you have everything you need and then you can begin writing the program for the microphone, speaker and the LEDs.

To get started I used a basic program that was already available for the Arduino and from there I went ahaid and changed it for my project. This is the script I used (if you want to use this program don't forget to change the numbers that are standing for the connections to the Arduino).

const int analogPin = A0; // pin that the sensor is attached to const int led1 = 8; // pin that the LED is attached to

Step 2: The Board

The second thing I did was creating the board where all the LEDs would be in. The easiest way to do this is to measure the length of the LEDs and then indicate were you will put them with a pencil. And then just make the holes with a drill.

Step 3: Installing the LEDs

One by one you place all the LEDs in the holes and then you connect them with a jump cable (you can also choose to solder them together). I connected four LEDs in a serie configuration and then all the groups of four in parallel to the breadboard. In the picture you can see three clothespins attached to the board, this is so that the LEDs stay in the board instead of getting squeezed out everytime. Also not all the LEDs are the same type, if there is a light that doesn't work that well, just replace it.

Step 4: The Box

I made a box around the jump cables and the Arduino to keep everything secure. !!MAKE SURE YOU CAN STILL OPEN THE BOX!!

The sides and the bottom can't be opened, but the back and the top are attached to eachother with hinges.

You can also create holes for the micropfone, the speaker and the powercable for the Arduino if you want to.

Step 5: Testing

If you make a sound the lights should turn on depending on how loud the sound is you make and how you programmed it, the speaker should make a sound for aswell.

After the program worked and the box was completely finished I drew some drawings on the back and the side of the box to give it some collor.

And that's it, you can now recreate this project by yourself. Good Luck!