Author Topic: How to get the highest quality sound from a port pin driven buzzer?  (Read 1258 times)

0 Members and 1 Guest are viewing this topic.

Offline georgdTopic starter

  • Regular Contributor
  • *
  • Posts: 62
  • Country: cs
I'm developing a device with simple port driven buzzer. The role of buzzer is a simple signalling without need to reproduce music or speak.
The question could I improve the sound quality if I drive it with trapezoid instead of square wave?
Under quality I meant sound more music like sound instead of simple buzzer like.
Even drive it with two port pins in bridge like circuit?

Thanks in advance,
Georg
 

Offline hamster_nz

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: How to get the highest quality sound from a port pin driven buzzer?
« Reply #1 on: August 16, 2017, 05:05:14 am »
If you lack the gear yourself, I can hook a buzzer up to an Arbitrary Wave Generator and test.

It it just standard microcontroller pin levels?
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 

Offline ealex

  • Frequent Contributor
  • **
  • Posts: 312
  • Country: ro
Re: How to get the highest quality sound from a port pin driven buzzer?
« Reply #2 on: August 16, 2017, 08:05:18 am »
if you're driving it with TTL levels you'll have all square-wave harmonics in the output.

look here for some frequency response plots and drive ideas : http://www.murata.com/~/media/webrenewal/support/library/catalog/products/sound/p37e.ashx

by tying the buzzer between 2 pins you can gen a louder sound from the same speaker - something like full versus half wave

maybe adding a series resistor will make a low-pass filter with the buzzer's capacitance - and cut some of the high frequency content
(i might try that on one of my projects as well)
 

Online nfmax

  • Super Contributor
  • ***
  • Posts: 1559
  • Country: gb
Re: How to get the highest quality sound from a port pin driven buzzer?
« Reply #3 on: August 16, 2017, 08:16:22 am »
Don't forget you can also put the output pin into tri-state for part of the cycle. This might let the buzzer ring at its natural resonant frequency for part of the time. Perhaps driving it with a short pulse at a sub harmonic of its resonance and leaving it tri-state the rest of the time will give a better tone. But anything you do will be highly dependent on the actual type of buzzer used (and variation between different buzzers of the same type). Experiment!
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: How to get the highest quality sound from a port pin driven buzzer?
« Reply #4 on: August 16, 2017, 08:19:08 am »
As a piezo buzzer is mainly capacitive , you can add a series inductor to it to shape the pulse closer to a resonant sine,

The balance comes from the role of the buzzer, anything that "warbles" between 2-4Khz is extremely hard for us humans to ignore,

If you just want to notify someone, then pure tone "pip"s tend to be the least offensive. around 2Khz,

If you want someone to be unable to ignore it, square wave, that varies about 200Hz at 4Khz. (vary the pulse width) about 1 second on, 2 seconds off.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf