Charger Circuit


Closed Thread
Results 1 to 8 of 8

Thread: Charger Circuit

  1. #1
    Join Date
    Jun 2008
    Posts
    30

    Smile Charger Circuit

    I am trying to build a charging system for a normal 12v car battery with a pic 16f628 using adcin, does anyone have any ideas for a circuit to know when the current has reached close to zero. This will tell me the battery is full charge and to disconnect the power with a small relay.

    Thanks any ideas would be greatly appreciated.

  2. #2
    Join Date
    Jan 2005
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    16f628 has no adc in, use 16f1220 in place
    same pinout.

    rgds

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


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by tiger_bel View Post
    16f628 has no adc in, use 16f1220 in place
    same pinout.

    rgds
    "use 16f1220" ????

    Let's suppose you meant 18F1220/1320 ... or 16F88 ...

    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
    Jun 2008
    Posts
    30


    Did you find this post helpful? Yes | No

    Smile reading current

    Yes it's actually pic 16f873 that I am using not a 16f628 sorry about that, I got a couple projects on the go right now. I tried using a shunt resistor with dcin to calculate the current but it was not very accurate. I even checked the circuit in a battery charger the full charge led is connected to an op-amp with a bunch of voltage dividers. I guess I could do some reverse engineering to figure it out.

    I was wondering if anyone else had any ideas. All I want to know is when the current has reached close to zero an analog value would be more useful.

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    For arguments sake, lets say your Charger can charge at 10A max.

    An 0R02 Resistor would drop 0.2v at 10A charge current dissipating 2W. An MSR-3 (3W) or MSR-5 (5W) type Resistor is perfect. Fit it in the NEGATIVE supply lead to your Battery. If you now set 0.2v as +VREF (a couple of 1% Resistors as a Voltage Divider from your +5VDD Supply) then your ADC will be able to measure (across this Resistor) from 10A Charge current right down to just under 10mA (10A/1024 ie steps of 9.7mA). You may need to check if your chosen ADC's VREF can go that low).

    There are other ways, but hey, 50 cents for three precision Resistors can’t be beat. Sure you might need some over-current /short-circuit protection at the ADC input, but that’s the easy bit.

    You can do the same thing with a PICs Comparators, but that will just give you a threshold under which you can say it's not doing much charging.

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


    Did you find this post helpful? Yes | No

    Lightbulb

    Quote Originally Posted by Melanie View Post

    You may need to check if your chosen ADC's VREF can go that low).

    .
    Hi, mel

    I remember having searched a lot for this info, ( similar reason ...) and finally found something around 2-3 v min. in the far end of the Datasheets ( Parameter AD06 )

    Regards
    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 " !!!
    *****************************************

  7. #7
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    In which case it's Comparators rather than ADC for this choice.

  8. #8
    Join Date
    Jun 2008
    Posts
    30


    Did you find this post helpful? Yes | No

    Smile Thanks

    I was also thinking of using a op-amp as a comparator that was my next try, but i never tought to use the pic comparators.

    Thanks for all your inputs guys.

Similar Threads

  1. Comparator circuit thoughts....
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 24th October 2009, 06:04
  2. Circuit Design Question
    By bradb in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th August 2009, 08:18
  3. Short circuit portection circuit ?
    By iugmoh in forum Schematics
    Replies: 1
    Last Post: - 21st December 2008, 21:33
  4. Circuit reliability issues
    By hkpatrice in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd November 2007, 14:55
  5. Replies: 3
    Last Post: - 29th October 2006, 09:16

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