High Sound Beeper Box

Published

Introduction: High Sound Beeper Box

I made this project for teachers who can't keep their class silent.

It is easy to recreate if you just follow these steps.

For this project you will need:

1) An Arduino

2) LED lights in different colours

3) Jump cables

4) A microphone (MAX4466)

5) A speaker

6) A board to put the LEDs in (Triplex)

7) A breadboard

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

const int led2 = 9; // pin that the LED is attached to

const int led3 = 10; // pin that the LED is attached to

const int led4 = 11; // pin that the LED is attached to

const int led5 = 12; // pin that the LED is attached to

const int led6 = 13; // pin that the LED is attached to

const int threshold1 = 300; // an arbitrary threshold level that's in the range of the analog input

const int threshold2 = 350; // an arbitrary threshold level that's in the range of the analog input

const int threshold3 = 400; // an arbitrary threshold level that's in the range of the analog input

const int threshold4 = 450; // an arbitrary threshold level that's in the range of the analog input

const int threshold5 = 500; // an arbitrary threshold level that's in the range of the analog input

const int threshold6 = 550; // an arbitrary threshold level that's in the range of the analog input

int analogValue;

int teller;

void setup() {

// initialize the LED pin as an output:

pinMode(led1, OUTPUT);

pinMode(led2, OUTPUT);

pinMode(led3, OUTPUT);

pinMode(led4, OUTPUT);

pinMode(led5, OUTPUT);

pinMode(led6, OUTPUT); }

void loop() {

// read the value of the microphone:

int geluidnu = analogRead(analogPin);

if(geluidnu > analogValue) { analogValue = geluidnu; teller = 1500;}

if(teller > 0) {teller--;} else { analogValue = 0;}

// if the analog value is high enough, turn on the LED:

if (analogValue > threshold1) {

digitalWrite(led1, HIGH);

} else {

digitalWrite(led1, LOW); }

if (analogValue > threshold2) {

digitalWrite(led2, HIGH);

} else {

digitalWrite(led2, LOW); }

if (analogValue > threshold3) {

digitalWrite(led3, HIGH);

} else {

digitalWrite(led3, LOW); }

if (analogValue > threshold4) {

digitalWrite(led4, HIGH);

} else {

digitalWrite(led4, LOW); }

if (analogValue > threshold5) {

digitalWrite(led5, HIGH);

} else {

digitalWrite(led5, LOW); }

if (analogValue > threshold6) {

digitalWrite(led6, HIGH);

} else {

digitalWrite(led6, LOW); }

delay(1); // delay in between reads for stability }

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!

Share

    Recommendations

    • Planter Challenge

      Planter Challenge
    • Make it Move Contest

      Make it Move Contest
    • Casting Contest

      Casting Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments