burning pins


Closed Thread
Results 1 to 8 of 8

Thread: burning pins

  1. #1
    Join Date
    Sep 2006
    Posts
    747

    Default burning pins

    hello
    I am using a pic to control some relays, the coils is activated with 12v supply . The pin output the 5v to the gate of mosfet which turns on the relay.
    Also the problem is that pins from the LCD output are also burning, any idea why that is?
    when the circuit is active and if I disconnect the 12v that goes to the coils, then there are few squares that appear in the LCD.. it goes away after a second or two..

    ken
    Last edited by lerameur; - 5th October 2008 at 05:54.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lerameur View Post
    hello
    I am using a pic to control some relays, the coils is activated with 12v supply . The pin output the 5v to the gate of mosfet which turns on the relay.
    Also the problem is that pins from the LCD output are also burning, any idea why that is?
    when the circuit is active and if I disconnect the 12v that goes to the coils, then there are few squares that appear in the LCD.. it goes away after a second or two..
    What do you mean, burning? Like actually hot, like going to go up in smoke type burning?
    Could you post up your actual schematic?

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    what I mean is that the pin is not putting out 5v anymore. Nothing is coming out..
    I will post schematic tomorrow

    ken

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lerameur View Post
    what I mean is that the pin is not putting out 5v anymore. Nothing is coming out..
    I will post schematic tomorrow
    A piece of good advice...
    Whenever you're driving anything external to the PIC, it's a good idea to throw an in-line resistor between that pin and the device. Generally, a PIC's output is limited to about 25mA, therefore, at 5v, you'll want about a 200 ohm resistor on there, just for protection, limits the current to right at 25mA @ 5v. Not only will it protect the pin quite a bit, but it'll help stifle some noise/ringing, that sort of thing.
    Of course, it always depends on what you are driving, but, I keep a bunch of 100ohm DIP resistor packs handy just for that purpose alone.
    And another thing, if you did fry the output high driver, chances are you can still use that pin if you put a pullup on it, treat that 'dead pin' like an open-drain output. At least you'll get the use out of it again.

  5. #5
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    I did add 5k resistor between the pin and the gate. I also added a 100k resistor to the ground from the gate so that it stays at zero volt when not used. I found out that some relays where turning on for no apparent reason, with the 100k resistor it fixed that problem.
    could there be spikes from the ground coming from the coil in the relay when it collapse. (shutting down)

    k

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lerameur View Post
    could there be spikes from the ground coming from the coil in the relay when it collapse. (shutting down)
    YES
    Do you have a "flyback"diode across the relay coil?
    http://en.wikipedia.org/wiki/Flyback_diode
    http://www.4qdtec.com/catch.html
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    flyback .. no

    ok here are the parts I have
    pin----5.1k-----gate
    drain ----100k-----source
    source----ground
    12v---coil----220ohm-----drain

    I will add a flyback thanks

    k

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Doin' good so far...'cept for the missing flyback diode always use one...make sure you get it in the right way!
    Are you using an N-channel MOSFET? Using the PIC to add a ground to the coil? The 100k resistor is bleeding off any leakage coming thru the MOSFET. N-channel aren't so bad for this, P-channel's are worse (and you have to pull the gate the other way)...that's probably why the MOSFET would turn on for no apparent reason.

Similar Threads

  1. 16F877A Pullups/Pulldowns and unused pins
    By DavyJones in forum General
    Replies: 6
    Last Post: - 17th April 2009, 01:39
  2. Change On Interrupt, PIC16F884
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 14th November 2008, 17:25
  3. PIC - 8 Pins - 6 Output Pins ?
    By DanPBP in forum Off Topic
    Replies: 0
    Last Post: - 22nd October 2007, 00:23
  4. I2C Effects on other PortA pins
    By kenmac in forum General
    Replies: 2
    Last Post: - 11th July 2005, 05:36
  5. PIC PORT 'special' pins
    By barkerben in forum General
    Replies: 1
    Last Post: - 18th January 2005, 21:40

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