Arduino Audio Sensor: AnalogOutput (A0) returns same value

1.2k Views Asked by At

I would like to know why my Keyes KY037 (KY038) audio sensor returns me always same value which is in my opinion value of Vcc scaled to threshold value... It always returns me constant value that varies about +/- 3 on range [0 - 2^12-1].

I have done test with my ADC conversion (connected analog in on Vcc, GND respectively and I received ~10 and ~2100 because my threshold is set on that value of about 2100, that is reference level) and ADC conversion test worked fine, so problem is somewhere with Analog Out pin from audio sensor.

I can not see any difference on loud, or silent tone, feels like my audio sensor is not reacting on environment, it just prints same value.

I am using stm32f4 microcontroller board, but I don't think that that could be problem. I am doing ADC value reading after each 1 milisecond, MCU clock frequency is set on 150MHz.

Feel free to ask about any information which may be relevant to this issue.

0

There are 0 best solutions below