Pages: [1]   Go Down
Author Topic: Sound Sensor  (Read 443 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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);
}
Logged

Montreal
Online Online
Faraday Member
**
Karma: 30
Posts: 2602
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a Arduino Mega 2560 ... I have already tested with another pin but no results  smiley-confuse
Logged

Pages: [1]   Go Up
Jump to: