Voice Sound Detection Sensor Module for official Arduino boards.For sound detection module has two outputs:There is a mounting screw hole 3mmUses 5v DC power supplyWith analog outputHigh sensitive microphone and high sensitivity amplifierA power indicator
Flash Sale Ongoing
Voice Sound Detection Sensor Module for official Arduino boards.
Here’s a simple sketch for testing: int Led=13;//define LED interfaceint buttonpin=3 //Define D0 Sensor Interfaceint val;//define numeric variables valvoid setup(){pinMode(Led OUTPUT);// Define LED as output interfacepinMode(buttonpin INPUT);//Define D0 Sensor as output Interface }void loop(){val=digitalRead(buttonpin);//digital interface will be assigned a value of 3 to read valif(val==HIGH)//When the light sensor detects a signal is interrupted LED flashes{digitalWrite(Led HIGH)}else{digital Write(Led LOW)}}int sensorPin = A5; // select the input pin for the potentiometerint ledPin = 13; // select the pin for the LEDint sensorValue = 0; // variable to store the value coming from the sensorvoid setup() {pinMode(ledPin OUTPUT);Serial.begin(9600);}void loop(){sensorValue = analogRead(sensorPin); digitalWrite(ledPin HIGH); delay(sensorValue); digitalWrite(ledPin LOW); delay(sensorValue); Serial.println(sensorValue DEC); }
Reviews
There are no reviews yet.