Modulo sensor sonido salida analoga y digital

Modulo sensor sonido salida analoga y digital
Modulo sensor sonido salida analoga y digital
Modelo: sonido analogo digital-3092
Puntos: 1
Disponibilidad: 3
Precio Neto: $4.000
Valor Neto: $4.000
Precio en puntos recompensa: 10
Cantidad:     - O -   Añadir a la lista de deseos
Comparar
  • 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.
     
  • G connect to GND. "+" is connected with the positive. A0 connect to the analog signal. DO connect to digital signal.

 

  • 1. 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)
    }
    }
     
  • 2.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);
    }

 

Escribe una opinión

Tu nombre:


Tu opinión: Nota: HTML no está traducido!

Puntuación: Malo           Bueno

Introduce el código en la casilla inferior:



Tienda de arduino Online Concepcion Talcahuano Hualpen | Despachos a Santiago, Viña del Mar, Valparaiso, y regiones © 2024
Powered By arduconce