{"id":824,"date":"2014-04-28T00:26:00","date_gmt":"2014-04-28T04:26:00","guid":{"rendered":"http:\/\/jmillerid.com\/wordpress\/?p=824"},"modified":"2014-04-28T13:25:46","modified_gmt":"2014-04-28T17:25:46","slug":"my-first-robot-part-4-power-regulator-pcb","status":"publish","type":"post","link":"https:\/\/www.jmillerid.com\/wordpress\/2014\/04\/my-first-robot-part-4-power-regulator-pcb\/","title":{"rendered":"My First Robot part 4 &#8211; Power Regulator PCB"},"content":{"rendered":"<p>With\u00a0Adafruit&#8217;s\u00a0<a href=\"http:\/\/www.adafruit.com\/products\/353\">lithium ion battery pack<\/a> and <a href=\"http:\/\/www.adafruit.com\/products\/390\">USB\/DC\/Solar charger<\/a>\u00a0our\u00a0power strategy is off to a good start. I chose those in part because I could easily add a <a href=\"http:\/\/www.adafruit.com\/products\/200\">solar panel<\/a> later, but assuming the robot is running continuously, that would result in a possible output voltage range from 2.5V (the shutdown voltage of the LiIon battery pack) to 6V (the full-sun output of the solar panel). The Raspberry Pi (and ATMEGAs, which I&#8217;ll probably use as &#8216;standalone&#8217; Arduinos) want a\u00a05V supply, requiring either a buck or boost depending on the output voltage from the charger. I couldn&#8217;t find any turnkey solutions, but I did find <a href=\"http:\/\/www.linear.com\/product\/LTC3112\">this buck-boost DC-DC converter\u00a0IC<\/a>. The LTC3112 from Linear takes 2.7 &#8211; 15V in and provides 2.5 &#8211; 14V out, configurable with two resistors. Maximum current depends on Vout, at 3V in\u00a0and\u00a05V out\u00a0I should get at least 1A. The documentation included some pretty thorough design guidelines, including a complete demo board schematic and layout, so I set about designing one of my own.<\/p>\n<p><a href=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_schematic.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-826\" src=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_schematic-1024x767.jpg\" alt=\"power_reg_schematic\" width=\"550\" height=\"412\" srcset=\"https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_schematic-1024x767.jpg 1024w, https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_schematic-300x224.jpg 300w, https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_schematic.jpg 1114w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>The design is pretty similar to\u00a0the demo board. I removed a few things I didn&#8217;t need and added a bunch of output pads, and a second set of inputs so additional\u00a0boards can be daisy chained.\u00a0I&#8217;m told the component layout of boards like these is extremely sensitive, so I stayed as true to the demo board&#8217;s layout as possible.<\/p>\n<p><a href=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_brd.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-827\" src=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_brd-1024x527.jpg\" alt=\"power_reg_brd\" width=\"550\" height=\"283\" srcset=\"https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_brd-1024x527.jpg 1024w, https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_brd-300x154.jpg 300w, https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_brd.jpg 1378w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>I&#8217;ve been wanting to try outsourcing my\u00a0PCB fabrication, and I think this finicky design was a good one to start with. The best value for this one seemed to be OSH-Park, and the process was really easy and smooth. They even take native Eagle files, so there was no messing with Gerbers, etc., and the instant preview made it easy to catch errors. Two weeks later I got\u00a0three of these beauties in the mail. Ten bucks, delivered.<\/p>\n<p><a href=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-26-21.54.47.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-829\" src=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-26-21.54.47-1024x768.jpg\" alt=\"2014-04-26 21.54.47\" width=\"550\" height=\"413\" srcset=\"https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-26-21.54.47-1024x768.jpg 1024w, https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-26-21.54.47-300x225.jpg 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>Typically the next step for me would be dabbing tiny dots of solder paste onto the pads and mashing the components into them, but these boards look so nice and professional that I knew it was time to try a solder stencil. I recently gained access to a laser cutter, so I ordered some .004&#8243; thick Mylar from McMaster and conducted a quick test.<\/p>\n<p>I first exported the &#8220;Cream&#8221; and &#8220;Dimension&#8221; layers from Eagle as a 1200 dpi .png image, then brought that into Photoshop. I then selected all the pads (Select -&gt; Color Range on black) and shrunk them down\u00a0one pixel layer at a time using Select -&gt; Modify -&gt; Contract, Saving As every time until I had seven\u00a0different versions, each one eroding the pads by about .0008&#8243; all around. I cut these on the laser, using Raster settings of 30% power and 40% speed. Turns out the best one for this layout (with\u00a0the fine pitch of that IC) was the &#8220;minus 4 pixels&#8221; version. By the way the fogginess of the Mylar there is the result of sanding off some very small ridges that had formed around all of the openings.<\/p>\n<p><a href=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-24-13.53.30.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-828\" src=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-24-13.53.30-768x1024.jpg\" alt=\"2014-04-24 13.53.30\" width=\"500\" height=\"667\" srcset=\"https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-24-13.53.30-768x1024.jpg 768w, https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-24-13.53.30-225x300.jpg 225w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>Next I made a couple of fresh ones and cut a piece of 1\/16&#8243; acrylic to serve as a fixture to hold the board in alignment with the stencil.<\/p>\n<p><a href=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-26-21.57.38.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-830\" src=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-26-21.57.38-1024x768.jpg\" alt=\"2014-04-26 21.57.38\" width=\"550\" height=\"413\" srcset=\"https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-26-21.57.38-1024x768.jpg 1024w, https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-26-21.57.38-300x225.jpg 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>Here we go. First try, not bad! I made a little mess in the mounting holes, but generally the transfer was nice and clean.<\/p>\n<p><a href=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-27-18.03.02.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-832\" src=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-27-18.03.02-1024x768.jpg\" alt=\"2014-04-27 18.03.02\" width=\"550\" height=\"413\" srcset=\"https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-27-18.03.02-1024x768.jpg 1024w, https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-27-18.03.02-300x225.jpg 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a>I tweezered the components onto the board (my cheat sheet can be seen in the background) and fired up the reflow toaster oven.<\/p>\n<p><a href=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-27-18.10.50-e1398652869806.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-833\" src=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-27-18.10.50-e1398652869806-1024x768.jpg\" alt=\"2014-04-27 18.10.50\" width=\"550\" height=\"413\" srcset=\"https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-27-18.10.50-e1398652869806-1024x768.jpg 1024w, https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-27-18.10.50-e1398652869806-300x225.jpg 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a>About 6 minutes later&#8230;<\/p>\n<p><a href=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-27-20.11.12-e1398654189772.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-836\" src=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/2014-04-27-20.11.12-e1398654189772-651x1024.jpg\" alt=\"2014-04-27 20.11.12\" width=\"600\" height=\"942\" \/><\/a><\/p>\n<p>The inductor slid around a bit as the solder melted, but it&#8217;s still on its pads and not touching anything else. The IC looks perfect. You can see where R1 and R2 can be changed with thru-hole resistors to provide any output between 2.5 and 14V. The IOUT pad provides an analog voltage proportional to the current draw of the load, which I may end up using to monitor which systems are consuming the most power.<\/p>\n<p>I works! 9V on the left, 3V on the right, identical output (and pretty darn close to 5V, too). I realized I had to hook up an LED to get a good output, probably because the multimeter was not drawing enough current and the IC went into a shutdown mode.<\/p>\n<p><a href=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_test.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-835\" src=\"http:\/\/jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_test-1024x663.jpg\" alt=\"power_reg_test\" width=\"600\" height=\"389\" srcset=\"https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_test-1024x663.jpg 1024w, https:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_reg_test-300x194.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Robot is ready to go wireless!<\/p>\n<p>UPDATE: Here&#8217;s the files and BOM to make your own:<\/p>\n<p><a href=\"https:\/\/oshpark.com\/shared_projects\/BqA5dWqS\">OSH Park link<\/a><\/p>\n<p><a href=\"http:\/\/www.jmillerid.com\/wordpress\/wp-content\/uploads\/2014\/04\/power_regulator.zip\">Eagle .sch and .brd files<\/a><\/p>\n<p><a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1O00QKAcMsBmcuA_3jbtPFNTNsaETxEDsc9OSUhdib6A\/edit?usp=sharing\">Bill of Materials<\/a> (Google Docs)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With\u00a0Adafruit&#8217;s\u00a0lithium ion battery pack and USB\/DC\/Solar charger\u00a0our\u00a0power strategy is off to a good start. I chose those in part because I could easily add a solar panel later, but assuming the robot is running continuously, that would result in a possible output voltage range from 2.5V (the shutdown voltage of the LiIon battery pack) to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[33,58,1],"tags":[42,62,23,27,60],"_links":{"self":[{"href":"https:\/\/www.jmillerid.com\/wordpress\/wp-json\/wp\/v2\/posts\/824"}],"collection":[{"href":"https:\/\/www.jmillerid.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jmillerid.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jmillerid.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jmillerid.com\/wordpress\/wp-json\/wp\/v2\/comments?post=824"}],"version-history":[{"count":13,"href":"https:\/\/www.jmillerid.com\/wordpress\/wp-json\/wp\/v2\/posts\/824\/revisions"}],"predecessor-version":[{"id":847,"href":"https:\/\/www.jmillerid.com\/wordpress\/wp-json\/wp\/v2\/posts\/824\/revisions\/847"}],"wp:attachment":[{"href":"https:\/\/www.jmillerid.com\/wordpress\/wp-json\/wp\/v2\/media?parent=824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jmillerid.com\/wordpress\/wp-json\/wp\/v2\/categories?post=824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jmillerid.com\/wordpress\/wp-json\/wp\/v2\/tags?post=824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}