← All tool references

Engineering · not_available

Voltage Divider Calculator

Calculate output voltage and resistor currents in a two-resistor divider.

Open public tool

Overview

Category
Engineering
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/voltage-divider-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/voltage-divider-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

input_voltage · number · required
Enter input voltage for this calculation.
resistor_1 · number · required
Enter upper resistor for this calculation.
resistor_2 · number · required
Enter lower resistor for this calculation.
{
    "type": "object",
    "properties": {
        "input_voltage": {
            "type": "number",
            "description": "Enter input voltage for this calculation."
        },
        "resistor_1": {
            "type": "number",
            "description": "Enter upper resistor for this calculation.",
            "minimum": 9.99999999999999954748111825886258685613938723690807819366455078125e-7
        },
        "resistor_2": {
            "type": "number",
            "description": "Enter lower resistor for this calculation.",
            "minimum": 9.99999999999999954748111825886258685613938723690807819366455078125e-7
        }
    },
    "required": [
        "input_voltage",
        "resistor_1",
        "resistor_2"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

output_voltage · number
Output voltage calculated by the tool.
divider_current · number
Divider current calculated by the tool.
power_r1 · number
R1 power calculated by the tool.
power_r2 · number
R2 power calculated by the tool.
{
    "type": "object",
    "properties": {
        "output_voltage": {
            "type": "number",
            "description": "Output voltage calculated by the tool."
        },
        "divider_current": {
            "type": "number",
            "description": "Divider current calculated by the tool."
        },
        "power_r1": {
            "type": "number",
            "description": "R1 power calculated by the tool."
        },
        "power_r2": {
            "type": "number",
            "description": "R2 power calculated by the tool."
        }
    },
    "additionalProperties": false
}

Voltage Divider Calculator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/voltage-divider-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "input_voltage": 12,
    "resistor_1": 10000,
    "resistor_2": 4700
}'
{
    "ok": true,
    "data": {
        "slug": "voltage-divider-calculator",
        "result": {
            "values": {
                "output_voltage": 3.83673500000000000653699316899292171001434326171875,
                "divider_current": 0.000815999999999999993567645351077999293920584022998809814453125,
                "power_r1": 0.0066639999999999997848387778276446624659001827239990234375,
                "power_r2": 0.0031319999999999998015198787726376394857652485370635986328125
            },
            "display": {
                "display": "3.836735"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.