How to connect Buzzer to PIC?


Closed Thread
Results 1 to 33 of 33

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I normally connect a Piezo via a 100nF Capacitor (same sort I use for decoupling on my PCB's) because I once met a brand of Piezo's that randomly 'hung' when connected directly. See schematic. The Higher drive level option requires having one pin go High and the other Low alternatively. You can achieve this by manipulating the pins directly (you won't drive this conventionally 'as is' by using the PWM or HPWM commands).
    Attached Images Attached Images   

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Thank you very much Melanie!

  3. #3
    steve@lumicycle's Avatar
    steve@lumicycle Guest


    Did you find this post helpful? Yes | No

    Default More PIC Piezo Questions

    I read your thread about getting a piezo buzzer to work on the pic. This I have done. However what I don't understand is why you can't drive the piezo very loudly through a mosfet. It doesn't really work at all just a faint noise. however if a 1k resistor is connected in series with the piezo it works ok but not that loudly. I think the frequency is OK. driving a loudspeaker through the mosfet works fine. There must be something about driving a piezo i don't understand. Any help gratefully received.

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by steve@lumicycle
    I read your thread about getting a piezo buzzer to work on the pic. This I have done. However what I don't understand is why you can't drive the piezo very loudly through a mosfet. It doesn't really work at all just a faint noise. however if a 1k resistor is connected in series with the piezo it works ok but not that loudly. I think the frequency is OK. driving a loudspeaker through the mosfet works fine. There must be something about driving a piezo i don't understand. Any help gratefully received.


    Pls read this:
    http://www.picbasic.co.uk/forum/showthread.php?t=4796


    --------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5
    Join Date
    Dec 2006
    Posts
    18


    Did you find this post helpful? Yes | No

    Default loud buzzer or sounder

    Hey guys

    im trying to make myself a boxing round timer. Im just about there but im have a bit of trouble with getting a buzzer or sounder loud enough. It needs to be loud enough to be heard over music. im using a 9v battery. My smoke alarm uses a 9v battery and thats loud as hell so the most be some way of doing it. any help much appreciated.

    Hoops

  6. #6
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    chk the link above.

    ----------------------

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