Sound sensor module sensitivity adjustment problems

I am having problem regarding how to adjust sound sensitivity of a sound sensor module that is probably KY-0037/38. When I turn the potentiometer on the sound sensor module, it just go infinity without any limitations..
Speaking frankly, I don't know how to do this, please provide the code to run the sensor...
I have seen the sensor only 15 days before please help me with this sensor...
I don't know how to do, what to do, when to do, where to do!!!!!
I am going to blow off my brain :brain: :upside_down_face: :neutral_face: :expressionless:

My code is

// By tarshgautam2010@gmail.com
//

int Sensor = A0; int clap = 0; long detection_range_start = 0; long detection_range = 0; boolean status_lights = false;

void setup() {
pinMode(Sensor, INPUT);
pinMode(10,OUTPUT);
}

void loop() {
int status_sensor = digitalRead(Sensor);
if (status_sensor == 0) {
if (clap == 0) {
detection_range_start = detection_range = millis(); clap++;
} else if (clap > 0 && millis()-detection_range >= 50) {
detection_range = millis(); clap++;
} }
if (millis()-detection_range_start >= 400) {
if (clap == 2) {
if (!status_lights) {
status_lights = true; digitalWrite(10, HIGH); }
else if (status_lights) {
status_lights = false;
digitalWrite(10, LOW); } }
clap = 0;
}
}

This is a good that have used but there is a problem that I have to shout very loud or make very loud noises to activate the LED or to deactivate LED. What should I do about it it's a problem I have tried to aches the sensitivity with with the potential metre of the sensor but it doesn't work I have check this with three senses.
The the result is always same with the thing. Thank you very much...
Please leave a like because I have not received even a single like after creating my account before 2 years. I like everybody's comments on my topics

Hello, do yourself a favour and please read How to get the best out of this forum and modify your post accordingly (including code tags and necessary documentation for your ask).


:scream: :scream: :scream:

this is just not going to happen here for you...

You are lucky if you don't get a timeout for this...

people here give likes when they receive a meaningful answer or a solution. It's not a social network, it's a technical forum. No ones needs to give you a like because you asked for it.. There is an ignore list where you can be dumped into though... :cold_face:


to your question: there are tons of tutorial and codes on line for your sensor. if they don't work, then it means that possibly you did not wire the unit correctly or you have a faulty unit (or you broke the pot by turning past its end point)

1 Like

int Sensor = A0,and the digitalRead(Sensor)?! :thinking:

1 Like

To get help on the Arduino forum, you need to give specific and reliable information about your project. The sound sensor you maybe have I used in a Google search and came up with ONLY a match to this thread.
So, what sensor do you REALLY have?

1 Like

@Paul_KD7HB
My module is somewhat like these --

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.