Interactive Voltage Divider Calculator
Try Change Input Voltage (V), then press Calculate.
Observe Press Calculate and compare Output Voltage, Current Draw, and Total Power.
Explain Describe how R1 and R2 determine Output Voltage when you press Calculate.
Calculate
Reset
Technical boundaries. Output voltage, current, and power use only input voltage and R1 and R2. Current is input voltage divided by the sum of R1 and R2.
viewof v_in = Inputs. range ([1 , 24 ], {value : 5 , step : 0.1 , label : "Input Voltage (V)" })
viewof r1 = Inputs. range ([100 , 1000000 ], {value : 10000 , step : 100 , label : "R1 - Top Resistor (Ω)" })
viewof r2 = Inputs. range ([100 , 1000000 ], {value : 10000 , step : 100 , label : "R2 - Bottom Resistor (Ω)" })
voltage_divider = {
const v_out = v_in * (r2 / (r1 + r2));
const current = v_in / (r1 + r2);
const power_total = v_in * current;
const power_r1 = current * current * r1;
const power_r2 = current * current * r2;
return {v_out, current : current * 1000 , power_total : power_total * 1000 , power_r1 : power_r1 * 1000 , power_r2 : power_r2 * 1000 };
}
html `<div style="background: var(--bs-light, #f8f9fa); padding: 1rem; border-radius: 8px; border-left: 4px solid #3498DB; margin-top: 0.5rem;">
<p><strong>Output Voltage:</strong> ${ voltage_divider. v_out . toFixed (3 )} V</p>
<p><strong>Current Draw:</strong> ${ voltage_divider. current . toFixed (3 )} mA</p>
<p><strong>Total Power:</strong> ${ voltage_divider. power_total . toFixed (2 )} mW</p>
<p style="margin-top:0.5rem; font-size:0.9em; color:#666;">R1 dissipates ${ voltage_divider. power_r1 . toFixed (2 )} mW, R2 dissipates ${ voltage_divider. power_r2 . toFixed (2 )} mW</p>
</div>`
Back to the chapter