voltage divider
voltage_dividerCalculates output voltage, current draw, and power dissipation for a resistive voltage divider. Given an input voltage Vin and two resistor values R1 (upper) and R2 (lower), computes Vout = Vin * R2 / (R1 + R2), divider current, individual resistor power dissipation, and the division ratio. Essential for biasing circuits, level shifting, ADC input scaling, and feedback networks. Use before trace_width to size traces for divider current, or chain from a power supply output to verify signal levels.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vin": "<vin>",
"r1_ohm": "<r1_ohm>",
"r2_ohm": "<r2_ohm>"
},
"name": "voltage_divider"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vin | Yes | Input voltage in volts (V). Must be positive. | |
| r1_ohm | Yes | Upper resistor value in ohms (R1), connected between Vin and Vout node. | |
| r2_ohm | Yes | Lower resistor value in ohms (R2), connected between Vout node and ground. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vout | Yes | Output voltage in volts at the R1-R2 junction. | |
| ratio | Yes | Voltage division ratio R2/(R1+R2), dimensionless 0-1. | |
| current_ma | Yes | Current through the divider in milliamps (mA). | |
| power_r1_mw | Yes | Power dissipated by R1 in milliwatts (mW). | |
| power_r2_mw | Yes | Power dissipated by R2 in milliwatts (mW). | |
| total_power_mw | Yes | Total power dissipated by the divider in milliwatts (mW). |