Hey. Sorry to bother you again.
I have just looked in Electrical Characteristics, but i cant seem to find my answerI think it might be the thing called "clamp current" or sth. but im not sure. I tried looking it up by Google without any luck, too.
Can you please tell me the parameter i should be looking for please???
Thanks in advance!!!!!!!!
Manuel
Manuel,
All you need is a general purpose NPN transistor, and a 10k resistor.
10k from pic pin to the base, emitter to vss, collector to piezo, other side of piezo to +9V.
Setting the pin HIGH, will turn on the buzzer.
HTH,
DT
Manuel what kind of piezo do you talk about? Those 'plug and play' or those you MUST produce a tone to hear something?
For high current, Darlington can be nice in some case, but they usually switch slowly and many have a BIG voltage loss between Collector and Emitter (few volts or so). I prefer MOSFET.
Last edited by mister_e; - 25th February 2007 at 11:35.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Good comment regarding the MOSFET's, some of which have a low enough gate current so they can be driven direct from the PIC
Depending of the load and frequency (if there's any), yes.
For much demanding stuff, there's still the MOSFET driver solution. Tons of different models and type available. Microchip TC1427 are not too bad.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Typing something like "driving piezo buzzer from pic micro" into Yahoo returned some interesting hits.
http://www.talkingelectronics.com/Pay/PIC/P6extra.html
I wouldn't expect the Piezo to draw much current, so a single transistor as DT suggested would be fine. If you want to drive things like motors then you could used an H-bridge or a Darlington power transistor.
For your Piezo you could omitt the 18R resistor and output transistor, and connect the buffer transistor's emmiter to the 12v (or 9v in your case) supply
More info can be found at http://www.talkingelectronics.com/Pa...PIC-Page3.html which explains the reason for using two or more transistors for high current loads.
Hope this helps
Bookmarks