Difference between revisions of "ESim/C2/Mapping-Components-with-Footprints/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
 
Line 641: Line 641:
 
|| '''Show Slide:'''
 
|| '''Show Slide:'''
  
'''Textbook Companion'''
+
'''Lab Migration'''
|| '''FOSSEE''' team coordinates the '''TBC''' project.  
+
|| '''FOSSEE''' team coordinates the '''Lab Migration''' project.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Show Slide:'''
 +
 
 +
'''Circuit Simulation'''
 +
|| '''FOSSEE''' team coordinates the '''Circuit Simulation''' project.  
 
|- style="border:1pt solid #000000;padding:0.176cm;"
 
|- style="border:1pt solid #000000;padding:0.176cm;"
 
|| '''Show Slide:'''
 
|| '''Show Slide:'''
Line 654: Line 659:
 
|- style="border:1pt solid #000000;padding:0.176cm;"
 
|- style="border:1pt solid #000000;padding:0.176cm;"
 
|| '''Previous Slide'''
 
|| '''Previous Slide'''
|| This is Saurabh from '''IIT Bombay''', signing off.
+
|| This is Saurabh from '''IIT Bombay''' signing off.
  
 
Thank you.
 
Thank you.
 
|-
 
|-
 
|}
 
|}

Latest revision as of 18:09, 11 September 2019


Visual cue Narration
Show Slide:

Opening Slide

Welcome to the spoken tutorial on “Mapping components with footprints”.
Show Slide:

Learning Objectives

In this tutorial, we will learn to :
  • Add connectors to a schematic.
  • Map components with footprints using CvPcb.
  • Generate netlist for PCB design.
Show Slide:

System Requirements

This tutorial is recorded using-
  • Ubuntu Linux OS version 16.04
  • eSim version 1.1.2
Show Slide:

Prerequisites

To practice this tutorial, you should know:
  • The basic concepts of electronic circuits.
  • To create circuit schematic in eSim.
  • To simulate the netlist in eSim.


If not, watch the prerequisite eSim spoken tutorials on this website.

eSim Main window: I have already opened eSim on my machine.
eSim Main window:

To open a project


Let us open example “7805VoltageRegulator” from the Examples folder of eSim.
eSim Main window:

Click on Open project





Double-click on Downloads

>>

Double click eSim-1.1.2 folder

>>

Double click Examples

>>

Click on 7805VoltageRegulator

>>

Click on Open

Click on the Open Project button from the left toolbar.


Then browse to the directory where you have installed eSim.


I will double-click on Downloads.


Double-click on eSim hyphen 1.1.2.


Double-click on Examples.


Click on 7805VoltageRegulator.


Click on Open button at the bottom right corner.

eSim Main window:

Click on Open Schematic

To open the schematic, click on Open Schematic button on the left toolbar.

eSim Schematic Editor Window: The eSim Schematic Editor opens.
Scroll key or press F1 to zoom in

Point the cursor to V1 (Sine) block >>Point the cursor to Lm_7805 block.

I will zoom into the schematic.


This circuit uses AC sine wave as input and Lm_7805 subcircuit as a voltage regulator.

Switch back to the eSim main window I will switch back to the eSim main window.
eSim Main Window:

Click on Simulation

Click on Simulation button from the left toolbar.
Point cursor on v(in1,in2) ngspice plot

>>

Point cursor on v(out) ngspice plot

We have given the AC signal as input.


We can see the rectified 5 volts DC output.


Switch back to the eSim main window

Let us learn how to map footprints with components.


I will switch back to eSim Schematic Editor.

eSim Schematic Editor Window:

Hover the mouse over plot_v1, In1, In2 , sine

The schematic contains plots, labels and sources, which are essential for simulation.


These components are not required for PCB designing.

Let us delete the components that are not required for PCB designing.
eSim Schematic Editor Window:

Right-click on sine source >> select Delete Component option


Right click on plot_v1 i.e U1 component >> select the Delete Component option

Right-click on sine source and select the Delete Component option.


Right-click on plot_v1 that is U1 component and select the Delete Component option.

Similarly, we will delete the remaining plots, labels and components which are not required.
eSim Schematic Editor window:

Show DeletedProbesAndLabels.sch

I have deleted other components and their connections.


Let us now add a connector for the output of the circuit schematic.
eSim Schematic Editor window:

Click on Place component >> click on editor.

Click on Place Component button from the right toolbar.


Click anywhere on the schematic.

Component Selection Window:

Type Conn in Filter field


Select Conn underscore 01x02


Click on OK

Type Conn in the Filter field.


Click on Conn underscore 01x02.


Click on OK button at the bottom right of the Component Selection window.

Conn underscore 01x02 will appear to be tied to the cursor.
eSim Schematic Editor window:


Click once, anywhere on the right hand side of the schematic.

Let us place the Conn underscore 01x02 on the right side of the schematic.


Click once to place the connector on the right side of the schematic.

eSim Schematic Editor window:



Click on editor



Click anywhere on the eSim Schematic Editor window

We also need a connector at the input to connect the external power supply.


We have already selected Place component tool.


Click anywhere on the eSim Schematic Editor window.

Component selection window:

Type Screw_Terminal

>>

select Screw_Terminal_01x02 from the list.

>>


Click OK


Click once to place the Screw underscore Terminal underscore 01x02 on left side.

Type Screw underscore Terminal in the filter box.


Click on Screw underscore Terminal underscore 01x02 from the list.


Click OK button at the bottom right corner of Component Selection window.


Click once to place the connector on the left side of the schematic.

eSim Schematic Editor window:


Right click on Screw_Terminal_01x02

>>


Click on Orient Component,and select Mirror IIoption.

Let us rotate Screw underscore Terminal underscore 01x02.


Right-click on Screw underscore Terminal underscore 01x02 component.


Select Orient Component from the drop-down menu and select Mirror II (two) option.

eSim Schematic Editor window:



Connecting wires to the schematic

Now, let us connect the connectors using wires.

We have learnt to place wires earlier in this series.

You can refer to the prerequisite tutorials, if required.


Let us connect pin 1 of Screw_Terminal underscore 01x02 to the wire connecting D3 and D4.

eSim Schematic Editor window:

Show rest of the connected wires.

I have connected rest of the nodes to their respective connectors.

eSim Schematic Editor window:


Perform Annotation and ERC


All the components are connected.


Let us annotate the schematic and perform ERC for the circuit schematic.

Please refer to the prerequisite tutorials to learn how to perform Annotation and ERC.
eSim Schematic Editor window:


Press Ctrl and S key together.


Let us now save the schematic.


Press Ctrl and S keys together to save this schematic.

We will now learn how to map the components with their footprints.


Footprint is the layout of a component which is placed on the Printed Circuit Board.

eSim Schematic Editor window:

Click Run Cvpcb to associate components and footprints button.

Click on the Run CvPcb to associate components and footprints button at the top of the eSim Schematic Editor.


This opens Cvpcb window.

Narration only If you’re using Cvpcb for the first time, you will get a confirmation box.

Here, click on the OK button.


If you get another dialog box titled Confirmation, click on No button.

Cvpcb window:


Hover the cursor over the leftmost panel

The Cvpcb window is divided into three panels.


The left panel shows the Libraries of the footprints.

Cvpcb window: Demonstrate

Hover the cursor over the middle panel

The middle panel is divided into 3 columns.

Hover the cursor over the first column of the middle panel The first column in the middle panel shows the serial number.
Hover the cursor over the second column of the middle panel The second column in the middle panel shows the reference ID of the components used in the schematic.
Hover the cursor over the third column of the middle panel The third column in the middle panel shows the values of the corresponding components, if any.
Cvpcb window:

Hover the cursor over right most panel

The right panel gives a list of footprints available in the libraries.

Cvpcb window: Demonstrate

Hover the cursor to show Filter options

The top menu of Cvpcb window has 3 options to filter the footprints.
Hover the cursor over Filter footprint list by keywords. This will filter the footprints by keywords.
Hover the cursor over Filter footprint list by pin count. This will filter the footprints by pin count.
Hover the cursor over Filter footprint list by Library. This will filter the footprints by the library.
Now we will map the components with their appropriate footprints.
Cvpcb window:

Click on Filter footprints list by library

Click on the option Filter footprints list by library from the top menu.


If any other filters other than Filter footprints list by library are selected, please uncheck them.

Please note that we are designing a board for Through Hole components.
Footprints which are meant for Through hole components, will have THT in their description.
Footprints which are meant for Surface Mount Device components, will have SMD in their description.
Cvpcb window:

Click on C1


Click on Capacitors_THT from the leftmost panel

Click on C1, the first row C1 will be highlighted.


Click on Capacitors_THT from the leftmost panel for selection of footprints of Through hole capacitors.

Cvpcb window:

Hover the cursor on the right panel

The list of Capacitors underscore THT footprints for selected component C1 will be available.
Footprint Window:

Select any footprint from the right most panel


We can also view the selected footprint.

To do so, select any footprint from the right panel.

Click View selected footprint


Click on View selected footprint from the top panel.


This will open footprint window which displays the image of the selected footprint.

Cvpcb window:


Select Capacitors_THT:CP_Radial_D5.0mm_P2.50mm>> Double-click on it

Now let us map the associated footprint for component C1.


Let us locate the footprint with D 5.0 mm and P 2.50 mm.

Double-click on it to assign this footprint.

Cvpcb window:


Click on Connectors_Terminal_Blocks on the left most panel >>

For J1 connector:


Click on J1, click on Connectors underscore Terminal underscore Blocks from the leftmost panel.

Locate TerminalBlock_Altech_AK300-2_P5.00mm in the right most panel.


Double click

Locate TerminalBlock underscore Altech underscore AK300 hyphen 2 underscore P5.00mm in the rightmost panel.


Double-click on it to assign this footprint to J1.

Cvpcb window:


Click on Pin_Headers on the left most panel >>


Locate Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm from the right most panel >>


Double click

For J2 connector:


Click on J2, click on Pin_Headers from the leftmost panel.


Locate Pin underscore Headers colon Pin underscore Header underscore Straight underscore 1x02 underscore Pitch2.54mm .


Double-click on it.

Cvpcb window:

Click on Lm_7805

For Lm_7805:

Click on Lm_7805

Click on TO_SOT_Packages_THT on the left most panel Click on TO underscore SOT underscore Packages underscore THT from the leftmost panel.
Locate T0-220-3_Vertical from the right most panel >>


Double click on T0-220-3_Vertical

Locate T0 hyphen 220 hyphen 3 underscore Vertical from the rightmost panel.


Double-click on it to assign this footprint.

Cvpcb window:

Show rest of the mapped footprints

I have mapped rest of the components with their appropriate footprints.

Cvpcb window:


Click on Save footprint association in schematic component footprint fields at left corner of the top toolbar.

Now we will save this footprint association.


Click on Save footprint association in schematic component footprint fields at the left corner of the top toolbar.

This is a very important step and should not be skipped.


It assigns the selected footprints to the components present in the schematic.

eSim Schematic Editor window :



Switch from CvPcb to eSim Schematic Editor window.

Let us now generate the netlist for circuit schematic required for PCB layout.


I will go back to the eSim Schematic editor window.

eSim Schematic Editor window:

Click on Generate netlist

Click on Generate netlist button at the top of eSim Schematic Editor window.

Netlist window:

Click on Pcbnew tab


Check Default option


Click on Generate

Click on Pcbnew tab.


Check the option Default format.


Click on Generate button.

Save Netlist File window:

Click on Save button at the bottom right corner

Then click on Save button at the bottom right corner.

dot net netlist file contains information about components and footprints assigned.


This is crucial for Printed Circuit Board designing.

With this, we come to the end of this tutorial.

Let us summarize.

Show Slide:

Summary

In this tutorial, we learnt to :
  • Add connectors to a schematic.
  • Map components with footprints using CvPcb.
  • Generate netlist for PCB design.
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

FOSSEE team coordinates the Circuit Simulation project.
Show Slide:

Acknowledgment

http://spoken-tutorial.org

Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.

For more details, visit this website.

Previous Slide This is Saurabh from IIT Bombay signing off.

Thank you.

Contributors and Content Editors

Nancyvarkey, PoojaMoolya, Saurabhbansode