How i ken read 7.2v with pic


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    serandre's Avatar
    serandre Guest


    Did you find this post helpful? Yes | No

    Default

    Hi,

    I need to read a car battery, it ranges from 10v to 14.8v. In my circuit i have used a zener 10v to drop the voltage to 0-4.8v.

    Should i modify it to use voltage divider (10K/5K) instead ?

    Sorry eletronic is just a hobby to me, just learning :-)

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    You should use the voltage divider with simple resistor... also add a 10-100nF at the PIC a/d input to smooth the results. It's amazing how much noise you can remove. Also, doing multiple reading then average them to avoid odd results it's just a better practice in, at least, car application.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by serandre
    Hi,

    I need to read a car battery, ...i have used a zener 10v to drop the voltage to 0-4.8v.

    Should i modify it to use voltage divider (10K/5K) instead ?

    Sorry eletronic is just a hobby to me, just learning :-)
    Hi, Serandre

    Your Zener idea is not so bad ... but zener voltage is not stable with temp .!!! so, your measurement will be somewhat false ( in a car temp is not so constant ...).

    There would be a simple solution : use a cheap TL431 trimmable "zener" instead of the diode. see TL431 datasheet for that.

    http://pdf1.alldatasheet.com/datashe...OLA/TL431.html

    Alain
    Last edited by Acetronics2; - 18th June 2006 at 10:46.
    ************************************************** ***********************
    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 " !!!
    *****************************************

Similar Threads

  1. How to read PIC serial no. from EEPROM with PBP?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th December 2009, 11:27
  2. Replies: 67
    Last Post: - 8th December 2009, 03:27
  3. Help GPS read with serin
    By leinske in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2007, 03:33
  4. Changing declared variables names on the fly
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2006, 07:34
  5. Controlling power to a PIC with another PIC
    By jswayze in forum Off Topic
    Replies: 3
    Last Post: - 28th May 2005, 20:44

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