PIC sinking voltages higher that Vdd???


Closed Thread
Results 1 to 31 of 31

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    44

    Question PIC sinking voltages higher that Vdd???

    Hi. First of all, I want to say sorry if this is already posted, but I tried searching with no luck. I would like to know if an IO of a PIC can source a higher voltahe than Vdd. For example: PIC running at 5v, and a piezo running from 9v unregulated directly from a battery. In this way, the piezo will sound louder, right???

    Also, i think i might need to use a small diode in the IO, because, even if the IO is high , there will be some voltage difference with the battery voltage, and the piezo will never come back to the "resting" position, right.

    Thanks for your work, and sorry for my english.
    Manuel

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by manumenzella View Post
    Hi. First of all, I want to say sorry if this is already posted, but I tried searching with no luck. I would like to know if an IO of a PIC can source a higher voltahe than Vdd. For example: PIC running at 5v, and a piezo running from 9v unregulated directly from a battery. In this way, the piezo will sound louder, right???

    Also, i think i might need to use a small diode in the IO, because, even if the IO is high , there will be some voltage difference with the battery voltage, and the piezo will never come back to the "resting" position, right.

    Thanks for your work, and sorry for my english.
    Manuel
    Look on any PIC datasheet...do a search for the term "Electrical Characteristics", there you will find your answer.

  3. #3
    Join Date
    Jan 2007
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    Thanks a lot
    I will look it right now!!!
    Thanks again
    Manuel

  4. #4
    Join Date
    Jan 2007
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    Hey. Sorry to bother you again.
    I have just looked in Electrical Characteristics, but i cant seem to find my answer I 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

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    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

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by manumenzella View Post
    Hey. Sorry to bother you again.
    I have just looked in Electrical Characteristics, but i cant seem to find my answer I 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
    1st page of that section, on the datasheets I've looked at so far, it's usually the 3rd parameter.

  8. #8
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    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

Similar Threads

  1. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 10:34
  2. 12 bit or higher ADC on a PIC that works with PBP?
    By Brandon in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 11th November 2007, 17:19
  3. Replies: 3
    Last Post: - 29th October 2006, 09:16
  4. Replies: 2
    Last Post: - 10th February 2006, 01:04
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 0

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