Calculation Tools¶
Helpers for common analog design calculations. Every result updates as you type.
Resistor values accept SI suffixes and the RKM notation used on schematics: 10k, 4k7, 2.2M, 470, 1R5.
Voltage divider¶
Vout = Vin · R2 / (R1 + R2). The output impedance is R1 ∥ R2: keep the load at least 10× higher, or buffer the divider.
Find resistors for a target ratio¶
Non-inverting amplifier¶
Gain = 1 + Rf / Rg. Always ≥ 1.
Find resistors for a target gain¶
Inverting amplifier¶
Vout = −(Rf / Rin) · Vin + (1 + Rf / Rin) · Vbias. The input impedance seen by the source is Rin.
A voltage on the non-inverting input shifts the output without changing the gain. Note the offset is amplified by the noise gain 1 + Rf / Rin, not by Rf / Rin. Vbias is usually taken from a divider off a rail or reference; decouple it with a capacitor to ground. Leave it at 0 for a grounded + input.
Level shifter / scaler (inverting, with offset)¶
Maps an input voltage range onto an output range, for example a ±5 V CV to the 0–3.3 V input of an ADC. It uses an inverting summing amplifier with an offset current from a reference voltage:
Vout = −(Rf / Rin) · Vin − (Rf / Roff) · Vref
Because the stage inverts, the lowest input maps to the highest output. Flip it in firmware, or add a unity-gain inverter.