How to detect low battery in battery powered F683 circuit


Closed Thread
Results 1 to 32 of 32

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81

    Default How to detect low battery in battery powered F683 circuit

    I do a lot of battery powered designs with li-po (3.7v) batteries - mostly using 8 pin chips like the F683. I am trying to figure out if there is a way to use an AD input - or comparator configuration to determine if the battery that is powering the chip is running low. A threshold of 3.2 V would be good. A resistor divider connected to the A/D input will not work because it will always read the resistor ratio voltage as a constant value as the battery voltage changes. I have been fooling around with a zener diode/resistor combination with no luck. I don't have any experience using the comparators inside PICs and wonder if there is some way to configure a comparator to detect a low battery threshold. Does anyone have an elegant solution for detecting a low battery condition? In my current design I only have AN0 available for battery sensing on the F683.

    I really need a very low part count/low cost solution! No external comparators or circuits, is this practical?
    Last edited by tekart; - 27th October 2014 at 15:52.
    "Do or do not, there is no try" Yoda

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: How to detect low battery in battery powered F683 circuit

    Hello

    This might give you some ideas

    http://ww1.microchip.com/downloads/e...Doc/41215C.pdf

  3. #3
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: How to detect low battery in battery powered F683 circuit

    Yes, I saw that but the best circuit (on p.8) uses an external comparator. Not sure if that can be implemented with the INTERNAL one?
    "Do or do not, there is no try" Yoda

  4. #4
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: How to detect low battery in battery powered F683 circuit

    Why not? It will work.
    But you can only use R3 and D1 connected to ADC pin.
    Put Vdd as reference, take sample voltage, and, for larger Vdd ADC result will be lower, and for lower Vdd result will bi higher.

  5. #5
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: How to detect low battery in battery powered F683 circuit

    I don't see how this is any different from putting a resistor divider on the ADC input. The problem is that the divided voltage will track Vdd and the A/D reading will always represent the resistor divider ratio (or resistor/diode drop ratio) and thus will maintain a consistent reading despite changing Vdd. Am I missing something here?
    "Do or do not, there is no try" Yoda

  6. #6
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: How to detect low battery in battery powered F683 circuit

    Hey, where I was mention voltage divider???
    Quote Originally Posted by pedja089
    But you can only use R3 and D1 connected to ADC pin.
    That isn't voltage divider.
    Biased D1 will produce almost constant voltage on ADC input pin. By keeping constant voltage on ADC input, and changing reference voltage(Vdd)
    Quote Originally Posted by pedja089
    for larger Vdd ADC result will be lower, and for lower Vdd result will bi higher.
    At least try to read response when you ask for help. That is all from me...

  7. #7
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: How to detect low battery in battery powered F683 circuit

    Sorry pedja089,
    I am having trouble understanding your very terse sentence. I would appreciate it if you could elaborate what you mean by this
    Quote Originally Posted by pedja089 View Post
    Put Vdd as reference, take sample voltage, and, for larger Vdd ADC result will be lower, and for lower Vdd result will bi higher.
    As I understand it, my A/D reading will always be defined by the voltage drop of the diode forward voltage drop and so will not change. Remember I only have the one A/D input to work with in my very simple circuit.
    "Do or do not, there is no try" Yoda

  8. #8


    Did you find this post helpful? Yes | No

    Default Re: How to detect low battery in battery powered F683 circuit

    Quote Originally Posted by tekart View Post
    Remember I only have the one A/D input to work with in my very simple circuit.
    In that case you need a pic12f1822 or similar with an internal vref. The internal vref will work with the adc or comparator module.

Similar Threads

  1. How can a battery powered PIC turn itself off?
    By tekart in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th August 2012, 10:44
  2. Replies: 13
    Last Post: - 22nd January 2012, 04:48
  3. Battery powered applications
    By NavMicroSystems in forum Off Topic
    Replies: 7
    Last Post: - 22nd June 2009, 07:12
  4. 12F683 battery powered remote - energy consumption question
    By silentwol in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th April 2007, 13:23
  5. Battery Powered Need Help!
    By scottl in forum Off Topic
    Replies: 1
    Last Post: - 29th March 2006, 09:52

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