Skip to content
CircuitKitBy Crafter Lab
EditorGalleryLesson
← Back to collection
Example / transistor-switch / geist-darkExpectation matched

5 V low-side drawing

A three-pin NPN switches the LED collector path. A separate base resistor/control node and supply-negative/emitter ground return remain explicit. A 5 V collector supply with 4.7 kΩ base and 470 Ω series resistors retains a distinct external control terminal.

multi-pinsharedgroundcontrolcollectordrawing-onlyvaluesideal-limitations
Actual core output / SVGtransistor-switch/logic-5/geist-dark
5 V low-side drawing5 V low-side drawing. D1: led, LED. Q1: npn, NPN. RB: resistor, 4.7 kΩ. RS: resistor, 470 Ω. V1: dc-source, 5 V. base: Q1.base connected to RB.b. collector: D1.cathode connected to Q1.collector. control: CTRL connected to RB.a. ground: GND connected to Q1.emitter connected to V1.negative. led_anode: D1.anode connected to RS.b. supply: RS.a connected to V1.positive. Topology illustration, not a device simulation. Shared-ground low-side NPN topology. No gain, saturation, LED current or switching-time model.. 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
NPN low-side LED switchgeist-dark
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
5
Electrical nodes / nets
6
Component pins
11
External ports
2
Connected endpoints
13
Electrical nodes from normalized circuit.nets
Net / electrical nodeEndpointsConnected component pins and ports
base2
  • Q1.base
  • RB.b
collector2
  • D1.cathode
  • Q1.collector
control2
  • CTRL
  • RB.a
ground3
  • GND
  • Q1.emitter
  • V1.negative
led_anode2
  • D1.anode
  • RS.b
supply2
  • RS.a
  • V1.positive
Structured feedback

Diagnostics / 0

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

Original figure document · JSON
{
  "version": 1,
  "circuit": {
    "components": {
      "V1": {
        "type": "dc-source",
        "voltage": 5
      },
      "RB": {
        "type": "resistor",
        "resistance": 4700
      },
      "RS": {
        "type": "resistor",
        "resistance": 470
      },
      "D1": {
        "type": "led"
      },
      "Q1": {
        "type": "npn"
      }
    },
    "ports": {
      "CTRL": {
        "kind": "terminal"
      },
      "GND": {
        "kind": "ground"
      }
    },
    "nets": {
      "supply": [
        "V1.positive",
        "RS.a"
      ],
      "led_anode": [
        "RS.b",
        "D1.anode"
      ],
      "collector": [
        "D1.cathode",
        "Q1.collector"
      ],
      "control": [
        "CTRL",
        "RB.a"
      ],
      "base": [
        "RB.b",
        "Q1.base"
      ],
      "ground": [
        "Q1.emitter",
        "V1.negative",
        "GND"
      ]
    }
  },
  "layout": {
    "preset": "transistor-switch",
    "roles": {
      "supply": "V1",
      "baseResistor": "RB",
      "series": "RS",
      "led": "D1",
      "switch": "Q1",
      "control": "CTRL",
      "ground": "GND"
    }
  },
  "presentation": {
    "title": "5 V low-side drawing",
    "theme": {
      "preset": "geist-dark"
    }
  }
}
Expected outcome & actual diagnostics · JSON
{
  "id": "transistor-switch/logic-5/geist-dark",
  "expectation": {
    "kind": "render"
  },
  "actual": {
    "ok": true,
    "diagnostics": []
  },
  "passed": true
}
Rendered bounds & renderer version · JSON
{
  "rendererVersion": "0.1.0",
  "bounds": {
    "x": 0,
    "y": 0,
    "width": 1500,
    "height": 1200,
    "labels": {
      "title": {
        "x": 66.04,
        "y": 57.82599999999999,
        "width": 323.646,
        "height": 29.682000000000002
      },
      "subtitle": {
        "x": 65.38,
        "y": 104.33500000000001,
        "width": 171.28499999999994,
        "height": 10.844999999999999
      },
      "formula": {
        "x": 64.8,
        "y": 1120.78,
        "width": 549.5200000000001,
        "height": 17.460000000000036
      },
      "assumption": {
        "x": 64.77,
        "y": 1155.836,
        "width": 615.6500000000004,
        "height": 12.432000000000016
      },
      "V1:id": {
        "x": 310.54,
        "y": 533.22,
        "width": 19.97999999999996,
        "height": 12.779999999999973
      },
      "V1:value": {
        "x": 311.44,
        "y": 556.96,
        "width": 41.04000000000002,
        "height": 17.423999999999978
      },
      "CTRL:port": {
        "x": 276.76,
        "y": 791.48,
        "width": 46.04000000000002,
        "height": 14.840000000000032
      },
      "RS:id": {
        "x": 1091.26,
        "y": 342.932,
        "width": 19.548000000000002,
        "height": 13.355999999999995
      },
      "RS:value": {
        "x": 1090.96,
        "y": 366.576,
        "width": 70.82399999999984,
        "height": 17.807999999999993
      },
      "D1:id": {
        "x": 1091.62,
        "y": 533.22,
        "width": 18.90000000000009,
        "height": 12.779999999999973
      },
      "D1:value": {
        "x": 1092.4,
        "y": 556.96,
        "width": 39.88799999999992,
        "height": 17.039999999999964
      },
      "RB:id": {
        "x": 590.46,
        "y": 762.22,
        "width": 19.548000000000002,
        "height": 12.779999999999973
      },
      "RB:value": {
        "x": 557.76,
        "y": 785.576,
        "width": 85.22399999999993,
        "height": 17.423999999999978
      },
      "Q1:id": {
        "x": 1080.684,
        "y": 806.932,
        "width": 19.836000000000013,
        "height": 15.210000000000036
      },
      "Q1:value": {
        "x": 1081.68,
        "y": 830.96,
        "width": 39.83999999999992,
        "height": 17.039999999999964
      },
      "GND:port": {
        "x": 750.646,
        "y": 1037.658,
        "width": 29.307999999999993,
        "height": 12.614000000000033
      }
    },
    "symbols": {
      "V1": {
        "x": 216.5,
        "y": 498.5,
        "width": 67,
        "height": 123
      },
      "RS": {
        "x": 984.5,
        "y": 308.5,
        "width": 31,
        "height": 123
      },
      "D1": {
        "x": 974.5,
        "y": 498.5,
        "width": 83,
        "height": 123
      },
      "RB": {
        "x": 538.5,
        "y": 824.5,
        "width": 123,
        "height": 31
      },
      "Q1": {
        "x": 868.5,
        "y": 758.5,
        "width": 133,
        "height": 163
      },
      "GND": {
        "x": 679.5,
        "y": 1028.5,
        "width": 41,
        "height": 31
      }
    },
    "routes": {
      "supply": [
        {
          "x": 248.5,
          "y": 258.5,
          "width": 3,
          "height": 243
        },
        {
          "x": 248.5,
          "y": 258.5,
          "width": 753,
          "height": 3
        },
        {
          "x": 998.5,
          "y": 258.5,
          "width": 3,
          "height": 53
        }
      ],
      "led_anode": [
        {
          "x": 998.5,
          "y": 428.5,
          "width": 3,
          "height": 73
        }
      ],
      "collector": [
        {
          "x": 998.5,
          "y": 618.5,
          "width": 3,
          "height": 143
        }
      ],
      "control": [
        {
          "x": 298.5,
          "y": 838.5,
          "width": 243,
          "height": 3
        }
      ],
      "base": [
        {
          "x": 658.5,
          "y": 838.5,
          "width": 213,
          "height": 3
        }
      ],
      "ground": [
        {
          "x": 248.5,
          "y": 618.5,
          "width": 3,
          "height": 383
        },
        {
          "x": 248.5,
          "y": 998.5,
          "width": 753,
          "height": 3
        },
        {
          "x": 998.5,
          "y": 918.5,
          "width": 3,
          "height": 83
        },
        {
          "x": 698.5,
          "y": 998.5,
          "width": 3,
          "height": 33
        }
      ]
    }
  }
}
← Previous example5 V low-side drawinggeist-lightNext example →5 V low-side drawinggeist-print
CircuitKit · By Crafter Lab

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

Apache-2.0Source on GitHub ↗