Lawrence Lile wrote:
>
> Piclisters:
>
> I have two problems:
>
> 1. Selecting a decent piezo speaker. I am using a 17mm piezo speaker from
> Murata. Piezo's are cheap, so I don't want to go to another technology.
> It's a fine cheap speaker ($0.35 to 0.50US in high volumes), but it's not
> very loud. I'm driving it with 9V instead of 5V, which helps a little.
> More voltage does not help above 9V, IMHO. Anybody got a louder piezo
> speaker in ther bag of tricks???
The way to get louder sounds from a piezo transducer is to get more
power into it. Increasing the drive voltage is one way. Choosing a piezo
element with more capacitance is another. You may or may not be able to
get a piezo with more capacitance in the same size case, however.
Driving the piezo at its resonant frequency is another way to get much
louder sounds. There are sometimes more than one resonant frequencies.
One resonance will usually be much louder than the others.
{Quote hidden}>
> 2. Nice tones: (= Good Vibrations) I'm driving the speaker with three
> sets of tones, to indicate three conditions. OK, four tones to be exact.
> One brief burst of 25 cycles of 2000 hz to indicate a button press, a longer
> burst of 2000 hz to indicate condition A, a burst that goes in steps from
> 1000 to 1500 to 2000 hz to indicate condition B, and a long low tone at 600
> hz to indicate the process is finished. Freq response of a piezo is not
> flat, and probably about 600 to 3000 hz at most with nasty peaks. I try for
> tones under 3000 hz to accomodate older people with high frequency hearing
> loss.
Since the piezo transducer is very peaky in its frequency response,
driving it with several different frequencies is a problem. You might be
able to choose the frequency of your tones that match these peaks. A
problem I see with this is that these peaks can vary significantly from
transducer to transducer and from model to model. How the speaker is
used also affects the loudness. The mounting can affect the resonances.
Just like any speaker, the box it is in has its own frequency response
and resonances.
> I am just using Square waves to excite the speaker (= Excitations).
Square waves are perceived as having a harsh sound. Try putting a
resistor in series with the piezo. This resistor forms a low pass filter
which will round the edges of the square wave. This will reduce the
amplitude of the harmonics in the waveform. Removing these harmonics
will reduce the power delivered to the speaker and therefore the
loudness. Small piezo transducers typically have about 0.01uf of
capacitance. With a 5K ohm resistor the -3db point will be about 3KHz.
>
> Nobody likes my tones, they say they are discordant. I'm looking for a
> "nice" sounding sequence of tones. Don't need code, I can do that just
> fine, just need some experiences with what "sounds good" to users.
If more than one tone is sounded in sequence then they should be chosen
to have "musical" frequency relationships. I'm no musician so I will not
try to suggest what tone sets to use. Maybe try a little Bach? :-)
-- Rich
>
> (P.S. they all sound good to me, as the raucous din of the crying babe
> sounds good to the parent...)
I have had similar complaints when using the piezo device for both
making sound and as the timing capacitor in an oscillator. This created
a mix of the resonance frequency of the piezo element and the frequency
of the oscillator. This causes a pair of frequencies that are not a nice
musical chord, they sound quite bad.
{Quote hidden}
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.