Battery charger - power supply issue affecting ADC


Closed Thread
Results 1 to 30 of 30

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Weird idea this Zener Z1 so far...

    But yeah i'll second the PWM idea.. maybe just remove the LM317 as well and use a Mosfet/Transistor instead and do everything in software. a 12F683 would be perfect for that.

    1 current senses
    1 voltage sense
    1 PWM and
    remaining pins for leds and maybe other safety inputs.
    Last edited by mister_e; - 2nd December 2007 at 23:11.
    Steve

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

  2. #2
    Join Date
    Jul 2007
    Location
    Bavaria
    Posts
    28


    Did you find this post helpful? Yes | No

    Exclamation

    Hello Roger,

    one thing I have noticed in your schematic: do you have a ground connection on the OPAMP?
    It's ground pin (4) seems to be floating...

    Regards,

    Ingo

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Default

    Thank you Ingo,

    Good observation!

    I corrected the schema and the circuit (I was already noticed about this by Acetronis some hours ago - as I say, better two times than never ).
    Quote Originally Posted by Mister_e
    Weird idea this Zener Z1 so far...
    As I'm not an electronician but a real "bricoleur du dimanche". Anyway, why is the use of a Zener this way not a good idea?

    Ioannis, your math is absolutely correct but when I take my FLUKE87 or my scope, they both show a maximum of 3,45 volts. This has to be, again, one of this famous frontier between theory and real life .

    I forgot to ask: what type/model of MOSFET or Transistor would fit my application best please?
    Last edited by flotulopex; - 3rd December 2007 at 10:26.
    Roger

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default

    Your current is up to 1,2A so any transistor that can handle the double to be safe, could be used. TIP31 (3A) or MJE3055 (10A) are a few examples.

    The idea is to design a simple classic linear power supply that would be controlled by your PIC about the voltage and current. That would require A/D converters but to be very fast, a good designed Sigma-Delta converter may have to be used instead off the classic ADC's.

    That's what is hidden in the Elektor's article I mentioned.

    Ioannis

  5. #5
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Default

    I'm searching for this ELEKTOR info - but seems to be available only for members... Still looking for it.

    Using PWM, I will generate a voltage variation. If I'm right, a MOSFET can be "voltage" controlled; this is not true for a transistor.

    I assume it will be better to use a MOSFET, no?
    Roger

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex View Post
    I'm searching for this ELEKTOR info - but seems to be available only for members... Still looking for it.


    I assume it will be better to use a MOSFET, no?
    Hi, Roger

    Here : http://www.elektor.fr/magazines/2001...1).65895.lynkx

    a P mosfet will be easy to use ... a N Mosfet a bit harder ...

    But there's some more investigation to do with your circuit before throwing it to the wastebox ...

    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
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default

    I repeat again that, your final design might look like a Linear Power Supply.

    As such, a NPN pass transistor is the usual choice. The transistor acts like a voltage follower, so whatever voltage is present at the base, that voltage-0,7 is presented at the emitter, with current amplification of course.

    Ioannis

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


    Did you find this post helpful? Yes | No

    Lightbulb

    Quote Originally Posted by flotulopex View Post

    Ioannis, your math is absolutely correct but when I take my FLUKE87 or my scope, they both show a maximum of 3,45 volts. This has to be, again, one of this famous frontier between theory and real life .

    ?
    Hi,

    IF we consider The 317 has a max ref voltage and a max Iadj current ... those readings are possible ... ( your 317 is "not so good" , Roger !!! )
    But that also mean ANOTHER 317 could damage the DS 1804 ...

    this design won't be good for series production ...

    Now, Roger, there's another point to verify ... your PCB tracks !!! are they sufficient to hold the required current ...
    And overall ... did you use a "star" config to link your ground tracks ???
    ( maximum care for R5 ground return path ...)

    Alain
    Last edited by Acetronics2; - 3rd December 2007 at 11:28.
    ************************************************** ***********************
    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 " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by mister_e View Post
    Weird idea this Zener Z1 so far...

    But yeah i'll second the PWM idea.. maybe just remove the LM317 as well and use a Mosfet/Transistor instead and do everything in software. a 12F683 would be perfect for that.

    1 current senses
    1 voltage sense
    1 PWM and
    remaining pins for leds and maybe other safety inputs.
    Hi,

    I didn't remember it at first ... but the 317 can be used as a "switching transistor" for PWM !!! ... just do not use too high a PWM frequency and it will work rather pretty ...

    YES ... the "off" state voltage will be 1.25 v ... but, here, no issue with that !!!

    do not laugh ! ... I have the proof ... it was ... 18 years ago, for a model train controller !!!

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

  10. #10
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default

    Very nice! State-of-the-art design! PWM with 1,25 offset!

    I'd like to have one! He, he.

    By the way have a look at the LM2576T-ADJ chip that is a 3A switcher.

    Very cheap and very easy! And adjustable too!

    Ioannis
    Last edited by Ioannis; - 4th December 2007 at 11:18.

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


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by Ioannis View Post
    Very nice! State-of-the-art design! PWM with 1,25 offset!


    Ioannis

    Hi,hi ...

    no problem here ... due the batt !!! the BY 500 will be reverse polarized during 1.25v level ...so, no current flowing ...

    CQFD !

    I can mail you a copy of the scheme ... just ask !


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

  12. #12
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    I can mail you a copy of the scheme ... just ask !
    Yeah, why not. Always collecting ideas!

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    Yeah, why not. Always collecting ideas!

    Ioannis
    So, just have a look to LM317 datasheet ... NS gives 2 examples of 317 based switching regulators page 17 ...

    some kind of humour ... isn't it ???

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

  14. #14
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default

    He,he. Alain, the great!

    Ioannis

Similar Threads

  1. Replies: 14
    Last Post: - 6th March 2011, 06:08
  2. 18F2520 ADC issue
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 24th August 2009, 17:11
  3. Battery powered applications
    By NavMicroSystems in forum Off Topic
    Replies: 7
    Last Post: - 22nd June 2009, 08:12
  4. PIC backup power supply: switchover ???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th April 2008, 18:05
  5. Decent 24 volt Pic power supply
    By rwskinner in forum Schematics
    Replies: 7
    Last Post: - 18th December 2006, 13: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