embeddedaebi
Junior Member level 1
Hello all,
I am trying to play some musical tunes through a 8051 based microcontroller. I have written the code for PWM output for different frequencies
and 50% duty cycle. When I connect the buzzer to the pin and Vcc, sound is produced but at very low volume. Moreover it is very noisy.
I have tried some circuits given on the Internet but then the buzzer doesn't sounds.
Can any one tell me how can I make this work fine?
The buzzer is HXD buzzer. I don't have the data sheet but found the following features on the net:
42 ohm
5V
2 KHz resonant frequency.
Thanx in advance.
I am trying to play some musical tunes through a 8051 based microcontroller. I have written the code for PWM output for different frequencies
and 50% duty cycle. When I connect the buzzer to the pin and Vcc, sound is produced but at very low volume. Moreover it is very noisy.
I have tried some circuits given on the Internet but then the buzzer doesn't sounds.
Can any one tell me how can I make this work fine?
The buzzer is HXD buzzer. I don't have the data sheet but found the following features on the net:
42 ohm
5V
2 KHz resonant frequency.
Thanx in advance.