Mikrofons (skaņas sensors)
Mikrofons, skaņas noteikšanas sensors Arduino ar digitālo un analogo izeju
Features:
- Size:32mm*17mm*8mm(length*width*height)
- Main chip:LM393, Electret condenser microphone
- Working voltage: DC 4-6V
- Signal output indication
- Single channel signal output
- The output effective signal is low level
- When there is sound, outputs low level and the signal light
- Can be used for Acoustic control light , give sound and light alarm working with Photosensitive sensor ,and sound control, sound detect
- Circuit board output switch quantity
- Note: The Maximum induction distance is 0.5
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
- Digital Output:
int Led=13;//define LED interface
int buttonpin=3 //Define D0 Sensor 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);
}
- Darba spriegums:
- 3V-5V
- Darba strāva:
- 0.02 A