I am thinking about a project that will use an analogue comparator to detect sound.
I want to be able to adjust the threshold that the interrupt is triggered.
This project was initially done on picaxe, and will finally end up on a teensy 4.0. However to get a better understanding I ma doing testing and improving my code ability using Arduino.
On the picaxe variant I was able to use an internal voltage ladder to adjust the threshold of the interrupt. However the uno does not appear to have that. This led me to the thinking that routing a PWM to the comparator pin (A0) should do the same thing and also increase the resolution of the threshold.
Is this something that has been done, or have I missed something along the way?