Go Down

Topic: Sound Sensor (Read 522 times) previous topic - next topic

Guardian

Hello,
I buy a Sound sensor for Arduino on dx.
http://dx.com/p/arduino-microphone-sound-detection-sensor-module-red-135533
But I have a problem.
I use analog Read and I see my sensor stay at 18-19 even if there is no sound or sound.
I don't understand.
Sorry I'm beginner and sorry for spelling mistake.
Thanks

Code:

int U;
const int sensor = 7;
void setup()
{
  Serial.begin(9600);

}
void loop()
{
    U = analogRead(sensor);

    Serial.println(U);
   
    delay(100);
}

Magician

What kind of arduino do you have? Pin 7, you sure it's analog?

Guardian

I have a Arduino Mega 2560 ... I have already tested with another pin but no results  :~

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy