davixcky/bjt-2

This schematic implements a transistor-driven LED indicator circuit powered by a 12V supply, with a control input via a 5V square wave signal.

Version
0.0.1
License
unset
Stars
0

dist/index.cjs

'use strict';

var jsxRuntime = require('react/jsx-runtime');

var index = () => (jsxRuntime.jsxs("board", { width: "40mm", height: "50mm", children: [jsxRuntime.jsx("voltagesource", { name: "V1", voltage: "12V", schX: -5, schY: 0 }), jsxRuntime.jsx("resistor", { name: "R1", resistance: "10k", footprint: "0805", schX: -2, schY: 3, pcbX: -6, pcbY: -8 }), jsxRuntime.jsx("resistor", { name: "R3", resistance: "10k", footprint: "0805", schX: 2, schY: -3, pcbX: 0, pcbY: -8 }), jsxRuntime.jsx("resistor", { name: "R2", resistance: "220", footprint: "0805", schX: 2, schY: 3, pcbX: 6, pcbY: -8 }), jsxRuntime.jsx("transistor", { name: "Q1", type: "npn", footprint: "sot23", schX: 0, schY: 0, pcbX: 0, pcbY: 0 }), jsxRuntime.jsx("led", { name: "D1", color: "red", footprint: "0805", schX: 4, schY: 0, pcbX: 6, pcbY: 0 }), jsxRuntime.jsx("voltagesource", { name: "V2", voltage: "5V", waveShape: "square", frequency: "100", dutyCycle: "0.5", schX: -5, schY: 3 }), jsxRuntime.jsx("pinheader", { name: "J1", pinCount: 2, footprint: "pinrow2", schX: -3, schY: 3, pcbX: -12, pcbY: 0 }), jsxRuntime.jsx("trace", { from: ".V2 > .pin1", to: ".J1 > .pin1" }), jsxRuntime.jsx("trace", { from: ".V2 > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".J1 > .pin1", to: ".R1 > .pin1" }), jsxRuntime.jsx("trace", { from: ".J1 > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".R1 > .pin2", to: ".Q1 > .base" }), jsxRuntime.jsx("trace", { from: ".V1 > .pin1", to: "net.VCC12" }), jsxRuntime.jsx("trace", { from: "net.VCC12", to: ".R3 > .pin1" }), jsxRuntime.jsx("trace", { from: ".R3 > .pin2", to: ".Q1 > .collector" }), jsxRuntime.jsx("trace", { from: ".R3 > .pin2", to: ".R2 > .pin1" }), jsxRuntime.jsx("trace", { from: ".R2 > .pin2", to: ".D1 > .anode" }), jsxRuntime.jsx("trace", { from: ".D1 > .cathode", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".Q1 > .emitter", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".V1 > .pin2", to: "net.GND" }), jsxRuntime.jsx("analogsimulation", { simulationType: "spice_transient_analysis", duration: "20ms", timePerStep: "10us" })] }));

module.exports = index;