The Voltage Follower
The Voltage Follower Op-amp Circuit
The Op-amp Inverter
The Op-amp Inverter Circuit
The Non-inverting Amplifier
The Non-inverting Op-amp Circuit
The Inverting Amplifier
The Inverting Op-amp Circuit
The Bridge Amplifier
The Bridge Op-amp Circuit
The Voltage Adder
The Voltage Adder Op-amp Circuit
The Voltage Subtractor
The Voltage Subtractor Op-amp Circuit
The Op-amp Comparator
The Comparator Op-amp Circuit
PDF FILE - CLICK HERE FOR PRINTABLE WORKSHEET | |
1. An inverting amplifier - Leg two is the input and the output is always reversed or inverted.
2. A Non-inverting amplifier - Leg three is the input and the output is not reversed. |
|
Opposite is a diagram of an INVERTING AMPLIFIER. This means that if the voltage going into the 741 chip is positive, it is negative when it comes out of the 741. In other words it reverses polarity (inverts polarity).
Two resistors are needed to make the 741 work as an amplifier, R1 and R2. In most text books diagrams like this are used to represent the 741. |
|
HOW TO CALCULATE THE 'GAIN'
An operational amplifiers purpose is to amplify a weak signal and this is called the GAIN. |
|
INVERTING AMPLIFIER
GAIN (AV) = -R2 / R1 Example : if R2 is 100 kilo-ohm and R1 is 10 kilo-ohm the gain would be : -100 / 10 = -10 (Gain AV) If the input voltage is 0.5v the output voltage would be : 0.5v X -10 = -5v |
NON-INVERTING AMPLIFIER
GAIN (AV) = 1+(R2 / R1) Example : if R2 is 1000 kilo-ohm and R1 is 100 kilo-ohm the gain would be : 1+ (1000/100) = 1 + 10 OR GAIN (AV) = 11 If the input voltage is 0.5v the output voltage would be : 0.5 X 11 = 5.5v |
|
|
The polarity of a signal is reversed at the output, pin six.
A negative input becomes a positive output. |
A signal applied keeps its polarity at the output, pin six.
A positive input remains a positive output. |
The post discusses how hysteresis resistor in opamps works and helps to create a delayed switch ON and switch OFF across its output in response to the difference between its input pins.
enables the user to set the full charge cut off and low charge restoration of the relay apart by some voltage difference. If the hysteresis was not introduced the relay would rapidly switch ON OFF at the cut off level causing a serious issue with the system.
The question was raised by one of the dedicated readers of this blog Mr. Mike.
why are 4.7 zeners being used for the reference voltage? If we don’t want the 12 volts to drop below 11 for discharge,
Is the feed back resistor going to the virtual ground point a 100K resistor? If so, why was this value chosen?
2) Also, I apologize, I forgot to as why are there 4.7 zeners at the bases of the BC 547 transistors?
The red/green indication LEDs; how do they light up? I mean the red
LED is connected through its resistor to the top + rail, connects to
the output of the OPAMP, then goes down in series towards the green LED.
It would seem they would
be both on at the same time, since they are in series, in both circuits. Does it have something to do with the
the OPAMP is off, the top red LED
current is going through the feedback
resistor (thus its “on”)to the virtual ground point? But how does it get
switched off, when the OPAMP has an output? When the OP AMP gets an
output, I can see that going down to the green LED, but how, in that
state, does
the red LED then get switched off?
My Reply
4.7 is not a fixed value it can be changed to other values also, the pin#3
preset ultimately adjusts and calibrates the threshold as per the selected
zener value.
Question
The 100K feedback resistor and pot are creating the hysteresis value
(meaning, the difference between pin 2 and 3 to make the opamp swing
high to its + rail voltage)?
The op amp in this config is always trying
to make pins 2 and 3 arrive at the same value via its feedback resistor,
correct (zero, since the feedback divider is @ 0 and pin 3 is @
ground)?
Ive seen this solar charger controller done without the feed back, just
using several op amps with voltage ref pins and a pot on the other one
just trying to understand how hysteresis is working in this case
In other op amp circuits, they dont use any feed back just use them in
comparator config mode with ref
voltage at invert/non invert pin, and
when one is exceeded, the opamp swings to its rail voltage
What is the feed back doing? I understand the opamp gain formula, in
this case is it 100k/10k x voltage difference of POT voltage
(preset)value and 4.7 zener?
or is this a Schmidt trigger type of hysteresis UTP LTP circuit
comparators Ive seen just use the opamp in saturation, could you explain
why the feedback and gain for this?
Thanks
12volt rail, correct? So, when its preset value according to the POT
wiper is more? than the 4.7zener, we swing the opamp high? still dont
get the 100k feedback and why its used in a comparator circuit
My Reply
I am sure you know about how voltage dividers work?
As soon as the full
charge threshold is detected, as per the adjustment of pin#3 preset the
voltage at pin#3 becomes just higher than pin#2 zener voltage, this forces the opamp
output to swing to the supply level from its previous zero volt….meaning
it changes from say 0 to 14V instantly.
In this situation we can assume now that the feedback is connected between
“positive supply” and pin#3…when this happens the feedback resistor
starts supplying this 14V to pin#3, which means it further reinforces the
preset voltage and adds some extra volts depending upon its resistance
value, technically this means this feedback becomes in parallel with
preset resistor which is set between its center arm and the positive arm.
So suppose during the transition pin#3 was 4.8V and this switched the
output to the supply level and allowed the supply to reach back to pin#3
through the feedback resistor, which caused the pin#3 to a bit more higher say at
5V….due to this pin#3 voltage will take longer to get back to below the
4.7V zener value level because it has been raised to 5V…this is called hysteresis.
Both LEDs will never light up because their junction is connected with
pin#6 of the opamp which will either at 0V or the supply volt which will
make sure that either the red LED lights up or the green, but never
together.
SLA battery against over discharge, and also protect the connected load
from overvoltage in case of overcharged battery is connected.
By Girish Radhakrishnan
All the batteries have natural death, but most of them are murdered. The life span of battery will get shorten if the voltage of a battery goes below certain degree, in case of 12V SLA battery, it must not go below 11.80 V.
This project could be accomplished with comparators, but here we are using microcontroller and coding to accomplish the same.
This circuit is well suitable for resistive loads and other loads which don’t generate noise in the supply during operation. Try to avoid inductive loads such as brushed DC motors. Microcontrollers are sensitive to noise and this setup may read error voltage values in such case, and it may cut-off the battery from load at wrong voltage.
The circuit:
The discussed over discharge protection circuit for 12v battery consists of a voltage divider which is responsible for stepping down the input voltage and reduce to narrow range where arduino can read the voltage.
The pre-set resistor is used to calibrate the readings on arduino; these readings are used by arduino to trigger the relay, the calibration of this setup will be discussed later part of the article.
A LED indicator is utilized for indicating the status of the relay. The transistor drives the relay on/off and a diode is connected across the relay for arresting high voltage spike generated from relay, while switching it on/off.
When the battery voltage goes below 11.80V, the relay gets turned on and disconnects the battery from load and LED indicator also turns on, this happen same when the circuit reads overvoltage from the battery, you can set the overvoltage cut-off in the program.
When the battery goes below 11.80V, the relay disconnect the load, the relay will reconnect the load to battery only after when the battery voltage attains above nominal voltage which is set in the program.
The nominal voltage is normal operating voltage of the load. The above stated mechanism is done because; the battery voltage rise after disconnecting from load and this must not trigger the relay ON at low battery state.
The nominal voltage in the program set as 12.70 V which is full battery voltage of typical 12V SLA batteries (Full battery voltage after disconnecting from charger).
Program:
//———Program developed by R.Girish———-//
float cutoff = 11.80; //Cutoff voltage
float nominal = 12.70; //Nomial Voltage
float overvoltage = 14.00; //Overvoltage
int analogInput = 0;
int out = 8;
float vout = 0.0;
float vin = 0.0;
float R1 = 100000;
float R2 = 10000;
int value = 0;
int off=13;
void setup()
pinMode(analogInput,INPUT);
pinMode(out,OUTPUT);
pinMode(off,OUTPUT);
digitalWrite(off,LOW);
Serial.begin(9600);
void loop()
value = analogRead(analogInput);
vout = (value * 5.0) / 1024;
vin = vout / (R2/(R1+R2));
if (vin<0.10)
vin=0.0;
if(vin<=cutoff)
digitalWrite(out,HIGH);
if(vin>=nominal && vin<=overvoltage && vin>cutoff)
digitalWrite(out,LOW);
if(vin>=overvoltage)
digitalWrite(out,HIGH );
delay(10000);
Serial.println(“INPUT V= “);
Serial.println(vin);
delay(1000);
//———Program developed by R.Girish———-//
Note:
float cutoff = 11.80; //Cutoff voltage
float nominal = 12.70; //Nomial Voltage
float overvoltage = 14.00; //Overvoltage
You can change the cut-off, nominal and overvoltage by changing the above values.
It is recommended not modify these values unless you are working with different battery voltage.
How to calibrate:
The calibration for this battery over discharge protection circuit must be done carefully; you need a variable power supply, a good multimeter and a screw driver for adjusting the pre-set resistor.
1) The completed setup is connected to variable power supply without load.
2) Set the 13 volt on the variable power supply, verify this using multimeter.
3) Open the serial monitor and rotate the pre-set resistor clock or counter clock wise and bring the readings close to the readings of multimeter.
4) Now, reduce the voltage of variable power supply to 12V, the multimeter and serial monitor must read same or very close value.
5) Now, reduce the voltage to 11.80 V the relay must trigger on and LED must light up.
6) Now, increase the voltage to 14.00V the relay must trigger on and LED light up.
7) If the above sets are successful replace the variable power supply with a fully charged battery, the readings on serial monitor and multimeter must be same or very close to same.
8) Now connect the load, the readings on both must remain same and synchronized.
If the above steps are successful your circuit is ready to serve the battery.
NOTE:
Please not this point while calibrating.
When the relay is triggered on due to low voltage cut-off or due over voltage cut-off, the readings on serial monitor will not read the correct voltage as on multimeter, and shows higher or lower than on multimeter.
But, when the voltage falls back to normal operating voltage the relay will turns off and starts showing correct voltage.
The conclusion of the above point is that, when the relay is trigged ON, the readings on the serial monitor show some significant variation and you need not to calibrate again at this stage.
The following data wasprovided by Mr. Syed through email:
I saw that people are getting educated by your post. So, i think you should explain people about this schematic.
This circuit has astable mutivibrator based on transistors as you did. The capacitors c1 and c2 are the 0.47 for getting output frequency about 51.xx Hz as i measured but it is not constant in all cases.
The MOSFET has reverse high power diode that is used to charge the battery there is no need to add a special diode to the circuit. I’ve shown the switching principle with relays in the schematic. RL3 must be used with a cutt off circuit.
This circuit is very simple and i’ve tested it already. I am going to test another design of mine will share with you as soon as test is done. It controls output voltage and stabilize that using PWM. Also in that design i am using transformer 140v winding for charging and BTA16 for controlling the charging amperes. Lets hope for the Good.
You’re doing best. Never Quit, Have a wonderful day.
Stay Blessed,
—
Syed Asim Ali Xaidi
(Engineer/Musician)
Founder Of
Sam Technology Professionals
Contact : 0320-4058052