Roommates are some of Earth's noisiest mammals. No matter how many times one asks them to please quiet down, they persist in that ever-popular excuse, "I wasn't even being that loud." Now, with our decibel meter, you can present your roommates with undeniable proof of exactly how loud they are!
The Sound Sensor measures the sound in its vicinity and gives a raw sound value. This can be interpreted as a voltage, where voltage = (sound value * 5)/1024. Our code converts this voltage into decibels using the formula decibels = 20 * log(voltage/0.775) and then displays the decibel value on the 4-Digit Display.
Assembly Steps:
- Plug the Grove Base BoosterPack into the LaunchPad.
- Connect the 4 digit display to pins 39-40 (J13(D) on BoosterPack).
- Connect the sound sensor to pin 24 (J6(A) on BoosterPack).
- Connect the LaunchPad to your computer and load the code.
To see the decibel meter in action:
Comments
Please log in or sign up to comment.