I'm having trouble with my stm32f4 mcu connected with keyes ky037 audio sensor.
I have programmed in MikroC compiler for ARM some example code, just to print taken input analog voltage from audio sensor. One weird thing that confuses me is the thing that when I manually change sensor's potentiometer threshold value I am getting lower or higher ~ value which can't be true, because potentiometer on this sensor affects only digital output (if threshold is reached) otherwise it shouldn't affect my sensor's analog output but it obviously does.
And also, when I let potentiometer's some value (whatever it is), I am always getting similar values (currently in range ~ 3.32xxxx), where xxxx changes randomly (in my opinion) in time even if I scream or I don't talk anything (xxxx doesn't need to be higher if i scream).
Feel free to ask for additional information.
I've provided example code in attachment.
Thanks in advance.
I have programmed in MikroC compiler for ARM some example code, just to print taken input analog voltage from audio sensor. One weird thing that confuses me is the thing that when I manually change sensor's potentiometer threshold value I am getting lower or higher ~ value which can't be true, because potentiometer on this sensor affects only digital output (if threshold is reached) otherwise it shouldn't affect my sensor's analog output but it obviously does.
And also, when I let potentiometer's some value (whatever it is), I am always getting similar values (currently in range ~ 3.32xxxx), where xxxx changes randomly (in my opinion) in time even if I scream or I don't talk anything (xxxx doesn't need to be higher if i scream).
Feel free to ask for additional information.
I've provided example code in attachment.
Thanks in advance.
Attachments
-
509 bytes Views: 9