Battery voltage monitoring for use on 16F1825


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: Battery voltage monitoring for use on 16F1825

    Hi Sheldon,
    Sounds tricky.... How would you prevent the MOSFET from turning ON when you're no longer driving the output high?
    Could you possibly whip up a schematic showing what you're trying to describe?
    One thing you should take into consideration the max recommended impendence on the ADC input, if the resistor divider has high impedence you may need to buffer the voltage before feeding it into the PIC or take other precautions (extra long sample time perhaps).

    /Henrik.

  2. #2
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Default Re: Battery voltage monitoring for use on 16F1825

    I think I understand what you're proposing. The 47K would pull-up the FET gate to the supply voltage; I don't think that's a big issue. The 10K isolates the PIC output (input) from the FET gate; that looks ok except when the pin pulls low you have a voltage divider leaving about 1.2V on the FET gate.

    Perhaps the following is what you are describing and I misunderstood you. If you have a pull-up from the supply to the FET's gate, and a pull-down from the FET's gate to ground; you can perhaps size them such that while there is supply voltage the FET stays off, and when you're also scaling the supply voltage to the PICs pin (for analog measurement). You also would want a small resistor (say 100-200 ohms) between the PIC's pin and the FET's gate; to provide a little isolation without taking away the ability to pull down the FET's gate when you want to turn the FET on. Does this makes any sense?

    Wow this is probably my first ASCII art.

    What I described before is something like the following:
    .........SUPPLY
    .............|
    .............|
    .............R
    .............|
    .............|
    PIC---R--|--FET
    .............|
    .............R
    .............|
    .............|
    ...........GND

    But this next one probably works as well - and perhaps a little better

    ......SUPPLY
    ........|
    ........|
    ........R
    ........|
    ........|
    PIC---R--|--FET
    .............|
    .............R
    .............|
    .............|
    ............GND

    To make sure it works you have to work the math such that the gate is always off unless the PIC pulls it to gnd. Also the voltage division from the supply to the PIC has to be such that you can sense when the voltage decreases (and the PIC running at +3.3V means that that voltage has to be scaled down as such). I haven't worked out the math, but you'll have two equations and two unknowns; you should be able to work it and see if it converges to a solution.

    You don't have any other pin you can use for the supply monitoring?
    Last edited by languer; - 14th April 2013 at 02:32. Reason: my ascii art sucks

  3. #3
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: Battery voltage monitoring for use on 16F1825

    Not sure what you want to do with the mosfet, but a simple voltage divider into an analog input is the easiest way to monitor the battery voltage.

    edit: Sorry, was goofing around, my post is late
    Shawn

Similar Threads

  1. Voltage Monitoring
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 12th July 2011, 00:51
  2. ADCIN car battery monitoring
    By mitchf14 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 29th June 2008, 09:04
  3. pwm with voltage monitoring
    By jetpr in forum General
    Replies: 3
    Last Post: - 29th January 2008, 09:49
  4. 12v car battery monitoring
    By oldcarguy85 in forum Schematics
    Replies: 2
    Last Post: - 10th December 2007, 01:26
  5. Using the A/D for Monitoring a Solor Cell and Battery
    By chuck.sieveking in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 13th July 2004, 20:27

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