Battery monitoring - ever tried AN1072?


Results 1 to 40 of 57

Threaded View

  1. #25
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: Battery monitoring - ever tried AN1072?

    Roger, for this to work you need to get rid of the LDO and feed a 4,5Volt battery pack to the PIC. That way you will measure the Vdd voltage in respect with the VP6 input to the ADC. There is no other way to do it.

    Your configuration would be:

    Code:
    ADCON0=%10110101   ' Here we drive the 0,6 volts to the ADC
    ADCON1=%00110000   ' I prefer to be sure to have FRC for the beginning at least
    VRCON= %00010000   ' Enable the VP6 reference
    Now if you want to measure the Vdd, just do this:

    Code:
    ADCON0.1=1
    while ADCON0.1: wend
    Bat_Value.Byte1=ADRESH:Bat_Value.Byte0=ADRESL
    But remember, you have to drop the LDO and supply your circuit from the battery directly.

    Ioannis
    Last edited by Ioannis; - 27th September 2015 at 17:42.

Similar Threads

  1. Battery voltage monitoring for use on 16F1825
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 23rd April 2013, 14:57
  2. Replies: 13
    Last Post: - 22nd January 2012, 04:48
  3. ADCIN car battery monitoring
    By mitchf14 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 29th June 2008, 08:04
  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