Showing posts with label opamp. Show all posts
Showing posts with label opamp. Show all posts
Saturday, October 15, 2016
Opamp Hysteresis Explained
Opamp Hysteresis Explained
In most automatic battery charger circuits in this blog you might have seen an opamp with a hysteresis feature included for some crucial function. The following article explains the significance and design techniques for the hysteresis function in opamp circuits.
To learn exactly whats a hysteresis you can refer to this article which explains hysteresis through an example of a relay
Principle of Operation
Figure 2 demonstrates a conventional design for a comparator without employing the hysteresis. This arrangement works by using a voltage divider (Rx and Ry) to establish the minimum threshold voltage.

The comparator would evaluate and compare the input signal or the voltage (Vln) to the set threshold voltage (Vth).
The comparator input feed voltage which is to be compared is connected to the inverting input, as a result the output is going to feature an inverted polarity.
Each time the Vin > Vth the output is supposed to get close to the negative supply (GND or logic low for the shown diagram). and when Vln < Vth the output would get close to the positive supply (Vcc = 5V or logic high in this example).
This easy solution enables you to decide whether or not a genuine signal for example temperature is above a given decisive threshold limit.
Even so, using this technique may possess a predicament. Interference on the input feed signal could potentially cause the input to changeovers above and below the set threshold triggering an inconsistent or fluctuating output results.
Figure 3 illustrates the output response of a comparator without hysteresis with a fluctuating input voltage pattern.

While the input signal voltage arrives the set limit (by the voltage divider network) (Vth = 2.5V), it adjusts above as well as below the minimum threshold a number of instances.
As a result, the output fluctuates too in accordance with the input. In actual circuits, this unstable output may easily cause unfavorable issues.
As an illustration, think about the input signal to be a temperature parameter and the output response to be a crucial temperature based application, which happens to be interpreted by a microcontroller.
The fluctuating output signal response may not contribute a faithful information to the microcontroller and could produce "confusing" results for the microcontroller at the crucial threshold levels.
Additionally, imagine that the comparator output is required to operate a motor or valve. This inconsistent switching during the threshold limits could force the valve or motor to be switched ON/OFF many times in the course of the crucial threshold situations..
But a "cool" solution through a modest alteration to the comparator circuit enables you to include hysteresis which in turn completely eliminates the jittery output during threshold changeovers.
Hysteresis takes advantage of a couple of distinct threshold voltage limits to stay clear from the fluctuating transitions as seen in the discussed circuit.
The input signal feed needs to go over the upper threshold (VH) to generate a changeover of a low output or below the lower set threshold limit (VL) to switch over to a high output.
Figure 4 indicates hysteresis on a comparator. The resistor Rh locks on the hysteresis threshold level.

Each time the output is at a logic high (5V), Rh remains in parallel with Rx. This pushes extra current into Ry, elevating the threshold limit voltage (VH) to 2.7V. The input signal will likely need to go above VH=2.7V to prompt the output response to move to a logic low (0V).
While the output is at logic low (0V), Rh is set parallel with Ry. This cuts-down on the current into Ry, bringing down the threshold voltage to 2.3V. The input signal will want to go below VL=2.3V to settle the output to a logic high (5V).
Figure 5 signifies the output of a comparator with hysteresis with a fluctuating input voltage. The input signal level is supposed to move over the higher threshold limit (VH = 2.7V) for the opamp output to slip down to logic low (0V).

Also, the input signal level needs to move under the Lower threshold for the opamp output to smoothly climb to logic high (5V).
The disturbance in this example may be negligible and therefore may be ignored, thanks to the hysteresis.
But having said this, in cases where the input signal levels were above the hysteresis calculated range (2.7V - 2.3V) could result in generating supplementary fluctuating output transition responses.
To remedy this, the hysteresis range setting is required to be extended sufficiently to dismiss the induced disturbance in the given specific circuit model.
Section 2.1 provides you with a solution for determining components to fix the thresholds in accordance with your selected application demands.
Design of Hysteresis Comparator
Equations (1) and (2) can be of help to decide upon the resistors wished to create the hysteresis threshold voltages VH and VL. A single value (RX) is required to be arbitrarily picked out.
Within this illustration, RX was determined to 100k to help reduce current draw. Rh was computed to be 575k, accordingly the immediate standard value 576k was implemented. The confirmation for Equations (1) and (2) is presented in Appendix A.

Courtesy: Comparator with Hysteresis Reference Design
Available link for download
Labels:
explained,
hysteresis,
opamp
Saturday, October 8, 2016
Opamp Low High Battery Charger Controller Circuit
Opamp Low High Battery Charger Controller Circuit
The post discusses a two opamp low high battery charger controller circuit which is not only accurate with its features but also allows a hassle free and quick setting up of its high/low cut-off threshold limits. The idea was requested by Mr. Mamdouh.
The Request
Hi Mr Swagatam,
Ive got the idea, please bear with me, because Im new to circuits design. i actually thought about using opamps to create the circuit that i need, so that makes me feel better i was heading in the right direction.
However, how can i upgrade this smart emergency light circuit to operate on 26-30 volts and 3 amps. Ill be using a dc to dc voltage booster and steady current between the battery and this circuit, as the battery wont be able to supply the required voltage.
so, Im not sure if this circuit will still remain to operates with the voltage booster between the battery and the circuit. also, i will have another voltage booster to be connected the main power adapter as the adapter will only produce 19v and i need 26-30 volts. Im kinda lost with this part because i need circuit to:
1) as soon as i connect the external power automatically it will disconnect the battery and supply the system, in the mean while charging the battery.
2) overcharging protection ( which included in the above design).
3) battery low and full charging indicates (which included in the above design).
4) also i dont know what is the formula to help how to determine the voltage required across my battery to charge it with( battery will be extracted of old laptops.total will be 22V with 6 apms at no load)
5) also, i don,t know the formula to indicate how long my battery will last, and how to calculate the time if i want a battery to last me two hours.
Also, the cpu fan will supplied by the system too.
it would be great too to add the option of a dimmer, my original plane was to vary between 26-30 v not need much more than that.
its a flash light design but using higher wattage LED.
Im sorry for those many questions, but im trying to get help and improve my skills in designing as im very new to electronics world.

The Design
In all of my previous battery charger controller circuits I have used a single opamp for executing the full charge auto cut-off, and have employed a hysteresis resistor for enabling the low level charging switch ON for the connected battery.
However calculating this hysteresis resistor correctly for achieving the precise low level restoration becomes slightly difficult and requires some trial and error effort which can be time consuming.
In the above proposed opamp low high battery charger controller circuit two opamp comparator are incorporated instead of one which simplifies the set up procedures and relieves the user from the long procedures.
Referring to the figure we can see two opamps configured as comparators for sensing the battery voltage and for the required cut-off operations.
Assuming the battery is s 12V battery, the lower A2 opamps 10K preset is set such that its output pin#7 becomes high logic when the battery voltage just crosses the 11V mark (lower discharge threshold), while the upper A1 opamps preset is adjusted such that its output goes high when the battery voltage touches the higher cut off threshold, say at 14.3V.
Therefore at 11V, the A1 output gets positive but due to the presence of the 1N4148 diode this positive stays ineffective and blocked from moving further to the base of the transistor.
The battery continues to charge, until it reaches 14.3V when the upper opamp activates the relay, and stops the charging supply to the battery. The situation is instantly latched due to the inclusion of the feedback resistors across pin#1 and pin#3 of A1. The relay becomes locked in this position with the supply completely cut off for the battery.
The battery now begins slowly discharging via the connected load until it reaches its lower discharge threshold level at 11V when the A2 output is forced to go negative or zero. Now the diode at its output becomes forward biased and quickly breaks the latch by grounding the latching feedback signal between the indicated pins of A1.
With this action the relay is instantly deactivated and restored to its initial N/C position and the charging current yet again begins flowing towards the battery.
This opamp low high battery charger circuit can be used as a DC UPS circuit also for ensuring a continuous supply for the load regardless of the mains presence or absence and for getting an uninterrupted supply through out its usage.
The input charging supply could be acquired from a regulated power supply such as an LM338 constant current variable constant voltage circuit externally.
Answers for other additional questions in the request are as given under:
Formula for calculating full charge cut off limit is:
Battery voltage rating + 20%, for example 20% of 12V is 2.4, so 12 + 2.4 = 14.4V is the full charge cut off voltage for a 12V battery
To know the battery back up time this calculator can be used which gives you the approximate battery back up time.
The Request
Hi Mr Swagatam,
Ive got the idea, please bear with me, because Im new to circuits design. i actually thought about using opamps to create the circuit that i need, so that makes me feel better i was heading in the right direction.
However, how can i upgrade this smart emergency light circuit to operate on 26-30 volts and 3 amps. Ill be using a dc to dc voltage booster and steady current between the battery and this circuit, as the battery wont be able to supply the required voltage.
so, Im not sure if this circuit will still remain to operates with the voltage booster between the battery and the circuit. also, i will have another voltage booster to be connected the main power adapter as the adapter will only produce 19v and i need 26-30 volts. Im kinda lost with this part because i need circuit to:
1) as soon as i connect the external power automatically it will disconnect the battery and supply the system, in the mean while charging the battery.
2) overcharging protection ( which included in the above design).
3) battery low and full charging indicates (which included in the above design).
4) also i dont know what is the formula to help how to determine the voltage required across my battery to charge it with( battery will be extracted of old laptops.total will be 22V with 6 apms at no load)
5) also, i don,t know the formula to indicate how long my battery will last, and how to calculate the time if i want a battery to last me two hours.
Also, the cpu fan will supplied by the system too.
it would be great too to add the option of a dimmer, my original plane was to vary between 26-30 v not need much more than that.
its a flash light design but using higher wattage LED.
Im sorry for those many questions, but im trying to get help and improve my skills in designing as im very new to electronics world.

The Design
In all of my previous battery charger controller circuits I have used a single opamp for executing the full charge auto cut-off, and have employed a hysteresis resistor for enabling the low level charging switch ON for the connected battery.
However calculating this hysteresis resistor correctly for achieving the precise low level restoration becomes slightly difficult and requires some trial and error effort which can be time consuming.
In the above proposed opamp low high battery charger controller circuit two opamp comparator are incorporated instead of one which simplifies the set up procedures and relieves the user from the long procedures.
Referring to the figure we can see two opamps configured as comparators for sensing the battery voltage and for the required cut-off operations.
Assuming the battery is s 12V battery, the lower A2 opamps 10K preset is set such that its output pin#7 becomes high logic when the battery voltage just crosses the 11V mark (lower discharge threshold), while the upper A1 opamps preset is adjusted such that its output goes high when the battery voltage touches the higher cut off threshold, say at 14.3V.
Therefore at 11V, the A1 output gets positive but due to the presence of the 1N4148 diode this positive stays ineffective and blocked from moving further to the base of the transistor.
The battery continues to charge, until it reaches 14.3V when the upper opamp activates the relay, and stops the charging supply to the battery. The situation is instantly latched due to the inclusion of the feedback resistors across pin#1 and pin#3 of A1. The relay becomes locked in this position with the supply completely cut off for the battery.
The battery now begins slowly discharging via the connected load until it reaches its lower discharge threshold level at 11V when the A2 output is forced to go negative or zero. Now the diode at its output becomes forward biased and quickly breaks the latch by grounding the latching feedback signal between the indicated pins of A1.
With this action the relay is instantly deactivated and restored to its initial N/C position and the charging current yet again begins flowing towards the battery.
This opamp low high battery charger circuit can be used as a DC UPS circuit also for ensuring a continuous supply for the load regardless of the mains presence or absence and for getting an uninterrupted supply through out its usage.
The input charging supply could be acquired from a regulated power supply such as an LM338 constant current variable constant voltage circuit externally.
Answers for other additional questions in the request are as given under:
Formula for calculating full charge cut off limit is:
Battery voltage rating + 20%, for example 20% of 12V is 2.4, so 12 + 2.4 = 14.4V is the full charge cut off voltage for a 12V battery
To know the battery back up time this calculator can be used which gives you the approximate battery back up time.
Available link for download
Subscribe to:
Posts (Atom)