How to detect low battery in battery powered F683 circuit


Closed Thread
Results 1 to 32 of 32

Hybrid View

  1. #1


    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

  2. #2
    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

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    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.

  4. #4
    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

  5. #5
    Join Date
    Sep 2009
    Posts
    755


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

  6. #6
    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

  7. #7


    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.

  8. #8
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

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

    Connect one end of diode to ground, other to pic input and pull up resistor. Just like in schematic on page 8.
    They suggesting to connect diode to ground thru mosfet to minimize current consumption. When mosfet is turned on, there is about 0,6V on pic input, and that voltage won't change.
    You do not need to use mosfet, you can connect diode to ground permanently, or connect to output pin.

  9. #9
    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

    Quote Originally Posted by pedja089 View Post
    Connect one end of diode to ground, other to pic input and pull up resistor. Just like in schematic on page 8.
    They suggesting to connect diode to ground thru mosfet to minimize current consumption. When mosfet is turned on, there is about 0,6V on pic input, and that voltage won't change.
    You do not need to use mosfet, you can connect diode to ground permanently, or connect to output pin.
    Yeah, I get the hardware side now - but how to implement this on the F683 with no Vref and one A/D? Am I missing something?
    "Do or do not, there is no try" Yoda

  10. #10
    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

    Quote Originally Posted by mark_s View Post
    In that case you need a pic12f1822 or similar with an internal vref. The internal vref will work with the adc or comparator module.
    OK, now that is helpful. I was not aware of an 8-pin chip with all those features and at a good price too! Now I'll just have to learn how to configure the internal Vref to get the results I need. Another slog through data sheets that can take hours!
    "Do or do not, there is no try" Yoda

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