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.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| vrefnumber | V | at least 0 | 2.5 | Reference voltage, applied through R1 to the non-inverting input; the input signal drives the inverting input |
| supplyVoltagenumber | V | at least 0.1 | 5 | Supply Voltage |
| r1number | kΩ | 0.001 … 10000 | 10 | Resistor from the reference voltage to the non-inverting input (with a divider, its Thevenin resistance) |
| r2number | kΩ | 0.001 … 10000 | 100 | Feedback resistor from the comparator output to the non-inverting input; with R1 it sets the hysteresis |
| hystPercentnumber | % | 0.1 … 50 | 5 | Desired hysteresis as percentage of supply voltage (for design calculation) |
| eSeriesnumber | none | 0 … 96 | 0 | Rounds every part to the nearest value in the series; the response and the export are the rounded design's. |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| vTrip_high | V | Upper Trip Point |
| vTrip_low | V | Lower Trip Point |
| hysteresisheadline | mV | Hysteresis Band |
| r1Calc | kΩ | Calculated R1 (for desired hyst%) |
| r2Calc | kΩ | 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.