JIM, Thanks for putting in the time & effort to do that,
I have it working of sorts. Nothing like the sensitivity I want, but working.
Look at this for sensitivity: YouTube
I have changed
- const int threshold =1; // threshold value to decide when the detected sound is a knock or not
- int sensorReading = 1.2; // variable to store the value read from the sensor pin
- delay(2); // delay to avoid overloading the serial port buffer
I also read somewhere that if you increase the size of resister, it will increase sensitivity, any body know anything about that?