EENG 393

In Lab 7 - EAGLE schematic → layout

Requirements

There is no turn-in associated with this inLab. You will need to follow the instructions given below in order to create the footprint for the LT3080. Since each student needs to build their own layout for your own PCB, you should complete the walk-through in this lab on your own. When you complete this walk-through you will have built one of the footprints that is due in the next lab.

Objective

Objectives

Copy Lab 6 EAGLE files into Lab 7

I would like to you to keep a copy of the work completed so far in lab06 and use it as a starting point for lab07. To do this:

Electrical Rule Check

To some extent, EAGLE CAD has built-in error checking that can help you identify errors early in the design phase. Let's give it a try with the circuit you built this past week. Click Tools → ERC. This will produce ERC Errors pop-up that looks like the following:


Double click on any of the errors and your window will be centered on the error with a black pointer highlighting the error. The list of errors and warnings in the image above are all safe to ignore. Be careful if you have a "Part IC6 has uninvoked gate A with unconnected input pin on +IN" warning. This most likely means that you copied an op amp instead of using the Add Part tool. All the op amps in the same package are labeled "IC<number><letter>" The <number> refers to the chip number and the <letter> referes to the gate inside the chip. For the VU meter, you should only have two different <number>, each with the letters A … D. This means that all the op amps in the VU meter (LM324) will be packaged in 2 chips. The op amps in the voltage regulator are all package in a single TLC274 and should have the same <number> with letters A … C.

If you have any additional errors, you will need to fix them before moving on.

You can clear all the electrical errors and warning using the Clear all button and then close the window. Now let's create a real electrical error and see what it looks like…

Create the SP100 Switch in EAGLE

Let's build a footprint for the ON/OFF switch from the information in the device's technical documents. To get the technical documents: On the product information page, find the link to the 100SP switch Datasheet in the Datasheet area of the Documents & Media table and then open the datasheet.

Go to page 1 of the technical documents and use the part number of the switch, 100SP1T2B4M6QE, to determine the TERMINATION type. Then go through the datasheet to the begining of the TERMINATION OPTIONS section. Then look through this section till you find the SPDT switch that we are using as the on/off switch. There are several views, but the one we are interested in is the P.C. MOUNTING. I've isolated this image below along with the actual switch. Note that the pair of holes on the left of the P.C. MOUNTING diagram are non-electrical pins, used to provide mechanical stability for the switch. The three gold pins in the rear of the switch are the electrically conducting elements.

Each measurement in the P.C. MOUNTING diagram has a bunch of difference numbers associated with it. You will have to makes sense of these in order to build a valid footprint.



As an example of the dimensioning, the image has a red box around the dimension representing the distance between the two front pins of the switch. If there is a pair of numbers above/below the horizontal line, this represent a range of possible sizes. For example you would interpert ".248 - .264" as "from a minimum of .248" to a maximum of .264". When I see a range of values, I use the average of these two values, .256 as the actual dimension. The horizontal line separates dimensions with different units, metric and imperial. There is no text on this page of the technical documents that help tell which is which. In this case I have four ways to tell:

Now that we understand the unit dimensions, let's make a small sketch that will help us create the footprint. Do this by completing the pair of tables that follow.


Dimension Name Value (mm) Value (inch)
A Body Width    
B Body Length    
C Pin offset    
D Half Pin pitch    
E Pin diameter    
F Half Pin Pitch    
G Panel Mnt diameter  
H Switch Length    
*For the body width, I used the body width of the M2 SPT switch listed on the same page. I did this under the assumption that the two switches were identical except for the solder lugs. In the same image shown above, use the blue pin numbers to identify the function of the pin. Holes are non-conductive punctures in the PCB to provide mechanical attachment sometimes called non-plated through holes. Pads are electrical punctures in the PCB that are plated to allow the pins to connect to other circuit elements on the PCB. Use the information from the mechanical diagram to determine the location of the center of the pins assuming that the origin (0,0) is located the blue cross shown.
Pin Hole/Pad Location (mm) Location (inch)
1      
2      
3      
4      
5      

Create a library

Create a new package

EAGLE CAD calls footprints, packages. So let's create a package for our SP100. You will now enter the package editor. This is a basically a drawing application with special features for PCB design. You are going to draw the SP100's footprint; how you would view its outline and pins from above. To do this, you will use several tools pointed-out in the following image.


Draw the outline

The outline of a footprint serves much more than an aesthetic role on a PCB design. A well drawn outline provides needed information to the layout engineer so they position the component effectively and information to the assemblers so they can correctly install components. To start your outline, configure EAGLE as follows: Two points:


Add Pads, Holes and SMT pads

The next step in the creation of a footprint is adding the electrical (pads and smt) and physical (hole) connections to the PCB. You will make electrical connections to the PCB using pads and smt. Holes are needed for devices which are subject to mechanical stresses like a mounting holes, USB connector or switches. Holes do not have electrical connections.


The major difference between holes and pads is the presence or absence of through-hole plating. Through-hole plating is the process by which a conductive plating is added to the sides of the drill hole and extends to the top and bottom surface of the PCB. This conductive plating serves many useful purposes, creating a large solder area between the PCB and the leaded components and allowing traces on the top and bottom sides to be connected through the hole.

A drill hole that has conductive plating added is called a plated through hole, PTH for short. The plating inside the hole has some thickness which reduces the usable diameter of the hole. In EAGLE you specify a "drill" diameter which is the finished diameter of the hole in the PCB. If this is a PTH then it is up to the PCB manufacturer to over-drill the diameter of the hole so that after plating the finished hole diameter matches the value that you specified in your EAGLE file. In other words, you, as the PCB designer, do not have to concern yourself with the thickness of the plating in a PTH. In order to allow an electrical connection to a PTH, the top and bottom of the PTH is connected to a donut shaped conductive region called the annular ring. The annular ring will not be covered in solder mask making it the point where leaded components are soldered into the PCB. When you add a pad to your footprint you can select Diameter and a Drill size. The Diameter size is the diameter of the annular ring. The Drill size is the diameter of the finished hole.

When building a footprint for a device you will need to specify both the Drill and Diameter (for a pad). The best case is one where the mechanical drawing will provide all the needed information. For example, in the image below, you can see the informative mechanical drawing for the SPDT switch you will be building for this week's lab as shown in the image below.


Before moving on, let's make a few observations. First, note that the drill diameter is given by the symbol Φ (a common convention).
Second, the dimensions are given in both metric and imperial units, metric on top and imperial on the bottom. For example, the drill diameter is given as 1.85 and 0.073. You should be able to figure out that the units for 1.85 are millimeters because there are 25.4 mm in 1 inch and 0.073 in * (25.4 mm / 1 in) = 1.85 mm.
The solder pad is the green area surrounding the drill hole that is used during assembly to solder the component lead to the PCB. Normally leaving the size of the solder pad assocaited with a drill hole set to "automatic" is a fine choice. However, whenever possible I make the solder pads as large as possible to make soldering easy. That said, don't make your solder pads so large that they overlap other pads or make routing unduely difficult.

A drill hole without conductive plating is called a "hole" in EAGLE. In order to better assure that a hole does not make electrical contact with the copper layers on the top and bottom of the PCB, you should make sure there is a keepout region (layer 39 or 40) on the top and bottom layer of the PCB. A keepout does just what its name implies, it keeps out copper pour. A keepout should be between 10 - 20% larger that the diameter of the drill hole. Like plated through holes, I like to make drill hole diameters 10 - 20% larger than the size of the object going through the hole.

Finally SMT pads are provided by EAGLE in order to attached surface mount devices of the PCB. These SMT pads have an X and Y dimension that needs to be slightly larger than the part being placed. Often the mechanical drawing section of the technical documents will have a recommended footprint for SMT devices. Lacking that, make your SMT pads at least 10% larger than the electrical contact, with 25% larger being an upper bound.

Add the pads

Let's start by placing the pads which wil connected to the conductive terminals of the switch. Do this as follows. The information tool makes the properties of a selected item available to edit by the user. Use the information tool to change the names of the switch pins to SL, COM, and SR. Note SL stands for switch left. When you are done your part should look like the following.


Add the holes

Now let's add the holes in the PCB to accomodiate the ipins at the front of the switch which provide mechanical support for the switch as it is being actuated by a user. Do this as follows:

Add the name and value

The parts that you place on the schematic and place on the PCB need unique identifiers so that you can place the correct electrical component in the correct location. In the schematic, an electrical device like a resistor has a name (for example "R4") and a value, (for example "10kΩ). The '>' character before name is a special character that lets Eagle know that this value should be dynamically updated by the program. You specify the default location for these two labels in the package editor using the following instructions. When you complete this step, you should have a package that looks like the following image.


Save

Create a new Symbol

The symbol is what you see in the schematic when a part is placed. You will now enter the symbol editor. This is a basically a drawing application with special features for PCB design. You are going to draw the switch's schematic symbol. To do this, you will use several tools pointed-out in the following image.


Draw the symbol

Now its time to add the name and value as we did in the package design. Now we need to correct some of the properties of the pins. Before you start, make sure that your symbol looks sometime like the following:


Save before taking the last step, making a device.

Create Device

You will now use the device editor to merge the package and the symbol created for the 100SP switch. The interface you will use to accomplish this uses several specialized tools highlighted in the image below.


You now need to create a mapping between the pins of the package and the pins on the symbol. If you have followed instructions carefully, the connect pop-up should look like the following image.


Add a library

Now let's use that 100SP device in our schematic. First we have to add our new library to the available libraries for our project.

footpring erata

A footprint serves more than just to alert the layout engineer of the physical dimensions of the component. Let's take the Phoenix terminal block used on your power supply and shown in the image below at left. In addition to the outline, the footprint can aide the layout engineer in remembering which side of the terminal block wires connect to and where the user has to press in order to insert and remove wires. These features help the layout engineer position the terminal block so that wires can easily be inserted and that the user can press the button without their fingers being burned by a nearby heatsink. If the mechanical documents lack the specifics on a needed package dimension, do your best to guesstimate the position of a feature. If you think that you need to, make a note of your assumptions in the tDoc or bDoc layer.


As shown in the Phoenix terminal block, other features of the component like the shape of the green plastic may be included. This helps add a level of realism to the device making it easier to identify on a busy PCB layout. Another function of a good outline is to help assemblers install polarized components correctly. Devices like ICs and LEDs need some convenient reference on the PCB to determine the part orientation so that the part can be installed correctly.

Drill hole erata

If the recommended drill size is not given in the mechanical drawing, the next best case is when the dimensions of the leads as provided like they are in the LT3080 mechanical drawing below. In this case, I would make the hole at least 0.84mm in diameter, this bring the average of 0.711mm and 0.965mm.


I typically make the dill size 10 - 20% larger than the average size of the lead that is being placed through it. In the case of the TO-220-5 package this would be 0.84 mm * 1.2 = 1mm. When it comes to the diameter of the annular ring, I like to make them as large as possible to simplify soldering. However, in densely packed PCBs you will be encouraged to keep the annular rings as small as possible so that the PCB can accommodate higher part densities. Note the term "BSC" stands for basic spacing between centers and in this case, is synonymous with pin pitch.

Unconnected pin erata

Call the unconnected pin, "NC$1". The "NC" in the name stand for No Connect, the "$1" means that this is the first pin with that name. If there was a second non-connected pin in this package, I would have named it "NC$2".