Apps Part of Ohmforge

Schematic Electrical Rules Check (Typed Pins)

Check pin types on every net: output conflicts, undriven inputs, unpowered supply pins

Paste an exported .ohmforge.json project (at most 200 parts and 200 wires).

Try an example: · ·

More about this tool

How it works

Run a typed-pin electrical rules check on an Ohmforge schematic: a pin-conflict matrix over input, output, bidirectional, tri-state, passive, power and open-collector pins plus drive rules for inputs, power inputs and open-collector nets.

  • Every component pin gets an electrical type from Ohmforge's catalog: input, output, bidirectional, tri-state, passive, unspecified, power input, power output, open collector or open emitter. Discrete parts are passive; gate, op-amp and comparator outputs are push-pull outputs; supply pins of the real op-amp, comparator and 555 are power inputs; the 555 discharge pin is open collector; voltage sources, batteries, bench supplies and VCVS outputs are power outputs.
  • Pin conflicts: each unordered pair of pins on one resolved net is looked up in a symmetric matrix (error, warning or no finding), for example output–output and output–power output are errors, output–tri-state is a warning.
  • Drive rules: an input needs another pin on its net that can set its level (anything except inputs and power inputs); a power input needs a power output on its net; a net driven only by open-collector or open-emitter pins needs a pull-up or pull-down part. On the ground net these become warnings, because the ground symbol is a simulation reference rather than a supply.
  • Two-terminal voltage sources are judged per source: both terminals on one net is an error (shorted source), two sources on the same pair of nets is a warning (parallel sources); one shared terminal (series stack or common reference) is normal.
  • At most 100 findings are listed, errors first; the counts always include all findings.

Pin types describe Ohmforge's built-in simulation symbols, not specific physical parts. The check does not verify voltage levels, logic families, ratings, timing or PCB rules; no findings does not prove a circuit correct or safe.

Sources

Part of Ohmforge

  • Ohmforge Virtual electronics workbench

    Draw a circuit, switch it on, and measure it with real-feeling bench instruments.

    Open Ohmforge

Related tools

Check pin types in an Ohmforge schematic

Run a typed-pin electrical rules check on an Ohmforge project to find outputs wired together, inputs nothing drives and supply pins without power.

What it is for

Many wiring mistakes are visible from pin types alone: two outputs tied together, an input left floating, a chip whose supply pin never reaches a battery. Schematic Electrical Rules Check (Typed Pins) looks for them in a saved Ohmforge project. Paste the contents of an .ohmforge.json file and every component pin gets an electrical type: input, output, bidirectional, tri-state, passive, power input, power output, open collector or open emitter.

Resistors, capacitors, diodes, transistors and switches are passive. Gate, op-amp and comparator outputs are outputs; the supply pins of the real op-amp, the comparator and the 555 are power inputs; the 555 discharge pin is open collector; voltage sources, batteries and bench supplies are power outputs. Then the tool applies a conflict matrix to each pair of pins on a net, plus drive rules for inputs, power inputs and open-collector nets.

Worked example

Choose Two inverter outputs on one net. Two inverters, U1 and U2, have their outputs joined, and that net goes to input A of an AND gate U3. The summary reads "4 errors and 0 warnings on 7 pins." The findings:

  • U1.Y (output) and U2.Y (output) share net N002.
  • Input U1.A has no driving pin on net N001.
  • Input U2.A has no driving pin on net N003.
  • Input U3.B has no driving pin on net N004.

U3.A is not listed: the joined outputs drive it, even though they conflict.

Now choose 555 timer without a supply: a 555 with one resistor on its discharge pin. The result is 5 errors on 10 pins: the power inputs U1.GND and U1.VCC "have no power output", and the inputs RESET, THR and TRIG have no driving pin. No open-collector warning appears: the discharge net has a resistor and no input.

Battery, resistor and LED (clean) returns "No typed-pin findings on 6 pins."

How to read the result

The metrics show errors, warnings, pins checked and omitted findings. Errors come first in the findings table, then warnings; each row names the rule, the pins with their types and the net. The JSON result also gives each pin's grid point and a count of pins per type.

The Pin conflict matrix table lists every pair of types. Output with output, power output, open collector or open emitter is an error; output with tri-state or bidirectional is a warning; inputs and passive pins never conflict. An input is driven by any pin except other inputs and power inputs. A power input needs a power output on the same net, so a resistor between battery and supply pin is reported.

Tips and common mistakes

  • On the ground net, missing drivers are warnings, not errors: the ground symbol is the simulation reference, not a supply. Wire the battery's minus terminal to ground and they disappear.
  • Batteries in series or supplies sharing ground are fine. Two sources on exactly the same two nets are reported as parallel; both terminals on one net as shorted.
  • Generated net names such as N002 change after edits; find problems by part and pin.
  • Single unconnected pins are the Schematic Connectivity Review's job; this check reports them only when they are inputs or power inputs.
  • In Ohmforge the same check appears in Connectivity review with a Show button per pin.

FAQ

Does no finding mean the circuit works?

No. Pin types describe Ohmforge's simulation symbols, not a specific chip, and the check knows nothing about logic levels, voltages, ratings or timing. Simulate the circuit as well.

How is this different from the Output Conflict Review?

That older tool only classifies logic gates and the comparator and stays unchanged for existing scripts. This check types every pin and adds the drive rules.

Is it the same as KiCad's ERC?

It uses the same pin type vocabulary, but the matrix and the per-symbol types are Ohmforge's own. Results can differ from KiCad's.

What are the limits?

Projects up to 200 KB with at most 200 parts and 200 wires. At most 100 findings are listed; the counts always include all of them.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://ohmforgepinerc.usefulweb.app/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://ohmforgepinerc.usefulweb.app/mcp · tool name ohmforge_pin_erc
Example request
curl -s -X POST https://ohmforgepinerc.usefulweb.app/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{…see OpenAPI examples…}'
Feedback · ideas & bug reports welcome