Yes I can get a pwm output,but even a simple inductive boost cct is beyond
my knowledge.
The larkin cct is ok but there's lots of components and I need to turn it on
and off. Easy with software pwm O/P... Easy with a boost chip as well but I
can only find expensive ones....
+3.3
|
|
L
| diode
|
+-------ak-----+------out
| |
d |
pwm----------g fet cap
s |
| |
| gnd
gnd
Fet is a small logic-level n-channel mosfet.
L could be, say, a small 200-500 uH inductor.
Diode is almost anything, 1N914, whatever.
Cap is, say, 0.1 uF
Just futz with the pwm duty cycle and period until the output voltage
is right. Try maybe 25% on, 100 KHz to start.
The output can't go below 3, so it's possible the piezo may peep a
little down there. If so, you can use another fet or just a port pin
to open its low side.
Or you could do this, which does go to zero when you quit driving
it...
+3.3
|
|
L
| diodes
|
+----cap-----+----ak-----+------out
| | |
d | |
pwm----------g fet k cap
s a |
| | |
| | gnd
gnd gnd
or this, with a small transformer,
+3.3
|
| +--------ak------+-------out
| | |
x||x* |
x||x c
x||x |
*| | |
| gnd gnd
|
|
|
d
pwm----------g fet
s
|
|
gnd
John