peizo knock Example

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

  1. const int threshold =1; // threshold value to decide when the detected sound is a knock or not
  2. int sensorReading = 1.2; // variable to store the value read from the sensor pin
  3. 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?