Reply by Jim Thompson May 11, 20132013-05-11
On Sat, 11 May 2013 14:19:20 -0400, Uncle Steve <stevet810@gmail.com>
wrote:

>On Sat, May 11, 2013 at 10:46:47AM -0700, Jim Thompson wrote: >> On Sat, 11 May 2013 13:19:33 -0400, Uncle Steve <stevet810@gmail.com> >> wrote: >> >> >On Sat, May 11, 2013 at 09:19:40AM -0700, Jim Thompson wrote: >> >> On Fri, 10 May 2013 23:14:42 -0400, Uncle Steve <stevet810@gmail.com> >> >> wrote: >> >> >> [snip] >> > >> >> (My ignition system designs work down to 3V cranking voltage ;-) >> > >> >Heh. That's a lot of amps. >> >> Think Detroit, -20&#4294967295;F, parked outside overnight. I've observed 4V >> myself :-)
No, no! While cranking a cold engine.
> >Oh, you were referring to the battery chemistry hysteresis. I would >never have imagined that car batteries dropped out that much. > >> >> >> These are the TC curves provided to me by GM and Ford back in the day >> >> >> when I designed alternator regulators. >> >> >> >> >> >> Your regulator should approximate such a TC if you want to hold a >> >> >> reasonable charge on your lead-acid battery. >> >> > >> >> >I suspect the thing will charge reasonably quickly with a fixed- >> >> >voltage set to the float charge level, but I have numbers from 13.1V >> >> >to 13.5V for the float from different sources. It may depend a little >> >> >on the battery. For EOC float, it may be easier to specify 50-150mA >> >> >or so charge current. >> >> >> >> You're in for a surprise... holding at 13.2V will give you a weenie >> >> capability charge. >> > >> >I haven't decided on a charge voltage yet. Once I sort of have the >> >electronics where I want them, I'll run a discharge/charge cycle and >> >watch what actually occurs. If I start with 15V supply and PWM, the >> >battery voltage can be set to whatever is appropriate given battery >> >state-of-charge. I'm ready for surprises. >> > >> >> >> What information do you actually need fed back to your >> >> >> microcontroller? >> >> > >> >> >Supply voltage, battery voltage, sense resistor voltage, battery >> >> >temperature. It would be nice to have load voltage and load current >> >> >as well, but I could do without if I had to since my NAS is a static >> >> >load. >> >> >> >> I still don't understand what you are trying accomplish. Charging a >> >> lead acid battery to a proper level is downright trivial with >> >> stand-alone simple-minded circuitry. How do you plan to measure >> >> battery temperature? >> > >> >I'll tape a thermistor to the case, or maybe I'll use some glue. >> > >> >This is a good first project with the microcontroller precisely >> >because it is so trivial. I could go out and buy a small UPS for less >> >than a hundred bucks but where's the fun in that? I'll probably write >> >it up afterwards, so you'll be able to see what it looks like then. >> > >> >> >Serial I/O is one pin since as I'm only doing TX. The ATtiny85 I was >> >> >trying out has 5 I/O pins if I keep _RESET_, so I'll have to multiplex >> >> >all those measurements on one A/D channel, which actually simplifies >> >> >the software a lot. Should be doable, assuming I can make the >> >> >electronics work properly. I don't know if any extra safety devices >> >> >or sensors are recommended, but with three select bits available, >> >> >there are options. Sound reasonable? >> >> >> >> I don't speak micros... I hire that out. I have a long-time buddy in >> >> Columbus, OH, who adds any needed digital and bus needs (SPI, I2C, >> >> CAN, etc.) to my analog chips and he also does my layouts. He has a >> >> Master's from Ohio State and is a whiz at Verilog and VHDL. (Let me >> >> know if you have such needs, and I'll provide contact information.) >> > >> >I'm just getting started with microcontrollers, but I already know >> >what I'm doing in so far as programming is concerned. It was >> >surprisingly easy to do the serial code; the Atmel part is full of >> >features that make everything super-easy without a lot of external >> >electronics. >> > >> > >> >Regards, >> > >> >Uncle Steve >> >> I'd still go a buck regulator (with a limited current capability), and >> fudge in the TC curve. > >This Atmel application note describes a development board using such a >circuit. I suppose a buck regulator is common in these applications. > >http://www.atmel.com/Images/doc8088.pdf
Yep. Just replace the output bank of capacitors with your battery.
> > > >Regards, > >Uncle Steve
...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
Reply by Uncle Steve May 11, 20132013-05-11
On Sat, May 11, 2013 at 10:46:47AM -0700, Jim Thompson wrote:
> On Sat, 11 May 2013 13:19:33 -0400, Uncle Steve <stevet810@gmail.com> > wrote: > > >On Sat, May 11, 2013 at 09:19:40AM -0700, Jim Thompson wrote: > >> On Fri, 10 May 2013 23:14:42 -0400, Uncle Steve <stevet810@gmail.com> > >> wrote: > >> > [snip] > > > >> (My ignition system designs work down to 3V cranking voltage ;-) > > > >Heh. That's a lot of amps. > > Think Detroit, -20&#4294967295;F, parked outside overnight. I've observed 4V > myself :-)
Oh, you were referring to the battery chemistry hysteresis. I would never have imagined that car batteries dropped out that much.
> >> >> These are the TC curves provided to me by GM and Ford back in the day > >> >> when I designed alternator regulators. > >> >> > >> >> Your regulator should approximate such a TC if you want to hold a > >> >> reasonable charge on your lead-acid battery. > >> > > >> >I suspect the thing will charge reasonably quickly with a fixed- > >> >voltage set to the float charge level, but I have numbers from 13.1V > >> >to 13.5V for the float from different sources. It may depend a little > >> >on the battery. For EOC float, it may be easier to specify 50-150mA > >> >or so charge current. > >> > >> You're in for a surprise... holding at 13.2V will give you a weenie > >> capability charge. > > > >I haven't decided on a charge voltage yet. Once I sort of have the > >electronics where I want them, I'll run a discharge/charge cycle and > >watch what actually occurs. If I start with 15V supply and PWM, the > >battery voltage can be set to whatever is appropriate given battery > >state-of-charge. I'm ready for surprises. > > > >> >> What information do you actually need fed back to your > >> >> microcontroller? > >> > > >> >Supply voltage, battery voltage, sense resistor voltage, battery > >> >temperature. It would be nice to have load voltage and load current > >> >as well, but I could do without if I had to since my NAS is a static > >> >load. > >> > >> I still don't understand what you are trying accomplish. Charging a > >> lead acid battery to a proper level is downright trivial with > >> stand-alone simple-minded circuitry. How do you plan to measure > >> battery temperature? > > > >I'll tape a thermistor to the case, or maybe I'll use some glue. > > > >This is a good first project with the microcontroller precisely > >because it is so trivial. I could go out and buy a small UPS for less > >than a hundred bucks but where's the fun in that? I'll probably write > >it up afterwards, so you'll be able to see what it looks like then. > > > >> >Serial I/O is one pin since as I'm only doing TX. The ATtiny85 I was > >> >trying out has 5 I/O pins if I keep _RESET_, so I'll have to multiplex > >> >all those measurements on one A/D channel, which actually simplifies > >> >the software a lot. Should be doable, assuming I can make the > >> >electronics work properly. I don't know if any extra safety devices > >> >or sensors are recommended, but with three select bits available, > >> >there are options. Sound reasonable? > >> > >> I don't speak micros... I hire that out. I have a long-time buddy in > >> Columbus, OH, who adds any needed digital and bus needs (SPI, I2C, > >> CAN, etc.) to my analog chips and he also does my layouts. He has a > >> Master's from Ohio State and is a whiz at Verilog and VHDL. (Let me > >> know if you have such needs, and I'll provide contact information.) > > > >I'm just getting started with microcontrollers, but I already know > >what I'm doing in so far as programming is concerned. It was > >surprisingly easy to do the serial code; the Atmel part is full of > >features that make everything super-easy without a lot of external > >electronics. > > > > > >Regards, > > > >Uncle Steve > > I'd still go a buck regulator (with a limited current capability), and > fudge in the TC curve.
This Atmel application note describes a development board using such a circuit. I suppose a buck regulator is common in these applications. http://www.atmel.com/Images/doc8088.pdf Regards, Uncle Steve -- There should be a special word in the English language to identify people who create problems and then turn around and offer up their own tailor-made bogus non-solutions designed to completely avoid the root causes of the situation under consideration. 'Traitor' might be a good choice, but lacks the requisite specificity. One of the problems with contemporary English is it lacks many such words that would otherwise categorically identify certain kinds of person, place, or thing -- making it difficult or impossible to think analytically about such objects. These shortcomings of the English lexicon are representative of Orwellian linguistics at work in the real world.
Reply by Jim Thompson May 11, 20132013-05-11
On Sat, 11 May 2013 13:19:33 -0400, Uncle Steve <stevet810@gmail.com>
wrote:

>On Sat, May 11, 2013 at 09:19:40AM -0700, Jim Thompson wrote: >> On Fri, 10 May 2013 23:14:42 -0400, Uncle Steve <stevet810@gmail.com> >> wrote: >>
[snip]
> >> (My ignition system designs work down to 3V cranking voltage ;-) > >Heh. That's a lot of amps.
Think Detroit, -20&#4294967295;F, parked outside overnight. I've observed 4V myself :-)
> >> >> These are the TC curves provided to me by GM and Ford back in the day >> >> when I designed alternator regulators. >> >> >> >> Your regulator should approximate such a TC if you want to hold a >> >> reasonable charge on your lead-acid battery. >> > >> >I suspect the thing will charge reasonably quickly with a fixed- >> >voltage set to the float charge level, but I have numbers from 13.1V >> >to 13.5V for the float from different sources. It may depend a little >> >on the battery. For EOC float, it may be easier to specify 50-150mA >> >or so charge current. >> >> You're in for a surprise... holding at 13.2V will give you a weenie >> capability charge. > >I haven't decided on a charge voltage yet. Once I sort of have the >electronics where I want them, I'll run a discharge/charge cycle and >watch what actually occurs. If I start with 15V supply and PWM, the >battery voltage can be set to whatever is appropriate given battery >state-of-charge. I'm ready for surprises. > >> >> What information do you actually need fed back to your >> >> microcontroller? >> > >> >Supply voltage, battery voltage, sense resistor voltage, battery >> >temperature. It would be nice to have load voltage and load current >> >as well, but I could do without if I had to since my NAS is a static >> >load. >> >> I still don't understand what you are trying accomplish. Charging a >> lead acid battery to a proper level is downright trivial with >> stand-alone simple-minded circuitry. How do you plan to measure >> battery temperature? > >I'll tape a thermistor to the case, or maybe I'll use some glue. > >This is a good first project with the microcontroller precisely >because it is so trivial. I could go out and buy a small UPS for less >than a hundred bucks but where's the fun in that? I'll probably write >it up afterwards, so you'll be able to see what it looks like then. > >> >Serial I/O is one pin since as I'm only doing TX. The ATtiny85 I was >> >trying out has 5 I/O pins if I keep _RESET_, so I'll have to multiplex >> >all those measurements on one A/D channel, which actually simplifies >> >the software a lot. Should be doable, assuming I can make the >> >electronics work properly. I don't know if any extra safety devices >> >or sensors are recommended, but with three select bits available, >> >there are options. Sound reasonable? >> >> I don't speak micros... I hire that out. I have a long-time buddy in >> Columbus, OH, who adds any needed digital and bus needs (SPI, I2C, >> CAN, etc.) to my analog chips and he also does my layouts. He has a >> Master's from Ohio State and is a whiz at Verilog and VHDL. (Let me >> know if you have such needs, and I'll provide contact information.) > >I'm just getting started with microcontrollers, but I already know >what I'm doing in so far as programming is concerned. It was >surprisingly easy to do the serial code; the Atmel part is full of >features that make everything super-easy without a lot of external >electronics. > > >Regards, > >Uncle Steve
I'd still go a buck regulator (with a limited current capability), and fudge in the TC curve. ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
Reply by Uncle Steve May 11, 20132013-05-11
On Sat, May 11, 2013 at 09:19:40AM -0700, Jim Thompson wrote:
> On Fri, 10 May 2013 23:14:42 -0400, Uncle Steve <stevet810@gmail.com> > wrote: > > >On Fri, May 10, 2013 at 07:27:39PM -0700, Jim Thompson wrote: > >> On Mon, 06 May 2013 12:01:44 -0400, Uncle Steve <stevet810@gmail.com> > >> wrote: > >> > >> >Back again for some more abuse. > >> > > >> >I'm building a 12V battery charger that will be controlled by a small > >> >low-power microcontroller. I've not yet hooked up the > >> >microcontroller, but most of the code is written and I'm trying to > >> >finalize the charger electronics before I hook it up. > >> > > >> [snip] > >> > >> Remembered where I had stashed some ancient data... > >> > >> http://www.analog-innovations.com/SED/AlternatorRegulatorTC.pdf > > > >What, no NDA? Holy crap! > > No NDA? You missed the dates. This was 46+ years ago ;-)
The lawyers have been busy since that time. 46 years ago farmers could buy dynamite to remove tree stumps on their property. Kids these days would find "Rocket Ship Galileo" utterly alien. Building rocket motors? Radar? Preposterous. We're all so much safer now that all that icky science and engineering is restricted to licensed and regulated corporate facilities.
> "Jerry" Stenklyft was a nice engineer/friend from Anderson, Indiana, > who, while visiting Motorola, would come over to my house, help me lay > floor tile, then have dinner with us ;-) > > He died in 2004 at age 70.
Condolences. I suppose he didn't have his head frozen to be stored and tended to by ultra-reliable robots at some autonomous cryogenic facility in the far North.
> >I don't want to have to install plumbing to > >keep the water level above the top of the plates. > > That's what following the TC curve does for you... minimizes water > usage. > > BTW, the flattening at low and high temperatures is NOT lead-acid > physics, it's to keep from burning out head lights when cold, and to > minimize dimming when hot. A straight curve is quite adequate for > your purposes.
I should think so. My reading on the matter tells me the key to battery-longevity are gentle charge/discharge curves, minimizing temperature excursions, and of course keeping them fully charged.
> (My ignition system designs work down to 3V cranking voltage ;-)
Heh. That's a lot of amps.
> >> These are the TC curves provided to me by GM and Ford back in the day > >> when I designed alternator regulators. > >> > >> Your regulator should approximate such a TC if you want to hold a > >> reasonable charge on your lead-acid battery. > > > >I suspect the thing will charge reasonably quickly with a fixed- > >voltage set to the float charge level, but I have numbers from 13.1V > >to 13.5V for the float from different sources. It may depend a little > >on the battery. For EOC float, it may be easier to specify 50-150mA > >or so charge current. > > You're in for a surprise... holding at 13.2V will give you a weenie > capability charge.
I haven't decided on a charge voltage yet. Once I sort of have the electronics where I want them, I'll run a discharge/charge cycle and watch what actually occurs. If I start with 15V supply and PWM, the battery voltage can be set to whatever is appropriate given battery state-of-charge. I'm ready for surprises.
> >> What information do you actually need fed back to your > >> microcontroller? > > > >Supply voltage, battery voltage, sense resistor voltage, battery > >temperature. It would be nice to have load voltage and load current > >as well, but I could do without if I had to since my NAS is a static > >load. > > I still don't understand what you are trying accomplish. Charging a > lead acid battery to a proper level is downright trivial with > stand-alone simple-minded circuitry. How do you plan to measure > battery temperature?
I'll tape a thermistor to the case, or maybe I'll use some glue. This is a good first project with the microcontroller precisely because it is so trivial. I could go out and buy a small UPS for less than a hundred bucks but where's the fun in that? I'll probably write it up afterwards, so you'll be able to see what it looks like then.
> >Serial I/O is one pin since as I'm only doing TX. The ATtiny85 I was > >trying out has 5 I/O pins if I keep _RESET_, so I'll have to multiplex > >all those measurements on one A/D channel, which actually simplifies > >the software a lot. Should be doable, assuming I can make the > >electronics work properly. I don't know if any extra safety devices > >or sensors are recommended, but with three select bits available, > >there are options. Sound reasonable? > > I don't speak micros... I hire that out. I have a long-time buddy in > Columbus, OH, who adds any needed digital and bus needs (SPI, I2C, > CAN, etc.) to my analog chips and he also does my layouts. He has a > Master's from Ohio State and is a whiz at Verilog and VHDL. (Let me > know if you have such needs, and I'll provide contact information.)
I'm just getting started with microcontrollers, but I already know what I'm doing in so far as programming is concerned. It was surprisingly easy to do the serial code; the Atmel part is full of features that make everything super-easy without a lot of external electronics. Regards, Uncle Steve -- There should be a special word in the English language to identify people who create problems and then turn around and offer up their own tailor-made bogus non-solutions designed to completely avoid the root causes of the situation under consideration. 'Traitor' might be a good choice, but lacks the requisite specificity. One of the problems with contemporary English is it lacks many such words that would otherwise categorically identify certain kinds of person, place, or thing -- making it difficult or impossible to think analytically about such objects. These shortcomings of the English lexicon are representative of Orwellian linguistics at work in the real world.
Reply by Jim Thompson May 11, 20132013-05-11
On Fri, 10 May 2013 23:14:42 -0400, Uncle Steve <stevet810@gmail.com>
wrote:

>On Fri, May 10, 2013 at 07:27:39PM -0700, Jim Thompson wrote: >> On Mon, 06 May 2013 12:01:44 -0400, Uncle Steve <stevet810@gmail.com> >> wrote: >> >> >Back again for some more abuse. >> > >> >I'm building a 12V battery charger that will be controlled by a small >> >low-power microcontroller. I've not yet hooked up the >> >microcontroller, but most of the code is written and I'm trying to >> >finalize the charger electronics before I hook it up. >> > >> [snip] >> >> Remembered where I had stashed some ancient data... >> >> http://www.analog-innovations.com/SED/AlternatorRegulatorTC.pdf > >What, no NDA? Holy crap!
No NDA? You missed the dates. This was 46+ years ago ;-) "Jerry" Stenklyft was a nice engineer/friend from Anderson, Indiana, who, while visiting Motorola, would come over to my house, help me lay floor tile, then have dinner with us ;-) He died in 2004 at age 70.
>I don't want to have to install plumbing to >keep the water level above the top of the plates.
That's what following the TC curve does for you... minimizes water usage. BTW, the flattening at low and high temperatures is NOT lead-acid physics, it's to keep from burning out head lights when cold, and to minimize dimming when hot. A straight curve is quite adequate for your purposes. (My ignition system designs work down to 3V cranking voltage ;-)
> >> These are the TC curves provided to me by GM and Ford back in the day >> when I designed alternator regulators. >> >> Your regulator should approximate such a TC if you want to hold a >> reasonable charge on your lead-acid battery. > >I suspect the thing will charge reasonably quickly with a fixed- >voltage set to the float charge level, but I have numbers from 13.1V >to 13.5V for the float from different sources. It may depend a little >on the battery. For EOC float, it may be easier to specify 50-150mA >or so charge current.
You're in for a surprise... holding at 13.2V will give you a weenie capability charge.
> >> What information do you actually need fed back to your >> microcontroller? > >Supply voltage, battery voltage, sense resistor voltage, battery >temperature. It would be nice to have load voltage and load current >as well, but I could do without if I had to since my NAS is a static >load.
I still don't understand what you are trying accomplish. Charging a lead acid battery to a proper level is downright trivial with stand-alone simple-minded circuitry. How do you plan to measure battery temperature?
> >Serial I/O is one pin since as I'm only doing TX. The ATtiny85 I was >trying out has 5 I/O pins if I keep _RESET_, so I'll have to multiplex >all those measurements on one A/D channel, which actually simplifies >the software a lot. Should be doable, assuming I can make the >electronics work properly. I don't know if any extra safety devices >or sensors are recommended, but with three select bits available, >there are options. Sound reasonable?
I don't speak micros... I hire that out. I have a long-time buddy in Columbus, OH, who adds any needed digital and bus needs (SPI, I2C, CAN, etc.) to my analog chips and he also does my layouts. He has a Master's from Ohio State and is a whiz at Verilog and VHDL. (Let me know if you have such needs, and I'll provide contact information.)
> > >Regards, > >Uncle Steve
...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
Reply by Uncle Steve May 11, 20132013-05-11
On Fri, May 10, 2013 at 07:27:39PM -0700, Jim Thompson wrote:
> On Mon, 06 May 2013 12:01:44 -0400, Uncle Steve <stevet810@gmail.com> > wrote: > > >Back again for some more abuse. > > > >I'm building a 12V battery charger that will be controlled by a small > >low-power microcontroller. I've not yet hooked up the > >microcontroller, but most of the code is written and I'm trying to > >finalize the charger electronics before I hook it up. > > > [snip] > > Remembered where I had stashed some ancient data... > > http://www.analog-innovations.com/SED/AlternatorRegulatorTC.pdf
What, no NDA? Holy crap! I don't want to have to install plumbing to keep the water level above the top of the plates.
> These are the TC curves provided to me by GM and Ford back in the day > when I designed alternator regulators. > > Your regulator should approximate such a TC if you want to hold a > reasonable charge on your lead-acid battery.
I suspect the thing will charge reasonably quickly with a fixed- voltage set to the float charge level, but I have numbers from 13.1V to 13.5V for the float from different sources. It may depend a little on the battery. For EOC float, it may be easier to specify 50-150mA or so charge current.
> What information do you actually need fed back to your > microcontroller?
Supply voltage, battery voltage, sense resistor voltage, battery temperature. It would be nice to have load voltage and load current as well, but I could do without if I had to since my NAS is a static load. Serial I/O is one pin since as I'm only doing TX. The ATtiny85 I was trying out has 5 I/O pins if I keep _RESET_, so I'll have to multiplex all those measurements on one A/D channel, which actually simplifies the software a lot. Should be doable, assuming I can make the electronics work properly. I don't know if any extra safety devices or sensors are recommended, but with three select bits available, there are options. Sound reasonable? Regards, Uncle Steve -- There should be a special word in the English language to identify people who create problems and then turn around and offer up their own tailor-made bogus non-solutions designed to completely avoid the root causes of the situation under consideration. 'Traitor' might be a good choice, but lacks the requisite specificity. One of the problems with contemporary English is it lacks many such words that would otherwise categorically identify certain kinds of person, place, or thing -- making it difficult or impossible to think analytically about such objects. These shortcomings of the English lexicon are representative of Orwellian linguistics at work in the real world.
Reply by Jim Thompson May 10, 20132013-05-10
On Mon, 06 May 2013 12:01:44 -0400, Uncle Steve <stevet810@gmail.com>
wrote:

>Back again for some more abuse. > >I'm building a 12V battery charger that will be controlled by a small >low-power microcontroller. I've not yet hooked up the >microcontroller, but most of the code is written and I'm trying to >finalize the charger electronics before I hook it up. >
[snip] Remembered where I had stashed some ancient data... http://www.analog-innovations.com/SED/AlternatorRegulatorTC.pdf These are the TC curves provided to me by GM and Ford back in the day when I designed alternator regulators. Your regulator should approximate such a TC if you want to hold a reasonable charge on your lead-acid battery. What information do you actually need fed back to your microcontroller? ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
Reply by Uncle Steve May 10, 20132013-05-10
On Fri, May 10, 2013 at 01:27:21PM -0400, ehsjr wrote:
> On 5/8/2013 9:49 PM, Uncle Steve wrote: > >On Wed, May 08, 2013 at 03:56:44PM -0700, Jim Thompson wrote: > >>On Wed, 08 May 2013 17:55:36 -0400, Uncle Steve <stevet810@gmail.com> > >>wrote: > >> > >>>On Wed, May 08, 2013 at 02:19:05PM -0700, Jim Thompson wrote: > >>>>On Wed, 08 May 2013 10:36:21 -0400, Uncle Steve <stevet810@gmail.com> > >>>>wrote: > >>>> > >>>>>On Wed, May 08, 2013 at 04:44:25PM +0800, Rheilly Phoull wrote: > >>>>>>On 07/05/13 10:57, Jim Thompson wrote: > >>>>[snip] > >>>>>>> > >>>>>>>How about something like this... > >>>>>>> > >>>>>>> http://www.analog-innovations.com/SED/ChargerForUncleSteve.pdf > >>>>>>> > >>>>>>> ...Jim Thompson > >>>>>>> > >>>>>>If Uncle is using a micro to control it, why not just control a mosfet > >>>>>>with the PWM output ??? > >>>>> > >>>>>I have the app notes for the LM338 and such, which show simple charger > >>>>>circuits like that, but the fact of the matter is I have a couple of > >>>>>3055s and this project is as much about learning some basics as it is > >>>>>about charging a battery. For my requirements it is easier to use > >>>>>what I have on hand than try to select among parts that I don't really > >>>>>understand. If there were a fundamental reason why the 3055 is bad > >>>>>for this application I might consider a mosfet, but I don't see why I > >>>>>should bother. > >>>>> > >>>>>Regards, > >>>>> > >>>>>Uncle Steve > >>>> > >>>>The 3055 has a minimum beta of 20 at 4 Amps, which you spoke of at one > >>>>point in this thread, which means the base current that must be > >>>>supplied is 200mA... not a big deal EXCEPT the driving device will see > >>>>considerable dissipation. > >>> > >>>I'm starting to appreciate these factors. Yet, after removing the > >>>4004 diode as superfluous and changing the .5 ohm sense resistor to > >>>.1 ohms, I'm seeing 3A output which is pretty much the capacity of the > >>>power supply. The 3055 runs cooler as well; not sure what that means. > >>> > >>>Now I have to use an op-amp comparator to measure the current to get > >>>decent resolution. > >>> > >>>>You ought to go buy the TO-3 version of the LM317 for the circuit I > >>>>suggested and avoid the magic smoke ;-) > >>> > >>>The literature doesn't specify the switching frequency, rise time, > >>>etc. for that part. > >>> > >>> > >>>Regards, > >>> > >>>Uncle Steve > >> > >>I'm curious why you need to "switch" it? Isn't your only concern the > >>_average_ current, as determined by the PWM? > >> > >>All you need is a low-pass R/C between the micro and the base of Q1 > >>(as noted in the text box on the schematic). > >> > >>I'll run a simulation of that and repost later (under this same link). > >> > >> http://www.analog-innovations.com/SED/ChargerForUncleSteve.pdf > > > >You're probably correct, except the rating of the LM317 is half of > >what I need. > > I would urge you to follow JT's advice. Build his circuit. > > It is easy to add a pass element to get higher current later on. > Here's an example diagram to give you an idea how it's done: > > > MJ2955 > Vin ---+----> ------------------+-----------> Vout > | e\ /c | > [3R] --- | > | | ----- | > +------+---Vin|LM317|Vout---+-------+ > | ----- | | > | Adj [240R] | > | | | | > | +----------+ | > | | | > [.22uF] / [.1uF] > | \ | > | 5K /<---+ | > | \ | | > | / | | > | | | | > Gnd ----------+---------+----+-------------+
Actually, I recalled seeing this circuit in the app notes, but only after I replied.
> Current drawn from the 317 causes a voltage drop across the > 3 ohm resistor. When that voltage drop is below about .6 volts, > the 2955 conducts no e-c current. When the voltage drop rises > to about .6 volts the 2955 begins to conduct e-c current. The > more current drawn by the load, the greater the e-c current. > The e-c current passes around (not through) the 317 so the 2955 > is called a pass element or pass transistor. > > You can also do it with your 3055, but you need an inverting > stage to its base. See "High Current Adjustable Regulator" > diagram in the datasheet for the 317 for an example of using > an NPN pass element. They use 3 195's in that diagram, but > you need only the single 3055.
That's the one.
> >It's an interesting idea to use PWM to control a voltage > >regulator, but it's a completely different approach from what I > >intended to build. > > In reading your various posts it seems clear to me that you are > expending a lot of effort and have a lot of interest in this, which > is all to the good. But I also see that you are speeding by some > points where you could benefit by working to understand them, > rather than passing them by - which is what prompted me to reply.
That's the understatement of the week. The problem is there are too many points, here and in the various bits of literature I've read, to study in any reasonable length of time.
> >Perhaps it will be worthwhile to refactor your > >design and substitute a LM338, which has the requisite capacity. > > No perhaps about it, it is definitely worthwhile. The earlier > part of my reply suggests how you can do it with parts on > hand, then later on add a pass element, or, as you mention, > substitute a 338. > > >For > >now I think I will fool around with the existing arrangement. > > > >Even at 3A output, the 3055 doesn't appear to be saturated as Vce is > >only .9V. I picked up a couple of BC517 which have a beta of 30000 > >and 1A current capacity. Perhaps that will be more effective than the > >BC557 in the pseudo-Sziklai arrangement. > > > > > > Well, you may get it to work, but you won't learn why > it does, or why the previous attempts didn't. It is > my impression that you are leap frogging some of the > basics. Sometimes throwing bigger/better/stronger parts > at a problem is not in your best interests.
I'm more interested in using the different parts to see how they affect the whole thing. I think I am at the stage where it is becoming practical to do that sort of experimentation. Regards, Uncle Steve -- There should be a special word in the English language to identify people who create problems and then turn around and offer up their own tailor-made bogus non-solutions designed to completely avoid the root causes of the situation under consideration. 'Traitor' might be a good choice, but lacks the requisite specificity. One of the problems with contemporary English is it lacks many such words that would otherwise categorically identify certain kinds of person, place, or thing -- making it difficult or impossible to think analytically about such objects. These shortcomings of the English lexicon are representative of Orwellian linguistics at work in the real world.
Reply by ehsjr May 10, 20132013-05-10
On 5/8/2013 9:49 PM, Uncle Steve wrote:
> On Wed, May 08, 2013 at 03:56:44PM -0700, Jim Thompson wrote: >> On Wed, 08 May 2013 17:55:36 -0400, Uncle Steve <stevet810@gmail.com> >> wrote: >> >>> On Wed, May 08, 2013 at 02:19:05PM -0700, Jim Thompson wrote: >>>> On Wed, 08 May 2013 10:36:21 -0400, Uncle Steve <stevet810@gmail.com> >>>> wrote: >>>> >>>>> On Wed, May 08, 2013 at 04:44:25PM +0800, Rheilly Phoull wrote: >>>>>> On 07/05/13 10:57, Jim Thompson wrote: >>>> [snip] >>>>>>> >>>>>>> How about something like this... >>>>>>> >>>>>>> http://www.analog-innovations.com/SED/ChargerForUncleSteve.pdf >>>>>>> >>>>>>> ...Jim Thompson >>>>>>> >>>>>> If Uncle is using a micro to control it, why not just control a mosfet >>>>>> with the PWM output ??? >>>>> >>>>> I have the app notes for the LM338 and such, which show simple charger >>>>> circuits like that, but the fact of the matter is I have a couple of >>>>> 3055s and this project is as much about learning some basics as it is >>>>> about charging a battery. For my requirements it is easier to use >>>>> what I have on hand than try to select among parts that I don't really >>>>> understand. If there were a fundamental reason why the 3055 is bad >>>>> for this application I might consider a mosfet, but I don't see why I >>>>> should bother. >>>>> >>>>> Regards, >>>>> >>>>> Uncle Steve >>>> >>>> The 3055 has a minimum beta of 20 at 4 Amps, which you spoke of at one >>>> point in this thread, which means the base current that must be >>>> supplied is 200mA... not a big deal EXCEPT the driving device will see >>>> considerable dissipation. >>> >>> I'm starting to appreciate these factors. Yet, after removing the >>> 4004 diode as superfluous and changing the .5 ohm sense resistor to >>> .1 ohms, I'm seeing 3A output which is pretty much the capacity of the >>> power supply. The 3055 runs cooler as well; not sure what that means. >>> >>> Now I have to use an op-amp comparator to measure the current to get >>> decent resolution. >>> >>>> You ought to go buy the TO-3 version of the LM317 for the circuit I >>>> suggested and avoid the magic smoke ;-) >>> >>> The literature doesn't specify the switching frequency, rise time, >>> etc. for that part. >>> >>> >>> Regards, >>> >>> Uncle Steve >> >> I'm curious why you need to "switch" it? Isn't your only concern the >> _average_ current, as determined by the PWM? >> >> All you need is a low-pass R/C between the micro and the base of Q1 >> (as noted in the text box on the schematic). >> >> I'll run a simulation of that and repost later (under this same link). >> >> http://www.analog-innovations.com/SED/ChargerForUncleSteve.pdf > > You're probably correct, except the rating of the LM317 is half of > what I need.
I would urge you to follow JT's advice. Build his circuit. It is easy to add a pass element to get higher current later on. Here's an example diagram to give you an idea how it's done: MJ2955 Vin ---+----> ------------------+-----------> Vout | e\ /c | [3R] --- | | | ----- | +------+---Vin|LM317|Vout---+-------+ | ----- | | | Adj [240R] | | | | | | +----------+ | | | | [.22uF] / [.1uF] | \ | | 5K /<---+ | | \ | | | / | | | | | | Gnd ----------+---------+----+-------------+ Current drawn from the 317 causes a voltage drop across the 3 ohm resistor. When that voltage drop is below about .6 volts, the 2955 conducts no e-c current. When the voltage drop rises to about .6 volts the 2955 begins to conduct e-c current. The more current drawn by the load, the greater the e-c current. The e-c current passes around (not through) the 317 so the 2955 is called a pass element or pass transistor. You can also do it with your 3055, but you need an inverting stage to its base. See "High Current Adjustable Regulator" diagram in the datasheet for the 317 for an example of using an NPN pass element. They use 3 195's in that diagram, but you need only the single 3055.
> It's an interesting idea to use PWM to control a voltage > regulator, but it's a completely different approach from what I > intended to build.
In reading your various posts it seems clear to me that you are expending a lot of effort and have a lot of interest in this, which is all to the good. But I also see that you are speeding by some points where you could benefit by working to understand them, rather than passing them by - which is what prompted me to reply.
> Perhaps it will be worthwhile to refactor your > design and substitute a LM338, which has the requisite capacity.
No perhaps about it, it is definitely worthwhile. The earlier part of my reply suggests how you can do it with parts on hand, then later on add a pass element, or, as you mention, substitute a 338.
> For > now I think I will fool around with the existing arrangement. > > Even at 3A output, the 3055 doesn't appear to be saturated as Vce is > only .9V. I picked up a couple of BC517 which have a beta of 30000 > and 1A current capacity. Perhaps that will be more effective than the > BC557 in the pseudo-Sziklai arrangement. > >
Well, you may get it to work, but you won't learn why it does, or why the previous attempts didn't. It is my impression that you are leap frogging some of the basics. Sometimes throwing bigger/better/stronger parts at a problem is not in your best interests. Ed
> > Regards, > > Uncle Steve >
Reply by Uncle Steve May 8, 20132013-05-08
On Wed, May 08, 2013 at 03:56:44PM -0700, Jim Thompson wrote:
> On Wed, 08 May 2013 17:55:36 -0400, Uncle Steve <stevet810@gmail.com> > wrote: > > >On Wed, May 08, 2013 at 02:19:05PM -0700, Jim Thompson wrote: > >> On Wed, 08 May 2013 10:36:21 -0400, Uncle Steve <stevet810@gmail.com> > >> wrote: > >> > >> >On Wed, May 08, 2013 at 04:44:25PM +0800, Rheilly Phoull wrote: > >> >> On 07/05/13 10:57, Jim Thompson wrote: > >> [snip] > >> >> > > >> >> >How about something like this... > >> >> > > >> >> > http://www.analog-innovations.com/SED/ChargerForUncleSteve.pdf > >> >> > > >> >> > ...Jim Thompson > >> >> > > >> >> If Uncle is using a micro to control it, why not just control a mosfet > >> >> with the PWM output ??? > >> > > >> >I have the app notes for the LM338 and such, which show simple charger > >> >circuits like that, but the fact of the matter is I have a couple of > >> >3055s and this project is as much about learning some basics as it is > >> >about charging a battery. For my requirements it is easier to use > >> >what I have on hand than try to select among parts that I don't really > >> >understand. If there were a fundamental reason why the 3055 is bad > >> >for this application I might consider a mosfet, but I don't see why I > >> >should bother. > >> > > >> >Regards, > >> > > >> >Uncle Steve > >> > >> The 3055 has a minimum beta of 20 at 4 Amps, which you spoke of at one > >> point in this thread, which means the base current that must be > >> supplied is 200mA... not a big deal EXCEPT the driving device will see > >> considerable dissipation. > > > >I'm starting to appreciate these factors. Yet, after removing the > >4004 diode as superfluous and changing the .5 ohm sense resistor to > >.1 ohms, I'm seeing 3A output which is pretty much the capacity of the > >power supply. The 3055 runs cooler as well; not sure what that means. > > > >Now I have to use an op-amp comparator to measure the current to get > >decent resolution. > > > >> You ought to go buy the TO-3 version of the LM317 for the circuit I > >> suggested and avoid the magic smoke ;-) > > > >The literature doesn't specify the switching frequency, rise time, > >etc. for that part. > > > > > >Regards, > > > >Uncle Steve > > I'm curious why you need to "switch" it? Isn't your only concern the > _average_ current, as determined by the PWM? > > All you need is a low-pass R/C between the micro and the base of Q1 > (as noted in the text box on the schematic). > > I'll run a simulation of that and repost later (under this same link). > > http://www.analog-innovations.com/SED/ChargerForUncleSteve.pdf
You're probably correct, except the rating of the LM317 is half of what I need. It's an interesting idea to use PWM to control a voltage regulator, but it's a completely different approach from what I intended to build. Perhaps it will be worthwhile to refactor your design and substitute a LM338, which has the requisite capacity. For now I think I will fool around with the existing arrangement. Even at 3A output, the 3055 doesn't appear to be saturated as Vce is only .9V. I picked up a couple of BC517 which have a beta of 30000 and 1A current capacity. Perhaps that will be more effective than the BC557 in the pseudo-Sziklai arrangement. Regards, Uncle Steve -- There should be a special word in the English language to identify people who create problems and then turn around and offer up their own tailor-made bogus non-solutions designed to completely avoid the root causes of the situation under consideration. 'Traitor' might be a good choice, but lacks the requisite specificity. One of the problems with contemporary English is it lacks many such words that would otherwise categorically identify certain kinds of person, place, or thing -- making it difficult or impossible to think analytically about such objects. These shortcomings of the English lexicon are representative of Orwellian linguistics at work in the real world.