Voltage monitor for car battery


Closed Thread
Results 1 to 40 of 51

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mat janssen View Post
    Yes you can, but first you have to lower the supply voltage for the picprocessor. This can be done by using a LM78L05 and some capacitors.
    I don't think that would work. The regulator will simply give you a 5v supply from the 12v battery, it will never fall below 5v because the car battery would never get this low. The simple way is to use a voltage divider made by connecting two resistors accross the 12v line and then connect the pic to the junction between the two.

    If you used a 58K and 41K with a 12v supply you would get 5v, however the state of a car battery is such that it's voltage will vary under charge and drain, so you would need to make allowances for that. You might find that under charge the voltage could be around 13.8v, falling to 10v under load.

  2. #2
    Join Date
    Nov 2005
    Posts
    51


    Did you find this post helpful? Yes | No

    Default

    use an op-amp set up has a devider you can then put upto 20v in and get 0-5v out and for safety tie a 5V zener diode to prevent damage to the pic or just a resistor devider

    I personal use op-amp has i can measure up to 60V

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Hello. I've been using the attached circuit and the following code to measure the battery condition on a 12V sealed rechargable gell cell. The code goes like this:
    batterycondition var byte

    adcin 1, batterycondition
    if batterycondition < 192 then beep

    Perhaps tweaking the adcin value would work for lead acid. It may have a different discharge curve.
    Attached Images Attached Images

  4. #4
    Join Date
    May 2007
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by chuck View Post
    use an op-amp set up has a devider you can then put upto 20v in and get 0-5v out and for safety tie a 5V zener diode to prevent damage to the pic or just a resistor devider

    I personal use op-amp has i can measure up to 60V
    Chuck / Jerry

    Thanks for the advice! Could you be specific with regard to where the 5V zenere diode must be placed. (I'm rather new to electronics!)

    THANKS!

  5. #5
    Join Date
    Jul 2007
    Location
    Grass Valley CA
    Posts
    16


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by malc-c View Post
    I don't think that would work. The regulator will simply give you a 5v supply from the 12v battery, it will never fall below 5v because the car battery would never get this low. The simple way is to use a voltage divider made by connecting two resistors accross the 12v line and then connect the pic to the junction between the two.

    If you used a 58K and 41K with a 12v supply you would get 5v, however the state of a car battery is such that it's voltage will vary under charge and drain, so you would need to make allowances for that. You might find that under charge the voltage could be around 13.8v, falling to 10v under load.
    The OA didn't say use the regulator for the sensed voltage, but for the supply voltage. He also recommended a 3:1 voltage divider for the sense. Personally, I'd use a 4:1 because the car battery can get up into the mid-14 volt range with some charging systems.

    I have no idea where you get 58k and 41k resistors; these aren't standard RETMA values. I'd use a 100k and a 22k-10k variable in series to set the voltage accurately, or do some other tricks in software for calibration.

    Jim

  6. #6
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    passion1, Use a 10.2K 1% and a 2.55k 1% for the voltage divider. This gives you 25.00 volts full scale or a 20% division. I often use these values when not being concerned about the 1mA. current draw @ 12 volts.

    Dave Purola
    N8NTA

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


    Did you find this post helpful? Yes | No

    Default

    I will but in here
    I use a 3 to 1 divider to monitor my solar battery bank. Two 10Ks in series from (+) and one 10K from (-). if peak voltage is 15 you get 5. Voltage drops to 10, you get 3.3.
    This works for me.
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    May 2007
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Hi All

    Thank you very much for the advice!

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by weirdjim View Post
    The OA didn't say use the regulator for the sensed voltage, but for the supply voltage.
    Sorry, mis-read the post

    Quote Originally Posted by weirdjim View Post

    I have no idea where you get 58k and 41k resistors; these aren't standard RETMA values.
    Whislt not standard a quick google will show that they do exist, or simple enough to make up the value.

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


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Don't forget to suppress the voltage spikes! A cars electrical system can generate spikes easily above 50v. Try to take the measurement points as close to the battery as possible. Also damp the takeoff point from the resistor divider with a small capacitor (10uF). I would also use some inductors in the supply line to protect the regulator and PIC.

    Bob

  11. #11
    Join Date
    May 2007
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by BobP View Post
    Hi,

    Don't forget to suppress the voltage spikes! A cars electrical system can generate spikes easily above 50v. Try to take the measurement points as close to the battery as possible. Also damp the takeoff point from the resistor divider with a small capacitor (10uF). I would also use some inductors in the supply line to protect the regulator and PIC.

    Bob
    Bob

    Thanks for the advice! Could you be specific with regard to where the capacitor must be placed as well as the inductors. If possible, inductance values would be appreciated. (I'm rather new to electronics!)

    THANKS!

  12. #12
    Join Date
    Nov 2005
    Posts
    51


    Did you find this post helpful? Yes | No

    Default

    Passion1

    here is web link with values and op-amp

    http://www.winpicprog.co.uk/pic_tuto...ogue_board.htm

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

    hope this helps,

    chuck

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


    Did you find this post helpful? Yes | No

    Default

    Hi,

    As per your request please find attached a quick and basic suggestion for values I would use.
    As you have 10k resistors I used these.

    Bob
    Attached Images Attached Images  

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 : 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