Battery voltage monitoring for use on 16F1825


Results 1 to 20 of 20

Threaded View

  1. #3
    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 01:32. Reason: my ascii art sucks

Similar Threads

  1. Voltage Monitoring
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 11th July 2011, 23:51
  2. ADCIN car battery monitoring
    By mitchf14 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 29th June 2008, 08:04
  3. pwm with voltage monitoring
    By jetpr in forum General
    Replies: 3
    Last Post: - 29th January 2008, 08:49
  4. 12v car battery monitoring
    By oldcarguy85 in forum Schematics
    Replies: 2
    Last Post: - 10th December 2007, 00: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, 19: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