Difference between revisions of "ESim/C2/Simulating-an-Astable-Multivibrator/English"
(Created page with "'''Simulating Astable Multivibrator''' '''Author: Saurabh Bansode ''' '''Keywords: video tutorial, eSim, EDA, schematic, simulation, Design, Spice models, ngspice, kicad, an...") |
Nancyvarkey (Talk | contribs) |
||
Line 14: | Line 14: | ||
Opening Slide | Opening Slide | ||
− | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Welcome to the spoken tutorial on '''Simulating Astable Multivibrator '''in '''eSim'''. | |
− | + | ||
− | + | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Welcome to the spoken tutorial on | + | |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Show Slide:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Show Slide:''' | ||
Line 23: | Line 20: | ||
Learning Objectives | Learning Objectives | ||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | In this tutorial, we will - | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | In this tutorial, we will - | ||
− | |||
* <div style="margin-left:1.27cm;margin-right:0cm;">Create and '''simulate''' an '''Astable Multivibrator'''.</div> | * <div style="margin-left:1.27cm;margin-right:0cm;">Create and '''simulate''' an '''Astable Multivibrator'''.</div> | ||
− | * <div style="margin-left:1.27cm;margin-right:0cm;">Understand ''' | + | * <div style="margin-left:1.27cm;margin-right:0cm;">Understand '''dot cir '''and '''dot cir dot out''' files.</div> |
* <div style="margin-left:1.27cm;margin-right:0cm;">Observe and understand the '''Ngspice terminal'''.</div> | * <div style="margin-left:1.27cm;margin-right:0cm;">Observe and understand the '''Ngspice terminal'''.</div> | ||
− | |||
|- | |- | ||
Line 34: | Line 29: | ||
Systems Requirements | Systems Requirements | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | To record this tutorial, we will use-* <div style="margin-left:1.27cm;margin-right:0cm;">'''Ubuntu Linux OS '''16.04 </div> | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | To record this tutorial, we will use- |
+ | * <div style="margin-left:1.27cm;margin-right:0cm;">'''Ubuntu Linux OS '''16.04 </div> | ||
* <div style="margin-left:1.27cm;margin-right:0cm;">'''eSim '''version 1.1.2</div> | * <div style="margin-left:1.27cm;margin-right:0cm;">'''eSim '''version 1.1.2</div> | ||
− | |||
|- | |- | ||
Line 76: | Line 71: | ||
− | Pause the video to download and extract the code files on your '''Desktop.''' | + | Pause the video to download and extract the '''code files''' on your '''Desktop.''' |
− | We will use the downloaded code file to practice the rest of the tutorial. | + | We will use the downloaded '''code file''' to practice the rest of the tutorial. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''eSim Main Window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''eSim Main Window:''' | ||
Line 88: | Line 83: | ||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on''' Open Project '''>>Browse To '''Desktop''' >>click on '''AstableMultivibrator>>'''click on '''Open''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on''' Open Project '''>>Browse To '''Desktop''' >>click on '''AstableMultivibrator>>'''click on '''Open''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on '''Open Project '''on the left toolbar. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on '''Open Project '''button on the left toolbar. |
+ | Browse to the '''Desktop''' location and click on '''AstableMultivibrator.''' | ||
− | + | Then click on the '''Open '''button. | |
− | + | ||
− | + | ||
− | Then click on the '''Open '''button | + | |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''eSim Main Window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''eSim Main Window:''' | ||
Line 106: | Line 99: | ||
Press F1 to zoom in. | Press F1 to zoom in. | ||
− | |||
− | |||
− | |||
− | |||
Line 115: | Line 104: | ||
Press '''Esc '''key >> click on '''View '''>> select '''Fit on Screen''' | Press '''Esc '''key >> click on '''View '''>> select '''Fit on Screen''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Press the '''F1 '''key | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Press the '''F1 '''key to zoom into the '''schematic'''. |
Line 128: | Line 117: | ||
It will fit the '''schematic''' back to its default resolution. | It will fit the '''schematic''' back to its default resolution. | ||
+ | |||
+ | I will zoom in again. | ||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Point to the connections | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Point to the connections | ||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Several connections are already made. | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Several connections are already made. | ||
− | |||
− | |||
− | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''eSim Schematic Window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''eSim Schematic Window:''' | ||
Hover the mouse over the end points of''' eSim_LED '''and''' eSim_R '''present on the right hand side of the schematic. | Hover the mouse over the end points of''' eSim_LED '''and''' eSim_R '''present on the right hand side of the schematic. | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | The wires should be connected end-to-end for | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | The wires should be connected end-to-end for '''components''', and not external outlines. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | ||
Line 152: | Line 140: | ||
Drag cursor till the horizontal line of the '''eSim_LED''' | Drag cursor till the horizontal line of the '''eSim_LED''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Select the '''Place Wire''' tool. |
− | + | ||
− | Select the | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | I have clicked on one end of '''eSim underscore R'''. | ||
− | I will drag it to the exterior outline of the ''' | + | I will drag it to the exterior outline of the '''eSim underscore LED''' and double-click. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''eSim Schematic Editor:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''eSim Schematic Editor:''' | ||
Line 173: | Line 155: | ||
Press '''Ctrl+Z''' | Press '''Ctrl+Z''' | ||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | The empty green box shows that the connection is not proper. | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | The empty green box shows that the connection is not proper. | ||
− | |||
− | |||
Line 192: | Line 172: | ||
Drag cursor till the''' Node 1''' of '''eSim_LED'''>> | Drag cursor till the''' Node 1''' of '''eSim_LED'''>> | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on the unconnected node of the '''resistor'''. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on the unconnected '''node''' of the '''resistor'''. |
− | Then drag the cursor till '''node 1''' of ''' | + | Then drag the cursor till '''node 1''' of '''eSim underscore LED''' |
|- | |- | ||
− | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | + | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click once on the '''eSim_R''' node |
− | + | ||
− | + | ||
− | + | ||
Press '''Esc''' key | Press '''Esc''' key | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click once on the''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click once on the''' eSim underscore LED node '''to place the wire. |
Press '''Esc''' key. | Press '''Esc''' key. | ||
Line 213: | Line 190: | ||
>> Drag the cursor till the wire connecting adjacent '''transistor '''and '''capacitor'''>>Click once on the existing wire >> press the '''Esc''' key | >> Drag the cursor till the wire connecting adjacent '''transistor '''and '''capacitor'''>>Click once on the existing wire >> press the '''Esc''' key | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Select the '''Place Wire''' tool and click on the''' node 2''' of ''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Select the '''Place Wire''' tool and click on the''' node 2''' of '''eSim underscore LED'''. |
Drag the cursor till the wire connecting the adjacent '''transistor''' and '''capacitor'''. | Drag the cursor till the wire connecting the adjacent '''transistor''' and '''capacitor'''. | ||
− | |||
− | |||
Line 231: | Line 206: | ||
This is called a '''junction'''. | This is called a '''junction'''. | ||
|- | |- | ||
− | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Schematic | + | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Schematic Editor''': |
Right click on''' plot_v1''' | Right click on''' plot_v1''' | ||
Line 238: | Line 213: | ||
Click once on the editor. | Click once on the editor. | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Right-click on''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Right-click on''' plot underscore v1 '''and select the''' Copy component''' option'''. ''' |
− | ''' | + | '''plot underscore v1 '''will be tied to the cursor. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Drag the cursor near the '''LED '''on the right side>>click once to Place it next to the''' LED''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Drag the cursor near the '''LED '''on the right side>>click once to Place it next to the''' LED''' | ||
Line 252: | Line 227: | ||
Enter '''LED2'''>>Click '''OK'''>> | Enter '''LED2'''>>Click '''OK'''>> | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on '''Place Global Label''' on the right toolbar to place a global label. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on '''Place Global Label''' on the right toolbar, to place a global label. |
Click once on the editor. | Click once on the editor. | ||
Line 261: | Line 236: | ||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click once near the''' LED'''. | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click once near the''' LED'''. | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Place the '''LED2 global label''' near the''' LED '''on the right side by clicking on the editor once. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Place the '''LED2 global label''' near the''' LED '''on the right side, by clicking once on the editor once. |
'''Rotate''' the '''Global label''' if required. | '''Rotate''' the '''Global label''' if required. | ||
Line 282: | Line 257: | ||
− | Erase the value ''' | + | Erase the value '''eSim underscore CP1 '''using '''Backspace''' key and type''' 22u.''' |
Line 288: | Line 263: | ||
− | Note that we are using | + | Note that we are using '''polarised capacitor'''. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Schematic Editor:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Schematic Editor:''' | ||
Line 299: | Line 274: | ||
Click on '''OK''' | Click on '''OK''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Right-click on ''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Right-click on '''eSim underscore R'''. |
− | Place the cursor on '''Edit Component''', and select the ''' | + | Place the cursor on '''Edit Component''', and select the '''Value''' option. |
− | Erase the value ''' | + | Erase the value '''eSim underscore R '''using '''Backspace''' key and type''' 1k.''' |
Line 318: | Line 293: | ||
'''Select Place wire tool>> Click on plot_v1, drag till junction>>click once>>click once on LED2>>drag till junction and click once''' | '''Select Place wire tool>> Click on plot_v1, drag till junction>>click once>>click once on LED2>>drag till junction and click once''' | ||
− | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Connect '''plot_v1 '''and '''LED2 global label '''to the '''junction''' as shown. | |
− | + | ||
− | + | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Connect '''plot_v1 '''and '''LED2 global label '''to the junction as shown. | + | |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Schematic Editor:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Schematic Editor:''' | ||
Line 327: | Line 299: | ||
Click on '''Annotate Schematic'''>> | Click on '''Annotate Schematic'''>> | ||
− | Click on '''Annotate''' >> Click '''OK>> '''Press '''Ctrl''' and '''S | + | Click on '''Annotate''' >> Click '''OK>> '''Press '''Ctrl''' and '''S''' keys simultaneously |
− | + | ||
− | + | ||
− | + | ||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on '''Annotate Schematic''' tool on the top toolbar. | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on '''Annotate Schematic''' tool on the top toolbar. | ||
Click on '''Annotate''' option, and then on '''OK'''. | Click on '''Annotate''' option, and then on '''OK'''. | ||
+ | |||
+ | Press '''Ctrl''' and '''S''' keys simultaneously to save the work. | ||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Schematic Editor:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Schematic Editor:''' | ||
Line 342: | Line 313: | ||
− | + | Click on '''Run.''' | |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''ERC Window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''ERC Window:''' | ||
Line 352: | Line 323: | ||
− | Click on '''Delete Markers''' and click on '''Close.''' | + | Click on '''Delete Markers''' and then click on '''Close.''' |
− | + | ||
− | + | ||
− | + | ||
− | More information on '''ERC''' | + | More information on '''ERC errors''' is given in the '''Additional Reading Material '''of this tutorial. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Schematic Editor WIndow:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Schematic Editor WIndow:''' | ||
Line 384: | Line 352: | ||
− | Click on''' Convert | + | Click on''' Convert Kicad to Ngspice convertor.''' |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Kicad to Ngspice Converter:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Kicad to Ngspice Converter:''' | ||
Line 405: | Line 373: | ||
'''Window: '''Click on '''source details''' tab | '''Window: '''Click on '''source details''' tab | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on ''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on the '''Source details''' tab. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Kicad to ngspice convertor ''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Kicad to ngspice convertor ''' | ||
Line 423: | Line 391: | ||
Click on '''Add''' >> Double click on '''Diode''' folder >> select '''LED.lib '''>> click on '''Open''' | Click on '''Add''' >> Double click on '''Diode''' folder >> select '''LED.lib '''>> click on '''Open''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on '''Device Modeling '''tab | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on '''Device Modeling '''tab. |
− | Click on the '''Add''' button under '''d1: | + | Click on the '''Add''' button under '''d1:esim underscore led.''' |
Line 432: | Line 400: | ||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Similarly add the '''library files''' for '''d2: | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Similarly add the '''library files''' for '''d2:esim underscore led''' |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Kicad to Ngspice Converter:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Kicad to Ngspice Converter:''' | ||
Line 439: | Line 407: | ||
Click on '''Add''' >> Double click on '''Transistor''' folder >> select '''BC547B.lib''' >> click on '''Open''' | Click on '''Add''' >> Double click on '''Transistor''' folder >> select '''BC547B.lib''' >> click on '''Open''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on the '''Add''' button under '''q1: | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on the '''Add''' button under '''q1:esim underscore npn.''' |
Line 445: | Line 413: | ||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Similarly add the library files for '''q2:esim_npn''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Similarly add the '''library files''' for '''q2:esim_npn''' |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Kicad to Ngspice Converter:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Kicad to Ngspice Converter:''' | ||
Line 452: | Line 420: | ||
Click on '''Convert '''>> Click''' OK''' | Click on '''Convert '''>> Click''' OK''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Now press the '''Convert '''button to convert | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Now press the '''Convert '''button to convert the''' KiCad netlist '''to''' Ngspice netlist.''' |
Line 460: | Line 428: | ||
Click on '''Simulation.''' | Click on '''Simulation.''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on ''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Click on '''Simulation '''on the '''eSim '''toolbar to simulate the '''example.''' |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Ngspice Terminal:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Ngspice Terminal:''' | ||
Line 472: | Line 440: | ||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | ||
− | |||
− | |||
− | |||
Line 481: | Line 446: | ||
− | Type the following text in the ''' | + | Type the following text in the '''Ngspice terminal''' as shown and press the '''Enter''' key. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Hover the mouse over '''LED1+LED2 '''voltage plots. | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Hover the mouse over '''LED1+LED2 '''voltage plots. | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | We can see the voltage at '''nodes LED1 '''and''' LED2 '''combined in a single plot | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | We can see the voltage at '''nodes LED1 '''and''' LED2 '''combined in a single plot. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Any error will be displayed on the''' terminal''' or the value will be replaced with a question mark. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Any error will be displayed on the''' Ngspice terminal''' or the value will be replaced with a question mark. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | I will switch to Python Plot window now. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | I will switch to '''Python Plot''' window now. |
|- | |- | ||
| style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Python Plot Window:''' | | style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''Python Plot Window:''' | ||
Line 500: | Line 465: | ||
− | Scroll down and click on ''' | + | Scroll down and click on '''Plot''' button. |
|- | |- | ||
| style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | | style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | | ||
Line 512: | Line 477: | ||
Right click on '''AstableMultivibrator'''>> select the '''refresh''' option>>Double-click on '''AstableMultivibrator.cir ''' | Right click on '''AstableMultivibrator'''>> select the '''refresh''' option>>Double-click on '''AstableMultivibrator.cir ''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Right click on '''AstableMultivibrator''' and select the ''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | Right-click on '''AstableMultivibrator''' and select the '''Refresh''' option |
− | The ''' | + | The '''dot cir''' file shows the '''netist '''file of the '''schematic'''. |
− | It contains the information about the '''node''' | + | It contains the information about the '''node''' connections and values of '''components'''. |
|- | |- | ||
| style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''eSim Main Window:''' | | style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | '''eSim Main Window:''' | ||
Double click on '''AstableMultivibrator.cir.out''' | Double click on '''AstableMultivibrator.cir.out''' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
Highlight the '''.tran 10e-03 12e-00 0e-00''' text | Highlight the '''.tran 10e-03 12e-00 0e-00''' text | ||
− | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | The '''cir | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | The '''cir dot out''' file is passed to '''ngspice''' for running '''simulations'''. |
− | It contains information about the '''device and subcircuit models''' used in the''' KiCad to Ngspice '''conversion tool. | + | It contains information about the '''device''' and '''subcircuit models''' used in the''' KiCad to Ngspice '''conversion tool. |
Line 546: | Line 506: | ||
Summary | Summary | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | In this tutorial, we learnt to-* <div style="margin-left:1.27cm;margin-right:0cm;">Create and '''simulate''' an '''Astable Multivibrator.'''</div> | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | In this tutorial, we learnt to- |
− | * <div style="margin-left:1.27cm;margin-right:0cm;">Understand ''' | + | * <div style="margin-left:1.27cm;margin-right:0cm;">Create and '''simulate''' an '''Astable Multivibrator.'''</div> |
+ | * <div style="margin-left:1.27cm;margin-right:0cm;">Understand '''dot cir '''and '''dot cir dot out''' files.</div> | ||
* <div style="margin-left:1.27cm;margin-right:0cm;">Observe and understand the '''Ngspice terminal'''.</div> | * <div style="margin-left:1.27cm;margin-right:0cm;">Observe and understand the '''Ngspice terminal'''.</div> | ||
Line 586: | Line 547: | ||
Previous slide | Previous slide | ||
− | |||
− | |||
− | |||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | This is Saurabh from IIT Bombay, signing off. | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;" | This is Saurabh from IIT Bombay, signing off. | ||
Revision as of 11:29, 6 September 2019
Simulating Astable Multivibrator
Author: Saurabh Bansode
Keywords: video tutorial, eSim, EDA, schematic, simulation, Design, Spice models, ngspice, kicad, analysis, transient
Visual cue | Narration |
Show Slide:
Opening Slide |
Welcome to the spoken tutorial on Simulating Astable Multivibrator in eSim. |
Show Slide:
Learning Objectives |
In this tutorial, we will -
|
Show Slide:
Systems Requirements |
To record this tutorial, we will use-
|
Show Slide:
Prerequisites |
To practice this tutorial, basic knowledge of electronics is required. |
Show Slide:
Circuit Diagram |
Earlier, we learnt how to create a schematic for an RC circuit.
|
<<FAST-FORWARD>> | A considerable part of this activity has been fast forwarded.
|
Show Slide:
Download Code File |
The partially made circuit schematic is available in the Code files link.
|
eSim Main Window: | Launch eSim on your machine.
|
Click on Open Project >>Browse To Desktop >>click on AstableMultivibrator>>click on Open | Click on Open Project button on the left toolbar.
|
eSim Main Window:
Click on Open Schematic |
Click on the Open Schematic button on the left toolbar. |
Schematic Editor Window:
Press F1 to zoom in.
|
Press the F1 key to zoom into the schematic.
I will zoom in again. |
Point to the connections | Several connections are already made. |
eSim Schematic Window:
Hover the mouse over the end points of eSim_LED and eSim_R present on the right hand side of the schematic. |
The wires should be connected end-to-end for components, and not external outlines. |
I will demonstrate a common mistake now. | |
eSim Schematic Editor:
Select the Place Wire tool from right toolbar.
|
Select the Place Wire tool.
|
eSim Schematic Editor:
Zoom and point to the empty square block.
|
The empty green box shows that the connection is not proper.
|
Let us properly connect the eSim_LED present on the right side of the schematic. | |
Schematic Editor Window:
Click on Place Wire: |
Click on Place Wire tool on the right toolbar. |
Click on unconnected node of the resistor
>> Drag cursor till the Node 1 of eSim_LED>> |
Click on the unconnected node of the resistor.
Then drag the cursor till node 1 of eSim underscore LED |
Click once on the eSim_R node
Press Esc key |
Click once on the eSim underscore LED node to place the wire.
Press Esc key. |
Schematic Editor Window:
Click on Place Wire: >>Click on Node 2 of eSim_LED >> Drag the cursor till the wire connecting adjacent transistor and capacitor>>Click once on the existing wire >> press the Esc key |
Select the Place Wire tool and click on the node 2 of eSim underscore LED.
Drag the cursor till the wire connecting the adjacent transistor and capacitor.
Now press the Esc key. |
Schematic Editor:
Zoom into the junction and hover the mouse over it. |
If the wires are placed properly, you will see a green dot where the wires intersect.
This is called a junction. |
Schematic Editor:
Right click on plot_v1 >>Select Copy Component >> Click once on the editor. |
Right-click on plot underscore v1 and select the Copy component option.
plot underscore v1 will be tied to the cursor. |
Drag the cursor near the LED on the right side>>click once to Place it next to the LED | Drag the cursor near the LED on the right side.
Place it next to the LED by clicking once on the editor. |
Schematic Editor:
Select Place Global Label option from the right toolbar >>click once on editor>> Enter LED2>>Click OK>> |
Click on Place Global Label on the right toolbar, to place a global label.
Click once on the editor. Type the text LED2 and click on OK. LED2 global label will be tied to the cursor. |
Click once near the LED. | Place the LED2 global label near the LED on the right side, by clicking once on the editor once.
Rotate the Global label if required. |
Schematic Editor:
Right click on eSim_CP1>> Choose Edit Component>> choose Value >> erase eSim_CP1 and type 22u >>Click on OK |
Right-click on eSim_CP1.
|
Schematic Editor:
Place cursor on eSim_R>> Press the key V >> erase eSim_R and type 1k >> Click on OK |
Right-click on eSim underscore R.
|
Schematic Editor:
Hover mouse over DC source |
We will assign a value to the DC source later. |
Schematic Editor:
Select Place wire tool>> Click on plot_v1, drag till junction>>click once>>click once on LED2>>drag till junction and click once |
Connect plot_v1 and LED2 global label to the junction as shown. |
Schematic Editor:
Click on Annotate Schematic>> Click on Annotate >> Click OK>> Press Ctrl and S keys simultaneously |
Click on Annotate Schematic tool on the top toolbar.
Press Ctrl and S keys simultaneously to save the work. |
Schematic Editor:
Click on Perform electrical Rules check >>Click on Run |
Click on Perform electrical Rules check on the top toolbar.
|
ERC Window:
Click Delete markers>> Click Close |
We can see three warnings regarding Global label, which can be ignored.
|
Schematic Editor WIndow:
Click Generate netlist >> |
Click on Generate Netlist on the top toolbar. |
Generate Netlist WIndow:
spice tab >> check Default >> click on Generate >> Click Save. |
Click on Spice tab, and check the Default Format option.
|
Now I will switch back to eSim main window. | |
eSim Main window:
Double click on AstableMultivibrator>> Click on KicadtoNgspice |
Double-click on AstableMultivibrator.
|
Kicad to Ngspice Converter:
Analysis Tab Show:
Highlight the values entered.
Start Time 0 Step Time 10 milliseconds Stop Time 12 |
Type the values for transient parameters as shown. |
Kicad to ngspice convertor
Window: Click on source details tab |
Click on the Source details tab. |
Kicad to ngspice convertor
Window: Source Details Tab |
Type the value of DC source as 9.
|
Kicad to Ngspice Converter:
Device Modeling tab:
|
Click on Device Modeling tab.
|
Similarly add the library files for d2:esim underscore led | |
Kicad to Ngspice Converter:
Device Modeling tab: Click on Add >> Double click on Transistor folder >> select BC547B.lib >> click on Open |
Click on the Add button under q1:esim underscore npn.
|
Similarly add the library files for q2:esim_npn | |
Kicad to Ngspice Converter:
Device Modeling tab: Click on Convert >> Click OK |
Now press the Convert button to convert the KiCad netlist to Ngspice netlist.
|
eSim Main Window:
Click on Simulation. |
Click on Simulation on the eSim toolbar to simulate the example. |
Ngspice Terminal:
|
Ngspice terminal and plot windows open along with a python plot window.
|
|
Ngspice commands can be entered to see plots in this terminal.
|
Hover the mouse over LED1+LED2 voltage plots. | We can see the voltage at nodes LED1 and LED2 combined in a single plot. |
Any error will be displayed on the Ngspice terminal or the value will be replaced with a question mark. | |
I will switch to Python Plot window now. | |
Python Plot Window:
Click on LED1, LED2 and IN. >>Click on plot. |
Click on LED1, LED2 and IN checkboxes in the python plot window.
|
If analysis time parameters are not set properly, Python Plotting error will be generated.
| |
eSim Main Window:
|
Right-click on AstableMultivibrator and select the Refresh option
|
eSim Main Window:
Double click on AstableMultivibrator.cir.out
Highlight the .tran 10e-03 12e-00 0e-00 text |
The cir dot out file is passed to ngspice for running simulations.
|
Let us summarize. | |
Show Slide:
Summary |
In this tutorial, we learnt to-
|
Show Slide:
Forum |
Please post your timed queries in this forum. |
Show Slide:
FOSSEE Forum |
Please post your general queries on eSim in this forum. |
Show Slide:
Lab Migration |
FOSSEE team coordinates the Lab Migration project. |
Show Slide:
Circuit Simulation Project |
FOSSEE team coordinates the Circuit Simulation Project. |
Show Slide:
Acknowledgment |
Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.
|
Previous slide |
This is Saurabh from IIT Bombay, signing off.
Thank you. |