Creating Devices in EAGLE Part II – The Symbol and Device
Creating Devices in EAGLE Part II – The Symbol and Device
For those who watch only the video, please also read the first paragraph as it has a few notes that I didn’t cover in the video.
Having created the package for the 2.5 Digit LCD in the last post, I’ll be creating the corresponding symbol and device in this post. You can have more than one package associated with a symbol in one device. You can also use the same package over in other devices in association with their respective devices. So when creating a standard package, like a TSOP or QFP, it would be best to give it a more generic name, such as TSOP-44, so you can use it with other devices. Also, for those wanting to have the names and values on either the package or the symbol, just add the text “>NAME” and “>VALUE” (without the quotes of course) to your symbol and/or package.
The Symbol
To create the symbol, click the Symbol button on the top toolbar from any window within your library. When prompted for a name, enter an appropriate name for the symbol (I used 2.5_DIG_LCD), click Ok, and then click Ok to again to confirm that you want to create a new symbol. This will bring you to a window heavily resembling that of the schematic window.
To start creating the symbol, there are a few things to note on the datasheet. The first is that this particular device has 16 signal pins, one of which is a common pin. Common practice for creating symbols is to have the power pins on top, grounds on bottom, inputs on the left, and outputs on the right. Since the common pin can be either power or ground, the other fifteen pins can be considered either inputs or outputs, depending on the selection for the common pin. For this reason, I’ll be putting the common pin on one side (as it can be considered as the opposite – input or output – of the other fifteen pins), and the fifteen signal pins on the other side.
To place pins, select the pin tool and begin placing them on the page. The order on the symbol isn’t so important as their is no physical meaning to the order of the pins. I placed fifteen pins on the right and one on the left with enough space between the two sides to clearly display the pin names. For the fifteen pins on the right, I placed them one grid space apart. This helps to keep the symbol reasonably sized in comparison to other symbols you’ll be placing on your schematic. As with the order, there is no physical meaning related to how far apart they are, it just helps keep the symbol size reasonable.
After the pins have been placed, I draw a box (using the Wire tool) so I can tell which pins go together once a part is placed in a schematic. Â This may seem trivial, but I recently inherited a schematic that has a dozen pins just floating in the schematic. Â You can’t tell which pins go together just by looking, so the first thing I’ll be doing is recreating those symbols.
With the pins placed, now they just need to be given names. Â Select the Name tool, and give each pin a name corresponding to a signal from the datasheet. Â If you did this on the package as well (sorry, I didn’t), it makes connecting the package and symbol very straightforward.
Finally, to have the name display on the schematic, use the text tool and place “>NAME” on your symbol. Â This can be done on the package as well so that the name will come out in the silkscreen. Â Though this part doesn’t have a value like a resistor or capacitor, the text “>VALUE” will display any values you set.
The Device
The last step is creating the device by combining the package and symbol. Â Click Device on the top toolbar, enter a name and press Ok. Â In the device window, click Add on the left toolbar and add the symbol you just created. Â In the lower-right corner, click New and select the package you created. Â Finally, click Connect to display the connection dialog. Â If you named all of the pads in your package and all of the pins in your symbol, you just need to click connect 16 times. Â If you didn’t, you need to make sure that you connect the right pad to the right pin; otherwise you’re schematic will look correct, and your board will seem correct, but it won’t work the way you expect it to.
Congratulations
If you’ve gone through the previous posts, you should be able to use the basic features of EAGLE to create quite an array of boards. Â Some boardhouses will even take your board files to create your boards, taking the task of creating gerber files off your shoulders. Â However, since a lot of people use boardhouses that require gerbers, including myself, my next post will be a tutorial on creating gerber files. Â Until then, tell me what areas you need help with, and I’ll be sure to include them in my upcoming posts.
Comments
Comment from Chris
Time November 25, 2008 at 10:39 am
Billt,
This is available in Eagle, but only in the Standard and Professional version. See here: http://www.cadsoft.de/prices.htm.
Comment from chau
Time March 24, 2009 at 4:21 pm
Thanks for the tutorials.
Comment from John
Time May 5, 2009 at 6:07 pm
Hi Chris,
Thanks for the tutorials.
Could you explain how to ADD a device to an already existing library (you cannot create a library for every device) and how to deal with >NAME and > Value?
So for resistor R and an IC U? or IC? and ofcourse the right name.?
Thanks.
Comment from Humano
Time October 10, 2009 at 6:01 am
Thanks for this tutorial.
I follow the petition of John.
Now I can create new devices but I only need to edit another devices to make small changes…
And I don’t understand how >NAME and >VALUE work.
Could you please explain that?
Thanks in advance.
Comment from Dick
Time February 14, 2010 at 12:19 pm
Thanks for the videos. Too bad an overworked engineering student finds time to make tutorial videos for free but Cadsoft won’t even though they make all the money.
Comment from Sandeep
Time September 15, 2010 at 10:00 pm
Great job Chris!! That was really helpful. Just now created a whole new library without any issues. Thanks a lot.
Comment from Clive
Time December 14, 2010 at 5:22 pm
Good tutorial, can you do one about how to copy a part already in the library and rename the pins?
I want to take a standard 16 DIL package and make a new symbol/change the pin names.
Many Thanks.
Comment from Steve
Time April 3, 2011 at 5:27 am
When creating a symbol and assigning data direction
what do the labels stand for
eg. NC OC pas (some are not so obvious)
What should ground be
Comment from Shb
Time May 10, 2011 at 9:21 am
I want to make a package in Eagle but like don’t know how to go about it. I have seen and read your tutorials but need a bit of a help here.
Its a 70 pin connector, a row of 35*2
Now i need 35 pins to be connected to the bottom layer, where as the other 35 on the top layer.
So how should I go about making the package for this.
Please help.
I have a picture of the thing I want to make!
Comment from Chris
Time June 22, 2011 at 3:50 am
Nice video and nice site. Thanks! I’d be interested in learning any quick short-cuts that you know of in Eagle, like how to place 60 pins one after another without 60 mouse clicks.
Comment from billt
Time November 24, 2008 at 10:29 pm
I’ve seen some reference schematics in Orcad which spread a device across many pages, using many symbols to make up a complete device. One symbol may be power/ground, another symbol the PCI signalling, another symbol an AC97 audio port, another symbol for USB ports, etc. This helps spread very large pin count chips across many pages to help make things more human-readable than having oen giant symbol on one very cluttered schematic page. All these symbols go back to one single layout footprint/package. Can this be done in Eagle as well? How so? I’m getting into some larger designs with high pincount chips, and woul dlike to use this technique to help keep my schematics organized and readable.