Measure the voltage of my rc batteries


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120

    Question Measure the voltage of my rc batteries

    Hello guys,

    I am looking for a way to measure the battery voltage (0-12v) using pic16f628.I search in the forum and I find the way using a POT and ADC pin.

    My PIC does not have ADC!!!!

    Any other suggestion?

    Thsnks

  2. #2
    @sda's Avatar
    @sda Guest


    Did you find this post helpful? Yes | No

    Default

    Hi,
    Take a look here :
    http://www.picbasic.org/forum/showthread.php?t=5327

    But my penny's worth, either go for an external ADC or choose a PIC with ADC's.

    Regards,
    sda

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink voltage measurements without ADC !!!

    Hi, N'geron

    there's a way to do it with a simple 16F84 an the RC Time command ...

    look :

    first : connect a resistor between your voltage to be mesured and the input port. a capacitor between input and ground.

    second : make your input a 0 v ... output

    Third: make the input ... an input with RCTime and measure the time to go up from 0v to the pic transition input voltage (1.5v) ...

    so, time = - RC Log ( 1.5/ Vbatt ) ...

    a small lookdown table will easily translate time to voltage, if needed.

    of course, you must reduce your batt voltage to fit into the 0 - 5 volts range or use a zener not to exceed the Pic input range.

    not so precise as an ADC ... but useful here.

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi ngeronikolos,

    Another way might be to use the Comparator Module of the 628.

    After reducing the voltage with a pair of resistors, apply it to 1 input of a comparator.

    Then using PWM output on another pin (filtered with a resistor and capacitor), adjust the DutyCycle to control the analog voltage being applied to the other comparator input.

    Then when the comparator changes state, you know what voltage it was at.

    Not the best resolution, but it should be good enough to tell if the battery's getting Low or not.
    <br>
    DT

  5. #5
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Question

    Goodmorning boys,

    I have just bought an etxternal ADC tlc549 8Bit resolution A/D converter.
    Can you please let me know whickh is the next step?

    Two resistors connected in Series,one point connect to the Supply to be measured and the other to Vss (0v).The junction to the ADC.

    Please can someone help me?

Similar Threads

  1. Expanded Scale Voltmeter
    By Pic_User in forum Schematics
    Replies: 6
    Last Post: - 8th February 2008, 20:32
  2. ADC - 2 channels but not same voltage reference - how to?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th November 2007, 19:03
  3. Bootloader corrupted at low voltage
    By BrianT in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2007, 14:56
  4. Help with final project
    By OvERKiLL in forum General
    Replies: 4
    Last Post: - 15th December 2006, 20:35
  5. Pic suggestion for high precision voltage measure
    By d1camero in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 10th April 2004, 06:22

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