The board has a sensitivity adjustment. The water flowing though the pipe, right next to the mic (touching it) should appear as very strong signal. Think about having your ear to a water pipe. It's loud. So I should be able to turn the sensitivity way down, and have it only trigger when water is running. I can deal with the oscillating triggering in software.When using sound as a control signal (I.e. a digital output), there is additional processing beyond mere detection required.
Just detecting sound levels alone will oscillate. Plus, you have the issue of background noise.
No, I'm reading it with a Pine64, which is similar to a Raspberry Pi - no analog inputs.....
You’re reading this with an Arduinos, right?
Don’t use digitalRead(). Use analogRead() with an analog pin. Then, in your sketch, you can subtract the 3.3V or just ignore anything below 3.3V. Then, I’d take several measurements (with a slight delay) and average the results. This rolling average will produce a number at which sound is continuously detected.
I'm going order an oscilloscope in a next few days. Then I'll be able to see what the signal output actually looks like when there is sound. I'm trying to find a used one. Most people want way too much money for older equipment. I might end up ordering a Rigol DS1054Z in that case.