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 Units

dB converter: dBm, dBV, dBu, volts and watts

Enter a level in any unit and the impedance, and the converter shows it in all the others: dBm, dBW, dBV, dBu, dBµV, volts rms, peak and peak to peak, and watts. dBm is 10 log10 of the power over 1 mW; dBu is 20 log10 of the voltage over 0.7746 V rms, the voltage across 600 Ω at 1 mW. Peak values are for a sine wave.

The second tab turns a ratio into decibels and back, 20 log for voltage and 10 log for power. The third converts between SI prefixes.

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.

Levels

  • P = V² / Z
  • dBm = 10 · log10(P / 1 mW)
  • dBV = 20 · log10(V / 1 V)
  • dBu = 20 · log10(V / 0.7746 V)
  • V peak = √2 · V rms, V p-p = 2 √2 · V rms (sine)

Decibels

  • dB = 20 · log10(V2 / V1) = 10 · log10(P2 / P1)
  • ratio = 10^(dB / 20) for voltage, 10^(dB / 10) for power

Sources. Standard definitions: dBm is 10 log10 of the power over 1 mW, dBW over 1 W, dBV 20 log10 of the voltage over 1 V rms, dBu over 0.7746 V rms (the voltage across 600 Ω at 1 mW). Peak and peak to peak values are for a sine wave.

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

The Simple view of this one has no buttons that change the circuit: it converts, and Copy values puts the inputs and results on the clipboard.

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: dB and unit converter.