I can also spinn the pot and change the threshold for the sensor onboard led to turn on, and the digitalRead works for detecting that threshold as well:
My problem is that it barely detecting any sound. I set the pot about 0,1degree from when it lights up, and still I have to scream loudly (or hit something very hard on the table) in order to trigger it.
the analogRead jumps between 10-20 units out of 1000 when I smash something really hard att my table, smashing my hands is barely enough (and the table almost breaks)
Any idea? I've tried with different delays in the code as well. I am thinking if I need some sort of sample converting function, but nobody else have done that.
That is likely the source of your trouble. NO delay is necessary.
Your test show the device is operating properly. What is the quiescent A/D value your are getting? Your sound should be anything greater than that value.
The module has no analog amplification. Only a digital threshold detector. So the microphone can't be very sensitive. But if the digital output can't be set for reasonable sensitivity, then the mic capsule might be bad.
I had to do a quick search on quiescent A/D value. Did I get it correct if I measured:
5v+ to GND = 5.05vdc
A0 to GND = 2.43vdc
(did this earlier, but not the D0)
I've worked with tree small identical mics and now the bigger model, with the same result. I've searched and tried for years. All of them seems broken. What am I missing?
Thx for the drawing, but Im still struggling
It really depens on how I have the pot set. I've attached the plotter diagram.
but with music and noice it doesn't move, but it does move with a really loud noice.