Warning: Table './lockneyn_dorkbotpdx/cache_page' is marked as crashed and should be repaired query: SELECT data, created, headers, expire FROM cache_page WHERE cid = 'http://dorkbotpdx.org/blog/laen/feed' in /home/lockneyn/public_html/dorkbotpdx/includes/database.mysql.inc on line 172

Warning: Cannot modify header information - headers already sent by (output started at /home/lockneyn/public_html/dorkbotpdx/includes/database.mysql.inc:172) in /home/lockneyn/public_html/dorkbotpdx/includes/bootstrap.inc on line 488

Warning: Cannot modify header information - headers already sent by (output started at /home/lockneyn/public_html/dorkbotpdx/includes/database.mysql.inc:172) in /home/lockneyn/public_html/dorkbotpdx/includes/bootstrap.inc on line 489

Warning: Cannot modify header information - headers already sent by (output started at /home/lockneyn/public_html/dorkbotpdx/includes/database.mysql.inc:172) in /home/lockneyn/public_html/dorkbotpdx/includes/bootstrap.inc on line 490

Warning: Cannot modify header information - headers already sent by (output started at /home/lockneyn/public_html/dorkbotpdx/includes/database.mysql.inc:172) in /home/lockneyn/public_html/dorkbotpdx/includes/bootstrap.inc on line 491
Laen's blog http://dorkbotpdx.org/blog/laen en An itty bitty power provider http://dorkbotpdx.org/blog/laen/an_itty_bitty_power_provider <p>SiliconFarmer found this awesome little solar cell on Digikey that puts out 4V at 50 microamps. Not a lot of juice, but add a 0.33F supercapacitor, and leave it in the sun for about 7 hours, and you have enough energy to run an Atmega168V in active mode at 1MHz for about 22 minutes, or in sleep mode for 4 days (!).</p> <p><a href="http://www.flickr.com/photos/laen/4788751858/" title="SolarStor by Laen, on Flickr"><img src="http://farm5.static.flickr.com/4097/4788751858_966439cd6f_m.jpg" width="240" height="132" alt="SolarStor"></a></p> <p><strong>Parts List</strong><br /> Solar Cell: <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;name=CLA289-ND">CLA289-ND on digikey</a><br /> Super cap: <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;name=P11064-ND">P11064-ND on digikey</a><br /> Diode: <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;name=MMBD914-FDICT-ND">MMBD914-FDICT-ND on digikey<br /> PCB from the <a href="http://dorkbotpdx.org/wiki/pcb_order">DorkbotPDX PCB Order</a></p> http://dorkbotpdx.org/blog/laen/an_itty_bitty_power_provider#comments Mon, 12 Jul 2010 20:49:56 -0500 Laen 568 at http://dorkbotpdx.org OPEN LAB! Sunday, June 27th at PNCA http://dorkbotpdx.org/blog/laen/open_lab_sunday_june_27th_at_pnca <p>Location: Pacific Northwest College of Art, NW 12th and Johnson, room 205 Date: June 27th Time: 1pm to 5pm</p> <p>Hey everyone, it's that time again! Fight the weather and join us at our quarterly/semi-annually Open Lab!</p> <p>This one's promising to be pretty active.</p> <p>We'll have:</p> <p>- Erik Walthinsen giving Xmega demonstrations (is that right, Erik?)</p> <p>- Jim Larson, Scott Dixon, and I (Laen) will be teaching hot-plate surface mount soldering (if you want to give it a try yourself, bring something to solder, or we'll have parts you can buy and cook on the spot).</p> <p>If you have something to teach, something you want to learn, or a project you'd like to work with others on, reply to this post and put it on the list! (Or just show up. It's just that kind of workshop.) The more people that come, the more value everyone gets out of it.</p> <p>Thanks!</p> <p>-Laen &lt;!--break--&gt;</p> <br class="clear" /> http://dorkbotpdx.org/blog/laen/open_lab_sunday_june_27th_at_pnca#comments Thu, 24 Jun 2010 16:09:52 -0500 Laen 564 at http://dorkbotpdx.org DorbotPDX Open Lab Unworkshop - March 28th, 2010 http://dorkbotpdx.org/blog/laen/dorbotpdx_open_lab_unworkshop_march_28th_2010 <p><img src="http://farm4.static.flickr.com/3195/3146429660_6a27029e0c.jpg" alt="http://farm4.static.flickr.com/3195/3146429660_6a27029e0c.jpg" title="http://farm4.static.flickr.com/3195/3146429660_6a27029e0c.jpg" /><!-- <a href="http://farm4.static.flickr.com/3195/3146429660_6a27029e0c.jpg" title="http://farm4.static.flickr.com/3195/3146429660_6a27029e0c.jpg">http://farm4.static.flickr.com/3195/3146429660_6a27029e0c.jpg</a> --></p> <p>Where: PNCA, NW 12th and Johnson<br /> When: March 28th, 2010 1pm-5pm<br /> What: <strong>OPEN LAB!</strong> &lt;!--break--&gt; Bring your projects and work on them in a group setting. Bounce your ideas off other dorks. Void warranties.</p> <p>We're treating this as kind of an un-workshop, which means its up to you to set the agenda. Reply to this post with your interests and try to get a group together to hack on them.</p> <p>Some ideas: <ul> <li> Propeller hacking. I know from the PCB orders that we have a bunch of people geeking on the Propeller platform.</li> <li> PureData play. We have tons of PureData folks in the group. This would be a good place to get together and work on patches.</li> <li> Circuit board designing. The PCB order goes out the evening after this Lab, so if you want help with your design, this is a good place to get it.</li> <li> Arduino/Dorkboard/Teensy hacking.</li> <li> Soldering practice. I'll have a bunch of Drawdio kits available, if you want to practice your soldering skills. They have spots for both surface mount and through-hole components, so take your pick. </li> <li> Making things move. Messing with motors, servos, soleniods, etc. BYOMSSE (Bring Your Own Motors, Servos, Solenoids, Etc)</li> </ul> </p> <br class="clear" /> http://dorkbotpdx.org/blog/laen/dorbotpdx_open_lab_unworkshop_march_28th_2010#comments Mon, 15 Mar 2010 15:04:29 -0500 Laen 486 at http://dorkbotpdx.org PCB Order #4, The Quickening http://dorkbotpdx.org/blog/laen/pcb_order_4_the_quickening <h2 id="toc0">Announcing the fourth PCB Order!</h2> !<img src="http://farm3.static.flickr.com/2453/4013181884_047157db22_m.jpg" alt="http://farm3.static.flickr.com/2453/4013181884_047157db22_m.jpg" title="http://farm3.static.flickr.com/2453/4013181884_047157db22_m.jpg" /><!-- <a href="http://farm3.static.flickr.com/2453/4013181884_047157db22_m.jpg" title="http://farm3.static.flickr.com/2453/4013181884_047157db22_m.jpg">http://farm3.static.flickr.com/2453/4013181884_047157db22_m.jpg</a> -->!<p>The next PCB order will occur on March 1st, so submit your designs by <strong>11:59PM on February 28th.</strong></p> <p>Now's your opportunity to have your design fabricated by a professional board house in the USA!</p> <p>New this order: <ul> <li> Silkscreen on both sides of the board is now official. The board house has been giving it to us anyway, but we were only quoted for single-side.</li> <li> 7mil minimum annular ring. This is the width of the copper pad around a drilled hole.</li> <li> Faster turnaround. The boards should be mailed to you within a week of the order deadline.</li> </ul> </p> <p>The <a href="http://content.laen.org/pcb/LaenPCBOrder.cam">Eagle CAM file</a> has been updated: <ul> <li> The &quot;Milling&quot; layer has been removed from the board outline, since that's not actually supported in our order.</li> </ul> </p> <p>The <a href="http://content.laen.org/pcb/LaenPCBOrder.dru">Eagle DRU file</a> has been updated to include the new minimum annular ring size.</p> <h2 id="toc1">What you get</h2> <ul> <li> Three 2 layer boards (see design rules below)</li> <li> Soldermask on both sides</li> <li> Silkscreen on both sides.</li> </ul> <h2 id="toc2">The Costs</h2> $5 per square inch for three copies of your board. So, a 2 square inch design would cost $10, and you'll get three copies of your board. Shipping by US Mail is included, and there are no setup fees.<p>&lt;!--break--&gt; <h2 id="toc3">How to submit your order</h2> For now, just email your board designs to &quot;pcb-order@denizen.org&quot; as either an Eagle .brd or a set of Gerbers.</p> <p>Include in the email: <ul> <li> The number of boards you want in sets of 3.</li> <li> Your mailing address</li> </ul> </p> <p>If you're making Gerbers from Eagle, please use this CAM job -- <strong>this is a new CAM file for this order, and was updated on February 15th to include a remove the Milling layer from the board outline</strong> <ul> <li> <a href="http://content.laen.org/pcb/LaenPCBOrder.cam">http://content.laen.org/pcb/LaenPCBOrder.cam</a></li> </ul> </p> <h2 id="toc4">Help!</h2> If any of this is confusing, or you'd just like some help with your board, feel free to drop me an email. <h2 id="toc5">Design Rules</h2> (Eagle DRU File: <a href="http://content.laen.org/pcb/LaenPCBOrder.dru">http://content.laen.org/pcb/LaenPCBOrder.dru</a>) -- <strong>This is a new DRU file for this order, and was updated on February 15th to include a narrower annular ring.</strong><ul> <li> 6 mil trace width</li> <li> 6 mil spacing</li> <li> 15 mil clearances from traces to the edge of the board</li> <li> 13 mil minimum drill size.</li> <li> 7 mil minimum annular ring</li> </ul> <p>Enjoy!</p> <p>-Laen</p> <br class="clear" /> http://dorkbotpdx.org/blog/laen/pcb_order_4_the_quickening#comments Tue, 16 Feb 2010 11:00:00 -0600 Laen 463 at http://dorkbotpdx.org Circuit Board Order #3! http://dorkbotpdx.org/blog/laen/circuit_board_order_3 <p>=== Announcing the third PCB Order! ===</p> <p><a href="http://www.flickr.com/photos/laen/4013181884/" title="DorkbotPDX PCB Order by Laen, on Flickr"><img src="http://farm3.static.flickr.com/2453/4013181884_047157db22_m.jpg" width="240" height="180" alt="DorkbotPDX PCB Order" /></a></p> <p>Now's your chance to get that design you've been working on professionally fabricated in the USA. </p> <p>This is open to DorkbotPDX dorks, Make:PDX makers, OpenTechSpace hackers, and anyone else that wants in on it. Orders must be received by February 2nd, and will be distributed by mail by February 10th or at the DorkbotPDX meeting on February 15th.</p> <p>=== What you get ===<br /> - Three 2 layer boards (see design rules below)<br /> - Soldermask on both sides<br /> - Silkscreen on the top side only.<br /> - Optional Mylar solder paste stencil ($5 extra)</p> <p>=== The Costs ===<br /> $5 square inch for three copies of your board. So, a 2 square inch design would cost $10, and you'll get three copies of your board. Shipping by US Mail is included.</p> <p>Scott Dixon has agreed to make Mylar solder paste stencils (for easy application of surface mount componants) for $5 a board stencil. If you'd like to take advantage of that, just include the "tcream" file the CAM file below produces, and tell me you want a stencil.</p> <p>=== How to submit your order ===<br /> For now, just email your board designs to "pcb-order@denizen.org" as either an Eagle .brd or a set of Gerbers.</p> <p>Include the number of copies you want in multiples of 3.</p> <p>Include a mailing address if you'd like your boards mailed to you, which is the fastest way to get your boards.</p> <p>If you're making Gerbers from Eagle, please use this CAM job -- (this is a new CAM file for this order, and was update on January 25th to include a solder paste layer)<br /> <a href="http://content.laen.org/pcb/LaenPCBOrder.cam" title="http://content.laen.org/pcb/LaenPCBOrder.cam">http://content.laen.org/pcb/LaenPCBOrder.cam</a></p> <p>If you want a mylar solder paste stencil, say so in the email and include the tcream gerber file.</p> <p>=== Help! ===<br /> If any of this is confusing, and you'd like help, feel free to drop me an email. </p> <p>=== Design Rules ===<br /> (Eagle DRU File: <a href="http://content.laen.org/pcb/LaenPCBOrder.dru" title="http://content.laen.org/pcb/LaenPCBOrder.dru">http://content.laen.org/pcb/LaenPCBOrder.dru</a>) -- (This is a new DRU file for this order)</p> <p> 6 mil trace width<br /> 6 mil spacing<br /> 15 mil clearances from traces to the edge of the board<br /> 13 mil minimum drill size.</p> <p>Enjoy!<br /> -Laen</p> http://dorkbotpdx.org/blog/laen/circuit_board_order_3#comments Fri, 15 Jan 2010 19:02:36 -0600 Laen 452 at http://dorkbotpdx.org An ISP/SPI shield for the Teensy http://dorkbotpdx.org/blog/laen/an_isp_spi_shield_for_the_teensy <p>With the inclusion of a functional AVRISP MKII (and PDI!) programmer in <a href="http://www.fourwalledcubicle.com/LUFA.php">LUFA</a>, I thought it would be fun to make a programmer board to take advantage of it.</p> <p>This is an programmer "shield" for the <a href="http://www.pjrc.com/teensy/">Teensy2</a>. Solder on some headers, plug in your Teensy, flash it with the LUFA AVRISPMKII code, and you have a functional ISP programmer.</p> <p>This also works as a Serial, SPI, and i2c breakout board, since those pins are brought out into convenient headers.</p> <p>Put a jumper on the "PGM" pins, and you can use the ISP pins to flash program the teensy itself. Useful if you've lost your bootloader somehow.</p> <p>The EAGLE board files are released under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative Commons Attribution-Share Alike 3.0 United States License</a>.</p> http://dorkbotpdx.org/blog/laen/an_isp_spi_shield_for_the_teensy#comments Wed, 13 Jan 2010 18:12:49 -0600 Laen 451 at http://dorkbotpdx.org Surface Mount Soldering Workshop - Saturday, December 19th at TechShop http://dorkbotpdx.org/blog/laen/surface_mount_soldering_workshop_saturday_december_19th_at_techshop <p>So, you've designed a circuit board in Eagle, gotten it fabricated, and you just got it back. Now you see that the parts which looked so big in Eagle are actually REALLY DANG SMALL. What are you going to do? How are you supposed to solder that?!</p> <p>Working with tiny Surface Mount parts is challenging but can be done in the comfort of your own home. Come to Dorkbot's Surface Mount Soldering Workshop, presented by Jim Larson, held at OpenTechSpace at TechShop, on Saturday, December 19th, 2009 from 1pm to 5pm.</p> <p>When you're done, you'll have a step-up voltage module to take a AA battery up to 5V.</p> <p>To sign up, email <a href="mailto:smd-workshop@denizen.org">smd-workshop@denizen.org</a>.</p> <p>Cost will be $35, payable at the class.</p> <p>Please bring: <ul> <li> A soldering iron</li> <li> A pair of tweezers</li> <li> A pair of wire cutters</li> </ul> </p> <p>Class will be held at:</p> <p>OpenTechSpace at TechShop<br /> 10100 Southwest Allen Boulevard<br /> Beaverton, OR 97005 &lt;!--break--&gt;</p> <br class="clear" /> http://dorkbotpdx.org/blog/laen/surface_mount_soldering_workshop_saturday_december_19th_at_techshop#comments Fri, 11 Dec 2009 14:58:25 -0600 Laen 440 at http://dorkbotpdx.org CC Licensed Circuit Boards http://dorkbotpdx.org/blog/laen/cc_licensed_circuit_boards <p>I've set up a wiki page for publishing our circuit board designs and linking to others around the net.</p> <p>I threw in a couple of my own, a few of Ladyada's great designs, and Leah Buechley's LilyPad. Help build this resource by adding your own!</p> <p><a href="http://dorkbotpdx.org/wiki/creative_commons_licensed_circuit_boards">http://dorkbotpdx.org/wiki/creative_commons_licensed_circuit_boards</a></p> <br class="clear" /> http://dorkbotpdx.org/blog/laen/cc_licensed_circuit_boards#comments Sun, 29 Nov 2009 11:47:37 -0600 Laen 436 at http://dorkbotpdx.org PCB Group Order #2 http://dorkbotpdx.org/blog/laen/pcb_group_order_2 <p>=== Announcing the second PCB Group Order! ===</p> <p><a href="http://www.flickr.com/photos/laen/4013181884/" title="DorkbotPDX PCB Group Order by Laen, on Flickr"><img src="http://farm3.static.flickr.com/2453/4013181884_047157db22_m.jpg" width="240" height="180" alt="DorkbotPDX PCB Group Order" /></a></p> <p>Now's your chance to get that design you've been working on professionally fabricated in the USA. </p> <p>This is open to DorkbotPDX dorks, Make:PDX makers, OpenTechSpace hackers, and anyone else that wants in on it. Orders must be received by December 10th, and will be distributed by December 21st. </p> <p>=== What you get ===<br /> - Three 2 layer boards (see design rules below)<br /> - Soldermask on both sides<br /> - Silkscreen on the top side only.</p> <p>=== The Costs ===<br /> $3 square inch for three copies of your board. So, a 2 square inch design would cost $6, and you'll get three copies of your board. Shipping by US Mail will be $2 extra. </p> <p>If you're part of the workshop (see below!), you'll receive your order at the December 21st DorkbotPDX general meeting.<br /> <!--break--><br /> === How to submit your order ===<br /> For now, just email your board designs to "pcb-order@denizen.org" as either an Eagle .brd or a set of Gerbers.</p> <p>Include the number of copies you want in multiples of 3.</p> <p>If you're making Gerbers from Eagle, please use this CAM job:<br /> <a href="http://content.laen.org/pcb/PCBGroupOrder.cam" title="http://content.laen.org/pcb/PCBGroupOrder.cam">http://content.laen.org/pcb/PCBGroupOrder.cam</a></p> <p>=== Help! ===<br /> If any of this is confusing, and you'd like help, feel free to drop me an email. Also, be sure to check out the DorkbotPDX PCB Workshop.</p> <p>=== PCB Workshop ===<br /> Don't know how to make a PCB, but still want in? Come to the "Designing Circuit Boards for Fabrication" workshop presented by Don, Dorkbot, and Tempus Dictum Inc.</p> <p>Details at: <a href="http://dorkbotpdx.org/workshop/circuit_design_for_fabrication" title="http://dorkbotpdx.org/workshop/circuit_design_for_fabrication">http://dorkbotpdx.org/workshop/circuit_design_for_fabrication</a></p> <p>Going to the workshop gets you 2 square inches of design space in the board order.</p> <p>=== Design Rules ===<br /> (Eagle DRU File: <a href="http://content.laen.org/pcb/PCBGroupOrder.dru" title="http://content.laen.org/pcb/PCBGroupOrder.dru">http://content.laen.org/pcb/PCBGroupOrder.dru</a>)</p> <p> 8 mil trace width<br /> 8 mil spacing<br /> 15 mil clearances from traces to the edge of the board<br /> 20 mil minimum drill size.</p> <p>Enjoy!<br /> -Laen</p> http://dorkbotpdx.org/blog/laen/pcb_group_order_2#comments Fri, 20 Nov 2009 19:04:36 -0600 Laen 433 at http://dorkbotpdx.org DorkbotPDX Open Lab, June 28th at PNCA http://dorkbotpdx.org/blog/laen/dorkbotpdx_open_lab_june_28th_at_pnca <p>Come one! Come all! To the DorkbotPDX Open Lab, generously hosted by the Pacific Northwest College of Art.</p> <p>As the name suggests, this is an open lab for working on whatever projects you want to work on. It's a great place to show off works-in-progress, get help with a troublesome project, or to lend your expertise to someone doing something cool. It is also an opportunity for people who have attended workshops to follow up with anything that needs more work.</p> <p>Bring your art projects, that could use the spark of electricity! Bring your electronics projects, that could use a touch of art!</p> <p>Bring your Arduinos! Your Dorkboards! Your PICs! Your ARMs!</p> <p>Bring your soldering irons, your protoboard, your motors, your sensors! your passives, your actives, and your power supplies and power strips. Bring your imagination, and the stuff to make it happen.</p> <p>Time: 1pm to 5pm, Sunday, June 28th Place:PNCA, Room 205 &lt;!--break--&gt;</p> <br class="clear" /> http://dorkbotpdx.org/blog/laen/dorkbotpdx_open_lab_june_28th_at_pnca#comments Sat, 27 Jun 2009 17:22:38 -0500 Laen 377 at http://dorkbotpdx.org Adventures in Etching - The test pattern http://dorkbotpdx.org/blog/laen/adventures_in_etching_the_test_pattern <p>I made a test pattern to determine what my etching capabilities actually are:</p> <p><a href="http://www.flickr.com/photos/laen/3576583291/" title="Test Pattern by Laen, on Flickr"><img src="http://farm4.static.flickr.com/3383/3576583291_8f46f098a7_m.jpg" width="240" height="240" alt="Test Pattern" /></a> (<a href="http://magic.laen.org/electronics/etch-test-pattern.pdf">PDF</a>)</p> <p>This one is a bit better than my <a href="http://www.dorkbotpdx.org/blog/laen/experimenting_with_toner_transfer">last one</a>. It's smaller (2x2 inches vs. 5x4 inches) so you don't waste as much board, has test points, and a bunch more common surface mount components.</p> <p>(results inside)<br /> <!--break--></p> <p>My method was:<br /> * Print to magazine paper.<br /> * Transfer to copper using 12 trips through the laminator.<br /> * Etch in a muriatic acid / hydrogen peroxide bath.<br /> * Remove toner with acetone.</p> <p>Here's the final result:<br /> Board 1: <a href="http://www.flickr.com/photos/laen/3579108318/" title="Etched Board #1 by Laen, on Flickr"><img src="http://farm3.static.flickr.com/2450/3579108318_c884fda47e.jpg" width="500" height="471" alt="Etched Board #1" /></a></p> <p>The 8 mil trace is good!</p> <p>Board 2:<a href="http://www.flickr.com/photos/laen/3579107328/" title="Etched Board #2 by Laen, on Flickr"><img src="http://farm4.static.flickr.com/3592/3579107328_4c5d40632e.jpg" width="500" height="460" alt="Etched Board #2" /></a></p> <p>Only the 10 mil trace and higher are good.</p> http://dorkbotpdx.org/blog/laen/adventures_in_etching_the_test_pattern#comments Sat, 30 May 2009 11:56:18 -0500 Laen 362 at http://dorkbotpdx.org Experimenting with Toner Transfer http://dorkbotpdx.org/blog/laen/experimenting_with_toner_transfer <p>I spent some time over the weekend trying to see what my board etching capabilities actually are. I use toner transfer, and I thought that kind of limited my options, as far as how fine of detail I could get. I made <a href="http://content.laen.org/electronics/toner-test.pdf">this test pattern</a> with a variety of surface mount components and line sizes, then tried to transfer them to copper with a couple of different methods.</p> <p>First, I used a clothes iron, several different temperature settings and applying differing amounts of pressure. This is the one that turned out the best:<br /> <a href="http://www.flickr.com/photos/laen/3473542445/" title="Experimenting with Toner Transfer by Laen, on Flickr"><img src="http://farm4.static.flickr.com/3307/3473542445_a55c082b23.jpg" width="500" height="333" alt="Experimenting with Toner Transfer" /></a><br /> (<a href="http://farm4.static.flickr.com/3307/3473542445_586977f059_o.jpg">Full resolution</a>)<br /> <!--break--><br /> Then, I switched to a laminator. After sending it through a dozen times (top and bottom), I got this:<br /> <a href="http://www.flickr.com/photos/laen/3474351184/" title="Experimenting with Toner Transfer by Laen, on Flickr"><img src="http://farm4.static.flickr.com/3331/3474351184_bc82c0f643.jpg" width="500" height="333" alt="Experimenting with Toner Transfer" /></a><br /> (<a href="http://farm4.static.flickr.com/3331/3474351184_a2825ebdc2_o.jpg">Full Resolution</a>)<br /> MUCH better. I can do .001" lines sometimes, and .005" lines consistently. I can _almost_ do TFQP-100, and I can certainly do any of the other TQFPs.</p> http://dorkbotpdx.org/blog/laen/experimenting_with_toner_transfer#comments Tue, 28 Apr 2009 01:58:56 -0500 Laen 341 at http://dorkbotpdx.org Atmel's ATXMEGA64A1 http://dorkbotpdx.org/blog/laen/atmels_atxmega64a1 <p>I just got these beauties from Mouser today:</p> <p><a href="http://www.flickr.com/photos/laen/3451636198/" title="Atxmega64A1 by Laen, on Flickr"><img src="http://farm4.static.flickr.com/3590/3451636198_1af17fd1db.jpg" width="500" height="333" alt="Atxmega64A1" /></a></p> <p>This is one of the first of the ATXMega line of chips, and _boy_ what a beautiful chip:</p> <p>* 8 USARTS.<br /> * 4 i2c busses<br /> * 4 SPI busses<br /> * AES and DES Cryptoengines<br /> * 2 eight-channel, 12-bit ADCs<br /> * 2 two-channel, 12-bit DACs,<br /> * a built in 32kHz factory calibrated oscillator for the Real-time Clock<br /> * built in 2MHz and 32MHz factory calibrated oscillators<br /> * A 31x PLL which can be used as the system clock (for a top chip speed of 200MHz).</p> <p>All for $6.40 a chip, quantity 10.</p> <p>Now I need to make a board for it. </p> <p><img width=529 height=471 src="http://content.laen.org/electronics/xmegaboard.png"></p> <p>I might try doing a seeedstudio run.</p> http://dorkbotpdx.org/blog/laen/atmels_atxmega64a1#comments Fri, 17 Apr 2009 19:49:12 -0500 Laen 336 at http://dorkbotpdx.org Success at Etching! http://dorkbotpdx.org/blog/laen/success_at_etching <p>It tooks some tries, but I think I'm doing pretty well at etching now.</p> <p><a href="http://www.flickr.com/photos/laen/3054603959/" title="Vroom Board by Laen, on Flickr"><img src="http://farm4.static.flickr.com/3142/3054603959_35a6dab1e3_m.jpg" width="240" height="174" alt="Vroom Board" /></a></p> <p><a href="http://www.flickr.com/photos/laen/3054604173/" title="Vroom Board on Wheels by Laen, on Flickr"><img src="http://farm4.static.flickr.com/3026/3054604173_88a1114026_m.jpg" width="240" height="139" alt="Vroom Board on Wheels" /></a></p> <p>Step 1 - Design the board in Eagle.</p> <p>This was probably the most time consuming part for me, since I spent a lot of time trying to "get it right". Trying to make a board single sided can be a lot of work. Making a ground plane (drawing a polygon and naming it "GND") helps. Making fat traces (24mils) is pretty much required for a beginner like me. Also, having really wide clearances (again, 24mils) helps, though it makes it even harder to make things single sided, since that means no wires going between IC pads.</p> <p>Step 2 - Print it.</p> <p>I had bought some expensive toner transfer paper, and had pretty good success with it, but this time I just used magazine paper. It's cheap paper, so it has really tiny fibers. That makes it easy to remove from the board. The toner transfers off of it _really_ well.</p> <p>It has to be a laser printer, since toner is a plastic that can be transfered to copper and ink is just, well.. ink.</p> <p>Step 3 - Prepare the copper clad</p> <p>I have 6"x11" 1/2oz copper clad board. That's too big for my 6"x6" Tupperware etching tank, so I cut it down to size using "Aviation tin snips". They're an $18 pair of scissors for cutting metal. It's still hard to cut the board, but at least it's possible with this stuff. I was tempted at first to just use my Dremel to saw through it, but I've heard that fiberglass dust is carcinogenic if you breathe it, so I want to make as little of it as possible.</p> <p>I made my boards large enough to fit several copies of my design on it, just so I'd have redundant boards in case some didn't make it through to the end of the process.</p> <p>I cleaned the entire thing with soap and water, scrubbing it down _hard_ with scotchbright. This gets fingerprints off of it, and gives the toner something to sink into when you transfer it over. </p> <p>Step 4 - Transfer the print onto the copper clad.</p> <p>First I tried to use a laminator, but I wasn't getting very good transfers. Many of my traces would come off during etching. This time I just used a cheap-o clothes iron. I ironed the hell out of it for probably 5 minutes, until the toner was practically soaking into the paper. This was probably too much, but it worked.</p> <p>Be sure that it _all_ gets ironed, even the corners. I lost two of the nine copies, and they were both corner pieces.</p> <p>Then I dumped it into a bucket of water, gave it a few minutes, and pulled off as much of the paper as possible. The remainder I removed with a tooth brush. You can be somewhat rough here. If the toner is transfered, then it's stuck hard to the board.</p> <p>Step 5 - Etch it!</p> <p>I used a muriatic acid and hydrogen peroxide etch. It's good stuff, and nearly infinitely reusable (I hear). The fumes kind of suck, so I etched outside. My mix was 2 parts hydrogen peroxide + 1 part muriatic acid as this seems to be the consensus online. I hear it's important to always add the acid to the peroxide, and never the other way around. Oh, and I always wear rubber dishwashing gloves when the acid is out.</p> <p>I made enough etchant to cover the board with about an inch and a half, then heated it up to near boiling. That's not strictly necessary; I've heard of people etching with this stuff at room temperature, but it really speeds things along when it's hot. The etchant is clear at first, but turns windex blue then green as it eats copper. I kept the board moving in the etchant (both side to side and up and down, so the bottom would get etched well too). </p> <p>It seems like nothing is happening until the last couple of minutes, then it all happens at once.</p> <p>When I couldn't see any more copper for it to etch, I pulled the board out of the mix and dumped it into a bucket of water I had ready.</p> <p>Step 6 - Clean it, cut it and drill it.</p> <p>At this point, I have a bunch of etched boards, still covered with protective toner. Acetone (nail polish remover) removes that. Standard practice seems to be to remove _all_ the toner (and that's certainly what I did this time), but I wonder if<br /> one could just remove the toner around the solder points. The toner would then serve as a little bit of an insulator if you were putting the board in a metal enclosure.</p> <p>With the aviation tin snips, I cut out my individual boards from the large etched board.</p> <p>To drill my boards, I used a Dremel tool drill press stand and some micro carbide drill bits from Harbor Freight. A number 58 drill bit seems to be a pretty good size for making holes that component leads can easily fit through.</p> <p>Once again, careful of the dust, as rumors on the Internets says it's carcinogenic. I just made it a habit to exhale/blow at the drill bit when drilling and inhale between drillings. This is really producing more large shavings than dust, but better safe than sorry.</p> <p>Step 7 - Soldering it.</p> <p>Since I gave myself such large clearances in Step 1, I didn't have to do anything special to solder the boards. I did have a bottle of water soluble flux handy, just in case I was having problems, but I didn't need them.</p> http://dorkbotpdx.org/blog/laen/success_at_etching#comments Mon, 24 Nov 2008 00:37:21 -0600 Laen 270 at http://dorkbotpdx.org Single Sided PCBs http://dorkbotpdx.org/blog/laen/single_sided_pcbs <p>In preparation for <a href="/blog/laen/making_pcbs">making PCBs</a>, I've created some little one-sided PCBs in Eagle.</p> <p>They are:</p> <p>* Moto - An L293D H-Bridge breakout board.<br /> <a href="http://www.flickr.com/photos/laen/3025715601/" title="MotoBoard by Laen, on Flickr"><img src="http://farm4.static.flickr.com/3281/3025715601_ec2c105dac_o.png" width="182" height="168" alt="MotoBoard" /></a><br /> * Tiny45-USB-SMD - A tiny45 and the circuitry necessary to talk USB.<br /> <a href="http://www.flickr.com/photos/laen/3025715607/" title="ATTiny45-USBSMD by Laen, on Flickr"><img src="http://farm4.static.flickr.com/3191/3025715607_e24257b276_o.png" width="137" height="100" alt="ATTiny45-USBSMD" /></a><br /> * MagicHat Controller - An Atmega168 based board with an i2c header for driving 12 vibe motors.<br /> <a href="http://www.flickr.com/photos/laen/3025715611/" title="MagicHat by Laen, on Flickr"><img src="http://farm4.static.flickr.com/3248/3025715611_b071298e29_o.png" width="216" height="288" alt="MagicHat" /></a></p> http://dorkbotpdx.org/blog/laen/single_sided_pcbs#comments Wed, 12 Nov 2008 20:09:58 -0600 Laen 265 at http://dorkbotpdx.org AVR Power Saving Modes http://dorkbotpdx.org/blog/laen/avr_power_saving_modes <p>AVR chips have a couple of built-in ways to reduce power usage: "sleep" modes, and "Power Reduction Modes". Sleep modes stop the running program (which is the biggest power hog), waiting for an interrupt to wake it up, while Power Reduction Modes can be used any time (including while the processor is asleep).</p> <p><a href="http://www.nongnu.org/avr-libc/user-manual/group__avr__sleep.html">Sleep Mode: </a><br /> The sleep modes available to you depends on which type of chip you're on. An ATmega168 may have all of them, while an ATTiny45 only has a couple.</p> <p>SLEEP_MODE_IDLE<br /> SLEEP_MODE_ADC<br /> SLEEP_MODE_PWR_DOWN<br /> SLEEP_MODE_PWR_SAVE<br /> SLEEP_MODE_STANDBY<br /> SLEEP_MODE_EXT_STANDBY</p> <p>While the processor is asleep, the main program won't be running. The only way to wake it up is via an interrupt, and sometimes only an external INT0 interrupt (depending on the sleep mode).</p> <p>To set the sleep desired sleep mode, put this in your code:<br /> set_sleep_mode(SLEEP_MODE_IDLE);</p> <p>and to actually put it to sleep:<br /> sleep_mode();</p> <p>Make sure you have an interrupt enabled, or the processor will never wake up.</p> <p><a href="http://www.nongnu.org/avr-libc/user-manual/group__avr__power.html">Power Reduction Mode:</a><br /> In addition to putting the whole thing to sleep, you can also turn off parts of the chip that you aren't using by using the chip's Power Reduction Manager. </p> <p>Like, if you're not using the ADC, shut it off:<br /> power_adc_disable();</p> <p>Or if your project doesn't need to do any serial communication:<br /> power_usi_disable();</p> <p>For maximum power reduction, just run this:<br /> power_all_disable()</p> <p>then enable what you want you actually need.</p> http://dorkbotpdx.org/blog/laen/avr_power_saving_modes#comments Thu, 30 Oct 2008 16:12:04 -0500 Laen 254 at http://dorkbotpdx.org The 5VP1Rev1 http://dorkbotpdx.org/blog/laen/the_5vp1rev1 <p>My first etched board! Thanks, feurig!</p> <p>It's a DC-DC step-up circuit that takes one or two AA batteries and spits out 5V on the other side.</p> <br class="clear" /> http://dorkbotpdx.org/blog/laen/the_5vp1rev1#comments Thu, 30 Oct 2008 11:45:07 -0500 Laen 253 at http://dorkbotpdx.org Making PCBs http://dorkbotpdx.org/blog/laen/making_pcbs <p>I'm on a quest to make some PCBs. I was going to wait for <strike>Portland</strike>Beaverton TechShop to open, but it's clear now that that's going to be a ways away.</p> <p>I need boards to etch:<br /> * Copper Clad Boards ("FR4", says drtwist) (1.6 mm thick (35um copper), says the riccibitti link below)<br /> * Surplus Gizmos has tons of scrap copper clad. It's also available very cheaply on ebay.</p> <p>I ended up ordering 50 sheets of 1/2oz copper clad FR-4, 0.060 thick, 6"x11" from "abcfab" on eBay.</p> <p>Special paper for transfering my design onto the boards (not strictly necessary, but may provide higher quality transfers)<br /> * Toner Transfer Paper (Digikey 182-1003-ND)<br /> * Green TRF (182-1021-ND) - improves quality of etching by binding to the toner.</p> <p>I ended up using magazine paper. It works really well, and is practically free, unlike toner transfer paper which is about $1 a sheet. I haven't found the green TRF to be necessary.</p> <p>Chemicals to etch with:<br /> * Chemicals (Ferric Chloride or Ammonium Persulphate, says drtwist)<br /> ** <a href="http://www.k9spud.com/wiki/PCB:Etchants" title="http://www.k9spud.com/wiki/PCB:Etchants">http://www.k9spud.com/wiki/PCB:Etchants</a><br /> ** <a href="http://www.opencircuits.com/Chemical_Etchants" title="http://www.opencircuits.com/Chemical_Etchants">http://www.opencircuits.com/Chemical_Etchants</a><br /> * I'll be getting some Sodium Persulfate from Travis.</p> <p>I ended up using the muriatic acid + hydrogen peroxide version. (http://www.instructables.com/id/Stop-using-Ferric-Chloride-etchant!--A-better-etc/)</p> <p>Chemical resistant gloves. Latex? Rubber dish gloves?<br /> * Rubber dish gloves with the "water catcher" fold on the end.</p> <p>I bought a box of Nitrile gloves.</p> <p>Tinner? Flux?<br /> * "liquid tin" from MG Chemicals is available from Norvac (from drtwist)<br /> * Tinner probably isn't necessary with liquid flux.</p> <p>Liquid tin makes the boards pretty and keeps the copper from oxidizing, which it _will_ do.</p> <p>A drill press to drill holes (or I could just go 100% SMD)<br /> * Dremel tool (already have it)<br /> * Dremel Rotary Tool Work Station (order from Amazon) <a href="http://www.amazon.com/Dremel-220-01-Rotary-Tool-Station/dp/B00068P48O" title="http://www.amazon.com/Dremel-220-01-Rotary-Tool-Station/dp/B00068P48O">http://www.amazon.com/Dremel-220-01-Rotary-Tool-Station/dp/B00068P48O</a><br /> * Drill bits. Either micro-carbide (brittle, but works great with a dremel and FR-4 board), or steel (heats up and distorts. Can rip up traces on the board.) Harbor Freight in Portland seems to be a good place to get them. <a href="http://www.harborfreight.com/cpi/ctaf/Displayitem.taf?itemnumber=34640" title="http://www.harborfreight.com/cpi/ctaf/Displayitem.taf?itemnumber=34640">http://www.harborfreight.com/cpi/ctaf/Displayitem.taf?itemnumber=34640</a></p> <p>Snips to cut the board with. FR4 dust is carcinogenic, so you want to make as little of it as possible.</p> <p>An iron or laminator. I bought and modified a GBC-H212 laminator.</p> <p>The Method:<br /> * <a href="http://www.riccibitti.com/pcb/pcb.htm" title="http://www.riccibitti.com/pcb/pcb.htm">http://www.riccibitti.com/pcb/pcb.htm</a></p> http://dorkbotpdx.org/blog/laen/making_pcbs#comments Thu, 16 Oct 2008 11:58:18 -0500 Laen 243 at http://dorkbotpdx.org The Evil Benito Mouse http://dorkbotpdx.org/blog/laen/the_evil_benito_mouse <p>To take advantage of the Benito's small size, I've zapped mine with a piece of software that, when plugged into a computer, causes the mouse to jump about randomly.</p> <p>The size of the jitter can be adjusted by setting the &quot;STEP&quot; constant. 10 seems to be a pretty good number to make it seem like there's something wrong with your mouse. Anything larger, and it's pretty obvious that you're being messed with.</p> <br class="clear" /> http://dorkbotpdx.org/blog/laen/the_evil_benito_mouse#comments Fri, 03 Oct 2008 19:00:45 -0500 Laen 238 at http://dorkbotpdx.org Wii Matrix Board http://dorkbotpdx.org/blog/laen/wii_matrix_board <p>For <a href="http://www.dorkbotpdx.org/">dorkbotpdx</a> last night, I made this little toy:</p> <p><a href="http://www.flickr.com/photos/laen/2490373487/" title="WiiMatrix by Laen, on Flickr"><img src="http://farm3.static.flickr.com/2208/2490373487_a626bae118.jpg" width="500" height="333" alt="WiiMatrix" /></a></p> <p>It's an 8x8 red+green LED Matrix, driven by two shift registers and a Bare Bones Board Freeduino by <a href="http://moderndevice.com/">Modern Device Company</a>.</p> <p>Before the meeting I just had it flashing fun patterns based on odd bit-math equations. During the meeting, I was urged to add some code to make it controllable by the Wii Nunchuk. So, I wrote a simple program that takes the X and Y of accelerometer and plots it on the matrix.</p> <p>I drove the LED Matrix with three shift registers: One 74HC595 8-bit register gave power to the rows of the display, and one Maxim-IC MAX6969 sank current for the columns to the display. To turn on row 1, column one, you shift "B10000000" into the row register, and "B10000000" into the column register:</p> <p><code><br /> B 1 0 0 0 0 0 0 0<br /> 1 x o o o o o o o<br /> 0 o o o o o o o o<br /> 0 o o o o o o o o<br /> 0 o o o o o o o o<br /> 0 o o o o o o o o<br /> 0 o o o o o o o o<br /> 0 o o o o o o o o<br /> 0 o o o o o o o o<br /> </code></p> <p>Altogether, it was about 30 lines of code to drive the matrix with some fun patterns.</p> <p><small><em>Also seen at:<br /> <a href="http://www.laen.org/2008/05/13/the-wii-matrix-board/">my blog</a></em></small></p> http://dorkbotpdx.org/blog/laen/wii_matrix_board#comments Tue, 13 May 2008 20:21:41 -0500 Laen 153 at http://dorkbotpdx.org