12 V switched branch
A three-pin NPN switches the LED collector path. A separate base resistor/control node and supply-negative/emitter ground return remain explicit. 12 V, 22 kΩ base and 2.2 kΩ LED resistors show separate base, collector and emitter nodes without device assumptions.
Scroll horizontally on smaller screens to inspect legible nodes and labels. No simulation is performed.
The original input stays intact, including invalid fields.
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
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
| Net / electrical node | Endpoints | Connected component pins and ports |
|---|---|---|
base | 2 |
|
collector | 2 |
|
control | 2 |
|
ground | 3 |
|
led_anode | 2 |
|
supply | 2 |
|
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": 12
},
"RB": {
"type": "resistor",
"resistance": 22000
},
"RS": {
"type": "resistor",
"resistance": 2200
},
"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": "12 V switched branch",
"theme": {
"preset": "geist-dark"
}
}
}Expected outcome & actual diagnostics · JSON
{
"id": "transistor-switch/supply-12/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": 65.36,
"y": 57.316,
"width": 325.78799999999995,
"height": 25.092
},
"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.576,
"width": 55.44,
"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": 1091.2,
"y": 366.576,
"width": 84.98399999999992,
"height": 17.423999999999978
},
"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": 565.2,
"y": 785.576,
"width": 70.58399999999995,
"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
}
]
}
}
}