Voltage monitor for car battery


Closed Thread
Results 1 to 40 of 51

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Bob , Chuck and other

    Thank you all for the advice. I really appreciate it!

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


    Did you find this post helpful? Yes | No

    Default

    > Has for the zener diode you just put the block end to say PORTA.0 and the ohter to ground.

    No!

    A Zener starts to draw current long before it gets to it's stated voltage... it doesn't just suddenly 'turn-on' at it's rated voltage. As soon as the Zener starts to draw current (a 5V6 Zener might start as low as 3v!!!) then it will throw your Resistor Voltage Divider out and you will no longer have the ratio voltage drop you expect!!!

    A Zener is good for protecting Digital ON/OFF inputs but not for precise measurement ADC or Comparator inputs.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink simple Inputs extra protection ...

    Just need to paste µChip built-in input protection by adding two low leakage diodes ( BAW62 i.e.) to clamp input voltage to the Pic supply rails ...

    1N4148 also will fit for the here-required specs ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    May 2007
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Bob

    I just noticed that circuit CarVoltage.jpg specifies 10nf caps while you previously said I should use a 10uf cap? Which one is it?
    Thank you again.
    Last edited by passion1; - 2nd August 2007 at 11:48.

  5. #5
    Join Date
    May 2007
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    > Has for the zener diode you just put the block end to say PORTA.0 and the ohter to ground.

    No!

    A Zener starts to draw current long before it gets to it's stated voltage... it doesn't just suddenly 'turn-on' at it's rated voltage. As soon as the Zener starts to draw current (a 5V6 Zener might start as low as 3v!!!) then it will throw your Resistor Voltage Divider out and you will no longer have the ratio voltage drop you expect!!!

    A Zener is good for protecting Digital ON/OFF inputs but not for precise measurement ADC or Comparator inputs.
    Melanie

    How should I modify Bob's circuit CarVoltage.jpg if I should not use a Zener?

  6. #6
    Join Date
    Mar 2004
    Location
    UK-Midlands
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    Thanks Melanie,

    As always you are correct (damm! I would love to be a male chauvinist. But I always need a woman to keep me out of trouble!).

    For cheap and effective protection I willingly sacrifice a bit of accuracy (or compensate in software). The resistor divider values can be reduced and a better choice of zenner to minimise the effect.

    Alternative is to suppress the supply line and bit more capacitance on the analog input and miss out the zenner and ensure the resistor divider will NEVER give more than 5v. It all depends on the accuracy and speed you need from the circuit?

    An extreme example I once had an alternator go on a company car and it pushed 18volts around. Don't know how long it was like that as it was only noticed when it managed to destroy a lot of the electronics on the car.

    Bob

  7. #7
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile Excellent idea

    Excellent divide by three idea (10k 10k 10k) given by Dave (mackrackit).
    How about this....? So far...
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1900&stc=1&d=118606737 9" />
    Attached Images Attached Images  

  8. #8
    Join Date
    Apr 2007
    Posts
    53


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pic_User View Post
    Excellent divide by three idea (10k 10k 10k) given by Dave (mackrackit).
    How about this....? So far...
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1900&stc=1&d=118606737 9" />
    The automotive environment can be very nasty, as someone has already said. Here is how I go about it:

    First of all, put a diode in series with the 7805 regulator for reverse polarity protection. The one you have now will burn out the 10ohm resistor if you connect it up backwards.

    It is always a good idea to use a Transorb (instead of the zener) - they are much better at catching nasty spikes. On a 12v system, an 18v Transorb should be ok.

    I would also add some inductance before the 7805 - somewhere around 1mH works for me.

    For maximum reliability, I always try and isolate or buffer the micro from the "real world" signals as much as possible. Try to make it and "island", if you like. For digital inputs, this means using opto-isolators. For analog inputs I buffer the signals with RRIO op-amps powered from the +5v rail. Doing this greatly reduces the chances of nasty spikes reaching your micro. Outputs are usually buffered anyway through drivers, transistors, fets, relays etc. Adding 1nF ceramic decoupling capacitors to every i/o on your pcb can also be worthwhile.

    The other important point is to take care when joining the ground connections together on your pcb. Keep analog and digital grounds separate. Try to use a "star" type connection where all the grounds join at one place - usually at the filter capacitor/regulator. This point should have the lowest impedance path for noise/spikes.

    There are many more "tricks" to combat the nasties found in the automotive environment. A a quick google using "automotive interference suppression" or similar will probably produce some worthwhile results.

    Hope I was of some help.

    Regards,

    Andy

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


    Did you find this post helpful? Yes | No

    Wink

    I guess it all comes down to how much protection should be used on a $10.00 device. As Bob pointed out the alternator burned other electronics in the vehicle.

    Now to build a device so the vehicle can go up in flames but we can still read the voltage.

    The polarity protection diode is a good idea.

    I am talking from many years of building control systems for spray rigs mounted on tractors with 12 and 24 volt systems. Pressure transducers, automatic valves, etc. So far the problems mentioned have not been a problem.

    The 7805 is good for 35 volts, I think. The resistor network could be 4 to 1 instead of 3 to 1 for protection at the ADC if you are worried.

    Add the polarity diode to the schematic by Pic_User and call it done.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Battery pack cell reader
    By steiner in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th March 2008, 06:41
  2. Expanded Scale Voltmeter
    By Pic_User in forum Schematics
    Replies: 6
    Last Post: - 8th February 2008, 20:32
  3. Help with final project
    By OvERKiLL in forum General
    Replies: 4
    Last Post: - 15th December 2006, 20:35
  4. Measuring Battery voltage
    By BobP in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd December 2006, 23:07
  5. Help with setting adcon1 for 16f877
    By jessey in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 16th August 2005, 11:13

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