I want to power a piezo buzzer using 12.8V AC. My circuit knowledge is
not much. Can I just put in a diode and a capacitor to convert to DC?
I want to use something like one of these buzzers from Radio Shack:
95dB, 7mA@12V DC == 84mW
http://www.radioshack.com/product/index.jsp?productId=2062404&cp=&kw=buzzer&parentPage=search
---
For that one, you should wire it up like this, where RL is the
buzzer:
E1 E2 E3
/ / /
AC>---[1N400X>]--+--[R1]----+
|+ |
[C1] [RL]
| |
AC>--------------+----------+
for an invariant 12.8VRMS input, and a .07V drop across the diode,
E2 = E1(sqrt(2)) - 0.7V = (12.8V * 1.4514) - 0.7V ~ 17.4VDC
To drop 17.4V to te 12V the buzzer wants to see, with 7mA of current
in the load (the buzzer, RL):
E2 - E3 17.4V - 12V
R1 = --------- = ------------ ~ 771 ohms
IL 0.007
750 ohms is a standard 5% value and will be fine. It will
dissipate:
P = (E2 - E3) * (IL) = 5.4V * 0.007A = 0.038 watts,
so a 1/4 watter will be fine.
For 1V of ripple across C1,
IL dt 0.007A * 0.017s
C1 = ------- = ----------------- = 116.6 µF
dV 1V
The closest 20% electrolytic is 120µF, so to be sure of getting that
you'll need something 20% higher than that to start with. That's
144µF, and the closest 20% to that is 150µF, so 150µF at 25V would
be fine. Actually, anything over 144µF would be fine and the higher
the capacitance the lower the ripple.
---
---
That's basically the same as the other one, except that you can go
up to 14V and it looks like at that voltage you'll need 150mA.
So, looking at this one:
E1 E2 E3
/ / /
AC>---[1N400X>]--+--[R1]----+
|+ |
[C1] [RL]
| |
AC>--------------+----------+
E2 - E3 17.4V - 14V
R1 = --------- = ------------- = 22.6 ohms
IL 0.15A
22 ohms is a standard 5% value and it'll need to dissipate:
P = (E2 - E2) * IL = 3.4V * 0.15A = 0.510 watts,
So you should use a 22 ohm 1 watter. (or two 110 ohm half-watters in
series)
For 1 volt of ripple out of the cap:
IL dt 0.15A * 0.0167s
C = ------- = ----------------- = 0.0025 F = 2500µF
dV 1V
In order to get to half that size you could double the ripple
frequency to 120Hz by using a full-wave bridge rectifier:
E2
+------+ /
AC>---|~ +|---+--[R1]-->>--+
| | |+ |
| | [C1] [RL]
| | | |
AC>---|~ -|---+-------->>--+
+------+
But now E2 changes to 16.7V because of the two-diode drop in the
bridge, so you'd have to go back through and work out R1 with that
in mind.
A simpler way to go might be to run the buzzer on 12V and use a
linear regulator after the cap instead of a resistor, like this:
E2 12V
+------+ / /
AC>---|~ +|---+--[7812]----+
| | |+ | |
| | [C1] | [RL]
| | | | |
AC>---|~ -|---+-----+------+
+------+
What that'll allow you to do is to use a smaller capacitor, which
will generate more ripple, but the 7812 will keep the output steady
at 12V as long as you don't let the voltage on the cap get _too_
low.
A 7812 wants to see no less than 14V on its input, so with 17.4V
being the peak the cap can charge to, we can stand:
E2 - 14V = 17.4V - 14V = 3.4V
of ripple across the cap.
Assuming 150 mA of current into the load, for 3.4V of ripple we'll
need C1 to have a capacitance of:
IL dt 0.15A * 0.0083s
C -------- = ----------------- = 0.000366F = 366µF
dv 3.4V
for a 20% cap you'd need to get 439µF, so 510µF at 25V would be OK.
IMO, that would be the way to go and you could use it for either
buzzer. (Overkill for the little one, though)
---