Sound Sensor



Share it now!

For sound detection module has two outputs: 1. Ao, analog output, real-time output voltage signal of the microphone 2. Do, when the sound intensity reaches a certain threshold, the output high and low signal module features: 1. There is a mounting screw hole 3mm 2. The use 5v dc power supply 3. With analog output 4. There are threshold level output flip 5. High sensitive microphone and high sensitivity. 6. A power indicator light 7. The comparator output is light digital output: int led=13, //define led as interface int button pin=3 //define d0 sensor as interface int val, //define numeric variables val void setup() { pin mode(led, output), // define led as output interface pin mode(button pin, input), //define d0 sensor as output interface } void loop() { val=digital read(button pin), //digital interface will be assigned a value of 3 to read val if(val==high)//when the light sensor detects a signal is interrupted, led flashes { digital write(led, high) } else { digital write(led, low) } } 2. Analog output: int sensor pin = a5, // select the input pin for the potentiometer int led pin = 13, // select the pin for the led int sensor value = 0, // variable to store the value coming from the sensor void setup() { pin mode(led pin, output), serial. Begin(9600), } void loop() { sensor value = analog read(sensor pin), digital write(led pin, high), delay(sensor value), digital write(led pin, low), delay(sensor value), serial. Printing(sensor value, Dec), }.


There are no reviews yet.

Be the first to review “Sound Sensor”