Hi,
A few days ago I received a box with 37 sensors. Now, I'm working on the sound sensor.
Link of the sensor:
I don't know how to program this type of sensors, if someone had use one of those in previous projects or can give me any link to explain how does it works. It would be really helpful.
Also, I want to know how precise it can be and which is the best way to calibrate the sensor to measure dB.
Thanks,
DO is the digital output.
Turn the potmeter until it the output is low, and with sound the output will become high shortly.
Probably you want to use the "A0" output assuming it means analog. Connect to one of the analog inputs on your Arduino. For accurate calibration you will probably need a DB meter.
Hi,
It's me again. I've been testing the sound sensor with this code:
int sensorPin = A0; // select the input pin for the potentiometer
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
// declare the ledPin as an OUTPUT:
Serial.begin(9600);
}
void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
// turn the ledPin on
Serial.println(sensorValue);
delay(1000);
}
And that's what I received in the serial monitor
397
343
321
311
306
303
302
301
300
300
337
308
297
295
295
296
296
386
614 --- loud noise
502
387
326
301
297
296
332
308
299
301
301
It seems like the sensor works correctly when I shout I can aprecciate a change, and when everything is quiet the value is above 300. But, is there any form to transform this into decibels, without a decibel meter ?
hi i lately trying to figure it out how this ky-037 works, i track analog output from the sensor with serial montor, i adjusted it, but whenever i put a noise (clap, shout, music, etc.) the value is still the same, the value shown is about +- 2 from the value i adjusted, can anyone help me with this? thanks.