65
The schematic diagram:
LM393 is a voltage comparator. When the voltage of the in-phase terminal (pin 3) is higher
than that of the inverting terminal (pin 2), the output terminal (pin 1) will output high.
Otherwise, it outputs low. First, adjust the potentiometer to make the voltage for pin 2 of
LM393 less than 5V. When there is no voice input, the resistance of the microphone is very
large. The voltage for pin 3 of LM393 is close to power supply voltage (5V), pin 1 outputs high
and the LED is on; when there is voice input, the resistance of the microphone decreases,
pin 1 outputs low and the LED is off. And connect pin 1 to IO of the SunFounder Uno board
to detect sounds by programming.
Experimental Procedures
Step 1:
Build the circuit
Microphone Sensor Module SunFounder Uno
AO ---------------------------------------- A0
G ----------------------------------------- GND
+ ----------------------------------------- 5V
DO ----------------------------------------D8
Step 2:
Program (Please refer to the example code in
LEARN -> Get Tutorial
on our
website
)
Step 3:
Compile
Step 4:
Upload the sketch to SunFounder Uno
SunFounder