Professional Documents
Culture Documents
Courtesy of CadSoft Computer GmbH (www.cadsoft.de), this book is supplied with a copy of Eagle on CD-ROM for
MS Windows, Linux and Mac.
www.elektor.com
Elektor International Media
Mitchell Duncan
For the more sophisticated user a more comprehensive guide and reference to EAGLE will follow from Elektor
Publishing. Stay alert and keep watching for this!
TO
R
EL
EK
Eagle
T
The book is intended for anyone who wants an introduction to the capabilities of EAGLE. The reader may be a
novice at PCB design or a professional wanting to learn about EAGLE, with the intention of migrating from another
CAD package.
EAGLE can be used on the main computing platforms including: Microsoft Windows (XP, Vista or Windows 7);
Linux (based on kernel 2.6 or above) and Apple Mac OS X (Version 10.6 or higher). Any hardware that supports
these software platforms will run the EAGLE application.
RI
EAGLE is a user-friendly, powerful and affordable software package for the efficient design of printed circuit
boards. It offers the same power and functionality to all users, at a smaller cost than its competitors. A free version
of EAGLE is available to enthusiasts for their own use.
PY
Whether you are an electronics enthusiast or engineering professional, this book provides the reader with an
introduction to the use of the CadSofts EAGLE PCB design software package.
CO
V6
Eagle V6
Mitchell Duncan
Eagle
eagle
V6
Mitchell Duncan
Acknowledgments
11
13
15
15
15
16
16
16
17
Introduction
Conventions Used in this Guide
Mouse Clicks
Selection of Menu Items
Use of keys
What is EAGLE and what does it produce?
EL
EK
TO
R
Table of Contents
CO
PY
RI
Windows
Linux
Mac OS X
Starting EAGLE
Projects
Libraries
21
21
23
23
24
26
27
29
30
30
32
32
Table of Contents
34
34
35
35
36
EL
EK
TO
R
37
CO
PY
RI
38
39
39
40
41
42
42
42
42
44
45
49
54
54
55
57
57
57
58
58
59
64
65
65
66
66
68
69
70
Table of Contents
72
74
75
76
77
79
EL
EK
TO
R
81
81
84
85
86
89
General Commands
The INFO Command
The NAME Command
The Value Command
The Attribute Command
The Change Command
The Smash Command
The GROUP Command
Schematic Editor Commands
The Gateswap Command
The Pinswap Command
The Bus Command
The Label Command
The Invoke Command
PCB Layout Editor Commands & Concepts
Working with Devices
ROTATE Command
LOCK Command
Board Layers
The CIRCLE Command
The RECT Command
Polygons
89
CO
PY
RI
89
90
91
92
92
96
97
100
100
100
101
106
107
109
109
109
110
111
112
113
116
Table of Contents
121
121
122
124
125
126
CO
PY
RI
129
TO
R
EL
EK
Manual Routing
The Via Command
The WIRE Command
The RIPUP Command
The SPLIT Command
The ROUTE Command
The HOLE Command
The DIMENSION command
Restricted Areas
Electrical Rule Check (ERC)
Design Rule Check (DRC)
Example - Design Rule Errors
Mistakes to Avoid - Fatal Design Rule Errors
Libraries
The Library Editor
EDIT an Object
130
131
132
133
134
136
141
142
144
147
147
147
148
149
151
152
154
154
154
158
158
159
159
162
162
163
163
170
Table of Contents
173
175
TO
R
175
179
180
184
185
187
191
192
192
192
193
194
195
197
197
197
EL
EK
RI
CO
PY
Professional Edition
General Features
Schematic Editor
Layout Editor
Autorouter Module
Standard Edition
Freemium Edition
Light Edition
203
203
203
204
205
205
206
206
206
Authors Note:
CO
PY
RI
EL
EK
TO
R
At the time of going to press, the most recent release version of EAGLE was V6.4. Although this
book was written for V6.0, the instructions contained herein will be accurate for the most recent
version of EAGLE.
12
Chapter 4 -
TO
R
You are now in a position to start creating your first EAGLE project. Well initially use the examples
supplied with EAGLE.
EL
EK
After you have mastered this section, you may wish to be more ambitious and work through the
project in Part 2 of this book; Creating a Radiation Meter Project, where you will be guided through
all of the stages in creating a complete design. This project was published in the November 2011
edition of Elektor magazine; titled Improved Radiation Meter.
Well start by creating a new project and the schematic drawing.
In this tutorial we will learn how to add all of the components in this drawing and connect them
together. Figure 4-2 is the Schematic Drawing for this tutorial. You can use this as a template from
which to draw your own schematic.
Lets begin by starting EAGLE and expanding down to the tutorial entry in the tree view by
performing the following actions:
RI
examples, next,
Projects, then ,
PY
tutorial
on tutorial and you will see a similar structure to the left pane (as in Figure 4-1).
CO
Lastly,
49
CO
PY
RI
EL
EK
TO
R
50
EL
EK
TO
R
CO
PY
RI
If you now
on New Project , a new project will be created and will be displayed in the tutorial
files directory tree, as shown in Figure 4-3.
51
RI
EL
EK
TO
R
PY
Name your new project My Project (or your preferred title) by typing in the name in the input
line and then
CO
This creates a sub-directory under tutorial, named My Project, containing all the files associated
with your project. The last used projects and user-specific settings are also stored here, in Windows,
as eaglerc.usr (~/.eaglerc for Linux and Mac)
You now need to define the path for the destination of your project directories. Type
Options > Directories
52
TO
R
EL
EK
You can now type in your desired location. For example, add the following to the end of the Projects
field (preceded by a semicolon):
D:\My EAGLE Projects.in the Projects field.
Now, open a new Schematic by:
CO
PY
RI
You will be presented with a new schematic window as in the Figure 4-5:
53
TO
R
To enable the Eagle Editor modules to perform their task properly, objects within drawings need
to be grouped in different and separate layers, according to their purpose. These layers can also be
selected, displayed and printed as a group. In general, the default settings will suit the new user of
EAGLE.
CO
PY
RI
EL
EK
54
TO
R
EL
EK
PY
RI
You are able to select from the alternative grid units of inches, millimeters, mils (1/1000ths inch)
and mic (microns or mm). When set, this value applies to all values in the drawing.
In the dialog box one can select:
i.
the grid Size (i.e. the pitch between points on the grid) and unit (the base measurement method),
CO
ii. the display Multiple or the periodicity at which grid lines are displayed,
iii. an Alternative grid pitch which may be accessed by using the
key.
Using this dialog , you can also choose whether to display the grid or not, and its style as dots or a
solid line.
55
The default settings are given in the Figure 4-7 above. You may wish to change them to, say, 0.1inch
spacing (since a large number of components are based on a 0.1inch manufactured specifications)
with the Alternative grid pitch set to 0.025 inch. This will allow you to adjust some items to a finer
positioning.
EL
EK
TO
R
Your settings will be reflected in the grid and co-ordinates display, located towards the upper
left-hand corner of the window, just above the corner of the workspace itself (see Figure 4-8). The
numbers in this display comprise the selected grid size, followed by the position of the cursor, using
the selected grid unit size.
CO
PY
RI
The cursor position co-ordinates are given with reference to a datum point. This point is placed,
by default, in a new drawing, near the bottom left-hand corner of the workspace. This is illustrated
in Figure 4-9.
56
The use of grids is much more important later in the book, when we begin exploring the use of the
PCB Layout Editor, since all components must be precisely positioned in order to manufacture a
PCB.
You may wish to use the following Table 4-1 to convert between the different bases of measurement
TO
R
Mils (mils)
1mm
0.03937 inch
39.37mils
25.4mm
1 inch
1000 mils
0.0254mm
0.001 inch
1 mil
EL
EK
Millimeters (mm)
Of course, if you are using a very small scale, use can also use microns, where:
1 micron = 1 x 10 -6 meters =1 x 10 -3 millimeters (1/1000th millimeter)= 0.03937 mils
RI
There are many libraries of commonly used components supplied with the EAGLE software.
PY
So, in order to begin creating a schematic, we first have to gain access to the component information
stored in the appropriate libraries. We do this by means of the USE command.
CO
The USE command tells EAGLE which libraries to make available for searching and from which
to source component data.
In your open schematic drawing, select a library to use by the following means:
Libary > Use, or by
57
This will open a dialog box, allowing you to select the frames.lbr library. You can select the library
TO
R
by typing the name directly into the file name text area or, scrolling to and 2x
, on the library
name. (Alternatively you could simply execute the USE command by typing USE frames.lbr into
the command line).
For our first tutorial, you should now repeat the same technique as above, and USE the following
component libraries: rcl.lbr, diode.lbr, microchip.lbr, linear.lbr, pinhead.lbr, supply1.lbr and
special.lbr. Well select the needed components from these libraries shortly.
The ADD Command
EL
EK
Adding a Frame
At this point well use the ADD command to insert a frame into the drawing. (Well discuss this
command in detail later). To do this simply
in the command toolbar on the left side
of the window. A panel will appear (see Figure 4-10 ) and you should expand the frames entry
DINA4_L ).
CO
PY
RI
(by
frames) and selecting the A4 landscape format frame (scroll down and
Then press OK.
EAGLE will then snap back to your schematic window, with a red outline of the frame attached
to the cursor. Place the cursor at the desired bottom, left hand corner of your drawing and
58
This will place a frame in to your schematic window. Then move and
window.
PY
RI
EL
EK
Your window should now look like that in the Figure 4-11.
TO
R
(It would be preferable to place the bottom left hand corner of your frame at the drawing datum
point as indicated in Figure 4-9. This will ensure the cursor co-ordinates correspond to positions
within the frame.)
CO
59
EL
EK
TO
R
We are now going to add the components that comprise the project, and are listed in Table 4-2, to
the schematic. As you can see these components are in different libraries, so well have to add them
from those libraries.
RI
Value
Device
Package
Library
C1
30p
C-EUC1206
C1206
rcl
C2
30p
C-EUC1206
C1206
rcl
PY
Part
10n
C-EU025-025X050
C025-025X050
rcl
C4
47u/25V
CPOL-EUTAP5-45
TAP5-45
rcl
C5
47u
CPOL-EUTAP5-45
TAP5-45
rcl
D1
1N4148DO35-7
1N4148DO35-7
DO35-7
diode
IC1
PIC16F84AP
PIC16F84AP
DIL18
microchip 1
IC2
78L05Z
78L05Z
TO92
linear
JP1
PROG
PINHD-1X4
1X04
pinhead
JP2
APPL
PINHD-1X17
1X17
pinhead
XTAL/S
QS
special
R-EU_R1206
R1206
rcl
CO
C3
Q1
R1
60
2,2k
+5V
+5V
supply1
GND
GND
supply1
rcl. This will open the library rcl.lbr directory tree within the dialog box (as in the
RI
EL
EK
TO
R
Youll now see, by scrolling down, the capacitor named C-EUC1026, together with descriptive
PY
CO
Now
. EAGLE will skip back to the schematic window with the symbol for the capacitor
highlighted in red, and connected & floating with your moving cursor. As you move your cursor
you will see the coordinates in the upper left-hand of the window change. These give the cursor
position, and therefore your component placement relative to the drawing datum.
Place your cursor, and the component in the desired location and simply
command).
61
Libraries . Scroll down, using the middle scroll bar until you
RI
EL
EK
TO
R
PY
CO
Now, scroll down in the right-hand pane until you see EUC1206,
then
on ADD
(see Figure 4-15 ). Now move your mouse to to the schematic drawing with that device attached
to the cursor, ready for placement. Place the device with
62
EL
EK
TO
R
However, you may change the orientation of the component before placing it by repeatedly
CO
PY
RI
You should now proceed to place all of the components from Table 4-2 into the drawing. After
completing this, your drawing should look something like Figure 4-16.
63
You can manipulate objects in your drawing by using a set of commands designed for that purpose.
These are the the COPY, MOVE, ROTATE and MIRROR commands. They perform as their names
suggest.
Using these commands you can correct any positioning of components. When using a command
TO
R
EL
EK
The COPY command allows you to replicate objects already in a drawing. Simply
then
on the object you wish to copy. To place the new device,
where you would like the copied object to be placed.
and
The MOVE command simply allows you to move an object to another point. You just
then
on the object you wish to move. Then, move the cursor to the desired position and
place the object.
on the device.
With each
to
PY
RI
The MIRROR command essentially flips a device on its vertical axis, producing a mirror image
of itself. All connections remain intact. The MIRROR command could be used when placing
components on the underside of a PCB, but when viewed from the top. To action the MIRROR
CO
command
and then
the PCB layout Editor.
64
The DELETE command is used to delete objects from a drawing or PCB layout.
TO
R
If youve made some mistakes in the previous section while adding components to your drawing;
dont worry, they can be removed quite easily with the DELETE command.
You can use the DELETE command on most objects in a drawing including; components, wires,
on the object or component to be deleted. It will then
When using the DELETE command on nets, wires or buses, it deletes one segment at a time.
EL
EK
The UNDO and REDO commands are the EAGLE users best friends.
RI
CO
PY
65
EL
EK
TO
R
RI
The reader should note that all of the above commands can be used in the same way within
PY
CO
The NET command is used to draw signal connections between points e.g. between a pin on
a semiconductor component and a connector pin. A pin has a specific meaning in EAGLE, and
defines a net connection point. A net defines the relationship between interconnected points on
the same functional signal or electrical net(work). However, the net may not resemble the final,
physical layout of any subsequent, wiring in the finished PCB.
To show the pins in a schematic, use the DISPLAY command, and
66
EL
EK
TO
R
You can now begin connecting the pins on each component, by using the NET command, to
CO
PY
RI
67
After starting the NET command, you will also see a new toolbar appear in the main toolbar area,
across the top of the schematic. It looks like Figure 4-20.
TO
R
This toolbar allows you to change attributes before and while drawing the net. For the moment well
leave the default settings as they are. The left-most part of this toolbar has a series of angled and
curved lines on it. These are known as bend modes. While using a NET command (i.e. the cross-
EL
EK
hair cursor is visible), you can change the bend mode of the net line by repeatedly
the style indicator change across the toolbar.
If you connect one net line onto another , EAGLE generates a connection between
the two nets. This can be set to occur automatically or be turned off by:
RI
Options > Set > Misc and selecting the Auto set junction option.
If the option is de-selected (set to manual) then you can create a junction between nets by using the
CO
PY
68
TO
R
EL
EK
Move the dot onto the intersection of nets you wish to join, and a dialog box with a warning will
appear, similar to that in Figure 4-22.
RI
This displays the net segment you wish to merge with an existing net. If this is what you want, then
. This will place a connecting node at the junction selected.
PY
respond by
CO
The SHOW command is used to display names and other details of objects. It can be used on nets,
signals, devices and components.
By way of example, to show the net GND, simply :
69
The SHOW command remains active until terminated, which you can do by
or
You can also SHOW an object by activating the SHOW command and typing the name of the object
TO
R
EL
EK
CO
PY
RI
You should now, with a combination of the above commands and techniques, be able to complete
the schematic drawing, as illustrated in Figure 4-23.
There is one final step to finalizing the schematic, and to make sure is can be used to prepare a
printed circuit board layout; the Electrical Rule Check (ERC).
The Electrical Rule Check (ERC) is used to test schematic drawings to ensure they are free
from electrical errors, and to indicate possible sources of error before fabrication. This should
be performed on every schematic drawing before finalizing it for other work. The ERC does not
70
EL
EK
TO
R
These are:
RI
CO
PY
i. the power pins are connected to signals other than expected. The power pins were named VSS
or VDD in the library but are connected to GND and +5V. In the tutorial this has been done on
purpose;
ii. components F1 and Q1 have no assigned values. This is not critical, since F1 is the Frame
around the drawing, and Q1 is the crystal. We can assign its value at a later time, if necessary.
It will not prevent us laying out a PCB, since we know its package type.
If you now
on the first entry, EAGLE will show you, by using a line and box, the location of
the reason for the problem in the schematic. We can remove them by
each one in turn. However, this is not advised as a working technique, since
warnings should be avoided or resolved.
71
If you havent been able to complete the demo drawing yourself, you may just simply keep it by
File > Save as. A dialog box will open and you can save your tutorial at this point with
. You can open it at any time to practice your
TO
R
EL
EK
You may create a PCB (Printed Circuit Board) layout starting from either a schematic drawing or
using only the PCB Layout Editor. Well continue our tutorial by choosing the option of using a
schematic drawing as the starting point. In doing so well use the EAGLE PCB Layout editor after,
deriving all required information from the schematic.
If you havent already got the demonstration schematic file (demo1.sch) open, you should open it
CO
PY
RI
now by using
File > Open, and then navigating to the file under projects > examples >
tutorial. Youll see the, now familiar, diagram as in Figure 4-25.
72