Source code coming soon. The GitHub repository is private for now and opens to everyone very soon.
BetterSPICE Beta 0.8.1 Join the beta Download soon

Calculators Circuit

Voltage divider calculator

Fill in any three of the supply, R1, R2 and the output, press SOLVE on the fourth, and the calculator works it out. Beside the answer it gives the ratio, the divider current, the power in R1 and in R2, the output (Thevenin) resistance R1 ∥ R2 and the total power. A solved resistor names the nearest E24 and E96 values.

Set Load on the output to Resistor and the load counts in every result: R2 becomes R2 in parallel with the load. The other mode, Pick from a series, lists the best E12, E24 or E96 pairs for an output, ranked by the error each pair really gives with the load included.

The calculator

The app's own calculator window, built from the BetterSPICE 0.8.1 source. What needs a schematic is greyed out here: placing the circuit, running it, applying values to parts and picking parts from the library. Open it in its own window.

The formulas it uses

These are the formulas the calculator shows, copied from its source code. The results in the window above come from the same code as the app.

Divider, no load

  • Vout = (Vs R2) / (R1 + R2)
  • I = Vs / (R1 + R2)
  • Rout = (R1 R2) / (R1 + R2)

Divider with a load resistor

  • Vout = (Vs R2′) / (R1 + R2′)
  • R2′ = (R2 RL) / (R2 + RL)
  • I = Vs / (R1 + R2′)
  • Rout = (R1 R2) / (R1 + R2)

Sources. Standard values from IEC 60063. Every pair is worked out again with the load, so the error is what the circuit gives.

Simple and Advanced

Simple is the main values, one set of results and a plot. Advanced is the full design view: the operating range with its corners, tolerance and temperature, checks with their margin (a green tick, an amber warning or a red cross), the parts to order with the ratings they need, warnings that give the fact, the number and the fix, and plots over the whole range. A value typed in one view is the same in the other.

In the app it also places the circuit and checks it

In the app, the buttons under the result act on your circuit: Place and run live, Place and check the operating point. The circuit is drawn with library symbols, wires, a source and probes, placed at a free spot in the view, and the analysis that checks it runs at once. With parts selected, Apply to the selected parts writes the result into them, as one undo step.

The last tab of the Advanced view, Verify in simulation, places the calculator's circuit and runs it, with measurements whose pass limits are the calculator's own numbers. A row the simulator cannot check says so and why. More in the manual: Voltage divider.