โมดูลสำหรับตรวจจับความดังของสัญญาณเสียง
Features:
The product boast of output signal instruction.
Single-channel signal output.
Output valid signal is low and the light will be bright.
Specification:
Weight: 4g
Size: 3.1 x 1.6 x 0.8cm
Operating current pressure: 4V - 6V
Description:
32mm X17mm X 15mm
Second, the main chip: LM393, electret microphone
Three, working voltage: dc 4 ~ 6 v
Four, features:
1, a signal output instructions.
2, single-channel signal output.
3, the output signal is low level effectively.
4, when a voice output low level, signal lights.
5, can be used for voice control lamp, cooperate with photosensitive sensor do sound and light alarm, and noise control, sound detection.
ตัวอย่างการใช้งาน
int soundSensor = 4;
int LED = 13;
void setup()
{
pinMode (soundSensor, INPUT);
pinMode (LED, OUTPUT);
}
void loop()
{
int statusSensor = digitalRead (soundSensor);
if (statusSensor == 1)
{
digitalWrite(LED, HIGH);
}
else
{
digitalWrite(LED, LOW);
}
}
ตัวอย่างโปรเจค