ESim/C2/Mapping-Components-with-Footprints/English

From Script | Spoken-Tutorial
Revision as of 15:14, 24 July 2019 by PoojaMoolya (Talk | contribs)

Jump to: navigation, search


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:


Scroll key or press F1 to zoom in


Point the cursor to V1 (Sine) block and


Point the cursor to Lm_7805 block.

The eSim Schematic Editor opens.


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

>>


Point cursor on v(in1,in2) ngspice plot

>>

Point cursor on v(out) ngspice plot

Click on Simulation button on the left toolbar.


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.

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

Let us delete the components that are not required for PCB designing.


Right-click on sine source.


Select the Delete Component option.


Right-click on plot_v1 i.e. 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 editor.

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 || option.

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 || 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_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.


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



Hover the cursor over the first column of the middle panel


Hover the cursor over the second column of the middle panel



Hover the cursor over the third column of the middle panel

The middle panel is divided into 3 columns.


The first column in the middle panel shows the serial number.


The second column in the middle panel shows the reference ID of the components used in the schematic.


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


Hover the cursor over Filter footprint list by keywords.

>>

Hover the cursor over Filter footprint list by pin count.

>>

Hover the cursor over Filter footprint list by Library.

The top menu of Cvpcb window has 3 options to filter the footprints.


This will filter the footprints by keywords.



This will filter the footprints by pin count.



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_THT footprints for selected component C1 will be available.
Footprint Window:

Select any footprint from the right most panel

>>

click View selected footprint


We can also view the selected footprint.

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


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 >>


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


Double click

For J1 connector:


Click on J1, click on Connectors_Terminal_Blocks from the leftmost panel.


Locate TerminalBlock_Altech_AK300-2_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_Headers:Pin_Header_Straight_1x02_Pitch2.54mm .


Double-click on it.

Cvpcb window:

Click on Lm_7805


Click on TO_SOT_Packages_THT on the left most panel >>


Locate T0-220-3_Vertical from the right most panel >>


Double click on T0-220-3_Vertical

For Lm_7805:

Click on Lm_7805


Click on TO_SOT_Packages_THT from the leftmost panel.


Locate T0-220-3_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.

.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:

Textbook Companion

FOSSEE team coordinates the TBC 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