Components and supplies
9V to Barrel Jack Connector
5 mm LED: Green
Standard LCD - 16x2 White on Blue
Arduino UNO
Resistor 100 ohm
5 mm LED: Red
Resistor 220 ohm
5 mm LED: Blue
Sound Sensor Module KY-038
Male/Male Jumper Wires
Solderless Breadboard Full Size
Male/Female Jumper Wires
5 mm LED: Yellow
Resistor 330 ohm
5 mm LED: White
9V battery (generic)
Apps and platforms
Arduino IDE
Project description
Code
SoundSensorLEDwData
arduino
I added comments on the code for some explanation. I hope I know what I'm doing. lol.
Downloadable files
I made this using Photoshop.
Just follow the wires from end to end.
I made this using Photoshop.
Comments
Only logged in users can leave comments
tasnim16
3 years ago
what the code if use just 1 led light? I working for my final year project can you help me.
milyanara
4 years ago
Thanks for your project, it's nice so I use that for my assignment, haha. Anyway can I use the power bank instead the battery? Is that good or meh? Thanks!
Anonymous user
4 years ago
When I download the code and verify it, it gives me this error: LiquidCrystal_PCF8574.h: No such file or directory. Can you please help?
Anonymous user
5 years ago
Great project, it's very useful resource for my kick start on building a Studio Monitor Management. I made some changes based on your project, as per my understanding, a sound level is a waveform that amplitudes above or below a center axis. So, based on my sensor reading, a center value is around 220 on a zero volume, with noise level between 240 and 200. Based on that, I use 220 as zero reference, and first LED value as 20, with incremental value 15 (the same value as yours). Furthermore, I calculate sensor reading as follow: #define CENTER 220 sensorValue = analogRead(sensorValue) - CENTER; if(sensorValue < 0) sensorValue = 0 - sensorValue; // to get positive values for signal below zero axis. Then my LED threshold values are: 20, 35, 50, 65, 80, 95, 110, 125. Center value for zero axis may vary based on the signal source. I'm using bluetooth receiver module to receive my laptop audio. Cheers!...
adrivanbiezen
5 years ago
Thanks for the project, I did not know how to hook up the soundsensor and now I do. I made some improvements by connecting 2 extra potmeters and letting the potmeters control the numbers of the threshold values of the lights. One controlls the startpoint and the other the number between the individual values. Simple math and then just turn the screws untill it works. I also turned the the display into a graph just like the lights. (I am totally new here so I have to figure out how to clean up the code and post the project.) But thanks very inspiring.
biomuh84
6 years ago
hi guys, thank you for project. I received this error although I installed the library. Arduino:1.8.9 (Windows 7), Kart:"Arduino/Genuino Uno" soundsensorledwdata:11:23: error: no matching function for call to 'LiquidCrystal_PCF8574::LiquidCrystal_PCF8574()' In file included from C:\\Users\\İBO\\Desktop\\Ardunio\\soundsensorledwdata\\soundsensorledwdata.ino:3:0: C:\\Users\\�BO\\Documents\\Arduino\\libraries\\LiquidCrystal_PCF8574-1.1.0\\src/LiquidCrystal_PCF8574.h:67:3: note: candidate: LiquidCrystal_PCF8574::LiquidCrystal_PCF8574(uint8_t) LiquidCrystal_PCF8574(uint8_t adr);
TheMikMik
2 years ago
Yea, same. IVe sqaushed so many bugs in this code. That one has me stumped
Anonymous user
6 years ago
I received this error although I installed the library Arduino: 1.8.7 (Mac OS X), Board: "Arduino/Genuino Uno" Build options changed, rebuilding all sketch_dec05a:10:23: error: no matching function for call to 'LiquidCrystal_PCF8574::LiquidCrystal_PCF8574()' LiquidCrystal_PCF8574 LCDi2C;
Heathen_Hacks-v2
2 years ago
Thanks for the comment! ♥ Apologies for the late response. You can find the missing file on this link: https://www.circuito.io/static/reply/index.html?solutionId=5c452f260cc155003050807c&solutionPath=storage.circuito.io If the link does not work for some reason, I have uploaded the same zip file to my Google Drive. Here is the link: https://drive.google.com/file/d/162SZR90eK_VX2n-cxP7ap0ajKD763YEI/view?usp=sharing You can download it from there if you want. Just download the firmware zip, extract it, then copy and paste the *LiquidCrystal_PCF8574.h* file to your project file folder and see if it would work.
Anonymous user
6 years ago
does this measure frequency or amplitude of the sound?
Heathen_Hacks-v2
2 years ago
Thank you for the reply. The description of the product says "The sound sensor module provides an easy way to detect sound and is generally used for detecting sound intensity. This module can be used for security, switch, and monitoring applications. Its accuracy can be easily adjusted for the convenience of usage. It uses a microphone which supplies the input to an amplifier, peak detector and buffer. When the sensor detects a sound, it processes an output signal voltage which is sent to a microcontroller then performs necessary processing. "
Anonymous user
2 years ago
Is it safe to say that this project was successful? Interesting is the word that comes to mind [bing maps](https://mapsdirections.io/bing-maps) directions.