element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • 'Choose another store...'
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Make a component a device in Eagle
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: drlucyrogers
  • Date Created: 5 Aug 2015 3:57 PM Date Created
  • Views 654 views
  • Likes 1 like
  • Comments 4 comments
  • eagle
  • drlucyrogers
  • devices
  • part
  • lucyrogers
  • library
  • pcb
  • cr2032
  • cadsoft_eagle
  • libraries
  • @drlucyrogers
  • cadsoft
  • adapt
  • lucy_rogers
Related
Recommended

Make a component a device in Eagle

drlucyrogers
drlucyrogers
5 Aug 2015

CadSoftusa Eagle PCB design software already has a lot of Farnell Element 14 components in its libraries - and more you can add from here. But what happens if there is something you want to use that isn't there?

 

Recently I wanted to attach a CR2033 3V battery to a PCB. The battery holder I chose, the Renata Hu2032-LF, did not already have a Eagle device associated with it.

 

This blog post will explain how I adapted an Eagle library device (LI Battery Varta CR2032H) (below)

image

 

for use with a Renata Hu2032-LF (below)

image

 

  1. Open Eagle
  2. Make sure all libraries and projects are closed
  3. Click: File, New, Project (and name project - e.g. Lucy_Library)
  4. Make sure Project Lucy_Library is open (green dot by it)
  5. Right click on Lucy_Library, New, Library
  6. Click back on the Control Panel WITHOUT closing the new library
  7. Expand folder Libraries (this is on the same level as Projects)
  8. In Libraries, expand folder battery.lib - but do not open it
  9. In battery.lib right click on CR2032H, then click on "copy to library"
  10. You can tell from the directory path in the top line the name of the library it has saved it into.
  11. Maximise the Lucy_Library window.
  12. Single click on Description (in blue on left hand side).
  13. Change the Description it is sort of HTML code just substituting the words you don't want should be fine I changed"Varta to"Renata  HU2032-LFHU2032-LF
  14. At the top of the window are three icons like this:

image

They are:

Device The device is the combination of the symbol and the package  It is named CR2032H.devimage

Package The package is the foot print and connections of a real component.image

and Symbol The symbol is the symbol you would draw on a schematic.image

 

If you click on the package icon, then select the only one that is there (CR2032H), you will see that it has two green donuts (called vias pads (Thanks Workshopshed for the correction) for the positive pins at the top and one green donut for the negative pin at the bottom (This stops you being able to put the component in the wrong way round - there's a word for it: poka-yoke). The green bit of the via pad is the copper disk on the PCB, the hole in the middle is the hole through the PCB.

 

The Renata  HU2032-LFHU2032-LF has two positive pins and one negative pin, and so the symbol for the Varta battery holder can be used as it is. However, the package needs to be changed.

 

  1. Go back to the Device window (click on device icon, select CR2032H)
  2. Right click the CR2032H under package in the middle.
  3. Click edit package
  4. The package will now appear in a window.
  5. Click on the trash can / delete an object icon
  6. Then click on all the outline white lines, leaving only the text, the "+" and "-" and the green vias pads.
  7. Click on the "information" icon and then click on the top left green via pad. The drill sizes and positions need checking / changing.image
  8. The data sheet for the Renata  HU2032-LFHU2032-LF shows the minimum pin hole diameter to be 0.9mm the"x distance from the centre to the pins to be 13.45mm and the"y distance from the centre line to the positive pins to be 1.27mm
  9. As shown here: image
  10. The default units on Eagle are inches. However, if dimensions are entered, followed by "mm", it will auto-convert.
  11. The drill size is 0.4 inches, which is near enough to 1mm - a little bit larger than the minimum of 0.9mm, so leave that as it is.
  12. The position for the green vias pads needs to be changed.
  13. Click on "information icon" then the top left via pad, and change the Position to be -0.05 and 0.53 (values given in inches, but you could put in 1.27mm and 13.45mm respectively, as long as you remember to put in the mm.
  14. Click on "information icon" then the top right via pad, and change the Position to be 0.05 and 0.53 (values given in inches).
  15. Click on "information icon" then the bottom via pad, and change the Position to be 0 and -0.53 (values given in inches).
  16. Now we want to draw some white lines. These will appear the silk screen and serve to remind us where the parts go and to not place anything else over them.
  17. Next draw the circle where the battery will go:
    Click the circle icon. Left click to define the circle centre (put this on the cross (not the plus symbol) in the middle of the window). Left click to mark the radius. It doesn't really matter where - we will change it in the next step.
  18. Click on "information icon" then on the circle. Change the width to 0.006 (inches) and the radius to 10mm (remember the mm!)
  19. Click on the "Draw Lines" icon. Change the width (at the top) to 0.006 (inches).
  20. Draw a rectangle - we'll change the dimensions in the next step:
    Click on "information icon" then on one of the lines. Change the From to: -0.138 (next box along) -0.56 and the To to: -0.138 (next box along) 0.56 click OK.
    Click on another line (if you haven't selected another icon, it will remember you are still using the "information icon") Change From to: 0.138 (next box along) -0.56 and the To to: 0.138 (next box along) 0.56 click OK.
    Click on another line - change From to: -0.138 (next box along) 0.56 and the To to: 0.138 (next box along) 0.56 click OK.the click OK
    Click on another line - change From to: -0.138 (next box along) -0.56 and the To to: 0.138 (next box along) -0.56 click OK.the click OK
  21. Save (save regularly!)
  22. You should now have something that looks like this:
    image
  23. Which if you have some imagination looks like the  HU2032-LFHU2032-LF layout top view from the data sheet
    image
  24. Save
  25. I moved the "name" from inside the layout to outside - so I can see what it is called after I have soldered the component. Do this by using the "Move" command.
  26. Finally I changed the description at the bottom to"Renata  HU2032-LFHU2032-LF
    image
  27. Save again!
  28. That's it. You now have an Eagle device for the Farnell Element 14 component you want.
  29. When you want to add it to your schematic, remember to look in the library directory that you saved (Lucy_Library). If you cannot see your library, you may need to click "use"  from the control panel.

 

If you have any problems, please do leave a comment. I am still relatively new to this and would love to hear any shortcuts or improvements.

Huge thanks to @rocketengines, who has a lot of experience using Eagle and is mentoring me.

  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 8 years ago in reply to drlucyrogers +2
    drlucyrogers I find the hardest thing with starting with a new topic area is getting a handle on the terminology. But without that you can't even ask the right questions. I've learnt something new today…
  • Workshopshed
    Workshopshed over 8 years ago +1
    I just use the word "Via" for a interconnect that are not also used for a through hole component. I think "pad" would be the best term for the "doughnuts" in this case as that's what Eagle calls them.…
  • drlucyrogers
    drlucyrogers over 8 years ago in reply to Workshopshed +1
    Thanks for that @workshopshed -I have now changed them.
  • shabaz
    shabaz over 8 years ago in reply to Workshopshed

    That's a new one to me too - usually I think it is called 'perfboard'.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 8 years ago in reply to drlucyrogers

    drlucyrogers I find the hardest thing with starting with a new topic area is getting a handle on the terminology. But without that you can't even ask the right questions. I've learnt something new today, a board with a prototyping area of disconnected pads is called a "doughnut board" Donut | FreeIO

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • drlucyrogers
    drlucyrogers over 8 years ago in reply to Workshopshed

    Thanks for that @workshopshed -I have now changed them.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 8 years ago

    I just use the word "Via" for a interconnect that are not also used for a through hole component. I think "pad" would be the best term for the "doughnuts" in this case as that's what Eagle calls them.

     

    http://www.goldengategraphics.com/pcgloss.htm

    https://learn.sparkfun.com/tutorials/pcb-basics/terminology

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube