API & MCP

Everything a person can do on Ohmforge Resistor Network Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Ohmforge Resistor Network Calculator

Two jobs in one: find the combination of up to three standard resistors (E6 to E192) that comes closest to a resistance you cannot buy, or evaluate a series/parallel expression such as 100 + (220 || 330) with the voltage, current and power of every resistor at a given voltage.

Inputs of Ohmforge Resistor Network Calculator
FieldTypeDefaultDescription
modeselect (find, evaluate)"find"Task
targettext"1234"Target resistance. For "find": engineering notation, e.g. 1234, 2k15, 12.5.
seriesselect (E6, E12, E24, E48, E96, E192)"E24"Standard resistor series
maxPartsselect (1, 2, 3)"3"Resistors at most
expressiontext"100 + (220 || 330)"Network expression. For "evaluate": values joined with + (series) and || or // (parallel); parentheses group; || binds tighter than +.
voltagenumber10Voltage across the network. For "evaluate": used for the current and power of each resistor.

Example request

Make 1234 Ω from E12 parts

curl -X POST https://ohmforgeresistornetwork.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"find","target":"1234","series":"E12","maxParts":"3"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "ohmforge-resistor-network": { "type": "http", "url": "https://ohmforgeresistornetwork.usefulweb.site/mcp" }
  }
}