Interfacing with Phidgets Sound Sensor

Hello,

Does anyone have a code example for interfacing with the Phidgets Sound Sensor?

Thanks,
K

Hi K,

I just received my sound sensor and I am also looking for an example code to use it with Arduino.
Any luck?

Thank you,
Marc.

A quick look at the linked page and it seems the device is using analogue. Try connecting red wire to 5V, black to GND and white to one of your analogue inputs.
A simple program like this (untested) should show it working.

#define sensorPin A0

int average = 0;

void setup(){
  Serial.begin(115200);
  average = analogRead(sensorPin);
}

void loop(){
  average = (average + analogRead(sensorPin)) / 2;
  Serial.println(average);
  delay(10);
}

Thank you for your time Riva!
Couldn't be more clear! :slight_smile:

Marc.