Newsletter

Melden Sie sich jetzt für den Newsletter an und profitieren Sie von Aktionen, Gutscheinen & Verlosungen.
 

Name:


Email:


Ok

Microphone Sound Sensor

Microphone Sound Sensor - Miscellaneous
Brand: Various
Product Code: AC-1160
Availability: In Stock
Price: 3,90€
Incl. 0,62€ VAT excl. shipping costs
Qty:        

Microphone Sound Sensor

    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

    The threshold-sensitivity can be adjusted via potentiometer on the sensor

     

      Code Sample (Digital):

      int Led = 13 ;// define LED Interfaceint buttonpin = 3; // define D0 Sensor Interfaceint val = 0;// define numeric variables val
       
      void setup (){
      pinMode (Led, OUTPUT) ;// define LED as output interface
      pinMode (buttonpin, INPUT) ;// output interface D0 is defined sensor}
       
      void loop (){
      val = digitalRead(buttonpin);// digital interface will be assigned a value of pin 3 to read valif (val == HIGH) // When the sound detection module detects a signal, LED flashes{
      digitalWrite (Led, HIGH);}else{
      digitalWrite (Led, LOW);}}

       

      Code Sample (analog):

      int sensorPin = A0; // 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 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);}

      Write a review

      Your Name:


      Your Review:Note: HTML is not translated!

      Rating: Bad           Good

      Enter the code in the box below:



      Live Help