news center

Your current location:Home>Talking about the driving method of buzzer

News List


Contact Us

Samuel Chee
Tel: 86-519-85155071
Mob: 86-13382833316
QQ: 11611713962

Talking about the driving method of buzzer
Release Time:2019-01-19    Clicks:   
Today, I will introduce you to the way the buzzer is driven by the buzzer manufacturer's Xiaobian.
Since the self-excited buzzer is driven by a DC voltage, it is not required to be driven by an AC signal, and the buzzer sounds only by outputting a driving level to the driving port and amplifying the driving current through the triode. There are two ways for the microcontroller to drive the buzzer: one is the PWM output port direct drive, and the other is to use the I/O timing flip level to generate the drive waveform to drive the buzzer.
The PWM output port is directly driven by the PWM output port itself to output a certain square wave to directly drive the buzzer. In the software setting of the MCU, there are several system registers that are used to set the output of the PWM port. You can set the duty cycle, period, etc. After setting these registers to generate the waveform that meets the frequency required by the buzzer, just turn on the PWM. Output, PWM output port can output square wave of this frequency, this time you can use this waveform to drive the buzzer.
        For example, the driver of the buzzer with a frequency of 2000 Hz can know that the period is 500 μs, so that only the PWM period is set to 500 μs, and the duty level is set to 250 μs, a square wave with a frequency of 2000 Hz can be generated. The square wave can then use the triode to drive the buzzer.

You may also be interested in this

Related Reading