Skip to content

Commit c4570f2

Browse files
committed
BPF
1 parent 4547e90 commit c4570f2

5 files changed

Lines changed: 219 additions & 1 deletion

File tree

devlog/DevLog-002-00-Educational-Example-Circuits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Preview images should be captured at a consistent zoom level showing the complet
168168
| Coupled LC Resonators | Done | Done | Done |
169169
| Voltage Divider | Done | TODO | Done |
170170
| RC High-Pass Filter | Done | TODO | Done |
171-
| RLC Bandpass Filter | TODO | TODO | TODO |
171+
| RLC Bandpass Filter | Done (fixed wiring) | TODO | Done |
172172
| Twin-T Notch Filter | TODO | TODO | TODO |
173173
| Half-Wave Rectifier | TODO | TODO | TODO |
174174
| Common Emitter Amplifier | TODO | TODO | TODO |

static/examples/examples.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@
2727
"netlistFile": null,
2828
"previewImage": "/previewImage/rc-highpass.png"
2929
},
30+
{
31+
"id": "rlc-bandpass",
32+
"name": "RLC Bandpass Filter",
33+
"description": "Series RLC bandpass with 5 kHz resonance",
34+
"category": "filters",
35+
"schematicFile": "/examples/rlc-bandpass.json",
36+
"netlistFile": null,
37+
"previewImage": "/previewImage/rlc-bandpass.png"
38+
},
3039
{
3140
"id": "voltage-multiplier",
3241
"name": "Voltage Multiplier",

static/examples/rlc-bandpass.json

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
{
2+
"version": 1,
3+
"schematic": {
4+
"components": [
5+
{
6+
"id": "bp-r1",
7+
"type": "resistor",
8+
"x": 0,
9+
"y": -80,
10+
"rotation": 0,
11+
"mirror": false,
12+
"attributes": {
13+
"InstName": "R1",
14+
"Value": "100"
15+
},
16+
"pins": [
17+
{
18+
"x": 0,
19+
"y": -30,
20+
"name": "1",
21+
"id": "0"
22+
},
23+
{
24+
"x": 0,
25+
"y": 30,
26+
"name": "2",
27+
"id": "1"
28+
}
29+
]
30+
},
31+
{
32+
"id": "bp-l1",
33+
"type": "inductor",
34+
"x": 0,
35+
"y": 0,
36+
"rotation": 0,
37+
"mirror": false,
38+
"attributes": {
39+
"InstName": "L1",
40+
"Value": "10m"
41+
},
42+
"pins": [
43+
{
44+
"x": 0,
45+
"y": -30,
46+
"name": "1",
47+
"id": "0"
48+
},
49+
{
50+
"x": 0,
51+
"y": 30,
52+
"name": "2",
53+
"id": "1"
54+
}
55+
]
56+
},
57+
{
58+
"id": "bp-c1",
59+
"type": "capacitor",
60+
"x": 0,
61+
"y": 80,
62+
"rotation": 0,
63+
"mirror": false,
64+
"attributes": {
65+
"InstName": "C1",
66+
"Value": "100n"
67+
},
68+
"pins": [
69+
{
70+
"x": 0,
71+
"y": -30,
72+
"name": "1",
73+
"id": "0"
74+
},
75+
{
76+
"x": 0,
77+
"y": 30,
78+
"name": "2",
79+
"id": "1"
80+
}
81+
]
82+
},
83+
{
84+
"id": "bp-vin",
85+
"type": "voltage",
86+
"x": -120,
87+
"y": 0,
88+
"rotation": 0,
89+
"mirror": false,
90+
"attributes": {
91+
"InstName": "Vin",
92+
"Value": "SIN(0 5 5k)"
93+
},
94+
"pins": [
95+
{
96+
"x": 0,
97+
"y": -40,
98+
"name": "+",
99+
"id": "0"
100+
},
101+
{
102+
"x": 0,
103+
"y": 40,
104+
"name": "-",
105+
"id": "1"
106+
}
107+
]
108+
},
109+
{
110+
"id": "bp-gnd",
111+
"type": "ground",
112+
"x": -130,
113+
"y": 70,
114+
"rotation": 90,
115+
"mirror": false,
116+
"attributes": {
117+
"InstName": "",
118+
"Value": ""
119+
},
120+
"pins": [
121+
{
122+
"x": 0,
123+
"y": -10,
124+
"name": "0",
125+
"id": "0"
126+
}
127+
]
128+
}
129+
],
130+
"wires": [
131+
{
132+
"id": "bp-w1",
133+
"x1": -120,
134+
"y1": -40,
135+
"x2": -120,
136+
"y2": -110
137+
},
138+
{
139+
"id": "bp-w2",
140+
"x1": -120,
141+
"y1": -110,
142+
"x2": 0,
143+
"y2": -110
144+
},
145+
{
146+
"id": "bp-w3",
147+
"x1": 0,
148+
"y1": -50,
149+
"x2": 0,
150+
"y2": -30
151+
},
152+
{
153+
"id": "bp-w4",
154+
"x1": 0,
155+
"y1": 30,
156+
"x2": 0,
157+
"y2": 50
158+
},
159+
{
160+
"id": "bp-w5",
161+
"x1": 0,
162+
"y1": 110,
163+
"x2": 0,
164+
"y2": 140
165+
},
166+
{
167+
"id": "bp-w6",
168+
"x1": 0,
169+
"y1": 140,
170+
"x2": -120,
171+
"y2": 140
172+
},
173+
{
174+
"id": "bp-w7",
175+
"x1": -120,
176+
"y1": 140,
177+
"x2": -120,
178+
"y2": 70
179+
},
180+
{
181+
"id": "bp-w8",
182+
"x1": -120,
183+
"y1": 70,
184+
"x2": -120,
185+
"y2": 40
186+
}
187+
],
188+
"junctions": [
189+
{
190+
"id": "bp-j1",
191+
"x": -120,
192+
"y": 70
193+
}
194+
],
195+
"directives": [
196+
{
197+
"id": "bp-tran",
198+
"type": "tran",
199+
"text": ".tran 1u 5m",
200+
"x": -180,
201+
"y": -140
202+
}
203+
],
204+
"parameters": {},
205+
"models": []
206+
},
207+
"netlist": "* RLC Bandpass Filter (Series RLC)\n* Resonant frequency f0 = 1/(2*pi*sqrt(L*C)) = 5.03 kHz\n* Q = (1/R)*sqrt(L/C) = 3.16, Bandwidth = 1.6 kHz\n\nVin in 0 SIN(0 5 5k)\nR1 in n1 100\nL1 n1 out 10m\nC1 out 0 100n\n\n.tran 1u 5m\n.end",
208+
"savedAt": "2026-02-02T07:46:49.639Z"
209+
}
104 KB
Loading
129 KB
Loading

0 commit comments

Comments
 (0)