Previous in Forum: Can we boost any signal???   Next in Forum: Sun Artesyn 300-1359-xx Power Supply
Close
Close
Close
12 comments
Rate Comments: Nested
Power-User
Australia - Member - Igor...pull the switch!!!

Join Date: Apr 2009
Location: Australia, sunny North Queensland
Posts: 380
Good Answers: 12

Circuit Peak Detect Issue with OpAmp

01/17/2010 10:02 PM

G'daY,

Please examine schematic created by B.H.Abbott at LINK

I have made the circuit on a breadoard for the 2A charger. Issue I am encountering is that when both "-" and "+" pins on the OpAmp reach equal voltage, the charge stops and the OpAmp output goes high. Charge is supposed to stop and output switch high when voltage drops on "-" pin relative to the stored peak on the "+" pin.

The "-" reads the battery voltage and the "+" pin stores the peak voltage of the battery. When "-" pin drops in voltage relative to the "+" pin (peak stored voltage of battery) charge is supposed to terminate. But charge stops in my case, when both "-" and "+" pin reach equal voltage.

Any ideas on how to stop the Opamp switching to high when both "-" and "+" pins are equal voltage AND switch high when the "-" pin drops a few miili volts relative to the "+" pin?

The overall transistor switching works correctly for the circuit. The author has not returned an email reply.

Thanks for your help

__________________
CraziestOzzy
Register to Reply
Pathfinder Tags: circuit Detect Peak
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
2
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#1

Re: Circuit Peak Detect issue with Op-Amp

01/17/2010 11:23 PM

C'Ozzy

Sorry but this op-amp is wired in a comparator fashion. Wired in this fashion, as + and - input levels cross each others voltage level it will switch. If +>- then VCC on output lead, if +<- then VEE on output lead. At +≈- then I suspect the original circuit design inadvertently expected the offset voltages and currents of the op-amp to pre-bias your circuity to a usable state. Unless you have a very high resolution multimeter you will not be able to read the input offset voltage difference at the input of this package. I see that a LM758 is specified, so this is a dual op-amp 8 pin package that does not have offset bias pins available. The data sheet says it has a nominal offset voltage of 2mV. I guess you might be able to read this with a good hand held meter.

I've yet to walk completely through the states for how the circuit should work but I do have a quick suggestion. If you add a high value resistor (at least 1 MEG) across pin 1 and pin 2 of the op amp you will now have a comparator with hysteresis, aka a Schmitt trigger. This may make the comparator more predictable in its operation. Doing a quick calculation of your peak hold portion, you should hold the start button down for at least a second to discharge C2.

Noticing the resistance values used, this would be a circuit I would be certain to clean all flux residue off of the board.

I'll check back with you tomorrow, to see if my hazy suggestions or anybody else's helped.

Later

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply Good Answer (Score 2)
Power-User
Australia - Member - Igor...pull the switch!!!

Join Date: Apr 2009
Location: Australia, sunny North Queensland
Posts: 380
Good Answers: 12
#2
In reply to #1

Re: Circuit Peak Detect issue with Op-Amp

01/18/2010 12:53 AM

indeed, what you say is what I see happening. I have tried a 10M hysteresis. Had some unusual results. Will get my oscilloscope and measure what is happening in the real world. I have noted a RESET by holding the switch down and consequently draining the capacitor, will take about 3 sec..

I will post results in the next day if I could add some hysteresis and still maintain the ability to read a drop in voltage on the - pin relative to the peak value on the + pin...to the order of a 3-7mV..

...and your reply was NOT hazy at all!!

__________________
CraziestOzzy
Register to Reply
Commentator

Join Date: Jul 2008
Location: LA, CA
Posts: 97
#3

Re: Circuit Peak Detect issue with OpAmp

01/18/2010 10:51 AM

Is there a reason why your using this schematic? I know there are many others out there, some even by manufacturers. I saw one post where they've noted that you should have a temperature sensor if your using high charging rates... Which would seem logical and safe...

http://www.edaboard.com/ftopic132547.html

Otherwise, I'd check the components.

__________________
Bla - de - bla - de - BLA!!! "That's Me!!!"
Register to Reply
Power-User
Australia - Member - Igor...pull the switch!!!

Join Date: Apr 2009
Location: Australia, sunny North Queensland
Posts: 380
Good Answers: 12
#4
In reply to #3

Re: Circuit Peak Detect issue with OpAmp

01/18/2010 5:01 PM

Thanks for your thoughts. The add-ons such as a clamp switch, better current source, thermo protection, timer will come later. Checking those links out...always never can have enough of those!

I have been tackling this issue of a simple peak detect and hold charger for some time and this schematic has been on the to-do-list for a while now. Surprisingly, there is not much out there on the WWW regards a "working" voltage peak detector system for NiCads without using a dedicated IC or programmed micro-controller. I assumed this one works, as the author has made a prototype. I also have run several simulations before deciding to spend some time on a breadboard and the sim looked promising.

What I can say from my playing with the circuit in the real world since I posted my question, the peak detect portion of the circuit is inefficient along the length of the "+" OpAmp input pin trace. I have removed some voltage leak issues and have also come to find that a clean and steady DC source is vital.

I have a battery on charge now at 300ma and will see what happens...hope it won't fart and wake the missus up

__________________
CraziestOzzy
Register to Reply
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#5
In reply to #4

Re: Circuit Peak Detect issue with OpAmp

01/19/2010 3:42 AM

find that a clean and steady DC source is vital.

Notice that the last thing the designer did was to add the de-coupling cap (C6) on the OpAmp. Of coarse he may have fitted it at the beginning but only added it to the diagram towards the end.

I don't know anything about charging batteries, so, ignore this if it's rubbish. It seems to me that there is an inherent problem with the "method". Charging stops when any one of the cells in the battery reaches full charge. I'm struggling to get my head round it but I think that this effect combined with the "memory" effect in NiCads will cause a vicious circle in which the weakest cell in the battery is the one which determines the end of the charge and discharge cycles, and gradually gets worse. Shouldn't there be a discharge period at the start of the charge cycle.

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply
Power-User
Australia - Member - Igor...pull the switch!!!

Join Date: Apr 2009
Location: Australia, sunny North Queensland
Posts: 380
Good Answers: 12
#7
In reply to #5

Re: Circuit Peak Detect issue with OpAmp

01/19/2010 7:12 AM

Thanks for that...I am aiming towards charging a single battery. I think that is the smart option, considering the many issues charging two or more batteries.

I will be adding a discharge of battery option to the circuit prior to start of charge. I want to get the main idea work first.

Happy to note that I think I have fixed the many issues the circuit has. Will see what happens when I charge a dead flat battery. Will post my idea based on this circuit should everything work as it should. A fully charged battery did turn off the charge as the voltage of the battery dropped 2ms relative to the peak.

Mind you though, after isolating the "+" and "-" OpAmp input pins from each other, treating the OpAmp strictly as a comparator (thanks RedFred), stopping OpAmp input pins from leakage into the battery, reducing leakage from the caps....and on and on I go.

Will post my success or failure tomorrow regards my amended circuit to the one I had issue with. Hope the battery won't fart on me

I honestly thought that the original circuit I linked to was a working one, as he made a prototype that claims to work and every man and his dog references this as a look on the WWW for those who want to make a peak voltage detect NiCad charger.

__________________
CraziestOzzy
Register to Reply
Guru
Hobbies - Musician - New Member Greece - Member - New Member

Join Date: Mar 2007
Location: Greece / Athens
Posts: 722
Good Answers: 28
#6

Re: Circuit Peak Detect Issue with OpAmp

01/19/2010 4:48 AM

Hi CraziestOzzy.

Of course, the op amp behaves this way as it acts as a comparator. When the voltage at "-" reaches exactly the voltage at "+" the output of the op amp changes its state. If you want to change its state when the voltage at "-" is somehow lower than the voltage at "+", then you have to add a voltage divider at the "+" input of the op amp. In this way the voltage at "+" will be a few millivolts lower than before and when the voltage at "-" reaches this new, lower voltage the op amp will change its output state (high). Concerning this voltage divider, I recommend you that the resistor which is connected to ground must have a large value (e.g. 1M or so) in order not to discharge fast the capacitor of the detector. Also, I would recommend you to add some hysteresis on the op amp (I always put some hysteresis in such comparator circuits), although it may not be necessary in this case.

__________________
George
Register to Reply Score 1 for Good Answer
Power-User
Australia - Member - Igor...pull the switch!!!

Join Date: Apr 2009
Location: Australia, sunny North Queensland
Posts: 380
Good Answers: 12
#8
In reply to #6

Re: Circuit Peak Detect Issue with OpAmp

01/19/2010 7:19 AM

Yeah thanks...hysteresis may not be needed with the amended circuit, will see what happens. I will look into the voltage divider, I was actually looking at throwing in some gain...but again will wait and see.

I treated the OpAmp in the end as having two individual inputs...a comparator if you like. Treating the OpAmp as such ended up in a complete rehash from the original circuit I had issues with.

__________________
CraziestOzzy
Register to Reply
Power-User
Australia - Member - Igor...pull the switch!!!

Join Date: Apr 2009
Location: Australia, sunny North Queensland
Posts: 380
Good Answers: 12
#10
In reply to #6

Re: Circuit Peak Detect Issue with OpAmp

01/25/2010 10:29 PM

UPDATE

yet another good answer, RedFred got one too ...the voltage divider worked a treat in the end...once I figured out the source of my problem. Also added a few goodies as explained in reply below with new circuit diagram The capacitor and its behind the scenes interaction with the OpAmp were to blame. Seems that the capacitor was being fed an extra 10mV from the input pin of the OpAmp and maybe also reaching a rather "saturated" state.

__________________
CraziestOzzy
Register to Reply
Power-User
Australia - Member - Igor...pull the switch!!!

Join Date: Apr 2009
Location: Australia, sunny North Queensland
Posts: 380
Good Answers: 12
#9

Re: Circuit Peak Detect Issue with OpAmp

01/25/2010 10:15 PM

To make a long story short, I have resolved the issue regards to OpAmp not behaving as intended.

The peak detect capacitor required for detecting and holding the peak battery is at fault, using the circuit provided in my opening post.

Stripped down to its bare essentials, the capacitor was always reading HIGH once it had charged relative to the opposite input pin of the OpAmp (I did not know that this was happening until now of course) . On application of voltage to the stripped down circuit, the capacitor would start out LOWer on the - input pin than the other + input pin. After the capacitor had fully charged, voltage would be higher on the - input pin than the opposite + input pin...not good.

Not good, as a drop in voltage on the + input pin (to be a lower voltage than the - pin) is what is required to switch the OpAmp to my desired state of LOW. Hence the problem of why my use of the original circuit would always eventuate in the OpAmp mysteriously switching.

I have my doubts that in using the original circuit, that a battery ever reached a charged state.

See my fix...simple, but sure was a pain to get there....

The 1N4148 diode "isolates" the capacitor feeding into the - pin from the present battery voltage that is fed into the + pin. Also the forward voltage drop forces the - pin to read LOW, even when the capacitor is fully charged. The output from the OpAmp now reads HIGH and does not switch LOW until the + pin reading the present battery voltage drops a few mV below the voltage stored at the - pin.

The resistor setup is used to calibrate the voltage for the + pin to read several mV above that of the - pin. This is calibrated only after the capacitor has fully charged.

Also, an isolated power supply is needed for powering the OpAmp with the feed into the input pins via the charging battery. I added a current limiting resistor and a voltage divider prior to the input of the OpAmp circuit (not shown here) and will show my complete circuit shortly. I have discarded this popular circuit I originally had a problem with (that is always reference to on the WWW but not pursued) and have made something entirely different, but inspired by the author I mentioned in my opening OP.

I also changed the OpAmp to a JFET TL2062 with accurate results

Thanks for the help too...much appreciated and hope I had my - and + in the right order!!!

__________________
CraziestOzzy
Register to Reply Score 1 for Good Answer
Guru
Hobbies - Musician - New Member Greece - Member - New Member

Join Date: Mar 2007
Location: Greece / Athens
Posts: 722
Good Answers: 28
#11
In reply to #9

Re: Circuit Peak Detect Issue with OpAmp

01/26/2010 4:42 AM

Good work, CraziestOzzy. However, the resistors (R) network -that you added in the circuit- doesn't seem like a voltage divider. (Maybe it is not presented on your drawing correctly.)

Maybe, another solution could be to replace the 1N4148 diode with a schottky diode which has only 0,3V voltage drop (instead of the 0,7V voltage drop of the 1N4148). Another way to have no voltage drop at all, is the use of an "active positive half-wave rectifier" (using the second part of the LM358) but, in this case, it is not recommended because of the 220μF capacitor (which will exist at the output of the op amp).

__________________
George
Register to Reply
Power-User
Australia - Member - Igor...pull the switch!!!

Join Date: Apr 2009
Location: Australia, sunny North Queensland
Posts: 380
Good Answers: 12
#12
In reply to #11

Re: Circuit Peak Detect Issue with OpAmp

01/26/2010 12:50 PM

yeah, thanks...I used a 19TQ015S schottky with a 200mV drop at 30 degrees celcius...was better than the 4148. But for the basic model I sketched above, I use a 4148 diode, which works.

OUCH...you are right...silly me. the middle resistor (trimpot) is supposed to go to the + input pin of the OpAmp....oops. Will correct that shortly, as I now have a working circuit. Charged three batteries and shutoff each time. Need to go down to a 100ohm trim pot for the final adjustment and solder onto a board, as I can only switch the OpAmp to LOW after a drop in 7 mV....any adjustments on a "wishboard" below that is impossible.

__________________
CraziestOzzy
Register to Reply
Register to Reply 12 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

CraziestOzzy (7); G.K. (2); Randall (1); redfred (1); Walts_Worker (1)

Previous in Forum: Can we boost any signal???   Next in Forum: Sun Artesyn 300-1359-xx Power Supply

Advertisement