Use the MCU output PWM to control the switch of the S8050 transistor to control the on and off of the speaker. The speaker impedance is 16 ohms, the power is 0.5W, and the current is about 150MA when it is turned on. The drive circuit is as follows, which is a bit ugly. . . The measured speaker can work, but the display screen (12V) is affected, and the screen picture will flicker. Measure the voltage. When the horn sounds, the 12V voltage will drop by about 3V. How to solve this problem? Solve. . .
Adelaide 發表於 February 2, 2021
Is the power capacity large enough?
Byron 發表於 February 2, 2021
Switching power supply, no problem.
Marisol 發表於 February 2, 2021
What is the input power provided by the 12V power supply? Or how big is the input current?
Byron 發表於 February 2, 2021
12V 2A is enough.
Louise 發表於 February 2, 2021
Is the microcontroller 5V or 3.3V? If it is 5V, it is recommended to connect a small resistor in series with the base of the transistor.