How powering PIC in auto ?


Closed Thread
Results 1 to 20 of 20
  1. #1
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579

    Default How powering PIC in auto ?

    I made some schematics with PIC (12F675=windows closer;16F648A=thermometer/thermostat) and I use them in my car. I powered them like in picture...but, sometimes, without any reason, the PIC's are damaged. If I replace them, in the sames boards, these works fine, for a while...(weeks, even month !) and...collapeses again ! Can somebody sugessting one better metod for powering PIC's in auto environment ? Thanks in advance for every reply and sorry for my poor english. All the best !
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    Can we see the remainder of the schematic?

    Yes, that is a very basic power supply as one can get but I will bet you are getting a spike from someplace else.
    Last edited by mackrackit; - 11th October 2009 at 00:58.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by fratello View Post
    I made some schematics with PIC (12F675=windows closer;16F648A=thermometer/thermostat) and I use them in my car. I powered them like in picture...but, sometimes, without any reason, the PIC's are damaged. If I replace them, in the sames boards, these works fine, for a while...(weeks, even month !) and...collapeses again ! Can somebody sugessting one better metod for powering PIC's in auto environment ? Thanks in advance for every reply and sorry for my poor english. All the best !
    Hi Fratello,
    Maybe you are getting a back EMF from the relays or motors, relays are good for over 100v back emf,also; try some decoupling caps across the motor power leads. I am pretty sure you already are using blocking or snubber diodes, perhaps a faster diode.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default

    Thanks for reply ! This is one of schematic that I use : module for up/down windows of my car. The powering is like in previous post. The capacitors for decoupling (10uF & 100nF) are SMD, near at pins of PIC's.
    LE : For relays I use 1N4007.
    Attached Images Attached Images  

  5. #5
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default

    In previous post VR1 is not correct...
    Attached Images Attached Images  

  6. #6
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post Some trials

    Hi Fratello,

    Can you measure broken PIC's if the IO's have been damaged?
    - are input resistances (IO to GND) at the same level as with new PICs?

    Is there any possibility that ESD would enter the system when swithes are pressed?

    In car environment, you can easily charge up to very high potentials and if you discharge it to switches, PIC it can be damaged.

    1) You could add serial resistors to PIC inputs 4 & 5. Already small resistors (~100 ohm) will damp ESD currents.
    2) 5.1V zeners could be added next to C1 and C2.
    3) Or do both

    BR,
    -Gusse-

  7. #7
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default

    Thank You for reply !
    I have just one damaged 12F675; the resistance from pin 4 to GND are about 9k7, from pin 5 to GND are 9k1, with PIC powering with 5V ; PIC outside from module : pin 4 to GND = 16k3 and pin 5 to GND 13k3. What reveals that ?
    Unfortunate I don't have now one good 12F675 for measuring the IO resistance; I wait for postal messenger from e-commerce.

  8. #8
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    Sounds pretty much broken to me. You could expect ~100kOhm input resistance or in that range (or even higher) for good parts.

    Try to add small resistors and 5.1V zener for switch inputs.

    BR,
    -Gusse-
    Last edited by Gusse; - 13th October 2009 at 19:53.

  9. #9
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    I use a Digi-key 497-6469-1-ND Transient Voltage Suppressor
    on every outside lead connected to the circuit.
    I believe they are much faster than old zener clamps.
    Also try to add a 100 ohm resistor or better ahead of each TVS so it doesn't
    have to pull the spike down in the entire system.
    For the power supply their could also be a diode and a 100 ohm resistor in
    series followed by a large capacitor and TVS in parallel to ground ahead of
    the volt regulator.
    The 100 ohm resistor can get hot depending on the current draw.
    You may have to adjust to less than 100 ohm to maintain voltage at peak
    current draw.

    Norm

  10. #10
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default

    @ Normnet : Can You figure that on my schematic ? Thank You !

  11. #11
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    If you are using surface mounted components (0603 or smaller), then it would be more wise to put ESD protection before any serial resistor. Resistor will burn or change value if you force ESD current to go thru it.
    Old thru mounted comps can tolarate more ESD, but even with those I would recommend to do the same.

    For ESD protection you can use: TVS, varistor or zeners. All those will give appropriate protection, if you have done your PWB layout correct way. Try to minimize all paracitic impedances (inductances & resistance) from ESD current paths.

    BR,
    -Gusse-
    Attached Images Attached Images  

  12. #12
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default

    I understand...Thanks ! Just because it's cheap, can I use "Transient Voltage Suppressors (TVS)" VC 1206 05 D 150 (05 = 5.6 VDC Working voltage; D=0.4 J Energy ; 150=18 Volts Clamping)...It's a good choice ? It' s enough to use just one like in picture, or it's better to use one on every IO of PIC ?
    Attached Images Attached Images  
    Last edited by fratello; - 15th October 2009 at 12:25.

  13. #13
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    05 = 5.6 VDC Working voltage
    Try a few. They may reset the PIC because 5.6 volts is very close to
    operating voltage of 5.0 volts.

    It' s enough to use just one like in picture, or it's better to use one on every IO of PIC ?
    I use one on every lead external to the board.

    I would place the TVS in front of the volt reg to protect it also.

    Norm
    Last edited by Normnet; - 15th October 2009 at 13:20.

  14. #14
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default

    If 5V6 it's not so good, what value do You suggest ?

  15. #15
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    Working voltage of TVS (or any protection comp) must be a little over max DC voltage to avoid current leakage thru protection comp.

    For de-rating you should use + 10-20%. This means that Vbr (breakdown voltage) value is important, it should be so much above normal DC voltage that you will never reach that in normal conditions.

    5.6Vdc is usable (Vbr for that is ~6.5V or bit higher). With higher Vdc components (e.g. 7-10V) you will have less leakage.

    BR,
    -Gusse-

  16. #16
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default

    OK ! Thank you both verry much !

  17. #17


    Did you find this post helpful? Yes | No

    Default pic window

    looks like the main reason for PIC is to check current to disconnect relay when window is all up or down ??
    don
    amgen

  18. #18
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default

    The reasons for using PIC :
    -small circuit
    -two different function (up and down) with two possibilities (long/short press)
    -detecting over-current
    -huge support from this forum (thanks again !)
    -personal ambition !

  19. #19


    Did you find this post helpful? Yes | No

    Default circuit

    you may want to add free wheeling diode across each relay coil, common practice because of the voltage spike generated by relay coil when released (switched off)

    don
    amgen
    Attached Images Attached Images  

  20. #20
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default

    Please read post #4.

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  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 : 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