EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Tool suggestions, soldering tips, general useful electronics knowhow.
User avatar
exxos
Site Admin
Site Admin
Posts: 23726
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Post by exxos »

I know people are struggling with getting started with Eagle. I don't think later versions really help with the confusion. So here is version 5.6 to get people started. It shouldn't be too hard to get to grips with.

eagle-win-5.6.0.zip
(24.9 MiB) Downloaded 190 times

Once installed, choose "freeware" licence. Then go hunting where you installed it, bin folder, eagle.exe (assuming it didn't create a useful shortcut to the main program like it did for me!)

I'm going to show step by step a simple schematic using a basic 74LS04 inverter to drive a simple LED.

Once you have loaded eagle you get the main screen...

main.JPG
main.JPG (37.91 KiB) Viewed 5340 times

We then what to create a new schematic..

ns.JPG
ns.JPG (40.74 KiB) Viewed 5340 times

..and get the main editor window up..

nsmain.JPG
nsmain.JPG (67.6 KiB) Viewed 5340 times

While you may not need to change the grid size, I changed it here to 1.27mm. Notice I selected mm ( I hate inches, you you can set it to whatever you like of course) and turn the grid on..

grid.JPG
grid.JPG (79.26 KiB) Viewed 5340 times

If your confused , just copy the settings below..

grid1.JPG
grid1.JPG (23.16 KiB) Viewed 5340 times

The grid can be turned on or off, or use dots or lines. This can be changed at any time later if you so desire.


Next we need to use the "add tool" as shown below. It brings up Eagle's part lists where you can search for various parts.

add1.JPG
add1.JPG (138.86 KiB) Viewed 5337 times

At the bottom type in 7404*

ls04select.JPG
ls04select.JPG (106.72 KiB) Viewed 5337 times

Do not be tempted to put in things like 74LS04 as there are a million variations of the 7404 and Eagle doesn't care about it. All we need is the basic logic series number which is "7404". Notice the '*' (asterisk) on the end. This tells eagle to "search all" starting with 7404 and match anything which comes after it. I do this to show the 3 typical variations of the package, which is SMD, DIP, PLCC.


The first match which comes up kinda sucks...

ls041.JPG
ls041.JPG (59.35 KiB) Viewed 5337 times

It doesn't show the normal inverter symbol, so we select the next one down in the list and click the arrow to expand the variations...

Below I am just showing the 3 package types in the list...

04smt.JPG
04smt.JPG (63.43 KiB) Viewed 5337 times
04plcc.JPG
04plcc.JPG (65.51 KiB) Viewed 5337 times
04dip.JPG
04dip.JPG (61.78 KiB) Viewed 5337 times

So we can go with the 7404N, which is the normal DIP package.

Once selected, click on OK, and the mouse will move the inverter block around. So place it down somewhere by clicking the left mouse button.

04place1.JPG
04place1.JPG (214.2 KiB) Viewed 5336 times

You can simply move and keep clicking as many times as you want.. BUT...

04place2.JPG
04place2.JPG (216.1 KiB) Viewed 5336 times

Notice the 2 inverters on the right are called "IC2". This means you used up all the inverters in the first IC, and Eagle automatically created a second IC. As we only want to use 1 IC in our demo, we can use the delete tool and just click on the inverters we want to delete...

delete04.JPG
delete04.JPG (240.41 KiB) Viewed 5336 times

It can be worth checking the data sheets of such gates to easily see how many gates are in the IC..

ls04.jpg
ls04.jpg (6.36 KiB) Viewed 5336 times

So we have 6 inverters in the IC and 6 in the Eagle editor, Awesome!
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23726
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Post by exxos »

Now we need to create some "wires" to wire up the inverters.

We use the "wire tool"...

wire1.JPG
wire1.JPG (249.26 KiB) Viewed 5331 times

Now we left click on the end of the inverter wire, and our wire now follows the mouse. Left click again to draw the "end" of the line.

Once done, press ESC to cancel the tool.

NOTE: The NETS layer should be selected in the menu near the top left by default. If it is not (or you change it by mistake) just click the box and select the nets layer.

TIP: Do not overlap the wires on the red wire of the inverter as it probably won't collect! If there is a gap between the 2 wires, it won't be connected either! So don't screw this step up! 8-)

wire2.JPG
wire2.JPG (163.31 KiB) Viewed 5331 times


Now draw wires as shown below. The bottom wire is intentionally left shorter for later...

wire4.JPG
wire4.JPG (179.43 KiB) Viewed 5331 times

Next we want to connected all the unused inverter inputs together, and later connected them to GND..

So we draw a new wire as shown below. Incidentally, once you start drawing the wire (left click where you want to start the line from) you can right click to loop through various "draw angles".

TIP: You can use the scroll wheel on your mouse to zoom in and out.

wire5.JPG
wire5.JPG (199.89 KiB) Viewed 5323 times

Draw the line between the first 2 inverter inputs to connect them togther.

Then Eagle will start asking you questions! (oh no!)

wire6.JPG
wire6.JPG (171.77 KiB) Viewed 5320 times

Basically when you create a wire, its given a "name". By default the first wire will be called "N$1", second wire "N$2"... etc... So Eagle will ask what you want to do.. In this case, we don't really care, so N$1 it is!

Click N$1 and click OK.

Keep drawing wires one at a time between all the inverter input wires (not the last one!) , and you should get something like below...

(The last one isn't connected for a reason) All will become clear later my friend ;)

wire7.JPG
wire7.JPG (176.84 KiB) Viewed 5320 times

Now if you raced ahead and drew a line from the first wire right down to the bottom to make life quicker/easier, then you likely just screwed up :) You should hold your head in shame and send exxos a million dollars!

If you drew each line one at a time between inverters, then give yourself a pat on the back for not trying to "beat the system". Eagle doesn't connect wires which "pass over" each other. Its a feature ;) (honestly it is!)

Either way, you should now select the junction tool. This not only visually tells you what wires are supposed to be connected, but also tells eagle they should be electrically connected.

wire8.JPG
wire8.JPG (200.79 KiB) Viewed 5318 times

Click on all the wire crossing points as shown below.

wire9.JPG
wire9.JPG (169.82 KiB) Viewed 5317 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23726
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Post by exxos »

Next we need the ADD tool again and put GND in the search box then press enter. We then get a list of GND symbols we can use.

The one I like to use (mostly) is the one selected in the "supply1" library.

wire11.JPG
wire11.JPG (111.48 KiB) Viewed 5314 times

Click OK and the mouse now move the GND symbol about.

TIP: use the scrollbars in Eagle to move the schematic about where you need it. Use the scroll wheel on the mouse to zoom in and out. If you get "stuck" not being able to center the image or move it about enough, press F5 and it gives you more movement than the scroll bars (move the mouse about and press F5 and see what happens)

wire12.JPG
wire12.JPG (184.01 KiB) Viewed 5314 times

Now use the wire tool and draw a line from the bottom inverter input wire to the top of the GND symbol.

Eagle will then ask you a question again (uh-oh!)

wire13.JPG
wire13.JPG (173.74 KiB) Viewed 5313 times
It wants to know if you want to connect the signals "N$1" to "GND", as we want to connect the un-used inverter inputs to GND, we click YES!

Now to verify all the signals are connected, click the "eye" as shown below. It is basically a "highlight signal" tool. Click on the green signal wire (anywhere will do) and the whole lot should now be highlighted in a lighter shade of green.

If a signal isn't highlighted (which looked connected) , then you mess up, in which case good luck ;)

wire14.JPG
wire14.JPG (156.69 KiB) Viewed 5313 times

NOTE: The last wire on the bottom inverter isn't yet connected, so of course it will remain "dark" as it isn't part of the GND signal.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23726
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Post by exxos »

Next up , lets add a pull up resistor onto the bottom inverter.

Using the ADD button again, we type in "resistor" and we get a huge list. There are many variations, so I just chose a typical one..

res1.JPG
res1.JPG (81.11 KiB) Viewed 5279 times

After clicking OK, the mouse moves the resistor. We want to connect it to the bottom inverters input as shown below. Do not overlap the resistor onto the green nets line, the resistor has to connect at the very end of the line.

TIP : Use the wheel mouse to zoom in and out if you need a closer view.

res2.JPG
res2.JPG (168.66 KiB) Viewed 5279 times

Now the resistor automatically gets named as R1 after placement.

It is very close to another signal wire, so we can use the MOVE tool, to move things about to give us a little bit more space to play with.

res3.JPG
res3.JPG (198.28 KiB) Viewed 5279 times

Now we can click R1 to select it and move it about..

res4.JPG
res4.JPG (171.71 KiB) Viewed 5279 times

.. In this case, I move it down and to the right (just as a example of the movement).


Next, using the line tool, draw a wire as illustrated starting from the free end of R1..

res5.JPG
res5.JPG (186.35 KiB) Viewed 5279 times


Using the ADD tool once again, we search for a VCC power symbol such as the one used below.

res6.JPG
res6.JPG (104.74 KiB) Viewed 5279 times

Place the VCC symbol onto the end of signal wire as shown below.

res8.JPG
res8.JPG (172.15 KiB) Viewed 5279 times

You will get asked another question...

res7.JPG
res7.JPG (15.46 KiB) Viewed 5279 times

The wire we are connecting to in this case is simply named "N$7", and Eagle is asking if we want to connect to VCC, which we want to do (and keep the VCC name) so we click YES.

Back to the ADD tool and we look for something we can use as a simple jumper switch. In this case lets just use a normal 2 pin jumper header..

res9.JPG
res9.JPG (130.52 KiB) Viewed 5279 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23726
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Post by exxos »

Now place JP1 as shown place.

TIP: Left clicks place the parts (right click rotates the parts) , press ESC to exit the tools.

jmp1.JPG
jmp1.JPG (169.64 KiB) Viewed 5273 times

Next use the WIRE tool and draw a signal net as shown below connecting the jumper to the inverter input signal net.

Don't forget to use the junction tool to create the "dot" joining the signals together.

jmp2.JPG
jmp2.JPG (116.89 KiB) Viewed 5273 times

Next we need a GND connection. We can be lazy here (yay!) and use the COPY tool instead of looking for it in the ADD parts window like we have done before.

Simply select the COPY tool, click the GND symbol on the schematic, and Eagle will create a new GND connection which we can move with the mouse..

jmp4.JPG
jmp4.JPG (132.29 KiB) Viewed 5273 times

Connect GND as shown below.

jmp5.JPG
jmp5.JPG (120.78 KiB) Viewed 5273 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23726
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Post by exxos »

Now lets ADD a LED.

I knew already there is a part called "LED5MM" So I typed that in to use.

TIP: If you put "LED*" instead, you would get a much larger list of LED packages to use.

led1.JPG
led1.JPG (111.18 KiB) Viewed 5266 times

We should have enough skills now to link the LED, ADD a resistor and GND symbols.

Now lets say we wan't to tidy it up a little bit.

We can use the GROUP tool to select a area.

The GROUP tool works just like the "rubber band" in GEM or Windows etc. So we will have successfully transferred our rubber banding skill over to Eagle (yay!) I guess randomly clicking stuff also counts as a transferable skill...

TIP: At some point using another transferable skill, save the file ;)

gt.JPG
gt.JPG (148.19 KiB) Viewed 5266 times

Draw the box around the group of parts you want to move, such as the LED section as shown below..

gt2.JPG
gt2.JPG (133.4 KiB) Viewed 5266 times

Now the section will be highlighted where you can now right click to move the group of items with the mouse. Left click to plonk it down again..

gt3.JPG
gt3.JPG (133.19 KiB) Viewed 5266 times

So we should have something like this...

gt4.JPG
gt4.JPG (138.02 KiB) Viewed 5266 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23726
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Post by exxos »

Now we can give our a resistor a VALUE using the VALUE tool...

value1.JPG
value1.JPG (148.83 KiB) Viewed 5261 times

A typical LED current limit resistor is 470R, So let's go with that.

TIP: LED current is typically something like 5V - LED VDROP (lets just say 1V as we are lazy) and we want about 10mA.. So 5V - 1V is 4V.

So to be lazy with the calculation, we can just do 4V / 0.01A = 400 ohms. So 470R is close enough for a generic value.

Voltage drops across LED's can be found in the datasheets of what ever LED you are using. But also be aware the inverter (or any gate) may not output the full 5V on its output. It could well be 4.5V for example.

Also be aware the output current of the gates you are using. Check the datasheets of your part. Output current can vary between 5mA to 50mA for example. So don't be tempted to add 100R resistor in there, as you may burn out the inverters output.

value2.JPG
value2.JPG (13.93 KiB) Viewed 5261 times

Now the value is displayed on the schematic.

value3.JPG
value3.JPG (136.58 KiB) Viewed 5261 times

R1 should have a VALUE of 10K typically. But can be 1K - 100K as its only a pull up.


But wait... there is something missing still.... did anyone spot it yet ? nope ?

The IC hasn't yet got any power rails. So we need to add them by using the INVOKE tool

NOTE: Some parts may list power rails on the symbol itself, other parts have a seperate power pins, so need to to add those in.


inv1.JPG
inv1.JPG (244.37 KiB) Viewed 5256 times

Then click on the "+" on any of the gates and you get this little box pop up. There is only one selection we can make (or course the IC only has 1 group of power pins) So we select it and click OK...

inv2.JPG
inv2.JPG (23.6 KiB) Viewed 5256 times

Now we get this power symbol...

inv3.JPG
inv3.JPG (16.19 KiB) Viewed 5256 times

We can place it pretty much anywhere....

So your task now is to draw the wires and connect VCC and GND to it as shown below.

inv4.JPG
inv4.JPG (194.62 KiB) Viewed 5256 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23726
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Post by exxos »

So we have now finished our first schematic!

What we have designed is a simple test circuit to turn a LED on and off via a inverter IC.

PART 2 will see the start of the PCB side of things...

To be continued in a new thread......
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
PaulJ
Posts: 1568
Joined: Sun Apr 08, 2018 1:14 am
Location: USA

Re: EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Post by PaulJ »

I found this site that has a lot of cad symbols for eagle and kicad.
[url]https://www.snapeda.com/home//url]
User avatar
exxos
Site Admin
Site Admin
Posts: 23726
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: EAGLE CAD SCHEMATIC EDITOR TUTORIAL PART 1

Post by exxos »

They offer a lib service as well. They made my max10 lib for me, cost me £50 tho :roll:

I will upload my lib folder soon. I downloaded all the libs I could find a few years ago.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Post Reply

Return to “ELECTRONICS”