Difference between revisions of "Eagle"

From Mech
Jump to navigationJump to search
(New page: *UNDER CONSTRUCTION)
 
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Overview ==
*UNDER CONSTRUCTION
[http://www.cadsoftusa.com/ Eagle] is an easy to learn schematic and printed circuit board (PCB) layout editor. It is compatible with Windows, Linux and Mac. Eagle lets the user design a schematic using common electric components, convert it to a PC Board layout, and then automatically rout all of the necessary net connections. The final Eagle layout can then be exported as a CAM file and sent to a PCB manufacturer to order a PC board. This wiki page describes how to download and effectively operate Eagle.

== Download ==
A free download for Eagle V6 can be found [http://www.cadsoftusa.com/download-eagle/?language=en here], but '''this document refers to v5 [ftp://ftp.cadsoft.de/eagle/program/5.12/ here for v5], which is not very different from v6.''' Installation guides are provided at the site. Some features like larger board sizes may require a license to be activated. Consult your Professor or TA regarding obtaining a license for Eagle.

Before starting any projects, first download this [[Media:eagle_job_lib_2011-04-18.zip|zip file]]. It contains various files with the appendices .cam, .dru, and .lbr. On your computer, under Program Files, open the Eagle folder. There should be several folders inside including "cam," "dru," and "lbr." Place the files from the zip folder in the appropriate Eagle subfolders. (ie .cam files go in the cam folder, etc.) The .cam files ensure the manufacturability of the board design, the .dru files help find errors in the schematic and PCB breakout, and the .lbr file provides additional common electrical components to be used in the PCB design.

== References ==

*[[Media:Eagle_Rules.pdf|Sparkfun Eagle Rules]]: Guidelines for designing and creating PCB layout for manufacture by Sparkfun
*[[Media:Eagle_Tutorial.pdf|Eagle Tutorial]]: Recommended reading for good overview of Eagle
*[[Media:Eagle_Manual.pdf|Eagle Manual]]: Full Eagle Manual
*[[Media:PCBDesignTutorialRevA.pdf|PCB Design Tutorial]]: General tutorial and information on PCB design
*Button definitions:
[[Image:EagleCommandList.jpg]]



== Schematic ==
Before designing the PCB layout, it is essential to first create a schematic of your circuit. In general, the simpler you layout your circuit in the schematic, the easier laying out the PCB will be. Draw the schematic just as you would draw a circuit diagram on paper.

To draw the schematic, you will need to add the necessary electric components involved in your circuit. Eagle comes with an extensive library of popular components, and a supplemental library of common components used in the Mechatronics classes can be found in the [[Media:eagle_job_lib_2011-04-18.zip|zip file]] also in the "Download" section.

To add the components, click the “ADD” button [[Image:1add.jpg]] in the command toolbar and a window will pop up with the aforementioned libraries. The search feature isn’t comprehensive, so it can be useful to try multiple different searches or even manually go through the libraries to find the correct component. The search function does allow for wildcards, (*, ?), so if you know part of the name of a component, you can place an asterisk in the search keyword where you are unsure of the letters or numbers. For example, if you are trying to find the component 74LS00, a search of 74*00* or 74LS00* would yield this component and its variants. Once you’ve found the desired component, click on it and click to place it in the schematic layout sheet. The Esc key will return you to the ADD library to find more components. Pressing the Esc key again will cancel the command.

Once the components are laid out, it is necessary to connect the pins that go together. It is extremely important that you do NOT use the “Wire” command to connect pins. The correct way to connect pins is to use the “Net” command. [[Image:2net.jpg]] After selecting the Net command, move your mouse over the connection point of the pin until it connects. If it doesn’t connect, the Net will continue to follow your mouse.

The Net command doesn’t always connect to the pins, so it may be necessary to test connections with the move command. [[Image:3move.jpg]] If there isn’t a Net connection, move the component until the desired pin attaches to the Net. Remember, a Net is only connected to a pin if the net is in the connection point of the pin. To display all of the connections, select the display command [[Image:14display.jpg]] and display layer 93, pins. Connections are outlined with a green circle. Connections are automatically named.

If two or more Nets need to be connected, to make sure there is a connection, use the Junction command [[Image:4junction.jpg]] to create a node between the Nets. If a mistake is made, you can use the undo and redo buttons, or you can use the Delete command [[Image:5delete.jpg]] to delete components and Nets.

Once you’ve completed the schematic, you need to check it for errors. Before doing any checks, make sure the .dru file from the [[Media:eagle_job_lib_2011-04-18.zip| zip file]] also located in the "Download" section is saved into your Eagle/dru directory. Then, use the Errors command [[Image:6errors.jpg]] to find any errors with your schematic.

An example of a completed schematic:
[[Image:EagleSchematic.jpg]]

== PC Board ==
Once your schematic is completed, you can convert it to a PCB layout by selecting the Board icon [[Image:7board.jpg]] located on the top toolbar. From there, you can layout the components onto a PCB sheet. In Eagle, if you don’t change any file names, any further edits to the schematic will update on the PCB layout and visa-versa. However, it requires that both the schematic and PCB layout window be open for this function to work. Either window can be minimized, but not closed.

In general, it is recommended that PCB layout resembles the schematic and circuit diagram. This way, if there are any errors or you want to make any changes after the board is manufactured, it will be easier to follow the circuit and debug.

Once all of the components are laid out on the PCB sheet, it is necessary to rout all of the connections. Eagle has a built in autorouter that will do most of the work for you. To autorout the PCB layout, simply select the autorout command. [[Image:8autorout.jpg]] To further customize and optimize the autorout process, refer to the linked Eagle [[Media:Eagle_Tutorial.pdf|tutorial]] and [[Media:Eagle_Manual.pdf|manual]].

The autorouter is not perfect, so once it is executed, you will need to go through the layout and make sure that no routs on the same layer (of the same color) are crossing as this would lead to a short circuit. For example, if two red rout lines are overlapping, you need to move one of them with the Move command until they are no longer touching. If you don’t like the results of the autorouter, you can use the RIPUP command to remove routs.

If you need to change the properties of or move multiple components together, a useful tool is the Group command. As the name suggests, it will group together selected components so they can all be edited together.

In general, it’s very useful to label both the components on the PCB as well as component values. This will make it much easier to know which components of which value go where on the PCB when you assemble it. To label values of resistors, capacitors and other circuit elements, use the Value command [[Image:9value.jpg]]. As well, you can use the Text command [[Image:10text.jpg]] to add text noting which component is which on the PCB layout. Make sure to place the text on layer 21, “tPlace.”

Another useful feature to include on your PCB layout is mounting holes in order to secure your board to your robot. To draw mounting holes, simply use the Hole command. [[Image:11hole.jpg]] Make sure the hole size is of the correct diameter to mount with screws.

Once you’ve completed the layout, another error check is necessary. Select the Errors command to check. [[Image:6errors.jpg]]

An example of a completed PCB layout.
[[Image:EaglePCBBreakout.jpg]]
Once the PCB layout is complete, you’ll need to export it as a CAM file in order for it to be manufactured. Before you begin to export, make sure the .cam files from the [[Media:eagle_job_lib_2011-04-18.zip|zip file]] in the "Download" section are saved to your Eagle/cam directory. Once the file is saved properly, select the CAM command. [[Image:13CAM.jpg]] Then, select File/Open/Job… and select the file "sfe-gerb274x.cam." Finally, select Process Job to complete the process. For more information on customizing the CAM process, refer to the Eagle tutorial and manual. When you are done, the CAM file can be sent to the PCB manufacturer to order your board.

Latest revision as of 16:50, 9 April 2012

Overview

Eagle is an easy to learn schematic and printed circuit board (PCB) layout editor. It is compatible with Windows, Linux and Mac. Eagle lets the user design a schematic using common electric components, convert it to a PC Board layout, and then automatically rout all of the necessary net connections. The final Eagle layout can then be exported as a CAM file and sent to a PCB manufacturer to order a PC board. This wiki page describes how to download and effectively operate Eagle.

Download

A free download for Eagle V6 can be found here, but this document refers to v5 here for v5, which is not very different from v6. Installation guides are provided at the site. Some features like larger board sizes may require a license to be activated. Consult your Professor or TA regarding obtaining a license for Eagle.

Before starting any projects, first download this zip file. It contains various files with the appendices .cam, .dru, and .lbr. On your computer, under Program Files, open the Eagle folder. There should be several folders inside including "cam," "dru," and "lbr." Place the files from the zip folder in the appropriate Eagle subfolders. (ie .cam files go in the cam folder, etc.) The .cam files ensure the manufacturability of the board design, the .dru files help find errors in the schematic and PCB breakout, and the .lbr file provides additional common electrical components to be used in the PCB design.

References

EagleCommandList.jpg


Schematic

Before designing the PCB layout, it is essential to first create a schematic of your circuit. In general, the simpler you layout your circuit in the schematic, the easier laying out the PCB will be. Draw the schematic just as you would draw a circuit diagram on paper.

To draw the schematic, you will need to add the necessary electric components involved in your circuit. Eagle comes with an extensive library of popular components, and a supplemental library of common components used in the Mechatronics classes can be found in the zip file also in the "Download" section.

To add the components, click the “ADD” button 1add.jpg in the command toolbar and a window will pop up with the aforementioned libraries. The search feature isn’t comprehensive, so it can be useful to try multiple different searches or even manually go through the libraries to find the correct component. The search function does allow for wildcards, (*, ?), so if you know part of the name of a component, you can place an asterisk in the search keyword where you are unsure of the letters or numbers. For example, if you are trying to find the component 74LS00, a search of 74*00* or 74LS00* would yield this component and its variants. Once you’ve found the desired component, click on it and click to place it in the schematic layout sheet. The Esc key will return you to the ADD library to find more components. Pressing the Esc key again will cancel the command.

Once the components are laid out, it is necessary to connect the pins that go together. It is extremely important that you do NOT use the “Wire” command to connect pins. The correct way to connect pins is to use the “Net” command. 2net.jpg After selecting the Net command, move your mouse over the connection point of the pin until it connects. If it doesn’t connect, the Net will continue to follow your mouse.

The Net command doesn’t always connect to the pins, so it may be necessary to test connections with the move command. 3move.jpg If there isn’t a Net connection, move the component until the desired pin attaches to the Net. Remember, a Net is only connected to a pin if the net is in the connection point of the pin. To display all of the connections, select the display command 14display.jpg and display layer 93, pins. Connections are outlined with a green circle. Connections are automatically named.

If two or more Nets need to be connected, to make sure there is a connection, use the Junction command 4junction.jpg to create a node between the Nets. If a mistake is made, you can use the undo and redo buttons, or you can use the Delete command 5delete.jpg to delete components and Nets.

Once you’ve completed the schematic, you need to check it for errors. Before doing any checks, make sure the .dru file from the zip file also located in the "Download" section is saved into your Eagle/dru directory. Then, use the Errors command 6errors.jpg to find any errors with your schematic.

An example of a completed schematic: EagleSchematic.jpg

PC Board

Once your schematic is completed, you can convert it to a PCB layout by selecting the Board icon 7board.jpg located on the top toolbar. From there, you can layout the components onto a PCB sheet. In Eagle, if you don’t change any file names, any further edits to the schematic will update on the PCB layout and visa-versa. However, it requires that both the schematic and PCB layout window be open for this function to work. Either window can be minimized, but not closed.

In general, it is recommended that PCB layout resembles the schematic and circuit diagram. This way, if there are any errors or you want to make any changes after the board is manufactured, it will be easier to follow the circuit and debug.

Once all of the components are laid out on the PCB sheet, it is necessary to rout all of the connections. Eagle has a built in autorouter that will do most of the work for you. To autorout the PCB layout, simply select the autorout command. 8autorout.jpg To further customize and optimize the autorout process, refer to the linked Eagle tutorial and manual.

The autorouter is not perfect, so once it is executed, you will need to go through the layout and make sure that no routs on the same layer (of the same color) are crossing as this would lead to a short circuit. For example, if two red rout lines are overlapping, you need to move one of them with the Move command until they are no longer touching. If you don’t like the results of the autorouter, you can use the RIPUP command to remove routs.

If you need to change the properties of or move multiple components together, a useful tool is the Group command. As the name suggests, it will group together selected components so they can all be edited together.

In general, it’s very useful to label both the components on the PCB as well as component values. This will make it much easier to know which components of which value go where on the PCB when you assemble it. To label values of resistors, capacitors and other circuit elements, use the Value command 9value.jpg. As well, you can use the Text command 10text.jpg to add text noting which component is which on the PCB layout. Make sure to place the text on layer 21, “tPlace.”

Another useful feature to include on your PCB layout is mounting holes in order to secure your board to your robot. To draw mounting holes, simply use the Hole command. 11hole.jpg Make sure the hole size is of the correct diameter to mount with screws.

Once you’ve completed the layout, another error check is necessary. Select the Errors command to check. 6errors.jpg

An example of a completed PCB layout. EaglePCBBreakout.jpg

Once the PCB layout is complete, you’ll need to export it as a CAM file in order for it to be manufactured. Before you begin to export, make sure the .cam files from the zip file in the "Download" section are saved to your Eagle/cam directory. Once the file is saved properly, select the CAM command. 13CAM.jpg Then, select File/Open/Job… and select the file "sfe-gerb274x.cam." Finally, select Process Job to complete the process. For more information on customizing the CAM process, refer to the Eagle tutorial and manual. When you are done, the CAM file can be sent to the PCB manufacturer to order your board.