Analog output gives close range values VMA 309


#1

Hi all,

I try to get a good range of values from my ‘VMA 309’ sound sensor. However, when I connect it properly it gives me a range of values ± 5 like below. the documentation says it should give numbers between 0 and 1024. I turned the potentiometer both sides all the way and that only changed the number, but it keeps gives number in a range of 5 numbers. What am I doing wrong here?

626
623
624
624
624
624
623
624
624


#2

Dear,

Please try another analog input port on arduino, for the sensor module.
So you can check if there’s a problem with the analog port of arduino, or problem with sensor module VMA309.

Try this code, see below, and check if you get the range from 10(12) to 1023.

int mic = A0;  // use now A0 instead of A5 as demo code (check analog ports).
int micVal = 0;

void setup() {
  Serial.begin(9600);
}

void loop() {
 micVal = analogRead (mic);
delay(500);
Serial.println (micVal, DEC);
}

Regards,

Velleman Support.