Skip to content
Documentation sections

Comparator Hysteresis (Schmitt Trigger) Calculator

POSThttps://rftools.io/api/py/v1/calculate

Slug comparator-hysteresis. Calculate comparator hysteresis trip points for Schmitt trigger circuits, upper and lower threshold voltages, and design resistor values for a desired hysteresis percentage

Inputs

Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.

Inputs of comparator-hysteresis
NameUnitRangeDefaultDescription
vrefnumberVat least 02.5Reference voltage, applied through R1 to the non-inverting input; the input signal drives the inverting input
supplyVoltagenumberVat least 0.15Supply Voltage
r1numberkΩ0.001 … 1000010Resistor from the reference voltage to the non-inverting input (with a divider, its Thevenin resistance)
r2numberkΩ0.001 … 10000100Feedback resistor from the comparator output to the non-inverting input; with R1 it sets the hysteresis
hystPercentnumber%0.1 … 505Desired hysteresis as percentage of supply voltage (for design calculation)
eSeriesnumbernone0 … 960Rounds every part to the nearest value in the series; the response and the export are the rounded design's.One of: 0 Ideal values · 12 E12 (10%) · 24 E24 (5%) · 48 E48 (2%) · 96 E96 (1%)

Outputs

Returned in values, by key. A value that is unbounded or undefined is null.

Outputs of comparator-hysteresis
FieldUnitDescription
vTrip_highVUpper Trip Point
vTrip_lowVLower Trip Point
hysteresisheadlinemVHysteresis Band
r1CalckΩCalculated R1 (for desired hyst%)
r2CalckΩR2 (used)

Calling it

  • Calculate: one call, the request and response in full, and its errors.
  • Batch: this calculator with others, or a sweep, in one request.
  • Solve for a target: the value of one input that brings an output to a target.