Skip to content
CircuitKitBy Crafter Lab
EditorGalleryLesson
← Back to collection
Example / voltage-divider / geist-lightExpectation matched

One-quarter divider

Ideal unloaded ratio 0.25.

idealratioSI
Actual core output / SVGvoltage-divider/quarter/geist-light
One-quarter dividerOne-quarter divider. R1: resistor, 30 kΩ. R2: resistor, 10 kΩ. ground: GND connected to R2.b. input: R1.a connected to VIN. output: R1.b connected to R2.a connected to VOUT. VOUT/VIN = Rbottom/(Rtop+Rbottom) = 0.25. Ideal, unloaded voltage divider. A connected load changes this ratio.. Focus components: none. Focus nets: none.

Scroll horizontally on smaller screens to inspect legible nodes and labels. No simulation is performed.

The original input stays intact, including invalid fields.

Open in editorDownload JSONDownload SVG ↓
Expected vs. actual

An inspectable result.

These checks compare the renderer outcome with the declared case expectation. The stress test also checks determinism, geometry, and connectivity.

Expected
Successful SVG render
Actual
SVG rendered0 diagnostics
Case check
Passed
Recipe / theme
Voltage dividergeist-light
The circuit graph, not its drawing

Electrical nodes & connectivity

Each net is one electrical node: the named endpoints below are connected. Component pins and external ports are endpoints. These counts are not the number of geometric junction dots or wire bends. No voltages, currents, or simulation results are inferred.

Components
2
Electrical nodes / nets
3
Component pins
4
External ports
3
Connected endpoints
7
Electrical nodes from normalized circuit.nets
Net / electrical nodeEndpointsConnected component pins and ports
ground2
  • GND
  • R2.b
input2
  • R1.a
  • VIN
output3
  • R1.b
  • R2.a
  • VOUT
Structured feedback

Diagnostics / 0

No diagnostics. The renderer accepted this source and produced the figure above.

Original figure document · JSON
{
  "version": 1,
  "circuit": {
    "components": {
      "R1": {
        "type": "resistor",
        "resistance": 30000
      },
      "R2": {
        "type": "resistor",
        "resistance": 10000
      }
    },
    "ports": {
      "VIN": {
        "kind": "terminal"
      },
      "VOUT": {
        "kind": "terminal"
      },
      "GND": {
        "kind": "ground"
      }
    },
    "nets": {
      "input": [
        "VIN",
        "R1.a"
      ],
      "output": [
        "R1.b",
        "R2.a",
        "VOUT"
      ],
      "ground": [
        "R2.b",
        "GND"
      ]
    }
  },
  "layout": {
    "preset": "voltage-divider",
    "roles": {
      "top": "R1",
      "bottom": "R2",
      "input": "VIN",
      "output": "VOUT",
      "ground": "GND"
    }
  },
  "presentation": {
    "title": "One-quarter divider",
    "theme": {
      "preset": "geist-light"
    },
    "highlight": {
      "components": [],
      "nets": []
    }
  }
}
Expected outcome & actual diagnostics · JSON
{
  "id": "voltage-divider/quarter/geist-light",
  "expectation": {
    "kind": "render"
  },
  "actual": {
    "ok": true,
    "diagnostics": []
  },
  "passed": true
}
Rendered bounds & renderer version · JSON
{
  "rendererVersion": "0.1.0",
  "bounds": {
    "x": 0,
    "y": 0,
    "width": 1000,
    "height": 600,
    "labels": {
      "title": {
        "x": 65.53,
        "y": 57.316,
        "width": 302.09000000000003,
        "height": 29.783999999999992
      },
      "subtitle": {
        "x": 64.18,
        "y": 104.11,
        "width": 269.19,
        "height": 13.230000000000004
      },
      "R1:id": {
        "x": 365.46,
        "y": 194.22,
        "width": 19.260000000000048,
        "height": 12.780000000000001
      },
      "R1:value": {
        "x": 340.2,
        "y": 217.576,
        "width": 70.58400000000006,
        "height": 17.807999999999993
      },
      "VIN:port": {
        "x": 162.6,
        "y": 221.8,
        "width": 34,
        "height": 14.199999999999989
      },
      "VOUT:port": {
        "x": 796.6,
        "y": 221.48,
        "width": 46.60000000000002,
        "height": 14.840000000000003
      },
      "R2:id": {
        "x": 651.26,
        "y": 334.932,
        "width": 19.43999999999994,
        "height": 13.067999999999984
      },
      "R2:value": {
        "x": 651.44,
        "y": 358.576,
        "width": 70.34399999999994,
        "height": 17.807999999999993
      },
      "GND:port": {
        "x": 650.646,
        "y": 435.658,
        "width": 29.307999999999993,
        "height": 12.613999999999976
      },
      "formula": {
        "x": 64.6,
        "y": 520,
        "width": 478.19999999999993,
        "height": 18
      },
      "assumption": {
        "x": 65.288,
        "y": 556.046,
        "width": 429.39400000000006,
        "height": 12.22199999999998
      }
    },
    "symbols": {
      "R1": {
        "x": 303.5,
        "y": 254.5,
        "width": 143,
        "height": 31
      },
      "R2": {
        "x": 584.5,
        "y": 318.5,
        "width": 31,
        "height": 97
      },
      "GND": {
        "x": 579.5,
        "y": 436.5,
        "width": 41,
        "height": 19
      }
    },
    "routes": {
      "input": [
        {
          "x": 178.5,
          "y": 268.5,
          "width": 128,
          "height": 3
        }
      ],
      "output": [
        {
          "x": 443.5,
          "y": 268.5,
          "width": 158,
          "height": 3
        },
        {
          "x": 598.5,
          "y": 268.5,
          "width": 223,
          "height": 3
        },
        {
          "x": 598.5,
          "y": 268.5,
          "width": 3,
          "height": 53
        }
      ],
      "ground": [
        {
          "x": 598.5,
          "y": 412.5,
          "width": 3,
          "height": 27
        }
      ]
    }
  }
}
← Previous exampleOne-tenth dividergeist-printNext example →One-quarter dividergeist-dark
CircuitKit · By Crafter Lab

A drawing tool, not simulation, electrical-safety approval, or a fabrication system.

Apache-2.0Source on GitHub ↗