<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Keith&#039;s Electronics Blog &#187; EAGLE</title>
	<atom:link href="http://www.neufeld.newton.ks.us/electronics/?cat=26&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.neufeld.newton.ks.us/electronics</link>
	<description></description>
	<lastBuildDate>Fri, 18 Apr 2025 00:10:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>BatchPCB</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1505</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1505#comments</comments>
		<pubDate>Mon, 18 Jun 2012 03:36:56 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Circuits]]></category>
		<category><![CDATA[EAGLE]]></category>
		<category><![CDATA[Products]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1505</guid>
		<description><![CDATA[My academic background is in mathematics and computer science and I&#8217;ve picked up electronics as a hobby along the way, primarily self-taught through excellent books by Forrest Mims, the easy crossovers from math and CS to digital logic and digital design (still my strongest area of electronics), a stubborn willingness to read datasheets, and a [...]]]></description>
			<content:encoded><![CDATA[<p>My academic background is in mathematics and computer science and I&#8217;ve picked up electronics as a hobby along the way, primarily self-taught through excellent books by Forrest Mims, the easy crossovers from math and CS to digital logic and digital design (still my strongest area of electronics), a stubborn willingness to read datasheets, and a constant desire to learn.</p>
<p>For the last two years, I&#8217;ve been supplementing that with a formal background from my university&#8217;s EE department, taking first one and recently two classes per semester.  The education is interesting and enlightening, but it does take its toll &#8212; at least forty hours a week of work, six hours of classes, and (say) twenty hours of study and homework, plus some volunteer work unrelated to those, doesn&#8217;t leave me with a lot of free time; and you can see it by the decline in my hobby activity.</p>
<p>I don&#8217;t want to lose sight of what I love, though; and I hope to make a small business of electronics and make a few products available for sale.  So this summer I&#8217;m devoting every spare moment to get some projects off the ground.  And my ally in that plan is <a href="http://batchpcb.com/index.php/AboutUs">BatchPCB</a>.</p>
<h3>Why Have Boards Manufactured?</h3>
<p>In the past, I&#8217;ve done a lot of circuit prototyping on breadboards.  For some types of circuits, though, the needed prototyping has more to do with physical form factor and less to do with circuit validation.  (I hope to show some examples in the coming weeks.)  I&#8217;ve etched my own circuit boards; I&#8217;ve imposed on friends to mill prototype boards for me; and I&#8217;ve hoped to build my own milling machine to prototype my own boards at home.</p>
<p>The drawback of all of these methods is the lack of plated through-holes.  I&#8217;ve heard of DIY hole-plating methods, but I found them to require a prohibitive setup for chemical processing.  I&#8217;ve asked everyone I know whether they can think of any source for 1.5-ish mm (60 mil) OD copper or silver tubing, thinking of making a small riveting press to flare tubing onto the PCB surface both top and bottom &#8212; and even found very small silver crimp tubes used in beadwork and jewely-making, but none as small as 1.5 mm OD, nor in a consistently appropriate length.</p>
<p>I&#8217;ve worked around the lack of plated through holes by laying out boards that don&#8217;t require them, always carrying a signal from top to bottom using a component lead that can be soldered on both sides.  But this means no vias (soldering pins top and bottom just to change layers is a pain) and only crossing layers at resistors and diodes.  It means always routing connections to electrolytic capacitors on the bottom, &#8217;cause you can&#8217;t get to the top side of the board to solder unless you stand the capacitors way up on their leads.  It means routing traces to headers only on the bottom, or sliding the plastic guide up on the pins to solder the top side and then sliding it back down.  It means a dozen little design compromises <em>for a prototype board</em> that don&#8217;t need to be made for a board I&#8217;m going to have commercially manufactured later.  It means not only extra effort to accommodate my prototyping methods but also extra effort to undo that work before going to manufacturing.</p>
<p>SparkFun Electronics created BatchPCB as an offshoot of their own PCB prototyping contract.  They aggregate orders from multiple users, tile them together onto standard-sized panels, upload the panels to Gold Phoenix, get the boards manufactured, receive the shipment from Gold Phoenix, sort out the boards, and send them back.  They charge $2.50 per square inch, which is higher than you&#8217;d pay if you were ordering 100 square inches &#8212; but far less than you can pay anywhere else if you only want a few square inches of prototype.  And they charge a flat $10 handling fee <em>per order</em>, regardless of how many designs you include in your order.</p>
<p>They suggest it&#8217;ll take about three weeks to get your order.  My experience has been two weeks.  It sounds like a long wait, but as they say:</p>
<blockquote><p>As we develop projects, we always get at least one PCB design onto the week&#8217;s batch panel. While one design is being fabbed, we have new PCBs for another design already arriving from a previous batch &#8211; we always have new PCBs to play with!</p></blockquote>
<h3>My Summer with BatchPCB</h3>
<p>I&#8217;m trying to place an order every two weeks and to order boards for multiple projects each time.  I&#8217;ve received two batches so far and I submitted a third this weekend.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2012/06/17/DSCN8886.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2012/06/17/DSCN8886_mid.jpg" alt="Circuit boards from BatchPCB" /></a></p>
<p>I&#8217;ll say more about these designs as I work on the projects, but starting at the top and progressing in reading order:</p>
<ul>
<li>Logic gate boards to help bridge the huge gap between what happens in the digital design lecture and lab.  My classmates with no prior experience did not gain much academic value from poking opaque ICs into breadboards.</li>
<li>A Freeduino-derived board for my personal use, manufactured as a proof-of-concept that I have the right components and schematic to embed an Arduino-compatible core into projects of my own.  (I will of course publish all source files for designs that I distribute to anyone other than myself.)</li>
<li>The first half of a pair of boards to breakout a headphone cable and jack for breadboarding, to plug an iPod&#8217;s headphone output into op-amp filter circuits and listen to the results.</li>
<li>A board for testing component lead fit against through-hole sizes.  To date, I&#8217;ve used calipers for measuring lead sizes for PCB design.  I&#8217;m curious whether testing against a physical board gives me any different expenditure of time or quality of results.</li>
</ul>
<p>The logic gate boards were my first batch.  I ordered four each of two variants of the boards, assembled a few, and discovered that I don&#8217;t like soldering 0603 SMT as much as I thought I did; so if I make more, I&#8217;ll be changing the boards to use 0805 components.</p>
<p><strong>Lesson learned:  Order only one of your first prototype, regardless of how sure you <em>think</em> you are that you&#8217;ve finalized the design.</strong></p>
<p>So why so many of the other boards?  I <em>did</em> order only one of each &hellip; but SparkFun, bless their hearts, appears to fill wasted space in each panel with small customer boards that they give back to their customers as a bonus; and I happened to have small designs in this batch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1505</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Last Stage of Circuit Board Design: Correcting for the Real World</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1435</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1435#comments</comments>
		<pubDate>Sun, 21 Aug 2011 21:12:52 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[EAGLE]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1435</guid>
		<description><![CDATA[I&#8217;m working on a PC board layout for a circuit I&#8217;ve built and tested on the workbench. I enjoy board layout, but I was still delighted to be finished with the design. I printed out a copy, not to test whether all the components fit, but to stare at for a day and see whether [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a PC board layout for a circuit I&#8217;ve built and tested on the workbench.  I enjoy board layout, but I was still delighted to be finished with the design.  I printed out a copy, not to test whether all the components fit, but to stare at for a day and see whether I found anything that might need to be corrected.</p>
<p>Boy, did I.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-0-before.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-0-before_mid.png" alt="Circuit board layout" /></a></p>
<p>In general, the first stage of laying out a PCB is placing external interface components &#8212; connectors, switches, potentiometers, etc. &#8212; followed closely by other large components and power supply traces.  For me, the last stage of layout is doing a sanity check that the board will actually work (and be possible to assemble) in the real world.</p>
<p>Here&#8217;s what I found.</p>
<p><span id="more-1435"></span></p>
<ul>
<li>Since I&#8217;m making a single copy of this and never expect to make more, I&#8217;m not bothering to have the board produced commercially, but rather having it milled.  Milled boards don&#8217;t have plated through-holes and vias, so <strong>make sure any components whose footprints cover their leads have only bottom-side traces</strong> or I won&#8217;t be able to solder them.  I always keep this in mind during design and I did okay on the LEDs and transistors but I forgot <strong>two electrolytic capacitors, the three-pin header in the upper left, and the yet-to-be-determined connectors at the right</strong>.</li>
<li>I find that without plated through holes I need larger solder pads.  As a very last step, <strong>use the DRC Restring parameters to increase all solder pad sizes</strong>.  I was already careful to avoid routing traces between IC pins &#8212; which I would cheerfully do on a commercially-produced board &#8212; knowing that I&#8217;d want to increase pad sizes.</li>
<li>Although this isn&#8217;t a high-power project, the traces to the output pins look a little narrow to me, and there&#8217;s no reason the other traces shouldn&#8217;t be wider as well.  I already used wider traces than I do on very small boards, but <strong>increase the trace widths even more</strong>.</li>
<li>This PCB is going to get screwed down to a piece of plywood, but <strong>I forgot to include mounting holes, or even room for them</strong>.</li>
<li>Yes, yes, <strong>double-check that resistors and electrolytic capacitors are drawn at the right size</strong>.</li>
<li>The upper left connector includes ground and 5V for a secondary board, so plugging it in backwards would be catastrophic.  <strong>The connector should be polarized at a minimum and latching if possible; make sure the footprint still matches the chosen connector type.</strong></li>
<li>I hadn&#8217;t yet decided on output connectors and had just drawn pads to represent them.  <strong>Choose output connectors and update the footprints accordingly.</strong></li>
<li>I&#8217;ve found that BJTs from different manufacturers &#8212; even with the same part number &#8212; may have different pinouts; and I&#8217;m planning to use no-name BJTs from the scrap bin, so there&#8217;s no telling whether their pinouts correspond to what EAGLE thinks.  <strong>Check the BJT pinouts and adjust accordingly.</strong></li>
<li>The milled PC board won&#8217;t have a silkscreen layer and I may not bother to iron-on the silkscreen layer.  <strong>Indicate the IC orientation in the top copper layer.</strong></li>
</ul>
<p>This afternoon I addressed these issues, starting with the ones most likely to require rerouting traces.</p>
<h3>Move Electrolytic Capacitor Traces to the Bottom</h3>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-0-before.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-0-before_mid.png" alt="Circuit board layout" /></a></p>
<p>The two electrolytics in the upper left have top-side traces that would be very hard to solder without leaving the capacitors raised higher above the board than I prefer.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-1-layer.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-1-layer_mid.png" alt="Circuit board layout" /></a></p>
<p>Not too much work to reroute a few traces.</p>
<p>For the input and output connectors, even though the plastic form blocks the top-side solder pads, I leave the top-side traces as they are.  I&#8217;ve got into the habit of pushing connector pins through their plastic form in order to solder top-side, then pushing the plastic form back down (almost) to the PCB after soldering.  I am (over)confident of finding a latching three-pin connector with .1&#8243; spacing that I can solder top-side and I know I can use that trick with the output connectors I have in mind.</p>
<h3>Component Sizes</h3>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-1-layer.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-1-layer_mid.png" alt="Circuit board layout" /></a></p>
<p>The resistors are the right size, but the capacitor I&#8217;ll install in the lower left probably has 3.5mm pin spacing and 8mm diameter rather than 2.5/7.  Happily, the updated package doesn&#8217;t require repositioning anything else, just bending a trace.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-2-components.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-2-components_mid.png" alt="Circuit board layout" /></a></p>
<h3>Output Connectors</h3>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-2-components.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-2-components_mid.png" alt="Circuit board layout" /></a></p>
<p>I have some .156&#8243; bump-latching connectors on hand with .045&#8243;-diameter pins.  That information allows me to position the output pins and correct their size.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-3-output.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-3-output_mid.png" alt="Circuit board layout" /></a></p>
<p>I use the Info tool to display the pad positions and change each to be .022&#8243; closer to its mate (half the difference between .2&#8243; and .156&#8243;).  I also increase the pads to 3.17mm (.125&#8243;) and the holes to 1.1mm (.043&#8243;).  If the pins fit too tightly, I can drill out the holes slightly without losing much copper.</p>
<h3>Mounting Holes</h3>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-3-output.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-3-output_mid.png" alt="Circuit board layout" /></a></p>
<p>If I were going to produce more than one of this board, I&#8217;d go to the effort of repositioning components to leave room for regularly-spaced mounting holes in the corners.  But for a single-copy, single-use board, even a couple of holes across from each other should suffice.</p>
<p>Some small-but-adequate wood screws I have on hand have a shaft diameter of .105&#8243; and a head diameter of .210&#8243;.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-4-mounting.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-4-mounting_mid.png" alt="Circuit board layout" /></a></p>
<p>EAGLE has mounting holes available both as components (so you can connect them to a signal, presumably [one of your] ground[s]) and as a tool in the board editor.</p>
<p>Since I don&#8217;t particularly care about grounding the board to the plywood enclosure and EAGLE doesn&#8217;t have any mounting hole components quite the size I want, I just use the hole tool in the board editor &#8212; which means I&#8217;m responsible for drawing the screw head clearance myself.  I add .15&#8243;-radius circles in the tDocu layer around each mounting hole, which should leave clearance for screw heads even slightly larger than what I have on hand.</p>
<p>This necessitates rerouting the power traces at the left edge of the board.</p>
<h3>Transistor Pinout</h3>
<p>Okay, it&#8217;s probably time to talk about the BJTs, but I&#8217;ve only been putting it off because I already checked them and I know the answer.</p>
<p>The 2N3904s in EAGLE are CBE when viewed from the front.  The unidentified NPNs with which I breadboarded the circuit are EBC.</p>
<p>I wouldn&#8217;t do this if I were building more than one, I wouldn&#8217;t do this if I were going to have a silkscreen layer, and I wouldn&#8217;t do this if anyone other than me or a <em>very</em> close friend were going to assemble the board &hellip; but I&#8217;m going to leave the layout as-is and install the transistors rotated 180&deg; from what the silkscreen indicates.</p>
<h3>IC Orientation</h3>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-4-mounting.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-4-mounting_mid.png" alt="Circuit board layout" /></a></p>
<p>On a milled circuit board on which I may not iron on the silkscreen layer, I like to draw an arc in the top copper layer under the notched end of each IC.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-5-ic.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-5-ic_mid.png" alt="Circuit board layout" /></a></p>
<p>Although it looks odd, it doesn&#8217;t matter that the arcs intersect top-side traces as long as they don&#8217;t bridge two <em>different</em> traces together.</p>
<h3>Trace Widths</h3>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-5-ic.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-5-ic_mid.png" alt="Circuit board layout" /></a></p>
<p>I had drawn the board with 40-mil traces for power connections and 24-mil traces for signal connections.  On paper, that looks narrow, so I increase it to 50-mil power and 32-mil signal widths.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-6-widths.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-6-widths_mid.png" alt="Circuit board layout" /></a></p>
<p>I use EAGLE&#8217;s Change / Width tool to increase the power traces.  It seems like there should be a way in the DRC to restring all the remaining traces to a new minimum width, but I don&#8217;t find it, so I change them all by hand.  In the process, I find that after having moved a component several times, I had a long trace from the left where a short trace from the top would work even better, and I make the correction.</p>
<p>The traces still look narrow on paper, but better.</p>
<h3>Pad Sizes</h3>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-6-widths.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-6-widths_mid.png" alt="Circuit board layout" /></a></p>
<p>All that&#8217;s left are pad sizes, which I <em>can</em> do in DRC / Restring.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-7-pads.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-7-pads_mid.png" alt="Circuit board layout" /></a></p>
<p>The default is a copper annulus whose track width (difference between OD and ID) is 25% of the hole diameter (or 50% of the hole radius) and not less than 10 mil.  Increasing the minimum to 20 mil gives me lovely, large, solderable pads, but crowds the BJT terminals a bit much for my liking.</p>
<p>Restring operations aren&#8217;t undoable, so I reload the copy I saved before the restring (Infocom text adventure, anyone?) and try again.  15 mil looks pretty good and 16 mil looks even better, so I leave it at that &#8212; and I barely remember to update the bottom layer minimum as well.</p>
<h3>Final Board</h3>
<p>After updating the pad sizes, I decide to tweak the top-size power trace just a smidge further away from the left mounting screw head, and then I&#8217;m done.</p>
<p>From initial faux-complete:</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-0-before.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-0-before_mid.png" alt="Circuit board layout" /></a></p>
<p>to real-world updates:</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-8-final.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/08/21/bus-flasher-pcb-8-final_mid.png" alt="Circuit board layout" /></a></p>
<p>doesn&#8217;t look dramatic, but will make a significant difference in ease of assembly.  Now it&#8217;s ready to mill.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1435</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Viewing PCB Gerber Files Before Manufacturing</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=983</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=983#comments</comments>
		<pubDate>Thu, 06 May 2010 23:48:14 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[EAGLE]]></category>
		<category><![CDATA[Products]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=983</guid>
		<description><![CDATA[I&#8217;ve spent my last week and a half&#8217;s free time going back and forth among EAGLE, eagle3d, 1:1 printouts, and the Viewplot Gerber viewer. That&#8217;s how long it took me to get the silkscreen layer tweaked to my satisfaction &#8212; which I completely didn&#8217;t anticipate. Thank you, thank you, thank you SparkFun for emphasizing how [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent my last week and a half&#8217;s free time going back and forth among EAGLE, eagle3d, 1:1 printouts, and the Viewplot Gerber viewer.  That&#8217;s how long it took me to get the silkscreen layer tweaked to my satisfaction &#8212; which I <em>completely</em> didn&#8217;t anticipate.</p>
<p>Thank you, thank you, thank you SparkFun for <a href="http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=109">emphasizing how important it is to view your Gerbers before submitting</a> (search in page for &#8220;Something I highly recommend&#8221;).</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/25/driver-prototype-v.92-3d.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/25/driver-prototype-v.92-3d_mid.png" alt="eagle3d view of LED driver prototype" /></a></p>
<p>I had already rendered the board layout in <a href="http://www.matwei.de/doku.php?id=en:eagle3d:eagle3d">eagle3d</a> (pay no mind to the test holes I used to figure out that eagle3d doesn&#8217;t make holes through copper that&#8217;s part of a polygon, which <a href="http://www.matwei.de/doku.php?id=en:eagle3d:documentation#4.6_holes">its documentation clearly states</a> if you bother to read it) and thought it looked pretty good.</p>
<p>But I followed Nate&#8217;s advice, installed <a href="http://www.viewplot.com/">Viewplot</a>, and was rather startled to see what my board was <em>really</em> going to look like.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/viewplot.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/viewplot_mid.png" alt="Viewplot Gerber view of LED driver prototype" /></a></p>
<p>The silkscreened boxes for the plastic &#8220;keepers&#8221; on the pin headers are fairly faithful to the connectors I&#8217;m using, but what&#8217;s with putting the pins in the silkscreen?  I don&#8217;t need a shadow of the pins on the board.</p>
<p>Also the 0805 SMT resistors and capacitors don&#8217;t have silk around them showing which pads belong to the same component.  It&#8217;s easy enough to figure out on this small board, but I&#8217;d like to develop good habits.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/Screen-shot-2010-04-29-at-8.25.24-PM.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/Screen-shot-2010-04-29-at-8.25.24-PM_mid.png" alt="EAGLE CAM processor showing layers going into top-side silkscreen" /></a></p>
<p>EAGLE&#8217;s CAM processor lets you pick which PCB layers are used to generate each Gerber file, and there&#8217;s not much in my top silk layer.  The pins must be in tPlace, so I used the PCB layout editor to preview what would happen if I turned it off &hellip;</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/Screen-shot-2010-04-29-at-8.26.16-PM.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/Screen-shot-2010-04-29-at-8.26.16-PM_mid.png" alt="EAGLE PCB layout with tPlace layer switched off" /></a></p>
<p>I lost the header outlines as well as the pins, as well as the outlines for the optional through-hole resistors.  That&#8217;s not gonna work.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/Screen-shot-2010-04-29-at-8.31.27-PM.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/Screen-shot-2010-04-29-at-8.31.27-PM_mid.png" alt="Changing package of two-pin connector in EAGLE PCB layout" /></a></p>
<p>Exercising outrageous optimism, I tried changing my header packages from right-angle to vertical, hoping they&#8217;d have more appropriate package outlines (still in the tPlace layer).</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/Screen-shot-2010-04-29-at-8.32.32-PM.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/Screen-shot-2010-04-29-at-8.32.32-PM_mid.png" alt="EAGLE PCB layout with header type switched, tDocu on" /></a></p>
<p>Better &#8212; no stray pins in the silkscreen.  Now guardedly optimistic.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/Screen-shot-2010-04-29-at-8.37.23-PM.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/29/Screen-shot-2010-04-29-at-8.37.23-PM_mid.png" alt="EAGLE PCB layout with tDocu off and supplemental silk drawn in tPlace layer" /></a></p>
<p>I turned off the tDocu layer that shows the physical outlines of components, and which isn&#8217;t (and mustn&#8217;t be) included in the silkscreen Gerber because it would interfere with soldering, then added lines in tPlace to indicate the edges of SMT components.</p>
<p>Silly me &#8212; I thought I was done!</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/30/led-driver-new-headers-gerbers.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/04/30/led-driver-new-headers-gerbers_mid.png" alt="Viewplot Gerber view of revised LED driver prototype" /></a></p>
<p>Back in Viewplot, look at how the silkscreen around the power connector is now crowding the pin labels.  Aaargh!  There&#8217;s not room to move them far enough away.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/05/03/led-driver-new-silkscreen-gerber.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/05/03/led-driver-new-silkscreen-gerber_mid.png" alt="Viewplot Gerber view of revised LED driver silkscreen" /></a></p>
<p>I went back to my connector library and designed two- and three-pin versions of &#8220;locking&#8221; connectors based on the <a href="http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=114">SparkFun locking connector concept</a>.  (<a href="#sparkfun-eagle-license">See footnote about SparkFun EAGLE library license terms.</a>)</p>
<p>The Gerber view looked pretty good now, except the ground symbol was too close to the power header and a little visually confusing.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/05/05/led-driver-with-drills-gerbers.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/05/05/led-driver-with-drills-gerbers_mid.png" alt="Viewplot Gerber view of LED driver with working drill holes" /></a></p>
<p>I moved that down a bit and in my next trip to Viewplot discovered how to get the drill holes to show up:  don&#8217;t load the drill <em>rack</em> file into Viewplot, just the drill file itself.  Getting visualization with holes and confirmation that there&#8217;s really a mounting hole through the heatsink &#8212; outstanding!</p>
<p>Somewhere around this time I also printed out the solder-side of the board to make sure that the boxes I made to write in (visible in the next screen shot) were large enough for me to write in.  They weren&#8217;t.  I enlarged them.</p>
<p>Done now, maybe?</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/05/05/led-driver-with-drills-gerbers-back.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/05/05/led-driver-with-drills-gerbers-back_mid.png" alt="Viewplot Gerber view of LED driver with working drill holes, back" /></a></p>
<p>Oof, look at all the problems with the silkscreen on the back side.  The top line looks like I&#8217;m incrementing V by 5.5-40V (C joke), and if I fix that I need to move I<sub>LED</sub>&#8216;s = further away also.  The / in the URL is awfully close to the solder pad, and the box for me to write the &#8220;factory&#8221;-configured LED current could stand to extend a little closer to the &#8220;mA&#8221; label.</p>
<p>Props to <a href="http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=115">Nate at SparkFun again</a> (search in page for &#8220;Label everything, all the time&#8221;) for reminding me to put the input voltage range and output current rating on the board, BTW.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/05/06/led-driver-final-gerbers-back.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/05/06/led-driver-final-gerbers-back_mid.png" alt="Viewplot Gerber view of final LED driver design, back" /></a></p>
<p>Fixed!  Really!  Done!  If I stare at this thing any longer, I&#8217;m going to start hand-kerning the vector font.</p>
<p>I zipped the files and uploaded them to Gold Phoenix last night.</p>
<p><a name="sparkfun-eagle-license"><br />
<h3>SparkFun EAGLE Library License Terms</h3>
<p></a></p>
<p>I&#8217;m not using SparkFun&#8217;s <a href="http://www.opencircuits.com/SFE_Footprint_Library_Eagle">EAGLE library</a> nor a derivative of their library <em>file</em> because I haven&#8217;t got a response from them whether their <a href="http://creativecommons.org/licenses/by-sa/3.0/">cc-by-sa license</a> is intended to be:</p>
<ul>
<li>like the GPL, meaning that if you use their library in your board design you have to open-source your whole design &#8212; which I will do <em>after</em> I&#8217;m confident the design is right but not immediately upon shipping &#8212; or</li>
<li>like the LGPL and you can use the library in your product without open-sourcing your design but you would have to open-source derivatives of the library itself.</li>
</ul>
<p>So my connector library is most definitely based on Pete Lewis&#8217;s <em>idea</em> to skew pin positioning from side to side to make a header friction-fit in a board for soldering, but (as far as I know) the idea is not patented and I&#8217;m in the clear.  My library is a reimplementation from scratch of the idea, so is not derivative of their <em>library</em>.</p>
<p>I hate playing games like this and I would love to toss my library and use SparkFun&#8217;s if I can get a verdict from them on the licensing.  Also as soon as I&#8217;ve got boards tested and working and I&#8217;m ready to publish the design files, I can switch back to their library too.</p>
<p><em>Update 07-May-2010:  I heard back from SparkFun and it will be fine for me to use their library.  I&#8217;ll look at switching back on the next iteration of the board.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=983</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
