{"id":277,"date":"2008-10-30T03:33:55","date_gmt":"2008-10-30T07:33:55","guid":{"rendered":"http:\/\/scope-eye.net\/?p=277"},"modified":"2008-11-12T14:50:54","modified_gmt":"2008-11-12T19:50:54","slug":"ac-hakuheisen-wiring","status":"publish","type":"post","link":"https:\/\/scope-eye.net\/?p=277","title":{"rendered":"AC Hakuheisen Wiring"},"content":{"rendered":"<p>So this is the project I wanted to have done for the MMC Blue contest last month and the Armored Core group build this month.  Unfortunately there&#8217;s no way I can meet the build deadline at this point: I spent too much time working on Granitecon projects this month and last.<\/p>\n<p>Anyway, the project is mostly ready for paint: most all the seams, etc. have been dealt with, the various warpy surfaces have been sanded flat, etc. The big thing going on right now is I&#8217;m working on wiring for the thing: wires to drive the LEDs installed in the thrusters, plus wires to power and communicate with a microcontroller that will control the LEDs.<br \/>\n<!--more--><\/p>\n<p>One thing I want to show people &#8211; maybe this will be of help to someone &#8211; is how I modularized the arm to simplify painting.  Armored core kits built OOB don&#8217;t break down well for painting &#8211; but with a little bit of modification (and a willingness to super-glue the thing if necessary once it&#8217;s painted) the painting process can be simplified a lot.  This is the kit&#8217;s forearm (CR-A71S2) &#8211; to simplify dealing with the silver parts I didn&#8217;t glue on the wrist part, and I trimmed down the silver parts so they could slide in after the rest of the forearm was assembled.  The detail part at the back of the arm was also modified so it could slide out, rather than being trapped once the forearm is assembled.<br \/>\n<a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_construction_1.jpeg\" title=\"CR-A71S2 forearm\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_construction_1_thumb.png\" alt=\"\" title=\"CR-A71S2 forearm\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_construction_2.jpeg\" title=\"how the A71 parts break down, if you mod 'em right...\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_construction_2_thumb.png\" alt=\"\" title=\"how the A71 parts break down, if you mod 'em right...\" \/><\/a><\/p>\n<p>The big thing that&#8217;s still going on with this project &#8211; and which is making it a little bit complicated, is the wiring. I already posted images of the head with LEDs installed &#8211; beyond that I want to light the thrusters, and install a microcontroller in the AC to control the lights.  However, it wasn&#8217;t until very recently that I started giving thought to where this microcontroller would be installed.  The legs would potentially offer the most space, though in practice there&#8217;s really a lot of junk in the interior of the leg filling up space&#8230;  And what I slowly realized about this AC kit &#8211; and most of the others, for that matter, is that there&#8217;s really not much space at all inside.  Parts like the CR-C98 or C01-GAEA are built up out of so many layers that when you strip them all off and get at the real interior, there&#8217;s nothing left. The CR-C84 has a similar predicament, except that it actually has a surprisingly large amount of space inside at the back end of the core&#8230; Also, in ACs, there&#8217;s a lot of bulky parts, but they&#8217;re usually very flat as well. It didn&#8217;t help matters that I&#8217;ve already sealed up the core part with glue, so it&#8217;d be pretty tough at this point to get at the interior.<\/p>\n<p>I identified three places where I could attempt to store a microcontroller: the first, and most obvious place to stash something in any AC kit really, was in the belly.  On most of the AC kits released so far, the bottom of the core part terminates in a sort of &#8220;bucket&#8221; which mounts the ball joint that hooks up with the hips.  The whole part really serves no purpose except to fill space and provide structure, so on a lot of the cores released so far (incl. C75, C98, C84, GAEA, probably others) it is pretty much just a hollow bucket.  The other two locations that seem promising as places to hide the microcontroller are in the back, near the Over-boost (the OB could be removed to access the circuit) or in the front of the chest (the silver part of the chest could be removed to access the circuit).  So far I feel like the belly is still the best choice: the OB area is promising because the parts I&#8217;d have to remove to get access aren&#8217;t important to the structure of the robot &#8211; and because the parts back there remove so neatly, and could conceal a big gaping hole so neatly when assembled.  But the belly is a more central location: I wouldn&#8217;t have to think too hard about how to route wires from the back thrusters, head, and legs to the back of the torso.<\/p>\n<p>But the problem with installing a circuit there (as with most anywhere in this model) is that there&#8217;s not a lot of room for it.  I hacked up the belly part pretty thoroughly to make more room (believe it or not, after all this damage the thing still looks perfectly normal when all&#8217;s assembled, due to all the layers of detail that go on outside) and still there&#8217;s barely enough space for a little PCB that&#8217;s 11mm x 15mm.<\/p>\n<p>Because I&#8217;m wiring the thruster lights and running power and communications for a microcontroller in the belly, that means there&#8217;s gonna be five wires running up through the leg&#8230;  I tried two different approaches to running the wires through the knee joint: the first was to drill holes just above the knee joint leading to a hidden area in the back of the leg.  Wires going from the lower leg to the upper leg would be visible on the front side of the knee joint &#8211; maybe people would take &#8217;em as detail or maybe they&#8217;d just look cheesy&#8230; I&#8217;m not sure. :D The second approach was to actually drill straight through the middle of the knee joint itself &#8211; this hides the wires very well, they&#8217;re only visible (just a bit) when the knee is almost at full flexion.<\/p>\n<p><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_1.jpeg\" title=\"The old knee wiring approach - the wires are plainly visible. That may or may not be a bad thing.\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_1_thumb.png\" alt=\"\" title=\"The old knee wiring approach - the wires are plainly visible. That may or may not be a bad thing. Note this is how it looks with three wires - there would actually be five in the finished model.\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_2.jpeg\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_2_thumb.png\" alt=\"\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_3.jpeg\" title=\"The new knee wiring approach. The wires are much less prominent.\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_3_thumb.png\" alt=\"\" title=\"The new knee wiring approach. The wires are much less prominent.\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_4.jpeg\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_4_thumb.png\" alt=\"\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_5.jpeg\" title=\"I experimented to see what kind of access opening I could create in the back of the core part behind the OB. The idea was that I might use this opening to install the microcontroller and connect it to other parts of the model. It seems like access could be nice and it might be more spacious in there than the belly - but it's a less central location, which complicates wiring.\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_5_thumb.png\" alt=\"\" title=\"I experimented to see what kind of access opening I could create in the back of the core part behind the OB. The idea was that I might use this opening to install the microcontroller and connect it to other parts of the model. It seems like access could be nice and it might be more spacious in there than the belly - but it's a less central location, which complicates wiring.\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_6.jpeg\" title=\"I also played around with the idea of putting the circuit board in the chest, and accessing it by removing the silver chest part.\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_6_thumb.png\" alt=\"\" title=\"I also played around with the idea of putting the circuit board in the chest, and accessing it by removing the silver chest part.\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_7.jpeg\" title=\"CR-C75 belly part, cut up to accomodate a circuit board.\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_7_thumb.png\" alt=\"\" title=\"CR-C75 belly part, cut up to accomodate a circuit board.\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_8.jpeg\" title=\"There's the gaping hole through which the board slides in and part of the board protrudes...  Believe it or not, this gaping hole and the innards that will live there are completely hidden by other parts once assembly is complete.\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_8_thumb.png\" alt=\"\" title=\"There's the gaping hole through which the board slides in and part of the board protrudes...  Believe it or not, this gaping hole and the innards that will live there are completely hidden by other parts once assembly is complete.\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_9.jpeg\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_9_thumb.png\" alt=\"\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_10.jpeg\" title=\"Belly part with SOIC-8 breakout board in place.\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_10_thumb.png\" alt=\"\" title=\"Belly part with SOIC-8 breakout board in place.\" \/><\/a><a href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_11.jpeg\" title=\"The Sparkfun SOIC-8 breakout board - it seems like it could be a good way to embed small surface-mount microcontrollers into projects with limited space - just maybe not for this project.\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_wiring_11_thumb.png\" alt=\"\" title=\"The Sparkfun SOIC-8 breakout board - it seems like it could be a good way to embed small surface-mount microcontrollers into projects with limited space - just maybe not for this project.\" \/><\/a><\/p>\n<p>This led to another realization &#8211; it would be exceedingly difficult at this point to install one of the microcontrollers I commonly use these days &#8211; the 16F628 &#8211; or any part with a similar number of I\/O lines. The part itself is available in sizes that would fit in the space &#8211; but when you add in resistors and wires and connectors and such, space starts to run out fast. Plus wiring all that without a board is a real pain &#8211; I&#8217;ve done it before and I&#8217;d prefer not to do it again.<\/p>\n<p>The board I used to trial-fit inside the belly is a <a href=\"http:\/\/www.sparkfun.com\">Sparkfun<\/a> SOIC-8 breakout board&#8230; Initially I thought using that board might be a good, cheap, low-effort way to wire up an 8-pin PIC inside the model, since I wasn&#8217;t feeling too confident that I&#8217;d be able to get an 18-pin part in there&#8230; However, I decided that the breakout board didn&#8217;t provide enough features for the amount of space it uses. My final circuit will need current-limiting resistors on all the LEDs, plus pull-ups on the communication lines, multiple connections to the ground line, etc. &#8211; so I took a crack at designing a microcontroller board that would fit in the C75&#8217;s belly, host a SOIC-8-sized Microcontroller, give me all the connections I needed, and also hold a bunch of surface-mount resistors for the pull-ups and such. It was a real tight squeeze &#8211; I&#8217;m not actually sure if some of the traces might be too close to the board edge. But I think if I get it made it could be real handy. I may try etching it myself.  Trying to drill all those holes will sure be fun&#8230;  :D<\/p>\n<p><a title=\"&quot;Raven&quot; PCB (front)\" href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_raven_pcb_top.png\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_raven_pcb_top_thumb.png\" alt=\"\" \/><\/a><a title=\"&quot;Raven&quot; PCB (back)\" href=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_raven_pcb_bottom.png\"><img decoding=\"async\" src=\"\/model-data\/1_72_AC_Hakuheisen\/081029_hakuheisen_raven_pcb_bottom_thumb.png\" alt=\"\" \/><\/a><\/p>\n<p>In retrospect I&#8217;m not sure I need both ICSP and PWR\/IO as separate ports, since the ICSP port provides all the same connections as PWR\/IO but just includes an extra one. I&#8217;m thinking of redesigning the board to unify those two ports, and hopefully make the board a little smaller in the process.  I figure if I need to connect those pins to more than one external port, I can just run long pins through the board holes, and connect socket headers on both the top and bottom side.  But I&#8217;m also thinking of making the board longer but narrower &#8211; and possibly also better suited to the use of right-hand pin connections &#8211; so I may make some changes to the board layout before I try actually making one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So this is the project I wanted to have done for the MMC Blue contest last month and the Armored Core group build this month. Unfortunately there&#8217;s no way I can meet the build deadline at this point: I spent too much time working on Granitecon projects this month and last. Anyway, the project is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,3],"tags":[30],"_links":{"self":[{"href":"https:\/\/scope-eye.net\/index.php?rest_route=\/wp\/v2\/posts\/277"}],"collection":[{"href":"https:\/\/scope-eye.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scope-eye.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scope-eye.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scope-eye.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=277"}],"version-history":[{"count":4,"href":"https:\/\/scope-eye.net\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/scope-eye.net\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/scope-eye.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scope-eye.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scope-eye.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}