Previous in Forum: Nero Burning   Next in Forum: Advancements in GPS
Close
Close
Close
20 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

Peak Detection and Hold Query

08/26/2009 1:11 AM

Further to my previous discussion, LINK.

I have had no problem with constructing a peak-detect and hold circuit. I do have a big problem in figuring out how to switch an Op-Amp using a peak voltage that drops its voltage relative to the peak.

An example would help here. I have a NiCd battery that increases in voltage to a peak of say 1.5 volts on the completion of a charge which is demonstrated by a minor voltage drop of say 30mv to 1.47v.

I have an Op-Amp that detects the peak voltage of 1.5 and holds that voltage in a simulation and on breadboard. I intend to use that peak as a reference voltage. Each battery has its own maximum peak voltage charge, so I really cannot set a fixed reference voltage for all batteries. I must use an Op-Amp peak and hold circuit. What I don't have, is a device/circuit that will switch when voltage drops from 1.5v to 1.47v (30mv drop).

I have no problem configuring an Op-Amp that switches either high or low when compared to that of a fixed voltage. Example would be, the "+" pin on an Op-Amp has a fixed reference voltage of 1.5v. The "-" pin has a starting voltage of 1.7v that changes to 1.3v and therefore changes output state of Op-Amp.

In my situation, the "fixed" (peak) voltage is 1.5v on the "+" pin of the Op-Amp (no problem here)...BUT...the "-" pin has a starting voltage the SAME as the "+" pin that then drops to 1.47v that results in no change in output state of this Op-Amp, as there is no crossover from a high to a low state with respect to the peak voltage reference.

Should I be using something else besides an Op-Amp to trigger a switch in my situation?

I have tried many configurations and looked at many ideas, but still am unable to find the "word", component or terminology to describe what to do when there is a voltage drop AFTER the peak and hold. Remember that each battery will have its own individual circuit and will have varied peak voltages.

Any help of any kind would be great. I felt a schematic was not needed, as I don't have one that works outside the typical Op-Amp peak detect circuit.

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

"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!
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#1

Re: Peak Detection and hold query

08/26/2009 3:55 AM

I think you have the solution, but you don't know it!
Effecively you are saying you have the 2 voltages one of which moves relative to the other, but they start at the same level. Right? (or maybe I've missunderstood and you need to simplify the question)

The answer is to change the level of one of them, a simple potential divider will shift the voltage a little or, it can be done with an op amp (unit gain and a pot to adjust).
Sounds like you are having fun...this sort of thing is a great way to learn electronics, which is of course easy in theory...but much trickier in practice.
If you've made a peak detect & hold circuit which works you are doing fine.

I hope that makes sense.... What I'm really saying is that as long as the switching occurs at the right voltage, the 'actual absolute' value of either voltage doesn't matter, so you can shift one of them up or down to get your switching.
(Also you won't get it to switch positive going and negative going at the same voltage, there is always some hysteresis, especially if you have some positive feedback. Another solution may be to have two comparators switching at different levels one for positive going and one for negative going)

Have fun
Del

__________________
health warning: These posts may contain traces of nut.
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
#13
In reply to #1

Re: Peak Detection and hold query

08/27/2009 1:05 AM

"I think you have the solution, but you don't know it"

tend to agree, staring at me but cannot see it. Have thought of changing level of one side to an Op-Amp to shift the voltage a little. A pot is a good idea for fine tuning and I think I may to do this for each circuit connected to its assigned battery.

Hysteresis might be a problem, but will only know once I have completed the final half of the circuit after a few weeks of trying this and that.

"Effecively you are saying you have the 2 voltages one of which moves relative to the other, but they start at the same level."

Very much the case, I was worried I might have shared some of my confusion in my question, but glad I (mostly) did not

Thanks for the advice.

__________________
CraziestOzzy
Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Oct 2007
Location: Sour Lake, TX 30°08'59.68"N 94°19'42.81"W
Posts: 675
Good Answers: 13
#2

Re: Peak Detection and Hold Query

08/26/2009 9:02 AM

You have your peak detector which (in a charging example) follows an increasing voltage from 1.0 V to somewhere around 1.5 V. When the battery voltage reaches the peak and has that "droop" that you have mentioned of 30 mV, the peak detector still has a memory of that peak voltage (I don't say 1.5 V because this is what you wanted, a not the same value at the total charge).

You cannot compare (for a fixed difference of 30 mV) because the peak fluctuates.

What to do? Repeat the peak value (whatever that it is) from which you subtract 30 mV. Compare this "new peak" voltage with the battery voltage. When the difference is zero, you have reached a voltage 30 mV lower that the maximum charging peak.

__________________
Bridge rule #1: Nobody is as good as he thinks about himself nor as dumb, as his partner thinks...
Register to Reply Score 1 for Good Answer
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#3
In reply to #2

Re: Peak Detection and Hold Query

08/26/2009 9:48 AM

Good reply....

basically to re-iterate what indel said, you need to have the output of the peak detector compared with the input voltage using a seperate comparator...

If the 30mV is needed just use a potential divider from the peak detector, so when the input voltage goes down below Vp - 30mV the output switches...

Simples!

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Guru
India - Member - Sensors Technology Popular Science - Cosmology - Dream, Think and Act United Kingdom - Member - New Member United States - Member - New Member Canada - Member - New Member

Join Date: Aug 2006
Location: AM-51, Deen Dayal Nagar, Gwalior, Madhya Pradesh, MP 474001, India
Posts: 3418
Good Answers: 32
#12
In reply to #3

Re: Peak Detection and Hold Query

08/26/2009 11:41 PM

Electroman,

"If the 30mV is needed just use a potential divider from the peak detector, so when the input voltage goes down below Vp - 30mV the output switches..."

Potential divider from peak voltage can not give fixed 30mV for different peak voltages. Potential divider forms a ratio based divider.

A differential amplifier or instrumentation amplifier can subtract voltage (Peak-30mV) is a much better choice.

Peak detect and hold circuits have hold signal drop rate and to avoid this either digital peak detect and hold can be used or double peak detect and hold can be used.

Easiest way is to use ADC and uC to take decisions. 10-bit internal ADC may be all right.

__________________
Prof. (Dr.) Shyam, Managing Director for Sensors Technology Private Limited. Gwalior, MP474001, India.
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
#14
In reply to #12

Re: Peak Detection and Hold Query

08/27/2009 1:49 AM

Thank you. I have read some of your previous posts (prior to posting my query) regarding peak detection and found them informative.

With regards to my application in theory and practice, I do not have an issue with the hold signal drop rate. The voltage drop that occurs once the battery reaches a charged state, takes place before any real losses from the storeage capacitor in the peak detect circuit.

"A differential amplifier or instrumentation amplifier can subtract voltage (Peak-30mV) is a much better choice."

I will once again look into the option of a differential amplifier. But in my clouded ignorance, cannot for the life of me, understand how to get a seperate amplifier (in relation to the peak detect circuit) to switch when a voltage drop relative to the peak occurs.

Due to my lack of equipment, I have must avoid the use PIC's and the like.

Thanks for your time and thoughts.

__________________
CraziestOzzy
Register to Reply
Guru
India - Member - Sensors Technology Popular Science - Cosmology - Dream, Think and Act United Kingdom - Member - New Member United States - Member - New Member Canada - Member - New Member

Join Date: Aug 2006
Location: AM-51, Deen Dayal Nagar, Gwalior, Madhya Pradesh, MP 474001, India
Posts: 3418
Good Answers: 32
#19
In reply to #14

Re: Peak Detection and Hold Query

08/27/2009 10:09 AM

If your voltage source is only 1.5V or less then first thing you need to do is to boost this voltage using DC-DC booster circuit (oscillator and voltage multiplier rectifier etc and you may need an transistors, inductor, capacitors and diodes to help this happen). Once you have 3V-6V or about that then most of the circuit will work easily.

You can also use amplifiers that work on 1V but what you have works above 2V. I am not sure if there is anything that can boost voltage source below 0.5V and is also powered on that voltage.

__________________
Prof. (Dr.) Shyam, Managing Director for Sensors Technology Private Limited. Gwalior, MP474001, India.
Register to Reply
Guru

Join Date: Mar 2007
Location: City of Light
Posts: 3943
Good Answers: 183
#4

Re: Peak Detection and Hold Query

08/26/2009 10:19 AM

There is a component named Zener-diode which has a defined voltage drop and can be used as a reference. Attention its voltage depends on temperature but not much.

Depending on its voltage you can via a divider compare the variable voltage to the diode voltage and obtain the signal you need when the variable voltage has a drop as you define. The schematic is simple: from the main line you supply the diode via a resistor and the diode is connected to ground. The voltage between resistor and diode will be constant which ever variations the supply in front of the resistor has. You connect the voltage now to a divider dimensioned so that if the voltage is 1.5 V the reduced voltage is slightly over the diode voltage and if main voltage goes XmV lower the reduced voltage is under the diode voltage. You connect your comparator (OP amp) between the 2 voltages and have your signal when main decreases.

If your main voltage is under the diode voltage then you use a divider to reduce the difference.

Register to Reply Score 1 for Off Topic
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#7
In reply to #4

Re: Peak Detection and Hold Query

08/26/2009 10:30 AM

Please read the post nick_name he doesn't want a reference voltage.... D'oh!

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Guru

Join Date: Mar 2007
Location: City of Light
Posts: 3943
Good Answers: 183
#10
In reply to #7

Re: Peak Detection and Hold Query

08/26/2009 6:11 PM

I read it but without a reference it can recognize a drop only if it is a dynamic one, and for that he can use a capacitance to save it for a limited time. If not both voltages move same way since in fact it is only one voltage which has to be compared with a value at origin which does not any more exist! This at least what I understood but as usual I never am sure to be right.

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#20
In reply to #10

Re: Peak Detection and Hold Query

08/28/2009 9:17 AM

The OP states: "I have had no problem with constructing a peak-detect and hold circuit".

__________________
"Love justice, you who rule the world" - Dante Alighieri
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
#15
In reply to #4

Re: Peak Detection and Hold Query

08/27/2009 2:08 AM

I will try this option out. Have thought of something similar, but did not like the fact that diodes can vary their specs due to temperature shifts, both circuit and climate induced.

For a shift of something around 30mv, I might get around any sensitivity issues. Will try it out and see what results.

__________________
CraziestOzzy
Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#5

Re: Peak Detection and Hold Query

08/26/2009 10:23 AM

If it was me, I'd use an A/D and a small micro-controller.

Register to Reply
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#6
In reply to #5

Re: Peak Detection and Hold Query

08/26/2009 10:29 AM

What a waste of time and space.... a dual op-amp and a few resistors do the job in a fraction of the time....

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#8
In reply to #6

Re: Peak Detection and Hold Query

08/26/2009 10:38 AM

One 8 pin PIC is all you need. Hardly a waste of space, or time.

Register to Reply
Anonymous Poster
#11
In reply to #8

Re: Peak Detection and Hold Query

08/26/2009 11:08 PM

You still have to code the thing = time

Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#9

Re: Peak Detection and Hold Query

08/26/2009 10:43 AM

If you are going to squabble, I'm going to my secret cat nest (I think the OP was a tad confusing)
I'm actually having a tinker with some OP amps myself...I'd forgotten how easy it is to get confused.
Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply Off Topic (Score 5)
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#16

Re: Peak Detection and Hold Query

08/27/2009 3:08 AM

CrazziestOzzy,

Could you fool around with this kind of comparator circuit.

With the Trip point set above the reference Voltage the Capacitor across R2 will prevent the comparator from toggling when there is a rising voltage. A drop in voltage at the trip point will lead the drop in voltage in the capacitor causing the output to change state until the capacitor has equalized.

The trip and ref voltages should be lower than the Supply Voltage (V+) for the IC. Then V Batt can be pretty much whatever you want if the components are selected for the V Batt range and sensitivity.

Jon

Register to Reply
Guru
Engineering Fields - Electrical Engineering - Analog and Digital Circuit Design Engineering Fields - Electromechanical Engineering - Transformers, Motors & Drives, EM Launchers Engineering Fields - Engineering Physics - Applied Electrical, Optical, and Mechanical

Join Date: Jan 2008
Location: NY
Posts: 1207
Good Answers: 119
#17

Re: Peak Detection and Hold Query

08/27/2009 3:32 AM

A small PIC with the right coding is the most accurate way to perform the negative delta-V test when charging NiCads. Considering you can implement negative delta-V, peak voltage, min voltage, pulse charge, burp pause (for gas recombination), temperature monitor, and high charge rate timer functions all in one little 8 pin micro, it is really no contest.

The negative delta-V test is performed after the charging current is briefly halted and the open cell voltage stabilizes. The present cell voltage is compared to the previous one (or several values are integrated to remove noise) to find the voltage drop indicating a "full charge" state has been reached. Trying to perform this test WHILE charge current is still flowing is usually worthless.

It is fairly easy to configure a single op-amp to work as a "negative slope differentiator". This would theoretically detect the negative delta-V and provide you with the "full charge" signal (I believe) you seek. However, op-amp differentiators can be very difficult to use if there is ANY noise present. While this circuit could detect a negative delta-V, trying to use it while charge current is still flowing will probably not work.

Review these or google "op-amp differentiator circuit"

http://www.ecircuitcenter.com/Circuits/opdfr/opdfr.htm

http://www.ecelab.com/circuit-differentiators.htm

I'm not say it can't work. But, by the time you get something that "kind-of" works, you could have learned and written several hundred lines of simple PIC code to do it more accurately. I specialize in analog circuit design and am just an AMATEUR PIC programmer. While I'd prefer to go analog for a project like this, the PIC micro (or one of the ASIC's) wins this one.

Good Luck!

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
#18
In reply to #17

Re: Peak Detection and Hold Query

08/27/2009 7:51 AM

Well spoken. I envision that I will indeed be using a PWM to "burp" charge (will be pulsing at the optimum rather than using a constant current) with measurements for peak detection and voltage drop being done during the brief offstate between "burps". At the moment though, I am aiming towards a working conceptual circuit that can be later expanded into a more reliable real-life system...wihout a PIC or AVR

__________________
CraziestOzzy
Register to Reply
Register to Reply 20 comments

"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:

Anonymous Poster (1); bhankiii (2); CraziestOzzy (4); Electroman (3); indel (1); JohnDG (1); kudukdweller9 (1); mjb1962853 (1); nick name (2); Shyam (2); user-deleted-1105 (2)

Previous in Forum: Nero Burning   Next in Forum: Advancements in GPS

Advertisement