Chip-dat/TI-dat/LM358-DAT/2025-03-18-16-26-29.png
... ...
Binary files /dev/null and b/Chip-dat/TI-dat/LM358-DAT/2025-03-18-16-26-29.png differ
Chip-dat/TI-dat/LM358-DAT/2025-03-18-17-43-43.png
... ...
Binary files /dev/null and b/Chip-dat/TI-dat/LM358-DAT/2025-03-18-17-43-43.png differ
Chip-dat/TI-dat/LM358-DAT/LM358-DAT.md
... ...
@@ -18,6 +18,47 @@
18 18
https://www.onsemi.com/download/data-sheet/pdf/lm358-d.pdf
19 19
20 20
21
+## Basic
22
+
23
+non-inverting voltage reference
24
+
25
+![](2025-03-18-17-43-43.png)
26
+
27
+## simulation
28
+
29
+https://www.ti.com/product/LM358#design-tools-simulation
30
+
31
+download official model - Simulation model
32
+
33
+[LMx58_LM2904 PSpice Model (Rev. C)](https://www.ti.com/lit/zip/snom268)
34
+
35
+SNOM268C.ZIP (23 KB) - PSpice Model
36
+
37
+
38
+input 5V, output 10V, gain = 2x
39
+
40
+https://www.circuitlab.com/editor/#?id=4x4jmf
41
+
42
+![](2025-03-18-16-26-29.png)
43
+
44
+
45
+## LM358 Kicad Simulation
46
+
47
+
48
+## LM358 Common-Mode Input Voltage Range
49
+
50
+#### **Single-Supply Operation (e.g., 0V to 5V)**
51
+- **CMVR:** 0V to (Vcc - 1.5V)
52
+- Example: If **Vcc = 5V**, input range is **0V to 3.5V**.
53
+
54
+#### **Dual-Supply Operation (e.g., ±5V)**
55
+- **CMVR:** (V−) to (V+ - 1.5V)
56
+- Example: If **Vcc = ±5V**, input range is **-5V to +3.5V**.
57
+
58
+#### **Key Considerations**
59
+- **Input must stay within CMVR** for proper operation.
60
+- **Exceeding CMVR** may cause distortion or incorrect behavior.
61
+- **LM358 supports input down to ground** (0V) in single-supply mode.
21 62
22 63
## App
23 64
PCB-dat/EDA-dat/eaglecad-dat/eagle-simulation-dat/eagle-simulation-dat.md
... ...
@@ -0,0 +1,42 @@
1
+
2
+# eagle-simulation-dat
3
+
4
+
5
+## add model card for spice, examples
6
+
7
+D:\EAGLE 9.6.2\examples\spice\examples\OPAMP.mdl
8
+
9
+
10
+
11
+## The model card does not include the required .MODEL line, please check your model.
12
+
13
+The model card cannot include subcircuit definitions.
14
+
15
+ * BASIC OP AMP MODEL
16
+ * Device Pins In+ In- vdd vss Vout
17
+ * vdd vss unused in this model!!
18
+ .SUBCKT opamp 1 2 vdd vss vout
19
+ *
20
+ * INPUT
21
+ RIN 1 2 1e9
22
+ *
23
+ * AMPLIFIER STAGE: GAIN, POLE, SLEW
24
+ * Aol=10000, fu=1000000 Hz
25
+ G1 0 10 VALUE = { 1e-2 * V(1,2) }
26
+ R1 10 0 1e6
27
+ C1 10 0 1.59e-9
28
+ *
29
+ * 2ND POLE
30
+ G2 0 20 10 0 1e-6
31
+ R2 20 0 1e6
32
+ C2 20 0 3.3e-14
33
+ *
34
+ * 3RD POLE
35
+ G3 0 30 20 0 1e-6
36
+ R3 30 0 1e6
37
+ C3 30 0 3.3e-14
38
+ *
39
+ * OUTPUT STAGE
40
+ EBUFFER 80 0 30 0 1
41
+ ROUT 80 vout 100
42
+ .ENDS opamp
... ...
\ No newline at end of file
PCB-dat/EDA-dat/kicad-dat/kicad-dat.md
... ...
@@ -3,11 +3,11 @@
3 3
4 4
- lib 旧版 符号文件
5 5
6
-- [[kicad-workflow-dat]] - [[kicad-plugin-dat]]
7
-
8
-
6
+- [[kicad-workflow-dat]] - [[kicad-plugin-dat]] - [[kicad-shortcuts-dat]]
9 7
8
+- [[kicad-lib-dat]] - [[kicad-data-dat]]
10 9
10
+- [[kicad-simulation-dat]]
11 11
12 12
13 13
... ...
@@ -39,4 +39,4 @@ alt ctrl F
39 39
40 40
## ref
41 41
42
-- [[kicad]]
... ...
\ No newline at end of file
0
+- [[kicad]]
... ...
\ No newline at end of file
PCB-dat/EDA-dat/kicad-dat/kicad-lib-dat/kicad-lib-dat.md
... ...
@@ -0,0 +1,20 @@
1
+
2
+# kicad-lib.md
3
+
4
+
5
+
6
+## common used lib
7
+
8
+- power
9
+ - +5V
10
+ - GND
11
+- Device
12
+ - R == resistor
13
+ - LED
14
+
15
+
16
+## simulation
17
+
18
+- simulation_SPICE
19
+ - vdc
20
+
PCB-dat/EDA-dat/kicad-dat/kicad-shortcuts-dat/kicad-shortcuts-dat.md
... ...
@@ -0,0 +1,6 @@
1
+
2
+# kicad-shortcuts-dat
3
+
4
+A == symbol
5
+
6
+
PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-14-46-38.png
... ...
Binary files /dev/null and b/PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-14-46-38.png differ
PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-14-49-30.png
... ...
Binary files /dev/null and b/PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-14-49-30.png differ
PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-15-22-45.png
... ...
Binary files /dev/null and b/PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-15-22-45.png differ
PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-15-35-42.png
... ...
Binary files /dev/null and b/PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-15-35-42.png differ
PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-15-39-01.png
... ...
Binary files /dev/null and b/PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-15-39-01.png differ
PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-16-04-42.png
... ...
Binary files /dev/null and b/PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/2025-03-18-16-04-42.png differ
PCB-dat/EDA-dat/kicad-dat/kicad-simulation-dat/kicad-simulation-dat.md
... ...
@@ -0,0 +1,103 @@
1
+
2
+# kicad-simulation-dat
3
+
4
+- [[LM358-dat]]
5
+
6
+- [[EDA-simulation-dat]]
7
+
8
+## Import SPICE model
9
+
10
+SPICE model from file (*.lib, *.sub or *ibs)
11
+
12
+## custom build
13
+
14
+LED
15
+
16
+I opened their “Tools and support” tab, underneath I, found a design resources tab. (figure 1)
17
+
18
+![](2025-03-18-14-49-30.png)
19
+
20
+Underneath design resources they asked for the type of document, I chose “Simulation Models” (figure 2)
21
+
22
+I searched for the part by name: “BC547”. We want the library, so we choose “BC547 Lib Model” and downloaded it. (figure 3)
23
+
24
+
25
+OP-Amp
26
+
27
+![](2025-03-18-15-22-45.png)
28
+
29
+## setup
30
+
31
+[VDC](https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#sec_Independent_Sources_for)
32
+
33
+
34
+### LED
35
+
36
+![](2025-03-18-14-46-38.png)
37
+LEDs are a bit trickier in the fact that modeling them requires some knowledge about their parameters and curve-fitting. So, to model them I just looked up “LED ngspice”.
38
+
39
+I found multiple people posting their “LED models” and I decided to go with this
40
+
41
+“ *Typ RED GaAs LED: Vf=1.7V Vr=4V If=40mA trr=3uS .MODEL LED1 D (IS=93.2P RS=42M N=3.73 BV=4 IBV=10U + CJO=2.97P VJ=.75 M=.333 TT=4.32U)?”
42
+
43
+
44
+## download
45
+
46
+
47
+[Simulation examples for KiCad8/KiCad9/Eeschema/ngspice](https://forum.kicad.info/t/simulation-examples-for-kicad8-kicad9-eeschema-ngspice/45546)
48
+
49
+- Generic symbols with generic models, see intro4
50
+- Another 555 circuit example
51
+
52
+[github collections](https://github.com/labtroll/KiCad-Simulations)
53
+
54
+[simulation-examples-for-kicad-eeschema-ngspice](https://forum.kicad.info/t/simulation-examples-for-kicad-eeschema-ngspice/34443/4)
55
+
56
+
57
+## tuto kicad 9
58
+
59
+[ref tutorial](https://ngspice.sourceforge.io/ngspice-eeschema.html#OpAmp)
60
+
61
+
62
+### simple - voltage ladder
63
+
64
+![](2025-03-18-16-04-42.png)
65
+
66
+
67
+### AC Since - RC Ladder
68
+
69
+Schematic Setup
70
+
71
+![](2025-03-18-15-39-01.png)
72
+
73
+SPICE Simulator
74
+
75
+![](2025-03-18-15-35-42.png)
76
+
77
+### Inverting Amplifier - Transient Analysis
78
+
79
+https://www.youtube.com/watch?v=6YvECTfwVOw
80
+
81
+
82
+## tuto
83
+
84
+https://www.instructables.com/Simulating-a-KiCad-Circuit/
85
+
86
+3Y ago
87
+https://www.youtube.com/watch?v=pCQ4MUyQjx0
88
+
89
+https://www.kicad.org/discover/spice/
90
+
91
+simple transistor build and simulate
92
+https://www.woolseyworkshop.com/2019/07/01/performing-a-circuit-simulation-in-kicad/
93
+
94
+
95
+## OPA1641
96
+
97
+- need to fix the pin assignment
98
+- [great tuto here](https://www.youtube.com/watch?v=Wg7uSs4J_0U)
99
+
100
+
101
+## ref
102
+
103
+- [[kicad-dat]] - [[voltage-divider-dat]]
... ...
\ No newline at end of file
PCB-dat/EDA-simulation-dat/EDA-simulation-dat.md
... ...
@@ -1,6 +1,8 @@
1 1
2 2
# EDA-simulation-dat
3 3
4
+## software
5
+
4 6
| Software | Features & Use Case | Free Version Available? |
5 7
| ---------------------- | ---------------------------------------------------------------- | ------------------------------- |
6 8
| **LTspice** | Powerful SPICE simulator for analog circuits (by Analog Devices) | ✅ Free |
... ...
@@ -12,5 +14,36 @@
12 14
| **OrCAD PSpice** | High-end analog and mixed-signal simulation | ❌ Paid (Lite version available) |
13 15
| **Fusion 360 (Eagle)** | PCB design with simulation tools (by Autodesk) | ✅ Free for hobbyists |
14 16
15
-- [[EDA-dat]]
17
+- [[kicad-simulation-dat]] - [[eagle-simulation-dat]]
18
+
19
+
20
+## ngspice
21
+
22
+- [manual](https://ngspice.sourceforge.io/docs/ngspice-manual.pdf)
23
+
24
+
25
+https://ngspice.sourceforge.io/ngspice-eeschema.html#BipAmp
26
+
27
+
28
+## PSpice
29
+
30
+- PSpice (OrCAD Capture).
31
+- LTspice
32
+
33
+
34
+- [[LM358-dat]]
35
+
36
+
37
+## online simulation
38
+
39
+https://www.circuitlab.com/editor/#?id=7pq5wm&from=homepage
40
+
41
+support: [[amplifier-dat]], [[NE555-dat]], [[comparator-dat]], [[logic-gate-dat]], ...
42
+
43
+
44
+
45
+
46
+## ref
47
+
16 48
49
+- [[EDA-dat]]
... ...
\ No newline at end of file
Tech-dat/power-dat/voltage-divider-dat/voltage-divider-dat.md
... ...
@@ -11,4 +11,7 @@ Vout = Vin * (R2 / (R1 + R2))
11 11
12 12
## ref
13 13
14
-- https://learn.sparkfun.com/tutorials/voltage-dividers/all#:~:text=A%20voltage%20divider%20is%20a,most%20fundamental%20circuits%20in%20electronics.
... ...
\ No newline at end of file
0
+- https://learn.sparkfun.com/tutorials/voltage-dividers/all#:~:text=A%20voltage%20divider%20is%20a,most%20fundamental%20circuits%20in%20electronics.
1
+
2
+
3
+https://ohmslawcalculator.com/voltage-divider-calculator
... ...
\ No newline at end of file