Microphone Sensor High Sensitivity Sound Detection Module For Arduino AVR PIC
  • Microphone Sensor High Sensitivity Sound Detection Module For Arduino AVR PIC

Sensor Microfone de Alta Sensibilidade de Som

0 Review
3,99 €
Com IVA
BE15000032

Microphone Sensor 

Quantidade

  • Política de segurança Política de segurança
  • Política de entrega 24/48H Política de entrega 24/48H
  • Política de devolução Política de devolução

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
 

Code1:

//Digital Output?
int Led=13;//define LED as interface

int buttonpin=3 //Define D0 Sensor as Interface
int val;//define numeric variables val
void setup()
{
pinMode(Led,OUTPUT);// Define LED as output interface
pinMode(buttonpin,INPUT);//Define D0 Sensor as output Interface
}
void loop()
{
val=digitalRead(buttonpin);//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
{
digitalWrite(Led,HIGH)
}
else
{
digitalWrite(Led,LOW)
}
}

 

Code2:

//Analog Output?
int sensorPin = A5; // select the input pin for the potentiometer
int ledPin = 13; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor

void 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);
}

BE15000032

No customer reviews for the moment.

Add a review

Your email address will not be published.Required fields are marked*

Clientes que compraram este produto também compraram:

JoyStick Para Arduino
0 Review
4,90 €

Relacionados Produtos