PIC sinking voltages higher that Vdd???


Closed Thread
Results 1 to 31 of 31

Hybrid View

  1. #1
    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

  2. #2
    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

  3. #3
    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.

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


    Did you find this post helpful? Yes | No

    Default

    Good comment regarding the MOSFET's, some of which have a low enough gate current so they can be driven direct from the PIC

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


    Did you find this post helpful? Yes | No

    Default

    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.

  6. #6
    Join Date
    Jan 2007
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    Hey. Thanks for all the answers. I think im going to connect a npn transistor as most of you suggested. The probem is that, as it is battery powered, i need to keep the current draw very small. Do you know which will be (more or less) the current flowing from the IO to the base of the npn???
    I was going to use the multimeter to measure it, but, after the cleaning lady came home, the screen was broken into pieces!!!
    Well, thanks again for your help
    Manuel

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by manumenzella View Post
    Hey. Thanks for all the answers. I think im going to connect a npn transistor as most of you suggested. The probem is that, as it is battery powered, i need to keep the current draw very small. Do you know which will be (more or less) the current flowing from the IO to the base of the npn???
    I was going to use the multimeter to measure it, but, after the cleaning lady came home, the screen was broken into pieces!!!
    Well, thanks again for your help
    Manuel
    Using a transistor instead of a MOSFET is going to cost you a few mA in base current right there. MOSFET's have practically no gate current, generally in the pico-amps (except when switching states due to gate capacitance). Use an N channel MOSFET, 2N7000. It'll easily handle 12v across the drain-source, and switch on/off with 5v logic levels on the gate.

  8. #8
    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.

  9. #9
    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