Oferta!

KY-038 Microphone sound sensor module

Original price was: R$ 39,37.Current price is: R$ 32,81.

Em estoque

wws Edmar / Dúvidas sobre o produto? Precisa de ajuda? Fale comigo.
SKU: 10530-H7 Categoria:
  Perguntas e Respostas

Descrição

Microphone sound detection moduleFor sound detection Module has two outputs:AO, analog output, real-time output voltage signal of the microphoneDO, when the sound intensity reaches a certain threshold, the output high and low signalThe threshold-sensitivity can be adjusted via potentiometer on the sensorConnecting to the ArduinoPin + to Arduino 5+Pin – to Arduino -Pin A0 to Arduino A0 (for analog program)Pin D0 to Arduino 13 (for digital program)——————————————————–Example code: Digital output———————————————————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 val if (val == HIGH) // When the sound detection module detects a signal, LED flashes { digitalWrite (Led, HIGH); } else { digitalWrite (Led, LOW); }}

Informação adicional

Peso 0,0000 kg
Dimensões 0,0000 × 0,0000 cm

Informações Gerais

Não há perguntas ainda.