How to make a custom library part in Eagle CAD tool

 by kd7vnn
Featured
The eagle cad tool is a great thing. It does have something that I see as a draw back. That is that you need to pick a package for your part while you are still working on the schematic phase of a project. I assume Cadsoft, the makers of eagle, have their reasons. Although eagle comes with an extensive part library, some times the part you want is not in the package you want, and other times neither the package or part you want is in their libraries. In these cases you are you are left with two choices. First, pick a similar part that already exists. Second, make your own part. This instructable will focus on the later option.
 
Remove these adsRemove these ads by Signing Up

Step 1: Start the Eagle control panel

That step should be self explanatory.
In linux type eagle from the command line.
In windows double click on the eagle icon.
Or start->programs->eagle layout editor (version) -> eagle

Your screen should look something like this now.
1-40 of 86Next »
rsakaridani says: May 13, 2013. 9:55 AM
nice guide, really easy to follow. Thanks a lot btw
ohmware says: May 6, 2013. 4:41 PM
Great walk-through, very thorough! Thanks!
max.kostka says: Mar 14, 2013. 8:09 AM
Nice Job. Thanks, man!
rhicksdev says: Feb 3, 2013. 3:15 AM
Thanks for such an easy to follow guide - especially since you took the hard route of starting form scratch - this is exactly what I needed to make a pressure sensor and a proportional valve, neither of which are in anything like standard packages that could be copied from another library.
If you're ever going to update this you could perhaps add a name/value step for the device as you did for the package (though this was easily worked out by a novice like me).

Thanks again!
rhicksdev says: Feb 3, 2013. 3:08 AM
@ AngusPearson - Looks like you missed a part of step 17:

"By default the name on the pin and the symbol will show up in the device. This makes for a very cluttered look. Click on the "change" button and select "visable" from the drop down menu, and then select "Pin". Then click on every pin. It will not be obvious what you are doing but trust me the final design will be easier to use."

- You should have trusted him ;)
AngusPearson says: Jan 19, 2013. 2:50 PM
Hi there
I know it's probably some setting somewhere that I'm missing, but I can't seem to get rid of duplicate labels on my pins like in the picture. Any help would be very welcome!
Screen Shot 2013-01-19 at 22.47.55.png
dakoder says: Jan 11, 2013. 4:45 AM
Very easy to follow instructions Thanks.
girishtheone says: Sep 22, 2012. 10:35 AM
Excellent work !!!
Very neat instructions, thanks :)
rclayled says: Aug 3, 2012. 6:42 PM
Slightly different question - can you take a part from a schematic and copy / add it to a library? The particular part(s) are not in any library that I can find - looked at Adafruit, eSawdust, Eagle, etc. Thanks!
rclayled in reply to rclayledAug 5, 2012. 3:26 PM
I answered my own question - if you have a schematic with components that you cannot find in a library, you can 'export' them into a new library. It is pretty straight forward. From the schematic (not the board!) click File, Run. Select exp-project-lbr.ulp. Take the defaults. First, select 'collect data', then 'create library'. The library name is shown after the collect data step and will be created in the same folder that the board and schematic reside. Move the .lbr file to your custom library folder or just stick it with the standard Eagle libraries. From the control panel, you have to add it.
nogueira says: Jul 25, 2012. 12:57 PM
Saved my day, thank you.
sandborn says: Jan 6, 2012. 11:34 AM
You really ought to start with the easy way. I came to figure out how to do this efficiently, and your instructions don't tell me how to copy an existing part and tweak it.
nilloc in reply to sandbornJul 23, 2012. 1:59 AM
I found a 6 minute guide to editing existing components here for those that are interested: http://www.youtube.com/watch?v=yY9WUC0oiK0
crchisholm says: Jun 23, 2012. 9:17 AM
OK stupid user trick here.... I have followed this tutorial and it is great. My problem is that the labels on the symbol are huge and overlap each other. Can't seem to figure out how to shrink them or move them. I am sure I'ave done something wrong but not sure what. Any ideas?
595 part.jpg
phabib says: Jun 11, 2012. 10:49 AM
Very detailed and easy to follow. Great job. Thank you.
WakeUpWolfgang says: Jan 1, 2012. 10:55 AM
How Would I go by doing it the easy way?
ohnoezitasploded says: Jul 10, 2010. 9:06 PM
Thanks for this great tutorial. Is there a way to copy a symbol from another library? The command copy SYMBOLNAME@LIBRARYNAME doesn't work.
kevinfodor in reply to ohnoezitasplodedDec 15, 2011. 2:27 PM
I have even a simpler way.
Open the library where you want the part to be copied into (Library->Open)
Go to the Eagle Control Panel and find the \lbr folder where the library is that you want to copy from (under Libraries).
Expand and find the device/package you want to copy and right click it.
Select "Copy to Library"
That's it. Done.
FazJaxton in reply to ohnoezitasplodedSep 25, 2010. 8:04 AM
You can open the library, edit the part, select the cut tool, then select the group tool and highlight the entire symbol. Then right-click on the selected part and select "Cut: group". Return to your library, edit your part, select paste, and you should now have the part.
ohnoezitasploded in reply to FazJaxtonJan 23, 2011. 12:14 AM
Thanks, I never would have figured that out. The copy command doesn't copy, and the cut command doesn't cut in that it doesn't remove the original. Non-intuitive.
rangaec01 says: Dec 6, 2011. 3:48 AM
this is just amazing tutorial for eagle thank s ..
look to see many more
mykiscool says: Nov 6, 2011. 5:03 PM
I have an error message in the second part where I insert the symbol please help.

Adding symbol L78L05 to L78L05 would exceed the minimum number
of pads (0) available in package variant ''

What are pads even?
RoboticProgrammer says: Aug 30, 2011. 5:01 PM
Thanks it worked perfectly for me :D
bowlerhatman says: Aug 7, 2011. 5:46 AM
Hi there, great tutorial, thanks. One thing though, I can't for the life of me get the >VALUE and >NAME tags to work, whenever I try to change the value tag, a popup comes up saying that there is no user definable data. I've made sure the layer is set right and everything, and can't think of anything else wrong. Do you have any ideas what I'm doing wrong?

Thanks,
Frazer.
jhr007 in reply to bowlerhatmanAug 30, 2011. 8:10 AM
Mega Thanks!

Tutorial for an old version, but still good. Nice combination of pictures and text, easy to skim to the info.

Short version: first/main window in eagle-> File-> New Library... or Open Library
See Step 7 to create a new package (notice the icons devices, packages, symbol
See Step 14 to create a new symbol
See Step 18+ on how to match the package to symbol, and match the pins

See comments below for how to cut and paste, and other tips.
zodthekonquerer says: Jun 28, 2011. 9:06 PM
Dude, awesome instructable! This keeps me from having to such the depths of the interwebz for nixie tube libraries.
AgeingHippy says: Jun 26, 2011. 10:15 AM
Magic!! :)

I needed to add a component (Eagle is very new to me) and this worked 100%

THANKS DUDE!
Spokehedz says: May 21, 2011. 2:04 PM
How would someone who is smarter than I am make the part PTB78560CAH

Datasheet: http://focus.ti.com/lit/ds/symlink/ptb78560c.pdf

I can't seem to get my head around the lack of a grid pattern on this part. And it's getting annoying with just having pads floating around on my schematic as I want to keep putting components where the board is going to sit on my PCB.
DrNerdington says: May 18, 2011. 10:25 PM
If you can get a list of the pin names and numbers, you can make this easier with a script, as follows:
NAME P$1 PGND_1
...and so on; one pin per line.

A programmer's editor like UltraEdit or SciTE makes it easier to add the "P$" to the numbers. When you're done, save it as an ASCII text file with an .SCR extension and load it from Eagle's File menu. Easy peasy!
DrNerdington says: May 18, 2011. 10:02 PM
It's probably a better idea to just make a tall, skinny box with pins in columns on the left and right sides. It's more compact and easier to use with Eagle's weird wire drawing tool which always assumes the horizontal component of the wire comes first (changing this behavior by right-clicking through every possible style or using the tool-bar becomes tedious quickly).

Also, the perfectionist in me cringes at your box being just off the visible grid, but that's neither here nor there ;-)
robduarte says: Nov 7, 2009. 6:05 PM
 any idea how to make the part "smashable"?  i want to be able to rearrange the pin names in a schematic that uses this new part.  thanks for the instructable.
aisvo in reply to robduarteDec 19, 2010. 9:56 AM
It's probably late that I replied this question, but it might help those who have the same question.
Two special keywords need to be placed in the package drawing;
- ">NAME"
- ">VALUE"

There are a few other Special Case words, but these two should suffice for making it "smashable".
thebookofkevin says: Sep 17, 2010. 11:39 AM
@josheeg, i think this tutorial might assume that you've already consulted cadsoft's provided tutorial for the basics of how to navigate and get things done in eagle. their provided tutorial is great for getting started, but distinctly lacks instructions on how to make a new library part, which is where this instructable comes in.

@kd7vnn, this is super helpful, but one thing that i think could also be covered to users' benefit is pin direction and why it matters to make sure you supplies are set to direction Pwr instead of I/O. (i'd offer these explanations myself, but i'm unsure of whether they're used for anything beyond DRC...)
dustinandrews says: Aug 30, 2010. 4:10 PM
Super, thanks!
Douglas_D says: Jun 28, 2010. 4:49 PM
If you're bored with clicking and typing... You can just select the name option on the left and then in the command line, type the current name and then the new name you want for each pin
Fred82664 says: Jun 26, 2010. 1:22 PM
cool I have Eagle installed on Linux and use it a lot
zholy says: May 2, 2010. 5:00 AM
Hi ... thank you for this "tutorial". I manage to create my first part TLC59025. And there is a small suggestion to STEP 16. Do you think you could add a note that the grid should be set to 0.1 inch ?! I didn't do that and I couldn't make a connection in the schematic - this is mentioned in the manual, what I found out later when I was looking what went wrong. I used 0.05 grid instead 0.1.

Thanks again
ArabFusion says: Mar 29, 2010. 5:44 PM
 Very helpful .. Much respect.
yashkhaitan says: Feb 2, 2010. 12:21 PM
 Great tutorial. Thanks a lot!
cfishy says: Dec 27, 2009. 1:00 AM
very helpful! thanks!
1-40 of 86Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!