How to connect Buzzer to PIC?


Closed Thread
Results 1 to 33 of 33

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Looks like the large 3 pin part might have heat shrink around it. Is that the case? If so, can you cut it off, and see a part #?

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Unfortunately no part number... just a bunch or really fine coils... I tried to be careful but I cut through them.... Perhaps I'll buy another unit so I can find out how many coils etc... but I guess we have an answer. I am not familiar with transformers. Logic tells me this one has a comon ground...input is boosted drive the piezo at higher voltage... I did a very brief search of farnell but didn't find anything similar... Anyone know part numbers or supliers of small 3 pin tranformers?

  3. #3


    Did you find this post helpful? Yes | No

    Default

    It's a coil (inductor) to generate flyback voltage. There's a switching circuit that creates a high voltage to apply across the piezo element. Piezo elements are generally designed to be run at high voltage; 30-200V is not uncommon. In a really good design the piezo will also be in a Helmholtz enclosure as well to really get everything from the system as a whole. Years ago I designed these things for car alarms. 120dB was on the low end of what you could achieve...

    Do some searching on piezo elements; off the top of my head I'd say have a look at Murata. I seem to recall that they have some pretty good doc's on these things.

    Mike Tripoli

    P.S. I found the doc I was talking about pretty quickly: http://www.murata.com/catalog/p15e6.pdf. It's a good starting point...
    Last edited by mtripoli; - 1st February 2010 at 06:12. Reason: added reference

  4. #4


    Did you find this post helpful? Yes | No

    Thumbs up

    Thanks! I've glanced through it and it's the best info I've seen sofar. I'll need some time but I'm going to work on a simple solution for pics (need to read up on inductors etc). Seems like this is something that gets asked about often on the forum.

    regards,
    mike

  5. #5


    Did you find this post helpful? Yes | No

    Default

    After some thought, I think I will go with max232/3232 or equivalent. May get back to this if sound output is not satisfactory...

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Will that help? I'm going off the top of my head but you'd have to use both outputs and invert the signal going into one of the inputs to get the voltage swing across the piezo (assuming using one output pin on the PIC)? You'd only get about 14VAC? What is the capactive loading spec of the 232 device; can it drive a cap load (piezo's are normally a "relatively speaking" large capacitive load).

    Have a look at this website: http://www.discovercircuits.com/P/piezo.htm. There are a couple of circuits shown. All you really need is a small inductor, a transistor and the piezo. The PIC is your oscillator. I'd have to think this is cheaper and easier than a MAX232?

    Keep in mind the resonant frequency of the device as well. Thinking back, one of the problems that the car alarms I worked on had when I was brought in was the guy before me was trying to brute force the piezo to get the output needed (+120db @ 3 feet). It was at around +97db. Tweaking the frequency made it jump to over +120db. The other thing that is more important than you'd think is in the way the piezo is held. I've done edge fixture mostly; the tighter this is clamped the better for output.

    I invented the "Singing Balloon"; this uses a piezo attached to a "foam speaker". It is edge mounted as well and driven with PWM from the sound chip. The output is around 10VAC to the piezo (in this case it reproduces music). The piezo *really* needed about 30VAC but the product (disposable in every sense of the word) couldn't stand the cost of the added circuitry to make it happen. I think to date there's been about 30-35 million of them produced.

    Mike Tripoli

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Hi Mike!

    Thanks for the post... I worked on a very lengthy reply and then lost it unfortunately =(...
    The main pointers of that message were:

    I'm looking for a small solution that can run on for example 3.3 volt, and haven't been satified with inverted pin output which is shown so often

    Unfortunately I came to the conclusion that I don't understand enough to design a flyback solution in the limited time I can currently allocate.

    I checked several resources, and then availability and size of split smd coils and their pricing. I had doubts as to whether there was much of an advantage of using a flyback converter here..

    I had uncertainties on whether I could build the coils myself (aircoil? pcb inductor?)

    Reading the schematics I had several difficulties as well...
    (for example @ http://en.wikipedia.org/wiki/Flyback_converter) I was unsure how the split inductor should really be connected to the PCB.

    PCB Die bonding made close analysis of the dissected circuit difficult.

    Thats why I decided to follow a different route at the moment....

    Anyway, in my search for a reasonable solution I did find some very nice chips from maxim (~1$) which I indend to try out. For example the MAX9738...
    These also typically have 14-16VP-P so I hope my RS232 method will work... I do hope it will work because many hobbyists already have that chip at home.

    I also figured the max3232 solution may also offer protection from Voltage spikes (from trauma or intended tapping) of the piezo (sensing by linking rs232 input and RS232 output).

    Here some interesting links:
    http://www.instructables.com/id/Extr...ep14/All-Done/
    http://video.google.co.uk/videoplay?...7327995034061#

    I'm still missing some caps for my test but I will post soon...

    regards,
    Michael

Similar Threads

  1. PIC keeps resetting when executing subroutine
    By jbirnsch in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 27th August 2009, 08:03
  2. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 05:59
  3. how to connect ac sensor to PIC ?
    By iugmoh in forum Schematics
    Replies: 3
    Last Post: - 1st June 2008, 19:35
  4. connect microphone to pic?
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th January 2008, 09:33
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2005, 00:14

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts