ESP32 Starter Kit
5. Test Result
After connecting the wiring and uploading code, open serial monitor to set baud rate to 9600, the analog value will be
displayed.
Sensitivity adjustment
If you feel that the sensitivity of the sound sensor is suitable, we can adjust the potentiometer of the sound sensor(right
for the highest sensitivity, left for the lowest sensitivity).
6. Knowledge Expansion
The commonly seen corridor light is a kind of sound controlled light. Meanwhile, it also includes a photoresistor.
Differed from that, here we establish a model that an LED only is affected by sound. When the analog volume exceeds
100, LED lights up for 2S and then goes off.
Flow Chart
8.5. Arduino Project 123