Sunday, May 22, 2016

Using Arduino to measure volume of sounds


Above is the code that i wrote and modified. There are some extra line that aren't used or where placed for other purposes like the lines for the last IF and Else statement.

buzzer
The code above shows how an Arduino can be programmed so that it can measure the varied sounds and sound levels of its surroundings. It this code, it tells about when the level of sound is high a buzzer would sound, also a Led would light up whenever there is a reaction of noise in its surroundings. To read the sound levels, the code contains lines which tell it to send a word or a phrase to a computer through serial connection. These words are set to be transmitted whenever they reach a certain line of level of volume or frequency.  The parts used here from a grove kit for an Arduino Uno or others.

microphone with oamp















The hardware