Go Down

Topic: Sound Sensor -help an amateur plz!  (Read 544 times) previous topic - next topic

Hapolo

Guys, i'm trying to print the values read by my sound sensor (Diy) on the Excel by PLX-DAQ, or even in the Arduino.


The problem is that it's not reading!!! The values vary between 65, 66, 67, or other numbers, but it doesn't change the values when I make noise.

Here is my code:


int row;

void setup() {
  Serial.begin(9600);
  Serial.println("CLEARDATA");
  Serial.println("LABEL,Hora,Valor");
}

void loop() {
  int sensorValue = analogRead(A0);
row++;
 

   Serial.print("DATA,TIME,");
 
Serial.println(sensorValue);
  if (row>0){
    row=0;
    Serial.println("ROW,SET,2");
  }
  delay(200);

}


Ty u guys!!

Sorry for the bad English, it is not my native language!

Wawa

I think we first have to see the diagram of your DIY sound sensor.
Leo..

Hapolo

It's GND on the left, OUT in the center and 5v at the right.

I think it is installed correctly.

weedpharma

Meaningless!

Give us a link.

Weedpharma

Go Up