Go Down

Topic: [solved] Problem with Sound sensor HOT UK05 on leonardo (Read 388 times) previous topic - next topic

imajon

Mar 13, 2014, 11:13 am Last Edit: Mar 13, 2014, 12:35 pm by imajon Reason: 1
Hi everybody,

I just buy this sensor :
http://www.amazon.fr/gp/product/B00F5NV3P8/ref=oh_details_o01_s00_i01?ie=UTF8&psc=1

i just wire this on most simple way and listening on serial port the A0 pin and i have only maxvalue (1023) or 35 when i adjust the sensibility .
I buy two of this, and both make same thing, i have a value of 35 whatever the sound there on proximity of the sensor.
An idea oh what is wrong ?

int sensorPin = A0;    // select the input pin for the potentiometer
int sensorValue = 0;  // variable to store the value coming from the sensor

void setup() {
 // declare the ledPin as an OUTPUT:
 Serial.begin(9600);
}

void loop() {
 // read the value from the sensor:
 sensorValue = analogRead(sensorPin);  
 Serial.println(sensorValue);  
}

imajon

I'm sorry to find the answer so fastly but it was very subtle…  :smiley-eek:
You have to move the sensibility very slowly to find your sensibility…

Thanks anyway… for witch…a little

Go Up