This Online Hysteresis Comparator Calculator computes the resistor ratio (R1/R2) and determines key comparator parameters, including the reference voltage (VR) and the hysteresis threshold levels. By entering the positive and negative supply voltages, the calculator instantly provides the High Threshold Voltage (VTH), Low Threshold Voltage (VTL), R1/R2 resistor ratio, and reference voltage, helping you accurately design and analyze hysteresis comparator circuits.
Enter your parameters below to calculate results.
The Comparator with Hysteresis Calculator is an essential electronic design tool for electrical engineers. It allows you to calculate the precise resistor values required to set the High Threshold Voltage () and Low Threshold Voltage () for a comparator circuit.
By determining the correct Reference Voltage () and the resistor ratio (), you can design stable, noise-immune circuits. Below, we explore the fundamental theory behind comparators, the importance of hysteresis, and the mathematical formulas used in this calculator.
A Comparator is an integrated circuit (IC) that compares two input voltages and outputs a digital signal indicating which is larger.
Comparators are widely used in level detection, window detectors, and Analog-to-Digital converters. Common comparator ICs include the LM339, LM393, and TL331.
In a standard comparator, if the input signal moves slowly or contains noise, the output may flicker rapidly (bounce) between high and low states when the input voltage is near the reference threshold. This oscillation is often called "chatter."
Hysteresis eliminates this noise by introducing two distinct threshold voltages instead of one:
By adding a feedback resistor to the circuit (Positive Feedback), the comparator "remembers" its current state and resists changing until the input significantly crosses the new threshold. This configuration is often called a Schmitt Trigger.
An inverting comparator with hysteresis uses a positive feedback network.
When the output is High, the feedback resistor pulls the voltage at the non-inverting input slightly higher (creating ). When the output is Low, the feedback resistor pulls the non-inverting input slightly lower (creating ). This separation creates the "Hysteresis Window."
The calculator uses the following equations to determine the relationship between the threshold voltages and the resistor network for an Inverting Comparator with Hysteresis.
First, we define the ratio of the feedback resistors:
The ratio is determined by the difference between the supply voltages and the desired hysteresis window width:
Once the ratio and reference voltage are known, the thresholds are defined as:
High Threshold Voltage ():
Low Threshold Voltage ():
Where:
Can you use a standard Operational Amplifier (Op-Amp) like an LM741 or LM358 as a comparator?