{"id":563,"date":"2011-09-28T11:49:13","date_gmt":"2011-09-28T16:49:13","guid":{"rendered":"http:\/\/bardagjy.com\/?p=563"},"modified":"2011-09-29T18:50:04","modified_gmt":"2011-09-29T23:50:04","slug":"eagle-tools-revisited","status":"publish","type":"post","link":"https:\/\/bardagjy.com\/?p=563","title":{"rendered":"EAGLE Tools Revisited"},"content":{"rendered":"<p><a href=\"http:\/\/bardagjy.com\/wp-content\/uploads\/2011\/08\/eagteaser.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/bardagjy.com\/wp-content\/uploads\/2011\/08\/eagteaser-610x200.png\" alt=\"\" title=\"eagteaser\" width=\"610\" height=\"200\" class=\"aligncenter size-large wp-image-657\" srcset=\"https:\/\/bardagjy.com\/wp-content\/uploads\/2011\/08\/eagteaser-610x200.png 610w, https:\/\/bardagjy.com\/wp-content\/uploads\/2011\/08\/eagteaser-300x98.png 300w, https:\/\/bardagjy.com\/wp-content\/uploads\/2011\/08\/eagteaser-299x98.png 299w, https:\/\/bardagjy.com\/wp-content\/uploads\/2011\/08\/eagteaser.png 621w\" sizes=\"(max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>I revisited the tools I <a href=\"http:\/\/bardagjy.com\/?p=524\">previously<\/a> put together to process EagleCAD files for manufacture. I extended my export tools to generate all the gerbers required for most major board houses (like <a href=\"http:\/\/www.4pcb.com\/\">Advanced Circuits<\/a>) and PNGs required for <a href=\"http:\/\/kokompe.cba.mit.edu\/dist\/\">Fab modules<\/a> (used by the <a href=\"http:\/\/fab.cba.mit.edu\/content\/processes\/PCB\/modela2.html\">Media Lab&#8217;s Modella<\/a>). <\/p>\n<p>As icing on the cake, I also wrote a python script to generate csv parts lists that can be easily uploaded to Digikey.<\/p>\n<p>So, the scripts (a Makefile and a python script, eagle_parts) can export:<\/p>\n<ul>\n<li> <a href=\"http:\/\/www.barebonespcb.com\/\">Barebones<\/a> compatible gerbers <\/li>\n<li> <a href=\"http:\/\/www.4pcb.com\/\">Advanced Circuits<\/a> (and most other board houses) compatible gerbers <\/li>\n<li> <a href=\"http:\/\/kokompe.cba.mit.edu\/dist\/\">MIT CBA Fab Module<\/a> compatible PNGs <\/li>\n<li> <a href=\"http:\/\/www.digikey.com\/\">Digikey<\/a> compatible csv parts lists <\/li>\n<\/ul>\n<p>These tools will work best under Unixy operating systems, maybe someone can get it to work under Cygwin, I&#8217;ve used them under OSX. They depend on a few pretty usual command line tools including GNU make, git, and python and a few unusual tools like <a href=\"http:\/\/www.cadsoftusa.com\/\">EAGLE<\/a>, <a href=\"http:\/\/gerbv.sourceforge.net\/\">gerbv<\/a>, and <a href=\"http:\/\/www.imagemagick.org\/\">imagemagick<\/a>. <\/p>\n<p>All of these tools should be easy to install via repositories (like macports, fink, apt etc). The only wrinkle under OSX is making EAGLE usable from the command line which can be easily enabled with a softlink<\/p>\n<p><code>ln -s \/usr\/bin\/eagle \/Applications\/EAGLE\/EAGLE.app\/Contents\/MacOS\/EAGLE<\/code><\/p>\n<p>To install the tools, first grab a copy of my eagle_tools git repo<\/p>\n<p><code>git clone git:\/\/bardagjy.com\/eagle_tools<\/code><\/p>\n<p>In my repo, you&#8217;ll get three directories; cam, dru, and export. In the cam directory I&#8217;ve shared my Advanced Circuits and Barebones cam files. In the dru directory I&#8217;ve shared my design rules for the Modella and Advanced Circuits. In the export directory is a sample makefile and a python script eagle_parts for exporting Digikey compatible csv parts lists.<\/p>\n<p>To use the export tools, copy the makefile into your project directory and change the PROJECT variable to the name of your project. I assume the your .brd and .sch files are the name of your project, though this is not enforced by EAGLE (I should probably fix this in the future). <\/p>\n<p>I prefer to make a softlink from my git repo to \/usr\/bin<\/p>\n<p><code>ln -s eagle_tools\/export\/eagle_parts \/usr\/bin\/eagle_parts<\/code><\/p>\n<p>While I&#8217;m at it, I link the repo cam and dru files to the system installed cam and dru files.<\/p>\n<p>That&#8217;s it! Feel free to ask questions in the comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I revisited the tools I previously put together to process EagleCAD files for manufacture. I extended my export tools to generate all the gerbers required for most major board houses (like Advanced Circuits) and PNGs required for Fab modules (used by the Media Lab&#8217;s Modella). As icing on the cake, I also wrote a python [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":662,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[56,19],"tags":[48,49,20,35,50,52],"_links":{"self":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts\/563"}],"collection":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=563"}],"version-history":[{"count":42,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts\/563\/revisions"}],"predecessor-version":[{"id":668,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts\/563\/revisions\/668"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/media\/662"}],"wp:attachment":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}