diff options
author | Akshay NH | 2018-06-28 19:22:03 +0530 |
---|---|---|
committer | Akshay NH | 2018-06-28 19:22:03 +0530 |
commit | d1edc2c0c9b8d823892b94482e01451e82c3eec1 (patch) | |
tree | 9fb54dfd93a975be8b2a8cb29b21eb5639ac29ef /digital ciruits/ex1_trans_amp | |
download | eSIm-Kicad-Simulations-d1edc2c0c9b8d823892b94482e01451e82c3eec1.tar.gz eSIm-Kicad-Simulations-d1edc2c0c9b8d823892b94482e01451e82c3eec1.tar.bz2 eSIm-Kicad-Simulations-d1edc2c0c9b8d823892b94482e01451e82c3eec1.zip |
adding kicad analog and digital circuits
Diffstat (limited to 'digital ciruits/ex1_trans_amp')
-rw-r--r-- | digital ciruits/ex1_trans_amp/ex1.wbk | 10 | ||||
-rw-r--r-- | digital ciruits/ex1_trans_amp/ex1_trans_amp-cache.lib | 84 | ||||
-rw-r--r-- | digital ciruits/ex1_trans_amp/ex1_trans_amp.bak | 210 | ||||
-rw-r--r-- | digital ciruits/ex1_trans_amp/ex1_trans_amp.cir | 16 | ||||
-rw-r--r-- | digital ciruits/ex1_trans_amp/ex1_trans_amp.kicad_pcb | 1 | ||||
-rw-r--r-- | digital ciruits/ex1_trans_amp/ex1_trans_amp.pro | 33 | ||||
-rw-r--r-- | digital ciruits/ex1_trans_amp/ex1_trans_amp.sch | 221 |
7 files changed, 575 insertions, 0 deletions
diff --git a/digital ciruits/ex1_trans_amp/ex1.wbk b/digital ciruits/ex1_trans_amp/ex1.wbk new file mode 100644 index 0000000..aadfc0a --- /dev/null +++ b/digital ciruits/ex1_trans_amp/ex1.wbk @@ -0,0 +1,10 @@ +1 +9 +.tran 10u 2m +2 +1 +base +V +1 +v1 +V diff --git a/digital ciruits/ex1_trans_amp/ex1_trans_amp-cache.lib b/digital ciruits/ex1_trans_amp/ex1_trans_amp-cache.lib new file mode 100644 index 0000000..5279693 --- /dev/null +++ b/digital ciruits/ex1_trans_amp/ex1_trans_amp-cache.lib @@ -0,0 +1,84 @@ +EESchema-LIBRARY Version 2.4 +#encoding utf-8 +# +# pspice:0 +# +DEF pspice:0 #GND 0 0 Y Y 1 F P +F0 "#GND" 0 -100 50 H I C CNN +F1 "pspice:0" 0 -70 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 4 0 1 0 -50 0 0 -50 50 0 -50 0 N +X 0 1 0 0 0 R 40 40 1 1 W N +ENDDRAW +ENDDEF +# +# pspice:C +# +DEF pspice:C C 0 10 Y Y 1 F N +F0 "C" 100 150 50 V V C CNN +F1 "pspice:C" 100 -150 50 V V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +ALIAS C +DRAW +P 2 0 1 0 -150 -50 150 -50 N +P 2 0 1 0 -150 50 150 50 N +X ~ 1 0 250 200 D 40 40 1 1 P +X ~ 2 0 -250 200 U 40 40 1 1 P +ENDDRAW +ENDDEF +# +# pspice:QNPN +# +DEF pspice:QNPN Q 0 0 Y Y 1 F N +F0 "Q" -100 300 50 H V C CNN +F1 "pspice:QNPN" -100 200 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 2 0 0 0 0 0 150 -150 N +P 4 0 0 0 150 -150 150 -50 50 -150 150 -150 F +P 2 0 1 0 0 -150 0 150 N +P 2 0 1 0 0 0 150 150 N +P 4 0 1 0 -100 -150 0 -150 0 -150 0 -150 N +X C 1 150 350 200 D 40 40 1 1 P +X B 2 -300 0 300 R 40 40 1 1 I +X E 3 150 -350 200 U 40 40 1 1 P +X Substrat 4 -100 -350 200 U 50 20 1 1 I +ENDDRAW +ENDDEF +# +# pspice:R +# +DEF pspice:R R 0 0 N Y 1 F N +F0 "R" 80 0 50 V V C CNN +F1 "pspice:R" 0 0 50 V V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +S -40 150 40 -150 0 1 0 N +X ~ 1 0 250 100 D 50 50 1 1 P +X ~ 2 0 -250 100 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# pspice:VSOURCE +# +DEF pspice:VSOURCE V 0 40 Y Y 1 F N +F0 "V" -250 300 50 H V C CNN +F1 "pspice:VSOURCE" 0 0 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +C 0 0 200 0 1 0 N +T 0 -320 -10 50 0 0 1 V Normal 0 C C +P 2 0 1 0 -250 -250 -250 150 F +P 3 0 1 0 -300 150 -250 250 -200 150 F +X E1 1 0 300 100 D 50 50 1 1 I +X E2 2 0 -300 100 U 50 50 1 1 I +ENDDRAW +ENDDEF +# +#End Library diff --git a/digital ciruits/ex1_trans_amp/ex1_trans_amp.bak b/digital ciruits/ex1_trans_amp/ex1_trans_amp.bak new file mode 100644 index 0000000..4fef936 --- /dev/null +++ b/digital ciruits/ex1_trans_amp/ex1_trans_amp.bak @@ -0,0 +1,210 @@ +EESchema Schematic File Version 4 +LIBS:ex1_trans_amp-cache +EELAYER 26 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L pspice:VSOURCE V1 +U 1 1 5B215C64 +P 2300 2650 +F 0 "V1" H 2728 2696 50 0000 L CNN +F 1 "12" H 2728 2605 50 0000 L CNN +F 2 "" H 2300 2650 50 0001 C CNN +F 3 "" H 2300 2650 50 0001 C CNN + 1 2300 2650 + 1 0 0 -1 +$EndComp +$Comp +L pspice:R R1 +U 1 1 5B215CDC +P 3700 2650 +F 0 "R1" H 3768 2696 50 0000 L CNN +F 1 "100k" H 3768 2605 50 0000 L CNN +F 2 "" H 3700 2650 50 0001 C CNN +F 3 "" H 3700 2650 50 0001 C CNN + 1 3700 2650 + 1 0 0 -1 +$EndComp +$Comp +L pspice:R R3 +U 1 1 5B215D10 +P 4800 2650 +F 0 "R3" H 4868 2696 50 0000 L CNN +F 1 "3.9k" H 4868 2605 50 0000 L CNN +F 2 "" H 4800 2650 50 0001 C CNN +F 3 "" H 4800 2650 50 0001 C CNN + 1 4800 2650 + 1 0 0 -1 +$EndComp +$Comp +L pspice:R R2 +U 1 1 5B215D5B +P 4100 4600 +F 0 "R2" H 4168 4646 50 0000 L CNN +F 1 "24k" H 4168 4555 50 0000 L CNN +F 2 "" H 4100 4600 50 0001 C CNN +F 3 "" H 4100 4600 50 0001 C CNN + 1 4100 4600 + 1 0 0 -1 +$EndComp +$Comp +L pspice:R R4 +U 1 1 5B215DB1 +P 4800 4600 +F 0 "R4" H 4868 4646 50 0000 L CNN +F 1 "1k" H 4868 4555 50 0000 L CNN +F 2 "" H 4800 4600 50 0001 C CNN +F 3 "" H 4800 4600 50 0001 C CNN + 1 4800 4600 + 1 0 0 -1 +$EndComp +$Comp +L pspice:C C1 +U 1 1 5B215E29 +P 3200 3800 +F 0 "C1" V 2885 3800 50 0000 C CNN +F 1 "10u" V 2976 3800 50 0000 C CNN +F 2 "" H 3200 3800 50 0001 C CNN +F 3 "" H 3200 3800 50 0001 C CNN + 1 3200 3800 + 0 1 1 0 +$EndComp +$Comp +L pspice:VSOURCE V2 +U 1 1 5B215E9D +P 2300 4650 +F 0 "V2" H 2728 4696 50 0000 L CNN +F 1 "0 ac 1.0 sin(0 1 1k)" H 2728 4605 50 0000 L CNN +F 2 "" H 2300 4650 50 0001 C CNN +F 3 "" H 2300 4650 50 0001 C CNN + 1 2300 4650 + 1 0 0 -1 +$EndComp +Wire Wire Line + 2950 3800 2300 3800 +Wire Wire Line + 3700 2400 3700 1950 +Wire Wire Line + 3700 1950 2300 1950 +Wire Wire Line + 3700 1950 4800 1950 +Wire Wire Line + 4800 1950 4800 2400 +Connection ~ 3700 1950 +Wire Wire Line + 3700 2900 3700 3800 +Wire Wire Line + 3700 3800 3450 3800 +Connection ~ 3700 3800 +Wire Wire Line + 4800 3450 4800 2900 +$Comp +L pspice:0 #GND01 +U 1 1 5B216243 +P 2300 3350 +F 0 "#GND01" H 2300 3250 50 0001 C CNN +F 1 "0" H 2300 3437 50 0000 C CNN +F 2 "" H 2300 3350 50 0001 C CNN +F 3 "" H 2300 3350 50 0001 C CNN + 1 2300 3350 + 1 0 0 -1 +$EndComp +$Comp +L pspice:0 #GND02 +U 1 1 5B21627D +P 2300 5350 +F 0 "#GND02" H 2300 5250 50 0001 C CNN +F 1 "0" H 2300 5437 50 0000 C CNN +F 2 "" H 2300 5350 50 0001 C CNN +F 3 "" H 2300 5350 50 0001 C CNN + 1 2300 5350 + 1 0 0 -1 +$EndComp +$Comp +L pspice:0 #GND03 +U 1 1 5B2162D0 +P 4100 5300 +F 0 "#GND03" H 4100 5200 50 0001 C CNN +F 1 "0" H 4100 5387 50 0000 C CNN +F 2 "" H 4100 5300 50 0001 C CNN +F 3 "" H 4100 5300 50 0001 C CNN + 1 4100 5300 + 1 0 0 -1 +$EndComp +$Comp +L pspice:0 #GND04 +U 1 1 5B216303 +P 4800 5300 +F 0 "#GND04" H 4800 5200 50 0001 C CNN +F 1 "0" H 4800 5387 50 0000 C CNN +F 2 "" H 4800 5300 50 0001 C CNN +F 3 "" H 4800 5300 50 0001 C CNN + 1 4800 5300 + 1 0 0 -1 +$EndComp +Wire Wire Line + 4100 4850 4100 5300 +Wire Wire Line + 4800 4850 4800 5300 +Text GLabel 2050 3800 0 50 BiDi ~ 0 +v1 +Wire Wire Line + 2050 3800 2300 3800 +Connection ~ 2300 3800 +Text Notes 2250 6100 0 50 ~ 0 +.tran 1e-5 2e-3 +Text Notes 2250 5800 0 50 ~ 0 +.model qnpn npn +Text Notes 1500 1600 0 50 ~ 0 +1. Start the Simulator (Tools->Simulator)\n2. Click "Run/Stop Simulation".\n3. Click "Add signals"\n4. Add V(base) and V(v1), click OK. +Text Notes 1500 1000 0 80 ~ 0 +Example based on Chapter 21.1 AC coupler transistor amplifier, from\nhttp://ngspice.sourceforge.net/docs/ngspice-manual.pdf\n +Text Notes 2250 6600 0 50 ~ 0 +.control\nrun\nplot v(base) v(v1)\n.endc +Wire Wire Line + 4800 4150 4800 4250 +Wire Wire Line + 2300 3800 2300 4350 +Wire Wire Line + 2300 4950 2300 5350 +Wire Wire Line + 2300 3350 2300 2950 +Wire Wire Line + 2300 2350 2300 1950 +Wire Wire Line + 4350 3800 4100 3800 +Wire Wire Line + 3700 3800 4100 3800 +Connection ~ 4100 3800 +Wire Wire Line + 4100 3800 4100 4350 +$Comp +L pspice:QNPN Q1 +U 1 1 5B2E41F0 +P 4650 3800 +F 0 "Q1" H 4877 3846 50 0000 L CNN +F 1 "QNPN" H 4877 3755 50 0000 L CNN +F 2 "" H 4650 3800 50 0001 C CNN +F 3 "" H 4650 3800 50 0001 C CNN + 1 4650 3800 + 1 0 0 -1 +$EndComp +Wire Wire Line + 4550 4150 4550 4250 +Wire Wire Line + 4550 4250 4800 4250 +Connection ~ 4800 4250 +Wire Wire Line + 4800 4250 4800 4350 +$EndSCHEMATC diff --git a/digital ciruits/ex1_trans_amp/ex1_trans_amp.cir b/digital ciruits/ex1_trans_amp/ex1_trans_amp.cir new file mode 100644 index 0000000..83ed548 --- /dev/null +++ b/digital ciruits/ex1_trans_amp/ex1_trans_amp.cir @@ -0,0 +1,16 @@ +.title KiCad schematic +V1 Net-_R1-Pad1_ 0 12 +R1 Net-_R1-Pad1_ Net-_C1-Pad1_ 100k +R3 Net-_R1-Pad1_ out 3.9k +R2 Net-_C1-Pad1_ 0 24k +R4 Net-_Q1-Pad3_ 0 1k +C1 Net-_C1-Pad1_ v1 10u +V2 v1 0 0 ac 1.0 sin(0 1 1k) +Q1 out Net-_C1-Pad1_ Net-_Q1-Pad3_ Net-_Q1-Pad3_ QNPN +.tran 1e-5 2e-3 +.model qnpn npn +.control +run +plot v(base) v(v1) +.endc +.end diff --git a/digital ciruits/ex1_trans_amp/ex1_trans_amp.kicad_pcb b/digital ciruits/ex1_trans_amp/ex1_trans_amp.kicad_pcb new file mode 100644 index 0000000..02c8ecb --- /dev/null +++ b/digital ciruits/ex1_trans_amp/ex1_trans_amp.kicad_pcb @@ -0,0 +1 @@ +(kicad_pcb (version 4) (host kicad "dummy file") ) diff --git a/digital ciruits/ex1_trans_amp/ex1_trans_amp.pro b/digital ciruits/ex1_trans_amp/ex1_trans_amp.pro new file mode 100644 index 0000000..152769c --- /dev/null +++ b/digital ciruits/ex1_trans_amp/ex1_trans_amp.pro @@ -0,0 +1,33 @@ +update=22/05/2015 07:44:53 +version=1 +last_client=kicad +[general] +version=1 +RootSch= +BoardNm= +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[eeschema] +version=1 +LibDir= +[eeschema/libraries] diff --git a/digital ciruits/ex1_trans_amp/ex1_trans_amp.sch b/digital ciruits/ex1_trans_amp/ex1_trans_amp.sch new file mode 100644 index 0000000..3f2a5de --- /dev/null +++ b/digital ciruits/ex1_trans_amp/ex1_trans_amp.sch @@ -0,0 +1,221 @@ +EESchema Schematic File Version 4 +LIBS:ex1_trans_amp-cache +EELAYER 26 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L pspice:VSOURCE V1 +U 1 1 5B215C64 +P 2300 2650 +F 0 "V1" H 2728 2696 50 0000 L CNN +F 1 "12" H 2728 2605 50 0000 L CNN +F 2 "" H 2300 2650 50 0001 C CNN +F 3 "" H 2300 2650 50 0001 C CNN + 1 2300 2650 + 1 0 0 -1 +$EndComp +$Comp +L pspice:R R1 +U 1 1 5B215CDC +P 3700 2650 +F 0 "R1" H 3768 2696 50 0000 L CNN +F 1 "100k" H 3768 2605 50 0000 L CNN +F 2 "" H 3700 2650 50 0001 C CNN +F 3 "" H 3700 2650 50 0001 C CNN + 1 3700 2650 + 1 0 0 -1 +$EndComp +$Comp +L pspice:R R3 +U 1 1 5B215D10 +P 4800 2650 +F 0 "R3" H 4868 2696 50 0000 L CNN +F 1 "3.9k" H 4868 2605 50 0000 L CNN +F 2 "" H 4800 2650 50 0001 C CNN +F 3 "" H 4800 2650 50 0001 C CNN + 1 4800 2650 + 1 0 0 -1 +$EndComp +$Comp +L pspice:R R2 +U 1 1 5B215D5B +P 4100 4600 +F 0 "R2" H 4168 4646 50 0000 L CNN +F 1 "24k" H 4168 4555 50 0000 L CNN +F 2 "" H 4100 4600 50 0001 C CNN +F 3 "" H 4100 4600 50 0001 C CNN + 1 4100 4600 + 1 0 0 -1 +$EndComp +$Comp +L pspice:R R4 +U 1 1 5B215DB1 +P 4800 4600 +F 0 "R4" H 4868 4646 50 0000 L CNN +F 1 "1k" H 4868 4555 50 0000 L CNN +F 2 "" H 4800 4600 50 0001 C CNN +F 3 "" H 4800 4600 50 0001 C CNN + 1 4800 4600 + 1 0 0 -1 +$EndComp +$Comp +L pspice:C C1 +U 1 1 5B215E29 +P 3200 3800 +F 0 "C1" V 2885 3800 50 0000 C CNN +F 1 "10u" V 2976 3800 50 0000 C CNN +F 2 "" H 3200 3800 50 0001 C CNN +F 3 "" H 3200 3800 50 0001 C CNN + 1 3200 3800 + 0 1 1 0 +$EndComp +$Comp +L pspice:VSOURCE V2 +U 1 1 5B215E9D +P 2300 4650 +F 0 "V2" H 2728 4696 50 0000 L CNN +F 1 "0 ac 1.0 sin(0 1 1k)" H 2728 4605 50 0000 L CNN +F 2 "" H 2300 4650 50 0001 C CNN +F 3 "" H 2300 4650 50 0001 C CNN + 1 2300 4650 + 1 0 0 -1 +$EndComp +Wire Wire Line + 2950 3800 2300 3800 +Wire Wire Line + 3700 2400 3700 1950 +Wire Wire Line + 3700 1950 2300 1950 +Wire Wire Line + 3700 1950 4800 1950 +Wire Wire Line + 4800 1950 4800 2400 +Connection ~ 3700 1950 +Wire Wire Line + 3700 2900 3700 3800 +Wire Wire Line + 3700 3800 3450 3800 +Connection ~ 3700 3800 +Wire Wire Line + 4800 3450 4800 3300 +$Comp +L pspice:0 #GND01 +U 1 1 5B216243 +P 2300 3350 +F 0 "#GND01" H 2300 3250 50 0001 C CNN +F 1 "0" H 2300 3437 50 0000 C CNN +F 2 "" H 2300 3350 50 0001 C CNN +F 3 "" H 2300 3350 50 0001 C CNN + 1 2300 3350 + 1 0 0 -1 +$EndComp +$Comp +L pspice:0 #GND02 +U 1 1 5B21627D +P 2300 5350 +F 0 "#GND02" H 2300 5250 50 0001 C CNN +F 1 "0" H 2300 5437 50 0000 C CNN +F 2 "" H 2300 5350 50 0001 C CNN +F 3 "" H 2300 5350 50 0001 C CNN + 1 2300 5350 + 1 0 0 -1 +$EndComp +$Comp +L pspice:0 #GND03 +U 1 1 5B2162D0 +P 4100 5300 +F 0 "#GND03" H 4100 5200 50 0001 C CNN +F 1 "0" H 4100 5387 50 0000 C CNN +F 2 "" H 4100 5300 50 0001 C CNN +F 3 "" H 4100 5300 50 0001 C CNN + 1 4100 5300 + 1 0 0 -1 +$EndComp +$Comp +L pspice:0 #GND04 +U 1 1 5B216303 +P 4800 5300 +F 0 "#GND04" H 4800 5200 50 0001 C CNN +F 1 "0" H 4800 5387 50 0000 C CNN +F 2 "" H 4800 5300 50 0001 C CNN +F 3 "" H 4800 5300 50 0001 C CNN + 1 4800 5300 + 1 0 0 -1 +$EndComp +Wire Wire Line + 4100 4850 4100 5300 +Wire Wire Line + 4800 4850 4800 5300 +Text GLabel 2050 3800 0 50 BiDi ~ 0 +v1 +Wire Wire Line + 2050 3800 2300 3800 +Connection ~ 2300 3800 +Text Notes 2250 6100 0 50 ~ 0 +.tran 1e-5 2e-3 +Text Notes 2250 5800 0 50 ~ 0 +.model qnpn npn +Text Notes 1500 1600 0 50 ~ 0 +1. Start the Simulator (Tools->Simulator)\n2. Click "Run/Stop Simulation".\n3. Click "Add signals"\n4. Add V(base) and V(v1), click OK. +Text Notes 1500 1000 0 80 ~ 0 +Example based on Chapter 21.1 AC coupler transistor amplifier, from\nhttp://ngspice.sourceforge.net/docs/ngspice-manual.pdf\n +Text Notes 2250 6600 0 50 ~ 0 +.control\nrun\nplot v(base) v(v1)\n.endc +Wire Wire Line + 4800 4150 4800 4250 +Wire Wire Line + 2300 3800 2300 4350 +Wire Wire Line + 2300 4950 2300 5350 +Wire Wire Line + 2300 3350 2300 2950 +Wire Wire Line + 2300 2350 2300 1950 +Wire Wire Line + 4350 3800 4100 3800 +Wire Wire Line + 3700 3800 4100 3800 +Connection ~ 4100 3800 +Wire Wire Line + 4100 3800 4100 4350 +$Comp +L pspice:QNPN Q1 +U 1 1 5B2E41F0 +P 4650 3800 +F 0 "Q1" H 4877 3846 50 0000 L CNN +F 1 "QNPN" H 4877 3755 50 0000 L CNN +F 2 "" H 4650 3800 50 0001 C CNN +F 3 "" H 4650 3800 50 0001 C CNN + 1 4650 3800 + 1 0 0 -1 +$EndComp +Wire Wire Line + 4550 4150 4550 4250 +Wire Wire Line + 4550 4250 4800 4250 +Connection ~ 4800 4250 +Wire Wire Line + 4800 4250 4800 4350 +Text GLabel 5600 3100 0 50 Output ~ 0 +out +Wire Wire Line + 5600 3100 5950 3100 +Wire Wire Line + 5950 3100 5950 3300 +Wire Wire Line + 5950 3300 4800 3300 +Connection ~ 4800 3300 +Wire Wire Line + 4800 3300 4800 2900 +$EndSCHEMATC |