Shop OBEX P1 Docs P2 Docs Learn Events
MCP3208 ADC circuit to test 12v battery. — Parallax Forums

MCP3208 ADC circuit to test 12v battery.

DgswanerDgswaner Posts: 795
edited 2010-05-19 14:46 in Propeller 1
I'm using a MCP3208 ADC to read some Srarp IR sensors. I thought that since I will have a few extra inputs that it would be nice to be able to measure the charge of the batteries.

could someone point me to a circuit that I could use to proportionately drop the voltage within the limit of this ADC? my Max voltage is set to 5v.

Thanks

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DGSwaner

"When in doubt, use C4" - Jamie Hyneman, Myth Buster

Comments

  • TimmooreTimmoore Posts: 1,031
    edited 2010-05-19 07:25
    2 resistors should do. A fully charged battery will be more than 12V, so prehaps a 10K and a 5K between the battery +ve and gnd, (10K to battery +ve) and connect the adc between the 2 resistors. then 0-15V will map to 0-5V at the ADC.
  • StefanL38StefanL38 Posts: 2,292
    edited 2010-05-19 13:28
    Hello DGSwaner,

    there are a lot of webpages "trying" to explain electronics. My personal oppinion about most of them: they are Smile for beginners.

    This one seems to be quite good:

    Lessons In Electric Circuits -- Volume I DIVIDER CIRCUITS AND KIRCHHOFF'S LAWS

    especially the attached picture shows what Timmore meant with two resistors.

    00107.png

    best regards

    Stefan
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2010-05-19 13:33
    In the 5% E12 resistor values the closest you can get is 4.7k and 10k. In the 1% range, you can get 20k and 10k which divides more accurately into thirds. If you are stuck and (say) only happen to have 10k resistors you can put two in series to get 20k.

    Or you could put two 10k resistors in parallel to get 5k above.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.smarthome.viviti.com/propeller
  • DgswanerDgswaner Posts: 795
    edited 2010-05-19 14:46
    Wow, that's incredibly simple. I was anticipating a very complex design.

    Thanks

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    DGSwaner

    "When in doubt, use C4" - Jamie Hyneman, Myth Buster
Sign In or Register to comment.