Course design of single chip microcomputer sound detection
In the above figure, by adjusting RP, the voltages at the two inputs of the comparator LM339 are equal (VCC/2).
The input sound signal outputs a series of pulse signals through the comparator, and then outputs positive pulses to the IO port of the single chip microcomputer through monostable shaping composed of 555.