<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dr Terrible&#039;s House of Bloggable</title>
	<atom:link href="http://charliex2.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://charliex2.wordpress.com</link>
	<description>Stuff i posted</description>
	<lastBuildDate>Sat, 28 Jan 2012 00:47:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='charliex2.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9ef611d41efe4b49577c68c69edac23f?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Dr Terrible&#039;s House of Bloggable</title>
		<link>http://charliex2.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://charliex2.wordpress.com/osd.xml" title="Dr Terrible&#039;s House of Bloggable" />
	<atom:link rel='hub' href='http://charliex2.wordpress.com/?pushpress=hub'/>
		<item>
		<title>On to the next project, CNC rebuild into a (well you&#8217;ll see)</title>
		<link>http://charliex2.wordpress.com/2011/12/28/on-to-the-next-project-cnc-rebuild-into-a-well-youll-see/</link>
		<comments>http://charliex2.wordpress.com/2011/12/28/on-to-the-next-project-cnc-rebuild-into-a-well-youll-see/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 23:35:55 +0000</pubDate>
		<dc:creator>charliex</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">https://charliex2.wordpress.com/?p=995</guid>
		<description><![CDATA[This is one of those Chinese CNC machines on eBay that’s got all those qualities where you think, maybe its good enough for the price. Of course they never are but that never stops us. $700 all in. CNC 3020 will lead you to them, but really don’t. They generally are sold as shipped in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=995&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is one of those Chinese CNC machines on eBay that’s got all those qualities where you think, maybe its good enough for the price. Of course they never are but that never stops us. $700 all in. <a href="http://www.ebay.com/sch/i.html?_from=R40&amp;_trksid=m570.l2736&amp;_nkw=CNC+3020" target="_blank">CNC 3020</a> will lead you to them, but really don’t.</p>
<p><img src="http://farm8.staticflickr.com/7025/6590695801_6e25fa8c12_z.jpg" /></p>
<p>They generally are sold as shipped in the USA and actually drop shipped from China. Takes about 7 days usually.</p>
<p>Very well packed, but as usual has that weird smell that everything we’ve bought has from China.&#160; So dispose of the bubble wrap as quickly as possible. </p>
<p>Cursory glances the power supply has what sounds like a loose screw rattling around, the machine looks cheaper than the photographs,&#160; but then again who expects to get a hamburger from McDonalds that even barely resembles the pictures on the advertising. You know what you’re signing up for when eBaying, Las Vegas rules here. To be fair to the Chinese companies though their advertising pictures are about 9000 times more accurate than the McDonalds ones though. It also looks smaller than it did on eBay, this is why size reference pictures need an apple.</p>
<p>Apparently it uses something called a ‘Parallel Port’&#160; (I keed, I keed), well that won’t last for long.</p>
<p>Our LPKF is a lot nicer, (not as nice the AccurateCNC), but it is going under the chop too. </p>
<p><img src="http://farm8.staticflickr.com/7023/6590757339_c3af91a9f1_z.jpg" /></p>
<p><img src="http://memegenerator.net/cache/instances/400x/12/12358/12655203.jpg" width="440" height="440" /></p>
<p>Well ok we might ARM a few.</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charliex2.wordpress.com/995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charliex2.wordpress.com/995/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charliex2.wordpress.com/995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charliex2.wordpress.com/995/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charliex2.wordpress.com/995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charliex2.wordpress.com/995/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charliex2.wordpress.com/995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charliex2.wordpress.com/995/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charliex2.wordpress.com/995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charliex2.wordpress.com/995/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charliex2.wordpress.com/995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charliex2.wordpress.com/995/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charliex2.wordpress.com/995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charliex2.wordpress.com/995/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=995&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://charliex2.wordpress.com/2011/12/28/on-to-the-next-project-cnc-rebuild-into-a-well-youll-see/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f95e755c58bbd8b321047785c1ae0f42?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charliex</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7025/6590695801_6e25fa8c12_z.jpg" medium="image" />

		<media:content url="http://farm8.staticflickr.com/7023/6590757339_c3af91a9f1_z.jpg" medium="image" />

		<media:content url="http://memegenerator.net/cache/instances/400x/12/12358/12655203.jpg" medium="image" />
	</item>
		<item>
		<title>[Null Space Labs] = Juki 360 Rebuild, Part IV. Yes we&#8217;re in LA.</title>
		<link>http://charliex2.wordpress.com/2011/12/13/null-space-labs-juki-360-rebuild-part-iv-yes-were-in-la/</link>
		<comments>http://charliex2.wordpress.com/2011/12/13/null-space-labs-juki-360-rebuild-part-iv-yes-were-in-la/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 02:15:25 +0000</pubDate>
		<dc:creator>charliex</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[null space labs]]></category>
		<category><![CDATA[pick and place]]></category>
		<category><![CDATA[pickobear]]></category>

		<guid isPermaLink="false">https://charliex2.wordpress.com/?p=987</guid>
		<description><![CDATA[So it been a while since my last update, my lil’ dog of 16 years had to be put down and I wasn’t feeling it, then family visited from so we stalled abit. So quick updates for the tl;dr people :- Head rotation works, but have to add an encoder wheel since we ‘forgot’ about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=987&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong></strong></p>
<p>So it been a while since my last update, my lil’ dog of 16 years had to be put down and I wasn’t feeling it, then family visited from so we stalled abit.</p>
<p>So quick updates for the tl;dr people :-</p>
<ul>
<li>Head rotation works, but have to add an encoder wheel since we ‘forgot’ about the tool home position inside the head tool pickup… </li>
<li>Y axis is all upgraded, new stepper motor drivers are in 1/2 step is on. </li>
<li>Switched to <a href="http://dank.bengler.no/-/page/show/5470_grbl?ref=mst" target="_blank">GRBL</a> and StepDir, instead of, uhh, not stepdir.. Though using the </li>
<li>OpenPNP base firmware revision, i didn’t realise it was different til after porting it.      </li>
<li>GUI is almost done, it can place one full board from feeders and trays      </li>
<li>Replaced hoses as the old ones burst, which only happens when you say right lets video this.      </li>
<li>Trapezoidal for the servos courtesy of Grbl.      </li>
<li>Still having some issues with the vacuum sensor, might be bad or low pressure or something else, turned it off for the moment.      </li>
</ul>
<h1>Pickobear uncut.</h1>
<p>So we’re able to pick up and place with the new Grbl firmware and the updated GUI, its all GCODE now. I’ve moved more of the functions into the GCODE vs individual move, drop , vacuum, since the communication is just serial rx/tx and serial is a PITA for this sort of thing, since its all ACK/re-ACK. With an M command its just e.g. M21 pickup part, M22 putdown part and the machine reports yes/no. FTDI’s are decent chips but they will break down comms after long datastreams, I’ve had a lot of problem with them and high speed streaming, as well as overlapped IO support is meh, events don’t work that well so multithreaded serial comms based on events is in theory great, but the practise doesn’t always work well. so its all software handshakery.</p>
<p>We’ve done a lot of changes since the last update.</p>
<p><strong>Grbl</strong></p>
<p>Grbl’s great, its easy to use and easy to add on too, we were already using the AtMega2560 anyway so lots of space, even with all the stuff I’ve added to it, we’re at maybe 17%of the&#160; flash space. I had looked at it when we first started out, but it needed StepDIR and were using – + , our original drivers didn’t support StepDIR. Even luckier I’d put all the stepper controls on the same ports.</p>
<p>Changes for the 2560 are minor, just an interrupt rename and i don’t the sleep mode is working as it ought too, i assumed it was and then wondered how to handle the panel switches but turned out when i added the head movement ACK that it was, I was going to use timer3 to handle switches but then i noticed the main loop was executing constantly, some of the AVR’s have different sleep rules.</p>
<p>One thing i did do though is since the mega ICSP is under the shield and its on the machine, which is 3 metres away from desktop. I left the Arduino serial boot loader&#160; on the chip, this way i can just script AVR Dude to load the firmware built in AVR Studio 4 to the mega over serial. so its a lot easier, the downside is that if you press a key too soon the boot loader seems to kick in, i haven’t checked this to be the reason for sure, but it seems like its that. Not a huge deal.</p>
<p><strong>Running a test of the GUI</strong></p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:81117a22-56ee-4b49-a905-a7ff85a31a87" class="wlWriterEditableSmartContent">
<div><span style="text-align:center; display: block;"><a href="http://charliex2.wordpress.com/2011/12/13/null-space-labs-juki-360-rebuild-part-iv-yes-were-in-la/"><img src="http://img.youtube.com/vi/EWigJIHkXTA/2.jpg" alt="" /></a></span></div>
<div style="width:603px;clear:both;font-size:.8em;">Pick and placing, it takes a lot to just do this seemingly simple thing.</div>
</div>
<p>&#160;</p>
<p><strong>Head rotation</strong></p>
<p>Head motor, luckily we used a double ended shaft motor in case we needed an encoder, which it turns out we do. Look closely at the top of that shaft, see some thread? yeah we didn’t…. We CAD’d up a mount and fitted the motor.</p>
<p><img src="http://farm8.staticflickr.com/7161/6495457783_355e72afa4_z.jpg" /></p>
<p>The motor is 1,000 steps for a full 360 degree rotation, should be able to place the craziest of our boards, we like some gangsta lean in our part placements.</p>
<p>As a side note the magnetic sensor on top of the head, really don’t like the way they’re made or mounted, that wire takes a beating and it’ll fail again so we have to fix that too. You can see all our temporary fixes for the hoses that keep cracking, they’ve lasted 20 years though. The red line is the new one we’re using, which is way more high tech than what was available in those days, it should last longer than the tech is needed.</p>
<p><img src="http://farm8.staticflickr.com/7171/6495456335_98b5fc1c55_z.jpg" width="650" height="867" /></p>
<p>The rotation head needed a larger power supply, so that is now installed. Its the 24V power supply previously mentioned from all electronics.</p>
<p><img src="http://farm7.staticflickr.com/6221/6320887516_57ed5f16ef_z.jpg" /></p>
<p>Since we made the shield with the extended pins its easy to add things on to it. And now we’re on StepDir its just one wire to control the head ( Though we make a semi-fatal error at this step in choosing which direction the motor runs ) </p>
<p><strong>Setting up a test</strong></p>
<p>After the rotation head was added to the software, i test placed two parts, they’re off, at this point i think its the solder paste or tape missing, so we add some. As you can see though the parts are rotated as they should be. We were <a href="http://www.ustream.tv/channel/theylive" target="_blank">uStreaming</a> with the second camera so its all hanging off in space at the moment.</p>
<p><img src="http://farm8.staticflickr.com/7141/6494985569_ddc599ef6d_z.jpg" /></p>
<p>&#160;</p>
<p>Krs adds some paste to the test pads. She’s the one who wants this thing finished the most as she builds most of our boards <img style="border-style:none;" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://charliex2.files.wordpress.com/2011/12/wlemoticon-smile.png?w=632" /></p>
<p><img src="http://farm8.staticflickr.com/7172/6495453965_772df07142_z.jpg" /></p>
<p>I’m remotely moving the head with the camera view. First home, then moving to the PCB to register the location of the part, then going through the steps of the part placement. </p>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6496665697&amp;photo_secret=bbd0da3ea5&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6496665697&amp;photo_secret=bbd0da3ea5&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>So the mistake in the choice of direction for the head rotation is that the head can unscrew itself and drop down the tool, the sensor doesn’t know the head is down and the tool is now below the PCB holder and auto changer, so the head will gleefully zip around and bang it into whatever it can find, which bends the head, which is not good at all.&#160; So we’ll reverse the direction of the motor and use lots of Loctite. This is why the test videos show the parts poorly placed.</p>
<p>Pity these lessons learnt cost us a head each time.. But we move on..</p>
<p>A trial run through all the parts ( using 1206 resistors since they’re like .00004 each) as you can see they placed perfectly. </p>
<p><img src="http://farm8.staticflickr.com/7141/6501614695_505566c4fa_z.jpg" /></p>
<p>Ok, maybe not what you’d call perfect but they did place in the right spots, the head down motion was a little too strong and there’s no paste to hold the parts in place so they’ll wander around every time a part is placed. Still the software is working.</p>
<p>The vacuum sensor needs to be set quite accurately or it’ll do things like this :-</p>
<p><img src="http://farm8.staticflickr.com/7024/6501602343_b70c5bd295_z.jpg" /></p>
<p>The tool is sitting perfectly on the vacuum test pad, the head brought it down to see if was there, blocks the air coming through the tool, but since it wasn’t picked up correctly ( head wrong orientation ) it just left it there.</p>
<p>The head moves to the pad, goes down, the air comes on, there is a settle time, then the machine reads the vacuum sensor, if its not blocked there is no tool, if it is, then there is a tool.&#160; That is how it decides if the tool needs to be picked up or put back.</p>
<p>&#160;</p>
<p><strong>Finally we place a board with paste and all !</strong></p>
<p>So last night(this morning) we finally managed to run a real board. For some reason i decided to go through each of the components and rotate them 90 deg rather than change the rotation in the feeder…. derp… As we did this the vacuum test failed, so you can see me going in change the code ( incorrectly!) and re running, it the bit you might not see is the machine doing a loop of picking up a part… i fix that and we move on.. First run we do a step by step. I noticed a few bugs as we go along so there are some pauses as we fix those.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:aaa80830-61aa-4f39-a356-46ba54b66440" class="wlWriterEditableSmartContent">
<div><span style="text-align:center; display: block;"><a href="http://charliex2.wordpress.com/2011/12/13/null-space-labs-juki-360-rebuild-part-iv-yes-were-in-la/"><img src="http://img.youtube.com/vi/UNkWK3m4hS0/2.jpg" alt="" /></a></span></div>
</div>
<p>Stencil pasted a board, you can read about this in our Arduino Mega build blog entry. Its a CNC’d brass sheet.</p>
<p><img src="http://farm8.staticflickr.com/7157/6555016223_e5afc6a0ce_z.jpg" /></p>
<p>I taped the board down to stop it moving around, probably not needed.</p>
<p><img src="http://farm8.staticflickr.com/7157/6553256049_91811e7eb8_z.jpg" /></p>
<p>Some of our feeders need some love and i wasn’t super careful about where i was picking up the parts from so it was a little sloppy, however it was 2AM and i ended up having to leave and come back after one of the alarms at work went off <img style="border-style:none;" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://charliex2.files.wordpress.com/2011/12/wlemoticon-smile.png?w=632" /></p>
<p>MMCA used one of his awesome swiss files to ‘fix’ one of the feeders that was catching</p>
<p><img src="http://farm8.staticflickr.com/7175/6553256047_66872b3dd3_z.jpg" /></p>
<p>Here are some more GUI videos, they’re probably only interesting to those of thats like watching these things over and over.. </p>
<p>&#160;</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:e92d4e0d-1aed-432e-9096-d54ab1d3384e" class="wlWriterEditableSmartContent">
<div><span style="text-align:center; display: block;"><a href="http://charliex2.wordpress.com/2011/12/13/null-space-labs-juki-360-rebuild-part-iv-yes-were-in-la/"><img src="http://img.youtube.com/vi/qmCoscZ-9Tw/2.jpg" alt="" /></a></span></div>
</div>
<p>&#160;</p>
<p>Annotated some of the steps in the GUI.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:2721f58a-57ba-4530-b9eb-97100f36abf3" class="wlWriterEditableSmartContent">
<div><span style="text-align:center; display: block;"><a href="http://charliex2.wordpress.com/2011/12/13/null-space-labs-juki-360-rebuild-part-iv-yes-were-in-la/"><img src="http://img.youtube.com/vi/tH1JX6FrBrU/2.jpg" alt="" /></a></span></div>
</div>
<p>&#160;</p>
<p>One of the feeder pickups i didn’t setup properly, so it was placing them off!</p>
<p><img src="http://farm8.staticflickr.com/7153/6553260421_9e17803f0a_z.jpg" /></p>
<p><img src="http://farm8.staticflickr.com/7030/6555016063_0e9241cf94_z.jpg" /></p>
<p>Onto the hotplate, i wanted to see just how bad we could place parts and if they’d fix on the plate, all but one pulled onto the pads, the other worked but was right on the edge of a pad, it’d work fine. All we have to do is take more care when tell it where to pickup</p>
<p><img src="http://farm8.staticflickr.com/7153/6555016309_e8460024a8_z.jpg" /></p>
<p>Krs also has a bunch of videos of the machine placing that first board.</p>
<p><a title="http://www.flickr.com/photos/krs_/6555389059/" href="http://www.flickr.com/photos/krs_/6555389059/">http://www.flickr.com/photos/krs_/6555389059/</a>     <br /><a href="http://www.flickr.com/photos/krs_/6555380305/in/photostream">http://www.flickr.com/photos/krs_/6555380305/in/photostream</a></p>
<p>&#160;</p>
<p>Anyway that is mostly it, we’re down to the tuning and bug fix stage so its been pretty fun. </p>
<p>But if you’ve got minerals help out the <strong><a href="http://code.google.com/p/openpnp/" target="_blank">OpenPNP</a></strong> guys they’re doing good work, our stuff is available to everyone, but its reasonably specific to the Juki though it is GCODE.</p>
<p>&#160;</p>
<p><em>Small update: Last night, I started adding the second USB port of the ADK to Grbl as well, its almost finished. I based it on the usb.cpp from ADK but i converted it to C&#160; since the c++ generated a larger firmware and there is only one USB port, I want to keep the firmware tight.</em></p>
<p>BTW If you’re reading this and are on the yahoo zevatech list the moderator who’s apparently building a commercial retrofit for this machine is blocking our posts sharing this open source project. He said he wants credit for a CPU suggestion neither his or our project uses, a fix that wasn’t broken, and a camera solution we didn’t ask for advice on, or use. </p>
<p>cheers,    <br />charliex     <br /><a href="http://032.la">http://032.la</a></p>
<p>&#160;</p>
<p>Miss you girl</p>
<p><img src="http://farm7.staticflickr.com/6028/5914467115_344df657b3_z.jpg" /></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charliex2.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charliex2.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charliex2.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charliex2.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charliex2.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charliex2.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charliex2.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charliex2.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charliex2.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charliex2.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charliex2.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charliex2.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charliex2.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charliex2.wordpress.com/987/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=987&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://charliex2.wordpress.com/2011/12/13/null-space-labs-juki-360-rebuild-part-iv-yes-were-in-la/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>36.169710 -115.123695</georss:point>
		<geo:lat>36.169710</geo:lat>
		<geo:long>-115.123695</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f95e755c58bbd8b321047785c1ae0f42?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charliex</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7161/6495457783_355e72afa4_z.jpg" medium="image" />

		<media:content url="http://farm8.staticflickr.com/7171/6495456335_98b5fc1c55_z.jpg" medium="image" />

		<media:content url="http://farm7.staticflickr.com/6221/6320887516_57ed5f16ef_z.jpg" medium="image" />

		<media:content url="http://farm8.staticflickr.com/7141/6494985569_ddc599ef6d_z.jpg" medium="image" />

		<media:content url="http://charliex2.files.wordpress.com/2011/12/wlemoticon-smile.png" medium="image">
			<media:title type="html">Smile</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7172/6495453965_772df07142_z.jpg" medium="image" />

		<media:content url="http://farm8.staticflickr.com/7141/6501614695_505566c4fa_z.jpg" medium="image" />

		<media:content url="http://farm8.staticflickr.com/7024/6501602343_b70c5bd295_z.jpg" medium="image" />

		<media:content url="http://farm8.staticflickr.com/7157/6555016223_e5afc6a0ce_z.jpg" medium="image" />

		<media:content url="http://farm8.staticflickr.com/7157/6553256049_91811e7eb8_z.jpg" medium="image" />

		<media:content url="http://charliex2.files.wordpress.com/2011/12/wlemoticon-smile.png" medium="image">
			<media:title type="html">Smile</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7175/6553256047_66872b3dd3_z.jpg" medium="image" />

		<media:content url="http://farm8.staticflickr.com/7153/6553260421_9e17803f0a_z.jpg" medium="image" />

		<media:content url="http://farm8.staticflickr.com/7030/6555016063_0e9241cf94_z.jpg" medium="image" />

		<media:content url="http://farm8.staticflickr.com/7153/6555016309_e8460024a8_z.jpg" medium="image" />

		<media:content url="http://farm7.staticflickr.com/6028/5914467115_344df657b3_z.jpg" medium="image" />
	</item>
		<item>
		<title>Juki 360 rebuild PART 3 ( The not a repeat edition)</title>
		<link>http://charliex2.wordpress.com/2011/09/15/juki-360-rebuild-part-3-the-not-a-repeat-edition/</link>
		<comments>http://charliex2.wordpress.com/2011/09/15/juki-360-rebuild-part-3-the-not-a-repeat-edition/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 17:59:36 +0000</pubDate>
		<dc:creator>charliex</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[juki]]></category>
		<category><![CDATA[machine vision]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[pick and place]]></category>
		<category><![CDATA[zevatech placemat 360. juki 360]]></category>

		<guid isPermaLink="false">https://charliex2.wordpress.com/2011/09/15/juki-360-rebuild-part-3-the-not-a-repeat-edition/</guid>
		<description><![CDATA[So we’re on stage III of the rebuild at Null Space Labs (http://032.la) . What we’re aiming for is :- Rotation servo in the head Consistent speeds Addition of more checks Adding more checks was straightforward, added code to determine if the machine picked up a part, with the small compressor we were using it’d [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=951&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So we’re on stage III of the rebuild at Null Space Labs (<a href="http://032.la">http://032.la</a>) . What we’re aiming for is :-</p>
<ul>
<li>Rotation servo in the head </li>
<li>Consistent speeds </li>
<li>Addition of more checks </li>
</ul>
<p>Adding more checks was straightforward, added code to determine if the machine picked up a part, with the small compressor we were using it’d start to loose vacuum so if it failed to pick up a part, the delay became longer. This&#160; allowed the the compressor to catch up a little, as well as alert the user that something was amiss.&#160; Next it checks to see if the part fell off during transport to the board. The machine has a vacuum sensor that knows if the top is being blocked. This lets the machine controller (Arduino) know a part is probably there.</p>
<p>The machine won’t move if the head is down, and the limit switches were put on interrupts. tool changers are tested and put down if they’re up for some reason.</p>
<p>The interrupt based limit switches are nice, anytime a change of the signal is recognised, either in limit or coming out of limit the routine is called and it reads the status of the pin again, and sets the out of home condition, so that machine controller knows the machine should be rehomed before continuing.&#160; The code is simple and looks like this in the setup()</p>
<blockquote><p>attachInterrupt(5, x1Limit, CHANGE );</p>
<p>void x1Limit( void )      <br />{       <br />&#160; homed = false;       <br />&#160; xLimit1 = digitalRead( XL1 );       <br />}</p>
</blockquote>
<p>attachInterrupt takes the pin number , the function to call and type of signal to look for, HIGH, LOW, and CHANGE, i use&#160; CHANGE so that the xLimit1 variable is always set properly, and rather than rely on software tracking I read the state back in.</p>
<p>I’ll probably change the digital read to actually just read the PORTx value directly, you want to minimise time spent in an ISR (interrupt service routine ) as much as possible. 5 is the pin that the XL1 limit switch is connected to on the shield, and homed/xLimit1 are volatile global variables that have the condition, they are set as volatile since they can be changed at unexpected times, either by the hardware directly or the ISR. volatile lets the compiler know not to cache the value or other trickery. This is often the case with things like memory mapped hardware clocks where you read a specific memory location to read a clock, so you’d do something like (clockVal would be set to the specific memory location by the linker or other directive)</p>
<blockquote><p>const volatile unsigned long clockVal;</p>
</blockquote>
<p>We’re not using const for the homed/xLimit1, since we are writing to it via software, a hardware clock changes outside of our code.</p>
<h2>Ooops</h2>
<p>Someone knocked one of the feeders slightly off (probably me) as it was being worked on, I didn’t notice and moved the head.</p>
<p><img src="https://lh4.googleusercontent.com/-Fw6eoGtnBiE/TnI2L0uxnGI/AAAAAAAADYY/H20ojyyqkTI/s576/2011-09-11_13-54-20_971.jpg" /></p>
<p>It caught the feeder pin ( bottom left) and bent badly enough that it wouldn’t go back down. So i pulled it apart and used a vice with cut outs and gently squeezed it back into shape, then mmca used his micro lathe to make it straight again. Luckily these are easy to make from scratch.</p>
<h2>Servo Pulses</h2>
<p>The servo <a href="http://en.wikipedia.org/wiki/Pulse_train">pulse</a> speeds are more of a pain, the Arduino has some fairly inconsistent timing and some of the functions you’d expect to be fast, aren’t, the <a href="http://www.arduino.cc/en/Reference/DelayMicroseconds" target="_blank">delayMicroseconds</a> has a lot of skew, <a href="http://www.arduino.cc/en/Reference/DigitalWrite" target="_blank">digitalWrite</a> takes a long long time. Once you know about them, they’re easy to deal with i replaced them with <a href="http://www.arduino.cc/en/Reference/BitSet" target="_blank">bitSet</a>/<a href="http://arduino.cc/en/Reference/BitClear" target="_blank">bitClear</a> and the <a href="http://www.nongnu.org/avr-libc/user-manual/delay_8h_source.html">__builtin_avr_delay_cycles</a> feature in avr-gcc.&#160; We captured the output of the servos from the Juki PC with a scope and my logic analyser. That allowed us to see the ramp up and down times to get the head moving at a decent clip. There is still some ripple in the software PWM though, so we’ve converted most of it over to just&#160; AVR asm/C and setting the ports individually,the Arduino does what it is meant to do really well and that is be easy to use, but what’s uncommon about it is that it easily lets you drop in code that bypasses or override the built in libraries, in my experience that’s rare in other simplified dev kit software, its typically all or nothing.</p>
<p>Changing the digitalWrite is straightforward. Determine which port the pin you want to set is on and then use bitClear or bitSet instead.</p>
<p>digitalWrite(YCCW,HIGH) becomes #define YCCW_HIGH&#160;&#160; bitSet(PORTF,3); YCCW is defined&#160; as A3, which on the mega is on PORTF, bit 3. digitalWrite LOW is bitClear(PORTF,3)&#160; going even further the PORTF can be manipulated directly with PORTF |= (1&lt;&lt;3) to set it, then you can combine them together with PORTF |= (1&lt;&lt;3)|(1&lt;&lt;2) etc to clear PORTF &amp;= ~( (1&lt;&lt;3) | (1&lt;&lt;2 ) ) also there is a _BV() macro that does the (1&lt;&lt;n) shift. so</p>
<p>PORTF |= _BV( 3 )</p>
<p>Using |= and &amp;= should output the closest ASM instructions that you can could in C.</p>
<blockquote></blockquote>
<p>Once we started to investigate the timing from the Arduino that is when I noticed the problems, even with interrupts disabled we were seeing inconsistent results. So I wrote some test code and hooked up the output to the LA and set about trying to make a micro second accurate delay. specs showed a 2uS rise , 5uS pulse and 2uS fall for the initial step pulse, the stepper IO controller is HIGH delay LOW delay HIGH . for the first delay about 8uS works well.</p>
<p>We captured the data with the logic analyser and pulled the data into Excel which is great for this sort of thing.</p>
<p>A quick couple of macros and copy/paste and we’ve got differences in Column F , you can see the length of the pulse in F3 and F4 has the off time length, which gives us our full duty cycle for that pulse.</p>
<p>In H its just the lengths of the off times since the on time is constant. Column I has the differences.</p>
<p><img src="http://farm7.static.flickr.com/6193/6152063244_810c7e3c5b_z.jpg" /></p>
<p>One of the next things excel can do is <a href="http://en.wikipedia.org/wiki/Trend_line_(technical_analysis)">trend lines</a>, I did this by hand and then arko showed it to me, I’d seen the equation solver before but not this.</p>
<p>First create a line chart with the off times (the part of the duty cycle that’s after the pulse)</p>
<p><img src="http://farm7.static.flickr.com/6210/6151515771_e1fa69d825_z.jpg" /></p>
<p>Click on the data points in the line to select the line. then use the trendline option</p>
<p><img src="http://farm7.static.flickr.com/6079/6152063348_9a580aca1c_z.jpg" /></p>
<p>Set the options like so :-</p>
<p><img src="http://farm7.static.flickr.com/6176/6151515779_cd42ed41b8_z.jpg" /></p>
<p>Which gives you this trend line (in black ) and the algorithm for it. I opted to use a table lookup since it has to be super fast for the Arduino.</p>
<p><img src="http://farm7.static.flickr.com/6172/6151515797_fb73dac31d_z.jpg" /></p>
<h2>Time Travel</h2>
<p>Skipping back a little after the last blog post we did an 0603 repeatability test, used the <a href="http://www.layerone.org/" target="_blank">layerOne</a> <a href="http://www.flickr.com/photos/krs_/5734386384/" target="_blank">speaker badge</a> as a base, I exported the <a href="http://www.screamingcircuits.com/Home/HowItWorks" target="_blank">centroids</a> from eagle for one side and ran test code. As well as just have the machine draw lines of 0603’s. with a logo-esq list of commands.</p>
<p><img src="https://lh4.googleusercontent.com/-Maq4spLnEAk/TmsAWN9KNeI/AAAAAAAADQ8/pgG6jbC6Mus/s912/2011-09-09_23-14-20_53.jpg" /></p>
<p>The left side has a little wobble, partly pickup, partly the slightly bent head ( we’re lucky that a generous person sent us a new head and feeders you rock Steven ! ) the right side is a similar test but its placing the 0603s on top of each other, that actually worked pretty well a few of them fell over. But given the bent head, no centering or machine vision its working better than we can hand place them. This picture is the version that just places the parts in lines. I also think our stop is a little aggressive in this test, and this is before we really got into the ramping.</p>
<p>The ramping is simply having the PWM have a longer off time, pulsing the servo, decreasing the off time, pulse it again and do that for N pulses until the motors are moving fast enough to get to the top speed, that’s what the Excel sheet is for. I’ll go into it in more detail in another post.</p>
<p>Someone from Russian TV decided to film it, Central TV i believe. Unfortunately all the airlines are now tight so i can’t remotely shoot air or disconnect hoses at him anymore.</p>
<p><img src="https://lh3.googleusercontent.com/-Z2WbmXDPwxY/TnI2L-pTuAI/AAAAAAAADYY/0H6IwUwocMs/s576/2011-09-11_17-04-35_758.jpg" /></p>
<h2>Adding a camera</h2>
<p>This is a Cognex 4100 machine vision camera, machine vision cameras are generally low noise, stable image sources. This one can determine angles, and so on and then send them out via Ethernet or serial. The 4100 has been dropped by Cognex it seems and the software needed to run it is an old version, which has a lot of compatibility errors with Windows 7, its been something I’ve seen before where the menu’s lockup for a long time. But we figured our way around it by using Windows XP inside 7 with its builtin Virtual PC and got it to see the rotation.&#160; Think RoboRealm built into a camera.</p>
<p><em>Controller unit</em><img src="http://farm7.static.flickr.com/6184/6151488210_d0d60ece54_z.jpg" /></p>
<p>Inside the camera, TI DSP and a Xilinx FPGA, very nice.</p>
<p><img src="http://farm7.static.flickr.com/6080/6151813588_0585c7563c_z.jpg" /></p>
<p>Camera head</p>
<p><img src="http://farm7.static.flickr.com/6208/6151542034_43a098c565_z.jpg" /></p>
<p>We’re also using some webcams , a couple of them are microscopes, one is from think geek and it’s a wireless HView camera, the other was an eBay special pen microscope usb2. Oddly finding a 12mm drill bit to make a hole for the camera wasn’t so easy.</p>
<p>Adding the camera needs two pins for the servo CW/CCW, three pins for the camera, TX/RX and trigger. The shield has three pins left!, Though I did cheat and use two of the pins as a via since I didn&#8217;t&#8217; really want to deal with the LPKF via rivets even though its only a few of them. We do really only need RX though.&#160; The trigger just tells the camera to only operate while, or after the trigger is set. The final board will not use the cheats of course, but before I remill a new one we have to </p>
<p><img src="http://farm7.static.flickr.com/6199/6152031285_4bc1a66e88_z.jpg" /></p>
<h2>Software testing</h2>
<p>This is our test bed software Pickobear it allows us to test OpenCV (though we have a Cognex camera), the eagle script output CSV is imported into Pickobear and then the machine knows how to place it.</p>
<p><a href="http://www.goth.am/wordpress/Juki-360-rebuild-PART-3--The-not-a-repea_120CB/image.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://www.goth.am/wordpress/Juki-360-rebuild-PART-3--The-not-a-repea_120CB/image_thumb.png" width="649" height="492" /></a></p>
<p>One of the problems with test software is you often leave it in a state where it was testing something specific, and you forgot to remove it , case in point, I had one extra YCW pulse that caused a problem when we were doing a tool change test. After 4 changes it’d refuse to put down the changer, we checked air pressure, offsets, tool head distance and all that, eventually did test code that moved home, then to 0,0, 1000,1000, back to 0,0 and saw it was one Y off each time. A quick check of the firmware and the extra pulse was spotted. But it did allow us to get the numbers needed to exactly place the adjustment for the pickup head.</p>
<p>Next we’re testing out different cameras, I milled out a quick holder from PCB material and the epic blue painters tape. This is a nice’ish USB 2.0 camera that’s setup as a <em>microscope, </em>it came with a nice metal holder and was about $80 from eBay. M4 nuts and bolts seem to be rare around us, never mind the M2.5’s we were looking for locally last week. So zip tie to the rescue temporarily, it does allow a little yaw though but it is ok for testing the software until the bracket arrives.</p>
<p>To make this I measured the hole sizes, the distance apart and picked a distance for the camera, then guessed the size. I then added two drill holes with the hole command, set the size to 4mm for the larger 12mm hole I used the milling layer, draw a circle with the circle command, and set the width (right click circle and choose properties or type change width ) to a very small number, if you use 0.0 as the width eagle will fill in the whole circle and doesn’t cut anything, a width of 0.0 works for milling wires, but not circles. Then milled it out on our AccurateCNC 560H.</p>
<p><img src="http://farm7.static.flickr.com/6157/6160408954_84dd3a57ec_z.jpg" /></p>
<p>Now we fit the new holder, has a nice set screw to hold the camera in place.</p>
<p><img src="http://farm7.static.flickr.com/6167/6165118325_854444c142_z.jpg" /></p>
<p>Next is adding camera movement and offsetting the board. I did this by adding a mouse click even to the custom control, it then determines the center of the image and a difference calculation, then depending on the direction it needs to go it moves that amount, I still have to calibrate what the relationship of the camera image is to actual axis steps, but its close enough to use right now.</p>
<!--YouTube Error: bad URL entered-->
<p>I’m using <a href="http://muonics.net/school/spring05/videoInput/">videoInput</a> with <a href="http://opencv.willowgarage.com/wiki/">OpenCV</a> and OpenGL to display the data from the cameras, the crosshairs and circles are drawn into the OpenCV image using their primitives.</p>
<blockquote><p>cvLine(img1,&#160; xyF, xyT, CV_RGB(0,0,200),2);      <br />cvCircle(img1,xy,100,CV_RGB(0,0,200),2);</p>
</blockquote>
<p>Camera setup is straightforward</p>
<blockquote><p>int numDevices = VI.listDevices();</p>
<p>m_camera = DeviceID;</p>
<p>VI.setupDevice(m_camera);</p>
<p>img1 = cvCreateImage(cvSize(VI.getWidth(m_camera),VI.getHeight(m_camera) ),IPL_DEPTH_8U,3);      <br />assert(img1);</p>
<p>img2 = cvCreateImage(cvSize(VI.getWidth(m_camera),VI.getHeight(m_camera) ),IPL_DEPTH_8U,3);      <br />assert(img2);</p>
</blockquote>
<p>There is a nice simple class I’ve used for rendering OpenGL into an MFC custom control for a while.</p>
<p><a href="http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/print.php/c10975__2/">http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/print.php/c10975__2/</a></p>
<h2>Head servo rotation</h2>
<p>The rotation head is the next thing we’ll get fully operational. We decided to upgrade the 24V power supply since the little servo can draw more amps than it could safely handle. All electronics has suitable 24V 6.5A deals.</p>
<p><img src="http://farm7.static.flickr.com/6077/6160486180_1c203902cf_z.jpg" /></p>
<p><a href="http://www.allelectronics.com/make-a-store/item/PS-24150/24-VDC-6.5A-150W-POWER-SUPPLY/1.html">http://www.allelectronics.com/make-a-store/item/PS-24150/24-VDC-6.5A-150W-POWER-SUPPLY/1.html</a></p>
<p>$26 at the time of writing.</p>
<p>A custom CNC’d bracket was designed by mmca and laid out&#160; in solidworks by arko, the motor, pulley etc are all added. This allows us to switch from the simple 90o rotation to full a 360o’s so we can place the part turn 360’s and moonwalk away from it. There is some play in the rotation shaft because of the set screw, so that is being remade so there is no backlash., even though its a tiny amount and the software can correct it. The machine is able to do more than 90o in steps of 90o by simply changing which side the feeder is mounted too, but we want 45o’s for those gangsta leans.</p>
<p>The top bracket/reed switch isn’t mounted or screwed down, that is why its tilted.</p>
<p><img src="https://lh6.googleusercontent.com/-w1LrAKlhnxk/TnI2L6MOEnI/AAAAAAAADYY/cg7jYtdKPWw/s912/2011-09-14_22-47-44_48.jpg" /></p>
<p>New standoffs added and rest of head mounted.</p>
<p><img src="http://farm7.static.flickr.com/6080/6149127011_63b6773523_z.jpg" /></p>
<p><img src="https://lh3.googleusercontent.com/-bFtxgqUpLiM/TnVsbAY_zfI/AAAAAAAADZ8/UrpecDT_IpU/s912/2011-09-17_20-57-57_948.jpg" /></p>
<p>So here is a short video showing the setting of the PCB offset, I home the machine, pick the part I want to use a registration. Then move to the location where it really is and press the OFFSET button., then I move around to other components just to check its working, again the blue lines are OpenCV doing stuff.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:a62a0b87-2e70-41a0-9b9d-3cbde57a13f2" class="wlWriterSmartContent">
<div><span style="text-align:center; display: block;"><a href="http://charliex2.wordpress.com/2011/09/15/juki-360-rebuild-part-3-the-not-a-repeat-edition/"><img src="http://img.youtube.com/vi/YT3-djdZKvs/2.jpg" alt="" /></a></span></div>
<div style="width:758px;clear:both;font-size:.8em;">Pickobear!</div>
</p></div>
<p><strong></strong></p>
<p><strong>Motor Drive Upgrade</strong></p>
<p>The Y motor driver and motor aren’t that great, so we changed it out for this controller</p>
<p><img src="https://lh6.googleusercontent.com/-X8RJ20PSDyo/Tng-D2887gI/AAAAAAAADco/4OJ1V1tMCXY/s912/2011-09-19_23-09-43_343.jpg" width="642" height="362" /></p>
<p>First removing all the old wiring and converting it to the style connectors, it’s a shame to do this as the wiring is just so nice compared to modern equipment. Its not often you see this level of attention anymore.</p>
<p><img src="https://lh6.googleusercontent.com/-u8dH_oZfvCs/Tng-D7t8UvI/AAAAAAAADco/MWvBbOnpRG8/s912/2011-09-19_23-09-48_766.jpg" width="743" height="419" /></p>
<p>&#160;</p>
<p><img src="https://lh4.googleusercontent.com/-e7DY6v6wBr0/Tng-D6kXUOI/AAAAAAAADco/tr5LSaQdebQ/s576/2011-09-19_23-10-44_277.jpg" /></p>
<p><img src="https://lh6.googleusercontent.com/-WR8c3O7s23g/Tng-D-3ljbI/AAAAAAAADco/AB6G7A_a9LQ/s912/2011-09-19_23-41-12_659.jpg" width="627" height="354" /></p>
<p>New controller in place of the old one, it fits pretty well its longer than the old one but luckily there was lots of room, we just have to extend the AC lines a little.</p>
<p><img src="https://lh4.googleusercontent.com/-s9RNnNz774Y/Tng-D2OgzjI/AAAAAAAADco/9EkIqwIwuEw/s576/2011-09-19_23-42-42_841.jpg" /></p>
<p>Removing the plastic conduit covers and rerouting the wiring.</p>
<p><img src="https://lh3.googleusercontent.com/-cuHgo_RvstE/Tng-DwNPcjI/AAAAAAAADco/zGL5YssG9fA/s912/2011-09-19_23-44-51_987.jpg" width="644" height="363" /></p>
<p>&#160;</p>
<p>Almost there, I’m heading out early tonight and we apparently don’t have crimpers at NSL so rather than botch it, I’ll pick up some tomorrow or bring mine in from home</p>
<p><img src="https://lh6.googleusercontent.com/-WqkZLZd9sgI/Tng-D2ScOaI/AAAAAAAADco/pwtoUCn3gOs/s576/2011-09-19_23-51-23_38.jpg" /></p>
<p>&#160;</p>
<p>A new motor was fitted too.</p>
<p><img src="https://lh6.googleusercontent.com/-oRNNa2R06cE/Tng-D8AKlnI/AAAAAAAADco/NXapwm_WZlY/s576/2011-09-19_21-06-30_941.jpg" /></p>
<p>Dirty fans!</p>
<p><img src="https://lh4.googleusercontent.com/-0OX2G7BUsew/Tng-Dz6DZ7I/AAAAAAAADco/2awJrC8Crf8/s576/2011-09-19_21-06-51_273.jpg" /></p>
<p>&#160;</p>
<p>Close up of the belts and cogs etc.</p>
<p><img src="https://lh4.googleusercontent.com/-BnYuwr6fx4E/Tng-D7SWG_I/AAAAAAAADco/oVgOkh1tTdc/s912/2011-09-19_21-07-30_62.jpg" width="620" height="350" /></p>
<p>&#160;</p>
<p><img src="https://lh5.googleusercontent.com/-IcOdT8gsZDU/Tng-D-RN0VI/AAAAAAAADco/kNB6IalcvBQ/s576/2011-09-19_21-07-37_826.jpg" /></p>
<p>New vexta motor</p>
<p><img src="http://farm7.static.flickr.com/6172/6165647894_c4fba90347_z.jpg" /></p>
<p>&#160;</p>
<p>Machine powered up and homed ok ! sweet..</p>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6165234267&amp;photo_secret=44db8be5dc&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6165234267&amp;photo_secret=44db8be5dc&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>&#160;</p>
<p>I’m not sure how detailed or long to make each of these posts, since from reading the comments and emails, its obvious a lot of people skim or don’t read the text and look at the pictures, but I want to make sure we give enough details ( plus the wiki/svn ) so that people can recreate it. We are at the point we can pick and place our boards, surpassing the original software in some ways, a few things are left to be done to make it 100% of the original features sets, mostly to do with feeders. But we’re waaay beyond what it could do in some ways.</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charliex2.wordpress.com/951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charliex2.wordpress.com/951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charliex2.wordpress.com/951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charliex2.wordpress.com/951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charliex2.wordpress.com/951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charliex2.wordpress.com/951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charliex2.wordpress.com/951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charliex2.wordpress.com/951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charliex2.wordpress.com/951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charliex2.wordpress.com/951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charliex2.wordpress.com/951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charliex2.wordpress.com/951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charliex2.wordpress.com/951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charliex2.wordpress.com/951/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=951&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://charliex2.wordpress.com/2011/09/15/juki-360-rebuild-part-3-the-not-a-repeat-edition/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f95e755c58bbd8b321047785c1ae0f42?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charliex</media:title>
		</media:content>

		<media:content url="https://lh4.googleusercontent.com/-Fw6eoGtnBiE/TnI2L0uxnGI/AAAAAAAADYY/H20ojyyqkTI/s576/2011-09-11_13-54-20_971.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6193/6152063244_810c7e3c5b_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6210/6151515771_e1fa69d825_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6079/6152063348_9a580aca1c_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6176/6151515779_cd42ed41b8_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6172/6151515797_fb73dac31d_z.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-Maq4spLnEAk/TmsAWN9KNeI/AAAAAAAADQ8/pgG6jbC6Mus/s912/2011-09-09_23-14-20_53.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-Z2WbmXDPwxY/TnI2L-pTuAI/AAAAAAAADYY/0H6IwUwocMs/s576/2011-09-11_17-04-35_758.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6184/6151488210_d0d60ece54_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6080/6151813588_0585c7563c_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6208/6151542034_43a098c565_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6199/6152031285_4bc1a66e88_z.jpg" medium="image" />

		<media:content url="http://www.goth.am/wordpress/Juki-360-rebuild-PART-3--The-not-a-repea_120CB/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6157/6160408954_84dd3a57ec_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6167/6165118325_854444c142_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6077/6160486180_1c203902cf_z.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-w1LrAKlhnxk/TnI2L6MOEnI/AAAAAAAADYY/cg7jYtdKPWw/s912/2011-09-14_22-47-44_48.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6080/6149127011_63b6773523_z.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-bFtxgqUpLiM/TnVsbAY_zfI/AAAAAAAADZ8/UrpecDT_IpU/s912/2011-09-17_20-57-57_948.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-X8RJ20PSDyo/Tng-D2887gI/AAAAAAAADco/4OJ1V1tMCXY/s912/2011-09-19_23-09-43_343.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-u8dH_oZfvCs/Tng-D7t8UvI/AAAAAAAADco/MWvBbOnpRG8/s912/2011-09-19_23-09-48_766.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-e7DY6v6wBr0/Tng-D6kXUOI/AAAAAAAADco/tr5LSaQdebQ/s576/2011-09-19_23-10-44_277.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-WR8c3O7s23g/Tng-D-3ljbI/AAAAAAAADco/AB6G7A_a9LQ/s912/2011-09-19_23-41-12_659.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-s9RNnNz774Y/Tng-D2OgzjI/AAAAAAAADco/9EkIqwIwuEw/s576/2011-09-19_23-42-42_841.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-cuHgo_RvstE/Tng-DwNPcjI/AAAAAAAADco/zGL5YssG9fA/s912/2011-09-19_23-44-51_987.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-WqkZLZd9sgI/Tng-D2ScOaI/AAAAAAAADco/pwtoUCn3gOs/s576/2011-09-19_23-51-23_38.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-oRNNa2R06cE/Tng-D8AKlnI/AAAAAAAADco/NXapwm_WZlY/s576/2011-09-19_21-06-30_941.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-0OX2G7BUsew/Tng-Dz6DZ7I/AAAAAAAADco/2awJrC8Crf8/s576/2011-09-19_21-06-51_273.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-BnYuwr6fx4E/Tng-D7SWG_I/AAAAAAAADco/oVgOkh1tTdc/s912/2011-09-19_21-07-30_62.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-IcOdT8gsZDU/Tng-D-RN0VI/AAAAAAAADco/kNB6IalcvBQ/s576/2011-09-19_21-07-37_826.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6172/6165647894_c4fba90347_z.jpg" medium="image" />
	</item>
		<item>
		<title>Pick and place So here we are with&#8230;</title>
		<link>http://charliex2.wordpress.com/2011/09/05/pick-and-place-rebuild-part-two-the-simplification/</link>
		<comments>http://charliex2.wordpress.com/2011/09/05/pick-and-place-rebuild-part-two-the-simplification/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 19:40:38 +0000</pubDate>
		<dc:creator>charliex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://charliex2.wordpress.com/2011/09/05/pick-and-place-rebuild-part-two-the-simplification/</guid>
		<description><![CDATA[Pick and place; So here we are with part two of the build. We’ve figured out most of it, started the build of the arm board and so on, then on Friday night late I have one of those, hmmm, moments and say wait we have a lot of ADK mega arduino boards lying around [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=928&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Pick and place;</p>
<p>So here we are with part two of the build. We’ve figured out most of it, started the build of the arm board and so on, then on Friday night late I have one of those, hmmm, moments and say wait we have a lot of ADK mega arduino boards lying around (because we made a tonne of them for defcon 19). So a quick count of the IO pins needed vs the mega and we find it can be done.&#160; </p>
<p>We test fire the MOSFETs with our ADK arduino, using one of the ATC( tool changer) pneumatic switches. That works just fine, the modern MOSFETs are amazing even though we need no where near the level of current this thing can handle.</p>
<p>&#160;</p>
<p>We wired up a quick test.</p>
<p><img src="https://lh4.googleusercontent.com/-WxFlA8jGrlo/TmGyJkAYn3I/AAAAAAAADIM/hl2XazAjlgk/s912/2011-09-02_21-50-17_362.jpg" width="717" height="1275" /></p>
<p>Breakout board for the TUMT6 MOSFET</p>
<p><img src="https://lh6.googleusercontent.com/-eLcrr-dC9O0/TmGyiP6_UbI/AAAAAAAADBE/JdnLC1cXsR4/s288/2011-09-02_21-50-26_59.jpg" width="882" height="496" /></p>
<p>&#160;</p>
<p>Just as ping is the ubiquitous test on the internet, blink.pde is on the arduino.</p>
<p><img src="https://lh4.googleusercontent.com/--tyDKXlCEzo/TmGyMyj1PgI/AAAAAAAADBE/oAIRgXwR4HM/s1440/2011-09-02_21-50-11_772.jpg" width="898" height="505" /></p>
<p>Success, yes the tool did go flying off but that’s ok! We simply connected up pin 13 of the mega to the electro switches in the top left, the board is bypassed since it does a BCD decode and select.</p>
<p><img src="https://lh6.googleusercontent.com/-OrnU7WNkgk8/TmGyZUFOZiI/AAAAAAAADBE/s9FMg3wpams/s1440/2011-09-02_21-50-43_104.jpg" width="891" height="501" /></p>
<p>Blink does it’s thing.</p>
<p> <object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6117080639&amp;photo_secret=b27bb72c02&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6117080639&amp;photo_secret=b27bb72c02&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>&#160;</p>
<p>So time to build up the new interface card, a quick search through some of the old machines we find the right floppy pin cable for the board, and the old 50 pin scsi type.. thanks petty!..</p>
<p><img src="https://lh4.googleusercontent.com/-VCR-WoULTBQ/TmHMX1uaE9I/AAAAAAAADIM/qQaAuClIRV8/s1440/2011-09-02_23-42-07_999.jpg" width="860" height="484" /></p>
<p><img src="https://lh3.googleusercontent.com/-08crAZ66O7M/TmHMll_Ej8I/AAAAAAAADIM/TpIJ-5UfHek/s1440/2011-09-02_23-43-10_902.jpg" width="866" height="487" /></p>
<p>So&#160; next step is to CNC up a header quick board, its an extremely simple board. Bust out eagle and start making the board, the Juki has one oddness that the connectors run 1-2-3-4-5-6… etc vs 1.3.5.7.9.. so I had to build a custom part in eagle..</p>
<p><img src="https://lh5.googleusercontent.com/-L7CPot_FhBY/TmHZPb7IYOI/AAAAAAAADIM/JN4lnQHgn5E/s1440/2011-09-03_00-37-00_737.jpg" width="862" height="485" /></p>
<p>So I start off modifying our ARM board by sticking an arduino mega shield in the middle with the idea of wiring it upto all the mosfets etc.</p>
<p><img src="https://lh5.googleusercontent.com/-YhR0dhexvT0/TmHMxulcdKI/AAAAAAAADIM/VqiE59M6dZg/s1440/2011-09-02_23-43-52_642.jpg" width="852" height="479" /></p>
<p>But then I think, wait a second why do that? Lets just leave the IO board and make a shield that plugs into the Juki’s existing IO connectors. So another project in eagle and its even simpler this time.</p>
<p><img src="https://lh5.googleusercontent.com/-teUgMrJFo14/TmLm30BiNEI/AAAAAAAADII/Hl0V1Lsqyi0/s1440/2011-09-03_19-47-05_538.jpg" width="847" height="477" /></p>
<p>Yeah that’s slightly less complicated. So&#160; basically we’re just mapping each of the IO’s to the arduino, I’m not much of an arduino person myself I prefer ARM for embedded, but we had lots of parts lying around and it was super simple form factor which is the point of the arduino and we sold out of all our arm based arduinos at defcon. So I ended up using the tx/rx as&#160; an that has to be rerouted later, but luckily I mapped it to the down switch for the teaching panel, which we no longer need. However that’s not how we do things at NSL so it’ll be remade and milled.</p>
<p>Now add the headers, this is a real chore they’re simple to obtain, but so cheap but a bitch to solder onto a board that’s not plated…</p>
<p><img src="https://lh4.googleusercontent.com/-BI7hedXmIcY/TmLm_OwynzI/AAAAAAAADII/mNrnDMO8wnc/s1440/2011-09-03_19-47-20_771.jpg" width="898" height="505" /></p>
<p>Also someone missed some pads..</p>
<p>&#160;</p>
<p>Whoohoo perfect, (well sort of)</p>
<p><img src="https://lh4.googleusercontent.com/-iHAsA0O_iL0/TmLnUekTUTI/AAAAAAAADII/N_iG37yupcY/s1440/2011-09-03_19-49-27_641.jpg" width="891" height="501" /></p>
<p>Now for a test fit onto the machines IO board.</p>
<p><img src="https://lh5.googleusercontent.com/-mpXw8HeaJFU/TmMlRDqc27I/AAAAAAAADII/uj6faoT6img/s912/2011-09-04_00-13-38_884.jpg" /></p>
<p>&#160;</p>
<p>Check continuity etc. Make sure that GND is mapped…</p>
<p><img src="https://lh6.googleusercontent.com/-_SEeSEzSbzo/TmMlUrDe5TI/AAAAAAAADII/C0uJal2ZLio/s1440/2011-09-04_00-13-43_935.jpg" width="830" height="467" /></p>
<p><img src="https://lh3.googleusercontent.com/-lrTe8j7g-TA/TmM_54m-Q7I/AAAAAAAADII/IVPRystxUPY/s1440/2011-09-04_02-06-47_586.jpg" width="844" height="475" /></p>
<p>&#160;</p>
<p>Getting ready to fire it up</p>
<p><img src="https://lh4.googleusercontent.com/-e7ApNiL3Xqc/TmM_sZ1yrTI/AAAAAAAADII/9sLpRWlRV54/s1440/2011-09-04_02-06-28_55.jpg" width="821" height="462" /></p>
<p>Plugged into into the ADK arduino </p>
<p><img src="https://lh3.googleusercontent.com/--DIEdc9tOAs/TmM_vxSfqaI/AAAAAAAADII/6AXDQ6Lh4kc/s912/2011-09-04_02-06-37_135.jpg" /></p>
<p>&#160;</p>
<p>Lets test fire one of the air lines…. Power up the compressor, write a quick bit of arduino code and ! </p>
<p><img src="https://lh4.googleusercontent.com/-V5d4hPSDrh8/TmM_yk-_PDI/AAAAAAAADII/u-LoaL-MgWA/s1440/2011-09-04_02-06-56_783.jpg" width="823" height="463" /></p>
<p> <object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6117643248&amp;photo_secret=1e40745691&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6117643248&amp;photo_secret=1e40745691&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>&#160;</p>
<p> <object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6117188015&amp;photo_secret=f1cb253e19&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6117188015&amp;photo_secret=f1cb253e19&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>One of the lines we ‘repaired’ pops off and attacks KRS and mmca, But it works ! We haven’t replaced all the airlines yet and they’re hard to get locally it seems. We test the switches here too, things are looking good.</p>
<p>We skipped a little ahead above, the test code required some simple though into it. </p>
<p>First set all the pins to input    <br />Next set the individual output pins to output</p>
<p>Which wasn’t enough to make anything read.. So a quick poke around and some head scratching and the answers simple, we have to make the pins&#160; for input set to HIGH first, so a quick change and off it goes.</p>
<p>All the defaults for out pins are set HIGH too.</p>
<p>So now it’s a case of mapping all the IOs in arduino and writing bits of code.</p>
<p>we decide to decode the ATC (toolchanger) first, it uses a select + 3 lines of BCD. 4 lines are assigned to the ardunio and then we figure out which bit controls which tool changer.</p>
<p>Obviously the smart thing to do is make it do this :-</p>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6117528353&amp;photo_secret=fbe9afdf99&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6117528353&amp;photo_secret=fbe9afdf99&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>with more gusto!</p>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6118080666&amp;photo_secret=82029aac54&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6118080666&amp;photo_secret=82029aac54&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>this is more fun that the pnp itself</p>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6118086882&amp;photo_secret=01a09c1bbf&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6118086882&amp;photo_secret=01a09c1bbf&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>So next the motors themselves , this is just a case of doing a train of pulses __&#8211;__&#8211;_&#8211;_&#8211; etc <object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6117261369&amp;photo_secret=136db90e1b&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6117261369&amp;photo_secret=136db90e1b&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object><a href="http://www.flickr.com/photos/krs_/6117717455/" rel="nofollow">http://www.flickr.com/photos/krs_/6117717455/</a> </p>
<p>We have to determine the length of the pulses, its moving very slowly in the video because we&#8217;re at the +ms speed, eventually we move to microseconds. </p>
<p>Adding the limit switches, and this is why i spent $600 on a compressor for airbrushing btw</p>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6117274231&amp;photo_secret=881924bb5c&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6117274231&amp;photo_secret=881924bb5c&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>Now we&#8217;ve done a better job of finding a good speed for the motors, so a quick walk test. This is just doing a limit, change direction test.</p>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6117901034&amp;photo_secret=5908e3e948&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6117901034&amp;photo_secret=5908e3e948&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>On the motor front now all we have to do is convert pulses to mm and then we can do a gotoxy() function! Which is pretty much all we need </p>
<p>The X and Y home sensors still aren&#8217;t working yet, so while i&#8217;m writing this blog and uploading all of our videos to flickr ( since google+ doesn&#8217;t seem to have an easy way of embedding videos) I&#8217;m working out why the XY home doesn&#8217;t work. I&#8217;m adjusting the walk function to print out the XHM and YHM sensors after each pulse to see if it only does home when the rotary encoder hit and the home sensor are both on. And we just did a quick test and that indeed is the answer woo!!</p>
<p>So now to write a quick home function, i&#8217;ll have the machine do a bottom left limit find,, move back a little bit up to the right and then slowly move back til it finds home..</p>
<p>be right back!!</p>
<p>and now krs is filming me,,, awkard&#8230;</p>
<p><object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6118613310&amp;photo_secret=3d034f90ac&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6118613310&amp;photo_secret=3d034f90ac&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>Ok so the home function is now working, the machine goes to top right/back quickly, then left,front quickly, steps back to the right 100 pulses, and back 100 pulses so its definitely not at home, then slowly scans left to find x home, then slowly scans hither to find y home.</p>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6117846281&amp;photo_secret=87da6270d0&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6117846281&amp;photo_secret=87da6270d0&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>Next steps are to convert the pulses to actual distances so we can do x,y instead of pulses. I also want to do some repeatability tests, in other words go to home, go to position, go to home, go back to position and see if its always the same place. So lets home it, center it, switch on the spot light mark it, and repeat, or use a sharpie</p>
<p>The spot light had a broken wire in the middle, it&#8217;d been poorly repaired once before so we stripped it off and resoldered it. </p>
<p><img style="margin:0;" src="https://lh4.googleusercontent.com/-wroSb-X3N-Q/TmVg68Qoc_I/AAAAAAAADJc/mhwYtZrrdZk/s912/2011-09-05_16-52-44_293.jpg" /> <img style="margin:0;" src="https://lh5.googleusercontent.com/-wRJjYl5bGDA/TmVhzaAvKsI/AAAAAAAADJc/1ZqBPF63XxY/s912/2011-09-05_16-55-01_959.jpg" /> </p>
<p>We used a ruler to calculate the pulses to mm, using 100 and 500 pulses to see the distance travelled in each X and Y ( the same amount )</p>
<p><img style="margin:0;" src="https://lh3.googleusercontent.com/-9g_wQU1bMPA/TmVqg_aW1CI/AAAAAAAADJc/rVob6JAiTn8/s912/2011-09-05_17-33-05_216.jpg" /> </p>
<p>Seeing how far it goes.</p>
<p><img src="https://lh4.googleusercontent.com/-rOYj0-z63k0/TmVqdXl06EI/AAAAAAAADJc/7ymUJv-cnfQ/s1440/2011-09-05_17-33-27_117.jpg" width="903" height="508" /><img src="https://lh6.googleusercontent.com/-aXeQG5nST_Y/TmVrNMOxPMI/AAAAAAAADJc/IdgaKNH6Z6Y/s1440/2011-09-05_17-36-29_617.jpg" width="916" height="515" /> </p>
<p>&#160;</p>
<p>I added the home switch, teach switch as the spot light toggle and the cursor pads to move the head. the down button is mapped to RX on the arduino mega so I cheated and used FAST button, we&#8217;ll remill a new board <strike>tonight</strike> with a different layout</p>
<p><object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6119024732&amp;photo_secret=a261efc053&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6119024732&amp;photo_secret=a261efc053&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>We&#8217;re pretty close to getting the full functionality of what we had before with the factory software. Just tool changer positions etc, which is all just finding the spots.</p>
<p>The speed of the machine has been pedestrian so far, so looking at the original specs the pulses are ramped (since physics) and it moves much faster. So next lets try to match that.</p>
<p>Scope/LabView looks like this for the original.</p>
<p><img src="http://farm7.static.flickr.com/6061/6118906787_584ee0ff83_o.png" width="888" height="500" /> </p>
<p><img src="http://farm7.static.flickr.com/6068/6118616277_5787222a58_b.jpg" width="896" height="672" /> </p>
<p>&#160;</p>
<p>The X and Y&#8217;s have different stepper controllers, so it has different max speeds. The idea is now to add ramps to the move functions, i threw together a quick ramp into the limit finder test code, of course this means it has a nasty bump as it stops for the limiter. Once we&#8217;ve got a good speed going, the new gotoxy() function will do a /~~~~~\ ramp, slow to fast to slow.</p>
<p>&#160;</p>
<p><strong>Various speed tests</strong></p>
<p> <object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6119463172&amp;photo_secret=5ae4f43aa7&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6119463172&amp;photo_secret=5ae4f43aa7&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6119467612&amp;photo_secret=f58bce3d2d&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6119467612&amp;photo_secret=f58bce3d2d&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>Goes wrong! We can play a mean mario with this</p>
<p>&#160;<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6118928057&amp;photo_secret=77bc74ae55&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6118928057&amp;photo_secret=77bc74ae55&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object></p>
<p>Yeah! we’ve got a decent speed now. Its hitting the limiter rather than slowing down as it should. The arduino starts off ramping up but since its looking for the limiter it bangs to a&#160; stop, we&#8217;re going to calculate the number of pulses needed to get to just before the limits. That way the machine knows how far it can go, even though during most of its working life it’ll never go to the limits.<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=6118933425&amp;photo_secret=43fed22e72&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=6118933425&amp;photo_secret=43fed22e72&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object></p>
<p>&#160;</p>
<p>[<strong>Null Space Labs</strong>] like most hackerspaces is very srs bizness indeed.</p>
<p><img style="margin:0;" src="http://farm7.static.flickr.com/6081/6118575923_3ce4c09faf_z.jpg" /> </p>
<p>&#160;</p>
<p>So next I wrote a piece of test code that moves each of the axis slowly, limit to limit for&#160; a few passes the Y result was this :-   </p>
<p>Found Y+ limit = 4202     <br />Found Y- limit = 10597     <br />Found Y+ limit = 10597     <br />Found Y+ limit = 0 (oddity!)     <br />Found Y- limit = 10597     <br />Found Y+ limit = 10597     <br />Found Y- limit = 10597     <br />Found Y+ limit = 10597     </p>
<p>At faster speeds in the X axis, it deviates but interestingly settles after a few :-   </p>
<p>Found x left limit = 7433     <br />Found X right limit = 7447     <br />Found x left limit = 7276     <br />Found X right limit = 7446     <br />Found x left limit = 7266     <br />Found X right limit = 7446     <br />Found x left limit = 7266     <br />Found X right limit = 7446     <br />Found x left limit = 7266     <br />Found X right limit = 7446     <br />Found x left limit = 7266     <br />Found X right limit = 7446     <br />Found x left limit = 7266     <br />Found X right limit = 7446 </p>
<p>Running the X at a slower speed gives us this :-</p>
<p>Found X right limit = 7432    <br />Found x left limit = 7432     <br />Found X right limit = 7432     <br />Found x left limit = 7432     <br />Found X right limit = 7432     <br />Found x left limit = 7432     <br />Found X right limit = 7432 </p>
<p>Which is great, since as it should be its very consistent.</p>
<p>Our ruler based figurin&#8217; from before gave us the following info :-    </p>
<p>500 pulses = 25mm    <br />100 pulses = 5mm </p>
<p>So using that info from above we get    </p>
<p>431 pulses X axis (left to right limit to limit) = 370mm     <br />10597 pulses for the Y axis(limit to limit ) = 529.85mm </p>
<p>This is good since it means our speed is workable, and we can now write a function that can start off slow, speed up and slow down, as the machine knows how many pulses it can do before hitting a limit, but we first have to calculate the distance from home to limit for each X and Y axis.&#160; Though most of the time the machine will not be attempting to get to the limit.</p>
<p>The machines minimum step size is .05mm or 1.9mil’s but we are going to improve to .025mm or<strong> </strong>0.984251969 mil! Which is 0.000984251969 inches.</p>
<p>So now we have converted it to double the resolution of the original equipment we get</p>
<p>Found x left limit = 14867   <br />Found X right limit = 14864    <br />Found x left limit = 14863    <br />Found X right limit = 14863</p>
<p>Found Y- limit = 21174   <br />Found Y+ limit = 21173    <br />Found Y- limit = 21172    <br />Found Y+ limit = 21172    <br />Found Y- limit = 21172    <br />Found Y+ limit = 21172    <br />Found Y- limit = 21173    </p>
<p>It’s now 1000 steps per 25mm or 1 step is 0.025mm!</p>
<p>Awwh yeah!!! Our machine is now able to do smaller parts and greater resolution&#160; than the original!   </p>
<p>So far for this post, it is about 11:00PM west coast time and its been a busy few days, we’ve put about 6 nights work into this and progress has been pretty good. We’ve saved ourselves a lot of money, since a machine that’s not got as good specs would cost us nearly 20K. The machines minimum step size was .05mm or 1.9mil’s but we have improved it to .025mm or<strong>&#160;</strong>0.984251969 mil! Which is 0.000984251969 inches..</p>
<p><strong>To recap </strong></p>
<p>Built arduino shield   <br />Wrote arduino code    <br />All pneumatics working    <br />Repaired reed switch    <br />Fixed all the broken mechanicals in the head.    <br />All input switches working on the panel (except down as it was wired to RX oops)    <br />Limit switches working    <br />Home sensor working, home written    <br />Figured out how to ramp up and down the speeds to get the the machine moving quickly    <br />Automatic Tool Changer all works    <br />Head down, head up    <br />Vacuum on and off    <br />Teach light repaired and working, controllable    <br />Rotation and centering arms working    <br />Reed sensor on head up    <br />Verified our code and board homes the machine to the exact place the original did.    <br />Calculated travel pulse speed and size of board, machine can gotoxy without a problem    <br />Doubled the resolution!    </p>
<p></p>
<p>We’ve still got to replace all the hoses as they’re really in bad shape but that’s easy. The next step is software to do the pick and placing, that’s easy too. I’ve already written a gui and added opencv.</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charliex2.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charliex2.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charliex2.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charliex2.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charliex2.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charliex2.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charliex2.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charliex2.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charliex2.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charliex2.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charliex2.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charliex2.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charliex2.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charliex2.wordpress.com/928/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=928&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://charliex2.wordpress.com/2011/09/05/pick-and-place-rebuild-part-two-the-simplification/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f95e755c58bbd8b321047785c1ae0f42?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charliex</media:title>
		</media:content>

		<media:content url="https://lh4.googleusercontent.com/-WxFlA8jGrlo/TmGyJkAYn3I/AAAAAAAADIM/hl2XazAjlgk/s912/2011-09-02_21-50-17_362.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-eLcrr-dC9O0/TmGyiP6_UbI/AAAAAAAADBE/JdnLC1cXsR4/s288/2011-09-02_21-50-26_59.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/--tyDKXlCEzo/TmGyMyj1PgI/AAAAAAAADBE/oAIRgXwR4HM/s1440/2011-09-02_21-50-11_772.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-OrnU7WNkgk8/TmGyZUFOZiI/AAAAAAAADBE/s9FMg3wpams/s1440/2011-09-02_21-50-43_104.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-VCR-WoULTBQ/TmHMX1uaE9I/AAAAAAAADIM/qQaAuClIRV8/s1440/2011-09-02_23-42-07_999.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-08crAZ66O7M/TmHMll_Ej8I/AAAAAAAADIM/TpIJ-5UfHek/s1440/2011-09-02_23-43-10_902.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-L7CPot_FhBY/TmHZPb7IYOI/AAAAAAAADIM/JN4lnQHgn5E/s1440/2011-09-03_00-37-00_737.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-YhR0dhexvT0/TmHMxulcdKI/AAAAAAAADIM/VqiE59M6dZg/s1440/2011-09-02_23-43-52_642.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-teUgMrJFo14/TmLm30BiNEI/AAAAAAAADII/Hl0V1Lsqyi0/s1440/2011-09-03_19-47-05_538.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-BI7hedXmIcY/TmLm_OwynzI/AAAAAAAADII/mNrnDMO8wnc/s1440/2011-09-03_19-47-20_771.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-iHAsA0O_iL0/TmLnUekTUTI/AAAAAAAADII/N_iG37yupcY/s1440/2011-09-03_19-49-27_641.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-mpXw8HeaJFU/TmMlRDqc27I/AAAAAAAADII/uj6faoT6img/s912/2011-09-04_00-13-38_884.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-_SEeSEzSbzo/TmMlUrDe5TI/AAAAAAAADII/C0uJal2ZLio/s1440/2011-09-04_00-13-43_935.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-lrTe8j7g-TA/TmM_54m-Q7I/AAAAAAAADII/IVPRystxUPY/s1440/2011-09-04_02-06-47_586.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-e7ApNiL3Xqc/TmM_sZ1yrTI/AAAAAAAADII/9sLpRWlRV54/s1440/2011-09-04_02-06-28_55.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/--DIEdc9tOAs/TmM_vxSfqaI/AAAAAAAADII/6AXDQ6Lh4kc/s912/2011-09-04_02-06-37_135.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-V5d4hPSDrh8/TmM_yk-_PDI/AAAAAAAADII/u-LoaL-MgWA/s1440/2011-09-04_02-06-56_783.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-wroSb-X3N-Q/TmVg68Qoc_I/AAAAAAAADJc/mhwYtZrrdZk/s912/2011-09-05_16-52-44_293.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-wRJjYl5bGDA/TmVhzaAvKsI/AAAAAAAADJc/1ZqBPF63XxY/s912/2011-09-05_16-55-01_959.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-9g_wQU1bMPA/TmVqg_aW1CI/AAAAAAAADJc/rVob6JAiTn8/s912/2011-09-05_17-33-05_216.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-rOYj0-z63k0/TmVqdXl06EI/AAAAAAAADJc/7ymUJv-cnfQ/s1440/2011-09-05_17-33-27_117.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-aXeQG5nST_Y/TmVrNMOxPMI/AAAAAAAADJc/IdgaKNH6Z6Y/s1440/2011-09-05_17-36-29_617.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6061/6118906787_584ee0ff83_o.png" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6068/6118616277_5787222a58_b.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6081/6118575923_3ce4c09faf_z.jpg" medium="image" />
	</item>
		<item>
		<title>Juki 360 rebuild at [Null Space Labs]</title>
		<link>http://charliex2.wordpress.com/2011/08/31/juki-360-rebuild-at-null-space-labs/</link>
		<comments>http://charliex2.wordpress.com/2011/08/31/juki-360-rebuild-at-null-space-labs/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 18:29:04 +0000</pubDate>
		<dc:creator>charliex</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[360]]></category>
		<category><![CDATA[460]]></category>
		<category><![CDATA[juki]]></category>
		<category><![CDATA[pick and place]]></category>
		<category><![CDATA[zevatech]]></category>

		<guid isPermaLink="false">https://charliex2.wordpress.com/2011/08/31/juki-360-rebuild-at-null-space-labs/</guid>
		<description><![CDATA[&#160; This is log of the current work we’re doing at NSL http://032.la Rather than hand build all the badges for our&#160; socal security conference layerOne again, http://www.layerone.org/ we’ve gone to a pick and place machine. Gleep found us a Juki(Zevatech) Placemat 360 (that seems to&#160; have been upgraded to a 460 ) pick and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=891&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>This is log of the current work we’re doing at NSL <a href="http://032.la">http://032.la</a></p>
<p>Rather than hand build all the badges for our&#160; socal security conference layerOne again, <a href="http://www.layerone.org/">http://www.layerone.org/</a> we’ve gone to a pick and place machine.</p>
<p>Gleep found us a Juki(Zevatech) Placemat 360 (that seems to&#160; have been upgraded to a 460 ) pick and place machine. It was sold as ‘working’, the sellers definition was, if I’m completely honest a stretch (outright lie).</p>
<p>This is actually our second pick and place machine, we don’t mention the other one <img style="border-style:none;" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://charliex2.files.wordpress.com/2011/09/wlemoticon-smile.png?w=632" /></p>
<p>We’re also interested in acquiring a Zevatech/Juki 460 if you have one for a decent price.</p>
<p><img src="http://farm7.static.flickr.com/6072/6074721681_1158579e1b_z.jpg" /></p>
<p>Basically he demo’d everything that didn’t need a compressor, that all worked. Of course everything that needed a compressor as we found out later, didn’t work! Still $1,200 isn’t bad.</p>
<p>I used my supersilent 20a as a temporary compressor, it only has a small&#160; &lt; 1 gallon tank, but its actually quiet, we used the 8 gallon compressor at null space which is deafening, so i found a 3 gallon temporary one at harbour freight for cheap in their recent sale. its too small though, so we’ll need shop air at some point. The supersilent was causing the pickup head to fail to work after a few passes, so this caused as a few false starts, the machine needs a solid air supply to function , even in testing.</p>
<p><img src="https://lh3.googleusercontent.com/-lKmlhGpfWPE/Tl7reDg-BrI/AAAAAAAAC_M/6vYjvPny0vo/s912/2011-08-31_19-17-19_578.jpg" /></p>
<p>&#160;</p>
<p>The existing filter and pressure regulator was a mess, so off to home depot to come back with the best we could find there, which isn’t that great.</p>
<p><img src="https://lh4.googleusercontent.com/-Mk65s6hMRFc/Tl7rXeQiqSI/AAAAAAAAC_M/PcHmrPUx8p4/s576/2011-08-31_19-17-37_566.jpg" /></p>
<p>&#160;</p>
<p>This is the old one, remember sold as working. No filter, and all these bits were just lying around inside it.</p>
<p><img src="https://lh6.googleusercontent.com/-2r7vhz4eBUQ/Tl7rra9Tr2I/AAAAAAAAC_M/PAzZESR9ZOs/s576/2011-08-31_19-18-21_747.jpg" /></p>
<p>The machine itself is based on the PC-8801 Z80 4mhz CP/M which I recognised straight away as my old job had me doing game conversions in Japan for the PC-9801.</p>
<p>&#160;</p>
<p>Dusty</p>
<p><img src="http://farm7.static.flickr.com/6181/6093646520_c11118407a.jpg" /></p>
<p><img src="http://farm7.static.flickr.com/6065/6093108741_5669d198fe_z.jpg" /></p>
<p>The whole machine works pretty much on the principal of that if the CNC software said do this, do that, that it executed perfectly. Only limit, head, home and the tool changer have checks.</p>
<p>We fired it up , Krs and Gleep got it picking and placing a few resistors (though they somehow managed to get the tape removal part completely wrong and it was throwing resistors all over the place. Then mmca got it placing QFP parts correctly. The lamp spot system was off, the 90&#8242;o rotation was off, the tubes were old and cracking. Compressor filter was non existent and rusted out. We’ve also discovered the whole thing is covered in parts from the previous owners, we’ve scored a few 100 0805s and some IC’s.</p>
<p>&#160;</p>
<p>Free Parts!</p>
<p><img src="https://lh5.googleusercontent.com/-mc1vlkmJ3sc/Tl7rTieAFKI/AAAAAAAAC_M/cX4WnCHw7U4/s576/2011-08-31_19-16-48_877.jpg" /></p>
<p>The reed sensor was the first thing we found that was broken, a quick trip to eBay and a few days later we had replacements. Luckily Juki is in heavy use, and they use a lot of off the shelf components. Apparently the later 5xx machines do switch to a proprietary drive system.</p>
<p>&#160;</p>
<p>The reed switch detects if the head is up or down. Its one of the few sensors in this machine. The bend has caused the wiring to break down internally over the years. so the machine gets confused about being up or down, and the software doesn’t cope well with that, it basically needs a full reset afterwards.</p>
<p><img src="http://farm7.static.flickr.com/6070/6079472423_182d5ff5ed_z.jpg" /></p>
<p>&#160;</p>
<p>The new sensors , $9 from eBay.</p>
<p><img src="http://farm7.static.flickr.com/6193/6083674341_6acfd284c4_z.jpg" /></p>
<p><img src="https://lh3.googleusercontent.com/-QFyzdAef68k/Tl7q4yV8uNI/AAAAAAAAC_M/XlVBiSL29q4/s912/2011-08-31_19-15-38_496.jpg" /></p>
<p>I also bought a CPLD based <a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&amp;item=170675824789&amp;ssPageName=ADME:L:OC:US:1123#ht_7055wt_1396" target="_blank">floppy emulator</a> from Poland, it hasn’t arrived yet and we’ll probably be done with the new system before it gets here, and we’ve discovered the speed stays the same but floppy drives won’t last so the SD is still a good replacement.</p>
<p><strong>Placing QFPS (AT90CAN128)</strong></p>
<p>Fashioned a quick tray for the IC placements. We use these great little boxes, also from eBay, for holding SMD components, they double up as handy platforms too.</p>
<p><img src="http://farm7.static.flickr.com/6085/6093107097_e1c8f36ecd.jpg" /></p>
<p>&#160;</p>
<p><strong>Feeders</strong></p>
<p>The feeder is controlled by the head, it moves over the spring loaded pin and pushes it down, this releases air and the notched wheel on the right moves the component reel tape one step, at the same time the protective covering tape is peeled away, allowing the machine to come back and pick the part up. <em>This time, they’re correctly threaded, previously the protective tape was wrapped around the pin in the middle.</em></p>
<p><img src="http://farm7.static.flickr.com/6208/6100412175_d99af0f94c_z.jpg" /></p>
<p>Side view of feeders, you can see the reel of components on the left, and the pneumatics underneath. Its important to choose a pick and place with a widely available&#160; range of cheap feeders, all too often people buy a cheap pick and place then find out it has none, and it’ll cost $1000’s to get them, if at all.</p>
<p><strong><img src="http://farm7.static.flickr.com/6063/6100960722_e2bdccb907_z.jpg" /></strong></p>
<p><strong>Feeder with pneumatic assembly</strong></p>
<p><strong><img src="http://farm7.static.flickr.com/6197/6100960134_341e5f97a5_z.jpg" /></strong></p>
<p><strong>The expansion board </strong></p>
<p>This is the board inside the machine, it is a couple of <a href="http://en.wikipedia.org/wiki/Intel_8255" target="_blank">8255s</a> which are the defacto standard for PC parallel IO, almost every PC has had one or more of these, they’ve since moved into the ASIC’s but the principle is the same. It memory maps each of the input/outputs of the machine so that host PC can see them. I pulled off the floppy image, copied the files to my PC and reverse engineered the controller code with <a href="http://www.hex-rays.com/idapro/" target="_blank">IDA</a>.</p>
<p><img src="http://farm7.static.flickr.com/6075/6092074100_7e20a00152.jpg" /></p>
<p>&#160;</p>
<p>I found an IMG of the floppy online, this was <a href="http://en.wikipedia.org/wiki/Modified_Frequency_Modulation" target="_blank">MFM</a> encoded . So i converted that to a raw binary file, and then used <a href="http://www.cpm8680.com/cpmtools/index.htm#windows" target="_blank">cpmtools</a> to copy the files from it. I was hoping to find some of the saved files so we could reverse the format and write a quick tool to do the placement. Once the files were copied off i tried a few of the different <a href="http://en.wikipedia.org/wiki/NEC_PC-8801" target="_blank">PC-8801</a> emulators, <a href="http://www.zophar.net/pc8801/m88.html" target="_blank">M88</a> etc, but had no joy in getting it running. So finally I just pulled apart the <a href="http://en.wikipedia.org/wiki/CP/M" target="_blank">CP/M</a> <a href="http://www.cpm.z80.de/manuals/cpm3-pgr.pdf" target="_blank">COM</a> files in <a href="http://www.hex-rays.com/idapro/" target="_blank">IDA</a> and see what we could find.</p>
<p>The teaching process is tedious, so reversing the format would have been worthwhile.</p>
<p><strong>Interface board</strong></p>
<p>This board takes the IO from the PC, buffers <a href="http://www.futurlec.com/74LS/74LS240.shtml" target="_blank">74LS240</a> it and uses <a href="http://en.wikipedia.org/wiki/Darlington_transistor" target="_blank">power darlingtons</a> FT5723M to switch the 24V signals for the pneumatics.&#160; As well as read the various sensors and the + / – for the motors. The motors and stepper drivers are off the shelf, but very nice, we even have newer versions of the motors and controllers at NSL.I’ve removed the bottom connector to make it easier to take pictures.</p>
<p><img src="http://farm7.static.flickr.com/6207/6091473621_1fba232c3f.jpg" /></p>
<p>The grey cable that has been added later is the automatic tool changer, this is soldered directly in the spare connections , 5V and 24V VDC. The 5V powers the small adapter board in the ATC and the 24V is for the pneumatic switches.</p>
<p>The remaining signals are multiplexed IO that are demuxed by a 74Ls138 on the ATC board, which deviates from the way the rest of the board works as the rest are all controlled by the darlingtons directly.</p>
<p>Each function of the machine is basically &lt;control&gt; – &lt;buffer&gt; &#8212; &lt;pc&gt; – &lt;memory map&gt;</p>
<p>So if you want the head to go down, you flip a bit in the PC’s memory. Its all digital IO, nothing fancy at all. The only extra part is the 5V TTL to 24VDC for the pneumatic switches.</p>
<p><strong>Stepper drivers and power supplies.</strong></p>
<p>The stepper drivers are on the bottom, the other one is to the right under the tray. the two power supplies are just visible at the top right, one is a 5V the other a 24V. The power filter is in the lower left.</p>
<p><img src="http://farm7.static.flickr.com/6209/6093111527_a28abbd59c.jpg" /></p>
<p><img src="http://farm7.static.flickr.com/6207/6100412663_41f6797070_z.jpg" /></p>
<p>Power supply</p>
<p><img src="https://lh4.googleusercontent.com/-aMeODTZ0H0k/Tlsi8bTv-eI/AAAAAAAAC64/EyiKTQCqGtU/s1440/2011-08-28_22-18-28_422.jpg" width="643" height="362" /></p>
<p>Stepper motor driver</p>
<p><img src="https://lh3.googleusercontent.com/-oFAEeMbJSI0/Tlshhum5bXI/AAAAAAAAC6w/g-53TKAC69w/s1600/2011-08-28_22-18-01_872.jpg" width="753" height="424" /></p>
<p><strong>XY gantry</strong></p>
<p>Since the machine was in bad need of service, we stripped it down, here the XY belts are visible. The top side has the the driver motor and the bottom side gets its power from a rod under the bed on the right side, so both belts are moved in unison. The ATC is in the top right and the frame in the middle is what is left of the PCB holder.</p>
<p><img src="http://farm7.static.flickr.com/6079/6093112847_ff908ea09b.jpg" /></p>
<p>&#160;</p>
<p><strong>Tearing it down.</strong></p>
<p><img src="http://farm7.static.flickr.com/6079/6095904266_4b6b6a9618_z.jpg" /></p>
<p><strong>The head</strong></p>
<p>mmca stripped the head down. here it is removed from the gantry. mainly because there is a piece of string visible , and we can’t figure out what its for.</p>
<p><img src="http://farm7.static.flickr.com/6081/6095899782_8dc56bf713.jpg" /></p>
<p>&#160;</p>
<p>Shims, we don’t think these are factory shims.</p>
<p><img src="http://farm7.static.flickr.com/6198/6095900828_5918fe61c6.jpg" /></p>
<p>The strange piece of string inside the head… What could it be for?</p>
<p><img src="http://farm7.static.flickr.com/6089/6095369249_bc04b5cef4_z.jpg" /></p>
<p>Bottom view of the tool pickup and the 90’o rotation.</p>
<p><img src="http://farm7.static.flickr.com/6187/6095361015_e98ed117a9_z.jpg" /></p>
<p>&#160;</p>
<p><img src="http://farm7.static.flickr.com/6195/6095903954_8f0fec8b9d_z.jpg" /></p>
<p>These 4 arms are moved towards the part and clamp it gently, this straightens the part for placement, it can also rotate the part by 90’o ( which sucks for us because i always like to put parts at 45’o)</p>
<p><img src="http://farm7.static.flickr.com/6204/6095904190_5ebd9373cd_z.jpg" /></p>
<p>The <strike>laser</strike>, focused lamp (this machine continues to surprise us ) which is used to position the head in teaching mode.</p>
<p><img src="http://farm7.static.flickr.com/6065/6095365397_1fd5b7893f_z.jpg" /></p>
<p>We’re removing the lamp and replacing it with machine vision, so some measurements are taken.</p>
<p><img src="http://farm7.static.flickr.com/6086/6095367303_8432d3ebcd_z.jpg" /></p>
<p>&#160;</p>
<p>The hoses are removed and marked with a letter , the corresponding connector is also marked with the same letter.</p>
<p><img src="http://farm7.static.flickr.com/6061/6095368285_f9772ceaf0_z.jpg" /></p>
<p>This is how the previous owners repaired the 90’o rotation arms….. so that explains the string. this was removed and repaired correctly. The 90’o does just that, it rotates a part by 90’o that&#8217;s all this machine can do, so we’re going to change that to it can do arbitrary rotations.</p>
<p><img src="http://farm7.static.flickr.com/6075/6095936466_3c5bfcd225_z.jpg" /></p>
<p>&#160;</p>
<p>This hose had cracked, a few others did too. I found a few temporary replacements at the auto parts store 4mm ID, 8mm OD&#160; <a href="http://www.oreillyauto.com/site/c/detail/PML0/7081502.oap?ck=Search_fuel+hose_N1468_-1_-1&amp;keyword=fuel+hose&amp;pt=N1468&amp;ppt=C0279" target="_blank">fuel priming line</a>.&#160; The plan is to replace all the hose.</p>
<p><img src="https://lh5.googleusercontent.com/-LzU-n95caP8/Tl7rjOYqE7I/AAAAAAAAC_M/3gDrV_L_x3A/s912/2011-08-31_19-17-09_546.jpg" /></p>
<p><img src="http://farm7.static.flickr.com/6066/6084717211_4da17b61e9_z.jpg" /></p>
<p>Stripped machine screw in the head. Replace from <a href="http://www.grainger.com/Grainger/METRIC-BLUE-Socket-Head-Cap-Screw-5AHK7" target="_blank">grainger</a>, M3x8mm 0.4mm thread 5.5mm head size.</p>
<p><img src="https://lh4.googleusercontent.com/-qB_YBdGs81c/Tlxw6dIWJOI/AAAAAAAAC74/JJlq0fPfSKU/s1600/2011-08-29_22-09-49_932.jpg" width="699" height="393" /></p>
<p>And some missing <a href="http://www.grainger.com/Grainger/Socket-Set-Screw-6EY76" target="_blank">set screws</a></p>
<p>Spent some time measuring all the screws and what not. The machine is old enough that it came from proper manuals with circuit diagrams.</p>
<p><img src="https://lh5.googleusercontent.com/-W32U1XkEqlw/TlxtDNRclvI/AAAAAAAAC7I/NX-QXYquZEo/s1600/2011-08-29_21-54-01_625.jpg" width="855" height="481" /></p>
<p>We’re replacing the IO board, the plan is to throw in a TI <a href="http://focus.ti.com/mcu/docs/mculuminaryfamilynode.tsp?sectionId=95&amp;tabId=2597&amp;familyId=1756&amp;docCategoryId=10&amp;viewType=mostrecent" target="_blank">Stellaris</a> ARM <a href="http://www.ti.com/product/lm3s9b96" target="_blank">lm3s9b96</a> chip instead, (TI were good enough to send us a bunch a while ago, thanks TI!)</p>
<p>This board is a dumb board, it just marshals the I/O and does the switching of the 24VDC with <a href="http://en.wikipedia.org/wiki/Darlington_transistor" target="_blank">darlington’s</a>.</p>
<p>Here we’re removing and verifying the connector sizes and function&#160; (the manual had some errors) so its good to do that. It also gives us good insight into what&#8217;s going on.</p>
<p><img src="https://lh6.googleusercontent.com/--cD3eLKA3Co/TlxuN1BaOTI/AAAAAAAAC7Y/1Vw_vIZzUv8/2011-08-29_21-55-33_161.jpg" width="835" height="476" /></p>
<p>Checking how the machine works with my trusty fluke.</p>
<p><img src="https://lh5.googleusercontent.com/--wkYagI0ps0/Tl3dWoR5vVI/AAAAAAAAC9Y/eO4IWioumJw/s912/2011-08-30_23-58-49_229.jpg" /></p>
<p>&#160;</p>
<p>I threw together the connector layout in eagle and printed it out to verify it,&#160; <em>early revision.</em></p>
<p><img src="https://lh3.googleusercontent.com/-qQs4CfmOAHA/TlxuLu70McI/AAAAAAAAC7U/ijqbVTdG650/2011-08-29_21-55-37_977.jpg" width="886" height="505" /></p>
<p>Measure the hole size and distance. Our board is exactly the same size so its a drop in replacement, we’ll just lose the two larger connectors and change it to USB.</p>
<p><img src="https://lh4.googleusercontent.com/-2IRCXiqlyqo/TlxuVDSjWlI/AAAAAAAAC7w/jIsHibuspHs/s912/2011-08-29_21-56-52_492.jpg" /></p>
<p>Here we were figuring out how the ATC worked, at first it was though to drive it directly , but there weren’t enough wires. So its 24V, 5V and control signals, the small interface board at the front is a&#160; <a href="http://www.ti.com/lit/ds/symlink/sn74ls138.pdf" target="_blank">74LS138</a> decoder/demultiplexer with a few buffers and more darlington drivers , it switches the 24V on and off based on the 4 control signals coming in.</p>
<p><strong>Automatic Tool Changer</strong></p>
<p>The tool wanted is lifted up when the machine wants to change it, on the right are the pneumatic switches that are controlled by a 24V signal.</p>
<p><img src="http://farm7.static.flickr.com/6197/6100415547_9e53fd97ab_z.jpg" /></p>
<p>&#160;</p>
<p><img src="https://lh6.googleusercontent.com/-MJLmBTLAiMM/Tl7rPg5N9BI/AAAAAAAAC_M/4HAaccow278/s912/2011-08-31_19-16-57_440.jpg" /></p>
<p><img src="https://lh3.googleusercontent.com/-6ZAoTnAf4wA/Tl7rCX28yuI/AAAAAAAAC_M/1R_nzCfrVzo/s576/2011-08-31_19-15-59_787.jpg" /></p>
<p><img src="https://lh5.googleusercontent.com/-GugqLgr1ifc/Tl3dRG5f2xI/AAAAAAAAC9U/eCrKKlWO1Ic/s912/2011-08-30_23-58-54_873.jpg" /></p>
<p>&#160;</p>
<p>We’re using Power MOSFETs to control the 24V instead, a 6 pin ROHM <a href="http://www.rohm.com/products/databook/tr/pdf/us6k1.pdf" target="_blank">US6K1DKR</a> in a TUMT6 package ( time to create a new device in eagle again !) I ordered 100 from Digikey yesterday and should have the board layout finished today. Then we can mill out a test PCB and see how it works. (parts arrived a few minutes ago!)</p>
<p>You might be amazed, <em>I was</em> , about just how simple this machine is, you could run the whole thing from a set of on/off switches, albeit very slowly. But that is great for us though as it makes it very easy to replace the PC software.</p>
<p>The next big thing is going to be testing the new power <a href="http://en.wikipedia.org/wiki/MOSFET" target="_blank">MOSFET</a> and building the new PCB.&#160; The chips<strike> will be here today</strike> have arrived.</p>
<p><img src="https://lh5.googleusercontent.com/-pwOI_kLlIkg/Tl63wSjwvcI/AAAAAAAAC_M/4oiyMZvKLWM/s912/2011-08-31_15-36-10_382.jpg" /></p>
<p>So new eagle package</p>
<p><img src="https://lh6.googleusercontent.com/-aFZv0-Bq9x4/Tl7qTvTPEQI/AAAAAAAAC_M/owl8DVGFSJs/s912/2011-08-31_19-13-06_528.jpg" /></p>
<blockquote><p><img src="https://lh5.googleusercontent.com/-dn8wXd9zZvY/Tl8djozbqgI/AAAAAAAAC_s/0M8thGLwCME/s576/2011-08-31_22-51-42_170.jpg" /></p>
</blockquote>
<p>Cut out a few to test.</p>
<p><img src="https://lh6.googleusercontent.com/-cYlN3cr963A/Tl8dseNkqhI/AAAAAAAAC_s/lVsLC0rm5SY/s912/2011-08-31_22-51-58_913.jpg" width="865" height="488" /></p>
<p>&#160;</p>
<p><img src="https://lh6.googleusercontent.com/-glyRK6WcDfk/Tl8d4iHvVcI/AAAAAAAAC_s/EPphaXsHy5s/s912/2011-08-31_22-53-06_445.jpg" width="874" height="493" /></p>
<p>&#160;</p>
<p><img src="http://farm7.static.flickr.com/6072/6101974691_a4f0e36772_o.jpg" /></p>
<p>Apparently I goofed on the measurements, I did change it around a tad after the first revision. Teeny part.</p>
<p>Soldered it anyway</p>
<p><img src="http://farm7.static.flickr.com/6192/6102048977_a2b5c5e6b3.jpg" /></p>
<p>&#160;</p>
<p>So the next step is adding cameras etc.</p>
<p>&#160;</p>
<p>mmca explaining the new part to be cnc’d out for the camera</p>
<p><img src="https://lh6.googleusercontent.com/-aZPIkiQOskQ/Tl7qd1v8uQI/AAAAAAAAC_M/6z-4tQp27Xk/s576/2011-08-31_19-13-44_828.jpg" /></p>
<p>&#160;</p>
<p>mockup of the mount</p>
<p><img src="http://farm7.static.flickr.com/6204/6102550436_511efb2732.jpg" /></p>
<p>&#160;</p>
<p><img src="http://farm7.static.flickr.com/6072/6102011371_e96b005f01.jpg" /></p>
<p>&#160;</p>
<p>&#160;</p>
<p>The head has to be recalibrated so the bottom of the tool is 62.5mm from the table, with a .1mm accuracy, so we as usual went overboard and used grade B gauge blocks.</p>
<p>69.5mm to .00005 inches accurate.</p>
<p>&#160;</p>
<p><img src="https://lh6.googleusercontent.com/-OSCbbkQdv5M/Tl7qkywcwFI/AAAAAAAAC_M/ytKb0tG_4fk/s576/2011-08-31_19-14-19_671.jpg" /></p>
<p>Gauge blocks are fascinating, they stick together like magnets if you put them together by making surer there is no air between them, but if you just stick them together they won’t. Super flat. these aren’t grade a or better, but they’re nice. mmca has the coolest stuff.</p>
<p><img src="https://lh5.googleusercontent.com/-N6xE3eq8wmg/Tl7qsvIRibI/AAAAAAAAC_M/ncUxf_2Ewrk/s912/2011-08-31_19-14-43_63.jpg" /></p>
<p>&#160;</p>
<p>Starting to rebuild it</p>
<p><img src="https://lh3.googleusercontent.com/-_4vJrUsKzSQ/Tl7q8po5TbI/AAAAAAAAC_M/UTuuF0VlVqg/s576/2011-08-31_19-15-48_486.jpg" /></p>
<p>&#160;</p>
<p>&#160;</p>
<p><strong>Machine vision tests</strong></p>
<p>This is work in progress, testing RoboRealm/<a href="http://opencv.willowgarage.com/wiki/" target="_blank">OpenCV</a> and teaching it components, it works well!</p>
<p><img src="http://farm7.static.flickr.com/6083/6094687294_bfe1eaab36_z.jpg" /></p>
<p>&#160;</p>
<p>Using a <a href="http://pandaboard.org/" target="_blank">panda board</a> a HP HD Webcam for testing the vision.</p>
<p><img src="https://lh4.googleusercontent.com/-7DiaYAP2K_o/Tl0nz4YT0iI/AAAAAAAAC9A/NINW1_YGklY/s912/2011-08-30_11-11-05_765.jpg" width="295" height="524" /></p>
<p>&#160;</p>
<p><strong>Software</strong></p>
<p>Playing around with layouts for a quick test tool. two grey areas are for the cameras.</p>
<p><img src="http://i.imgur.com/8Kfvn.png" width="519" height="309" /></p>
<p>&#160;</p>
<p>Well that is it so far, my Motorola Atrix decided that the fingerprint reader would become burning hot to the touch. So I pulled it apart and removed it, but somehow managed to make it do a full hard reset (or a docwho76 as we call it ) and it deleted a bunch of my pictures. google+ had failed to sync them. But we’ll keep documenting the project, </p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charliex2.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charliex2.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charliex2.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charliex2.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charliex2.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charliex2.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charliex2.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charliex2.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charliex2.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charliex2.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charliex2.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charliex2.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charliex2.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charliex2.wordpress.com/891/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=891&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://charliex2.wordpress.com/2011/08/31/juki-360-rebuild-at-null-space-labs/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f95e755c58bbd8b321047785c1ae0f42?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charliex</media:title>
		</media:content>

		<media:content url="http://charliex2.files.wordpress.com/2011/09/wlemoticon-smile.png" medium="image">
			<media:title type="html">Smile</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6072/6074721681_1158579e1b_z.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-lKmlhGpfWPE/Tl7reDg-BrI/AAAAAAAAC_M/6vYjvPny0vo/s912/2011-08-31_19-17-19_578.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-Mk65s6hMRFc/Tl7rXeQiqSI/AAAAAAAAC_M/PcHmrPUx8p4/s576/2011-08-31_19-17-37_566.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-2r7vhz4eBUQ/Tl7rra9Tr2I/AAAAAAAAC_M/PAzZESR9ZOs/s576/2011-08-31_19-18-21_747.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6181/6093646520_c11118407a.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6065/6093108741_5669d198fe_z.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-mc1vlkmJ3sc/Tl7rTieAFKI/AAAAAAAAC_M/cX4WnCHw7U4/s576/2011-08-31_19-16-48_877.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6070/6079472423_182d5ff5ed_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6193/6083674341_6acfd284c4_z.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-QFyzdAef68k/Tl7q4yV8uNI/AAAAAAAAC_M/XlVBiSL29q4/s912/2011-08-31_19-15-38_496.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6085/6093107097_e1c8f36ecd.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6208/6100412175_d99af0f94c_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6063/6100960722_e2bdccb907_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6197/6100960134_341e5f97a5_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6075/6092074100_7e20a00152.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6207/6091473621_1fba232c3f.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6209/6093111527_a28abbd59c.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6207/6100412663_41f6797070_z.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-aMeODTZ0H0k/Tlsi8bTv-eI/AAAAAAAAC64/EyiKTQCqGtU/s1440/2011-08-28_22-18-28_422.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-oFAEeMbJSI0/Tlshhum5bXI/AAAAAAAAC6w/g-53TKAC69w/s1600/2011-08-28_22-18-01_872.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6079/6093112847_ff908ea09b.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6079/6095904266_4b6b6a9618_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6081/6095899782_8dc56bf713.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6198/6095900828_5918fe61c6.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6089/6095369249_bc04b5cef4_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6187/6095361015_e98ed117a9_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6195/6095903954_8f0fec8b9d_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6204/6095904190_5ebd9373cd_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6065/6095365397_1fd5b7893f_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6086/6095367303_8432d3ebcd_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6061/6095368285_f9772ceaf0_z.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6075/6095936466_3c5bfcd225_z.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-LzU-n95caP8/Tl7rjOYqE7I/AAAAAAAAC_M/3gDrV_L_x3A/s912/2011-08-31_19-17-09_546.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6066/6084717211_4da17b61e9_z.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-qB_YBdGs81c/Tlxw6dIWJOI/AAAAAAAAC74/JJlq0fPfSKU/s1600/2011-08-29_22-09-49_932.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-W32U1XkEqlw/TlxtDNRclvI/AAAAAAAAC7I/NX-QXYquZEo/s1600/2011-08-29_21-54-01_625.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/--cD3eLKA3Co/TlxuN1BaOTI/AAAAAAAAC7Y/1Vw_vIZzUv8/2011-08-29_21-55-33_161.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/--wkYagI0ps0/Tl3dWoR5vVI/AAAAAAAAC9Y/eO4IWioumJw/s912/2011-08-30_23-58-49_229.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-qQs4CfmOAHA/TlxuLu70McI/AAAAAAAAC7U/ijqbVTdG650/2011-08-29_21-55-37_977.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-2IRCXiqlyqo/TlxuVDSjWlI/AAAAAAAAC7w/jIsHibuspHs/s912/2011-08-29_21-56-52_492.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6197/6100415547_9e53fd97ab_z.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-MJLmBTLAiMM/Tl7rPg5N9BI/AAAAAAAAC_M/4HAaccow278/s912/2011-08-31_19-16-57_440.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-6ZAoTnAf4wA/Tl7rCX28yuI/AAAAAAAAC_M/1R_nzCfrVzo/s576/2011-08-31_19-15-59_787.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-GugqLgr1ifc/Tl3dRG5f2xI/AAAAAAAAC9U/eCrKKlWO1Ic/s912/2011-08-30_23-58-54_873.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-pwOI_kLlIkg/Tl63wSjwvcI/AAAAAAAAC_M/4oiyMZvKLWM/s912/2011-08-31_15-36-10_382.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-aFZv0-Bq9x4/Tl7qTvTPEQI/AAAAAAAAC_M/owl8DVGFSJs/s912/2011-08-31_19-13-06_528.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-dn8wXd9zZvY/Tl8djozbqgI/AAAAAAAAC_s/0M8thGLwCME/s576/2011-08-31_22-51-42_170.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-cYlN3cr963A/Tl8dseNkqhI/AAAAAAAAC_s/lVsLC0rm5SY/s912/2011-08-31_22-51-58_913.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-glyRK6WcDfk/Tl8d4iHvVcI/AAAAAAAAC_s/EPphaXsHy5s/s912/2011-08-31_22-53-06_445.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6072/6101974691_a4f0e36772_o.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6192/6102048977_a2b5c5e6b3.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-aZPIkiQOskQ/Tl7qd1v8uQI/AAAAAAAAC_M/6z-4tQp27Xk/s576/2011-08-31_19-13-44_828.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6204/6102550436_511efb2732.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6072/6102011371_e96b005f01.jpg" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-OSCbbkQdv5M/Tl7qkywcwFI/AAAAAAAAC_M/ytKb0tG_4fk/s576/2011-08-31_19-14-19_671.jpg" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-N6xE3eq8wmg/Tl7qsvIRibI/AAAAAAAAC_M/ncUxf_2Ewrk/s912/2011-08-31_19-14-43_63.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-_4vJrUsKzSQ/Tl7q8po5TbI/AAAAAAAAC_M/UTuuF0VlVqg/s576/2011-08-31_19-15-48_486.jpg" medium="image" />

		<media:content url="http://farm7.static.flickr.com/6083/6094687294_bfe1eaab36_z.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-7DiaYAP2K_o/Tl0nz4YT0iI/AAAAAAAAC9A/NINW1_YGklY/s912/2011-08-30_11-11-05_765.jpg" medium="image" />

		<media:content url="http://i.imgur.com/8Kfvn.png" medium="image" />
	</item>
		<item>
		<title>Atmel AVR Dragon vs the Kraken</title>
		<link>http://charliex2.wordpress.com/2011/08/22/atmel-avr-dragon-vs-the-kraken/</link>
		<comments>http://charliex2.wordpress.com/2011/08/22/atmel-avr-dragon-vs-the-kraken/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 17:09:40 +0000</pubDate>
		<dc:creator>charliex</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[atmel]]></category>
		<category><![CDATA[attiny]]></category>
		<category><![CDATA[attiny2313]]></category>
		<category><![CDATA[AVR Dragon]]></category>
		<category><![CDATA[icsp]]></category>
		<category><![CDATA[not working]]></category>
		<category><![CDATA[null space labs]]></category>
		<category><![CDATA[usbasp]]></category>

		<guid isPermaLink="false">https://charliex2.wordpress.com/2011/08/22/atmel-avr-dragon-vs-the-kraken/</guid>
		<description><![CDATA[&#160; Yesterday I was rewriting code for Null Space Labs ‘Cylon III’, a blinky toy thing we make and use for people to have soldering practice, it spawned from the EMSL Cylon and then through a few iterations from a simple 9 LED thing to a charlieplexed circle. Cylon I &#160; Cylon II (with an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=884&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Yesterday I was rewriting code for Null Space Labs ‘Cylon III’, a blinky toy thing we make and use for people to have soldering practice, it spawned from the EMSL Cylon and then through a few iterations from a simple 9 LED thing to a charlieplexed circle.</p>
<p><strong>Cylon I</strong></p>
<p>&#160;<a title="Production version of [NSL] Cylon I by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5327863563/"><img alt="Production version of [NSL] Cylon I" src="http://farm6.static.flickr.com/5170/5327863563_4e345db3c8.jpg" width="500" height="471" /></a></p>
<p><strong>Cylon II (with an IR LED to mimic a tv-b-gone)</strong></p>
<p><a title="Cylon=b=gone mode by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5291796515/"><img alt="Cylon=b=gone mode" src="http://farm6.static.flickr.com/5129/5291796515_74cd3176d1.jpg" width="375" height="500" /></a></p>
<p>&#160;</p>
<p><strong>Cylon III</strong></p>
<p><a title="2011-08-21_15-48-14_753.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/6066856257/"><img alt="2011-08-21_15-48-14_753.jpg" src="http://farm7.static.flickr.com/6205/6066856257_480309a7b4.jpg" width="500" height="281" /></a> <a title="Pretty in.... by Null Space Labs, on Flickr" href="http://www.flickr.com/photos/nullspacelabs/5980822602/"><img alt="Pretty in...." src="http://farm7.static.flickr.com/6030/5980822602_35eb25301f.jpg" width="500" height="375" /></a></p>
<p>&#160;</p>
<p>We use the ATTiny2313 which a lot of people complain has no legs ( the MU package ), I think its great but it can be&#160; a challenge especially with the milled versions of the PCB to fix and replace the chip.</p>
<p>Anyway I was playing around with different clock speeds in AVR Studio with the Atmel Dragon. The dragon is a terrible piece of hardware when it doesn’t work right, which is&#160; often. It has a design flaw that causes a couple of chips to blow up regularly, so regularly in fact we keep a stock of the chips at Null Space Labs. My dragon has been repaired three times so far.</p>
<p>Then there is the software itself, the way it interacts with the USB has it disconnect and reconnecting after using the AVR Studio programming interface, sometimes it’ll hang and you’ll hear the USB connect/disconnect cycle until you unplug it ( which increases the chance of the chip blowing up issue&#160; ) and exit AVR Studio 4, which is really annoying especially during debugging.</p>
<p>So I select the &lt;4Mhz option and AVR Studio warns me that I won’t be able to program the chip if i set it this low, I say no and put it back on the internal 4Mhz. However I fail to take into account that CKDIV8 is set ( clock divide by&#160; 8). At this speed the Dragon is having problems reading and flashing the chip, even at 51khz which is the lowest speed. It’ll read the chip id once, or read fuses once, then require me to exit the programming software, and reload it.</p>
<p>So i think, ok reset the fuses since it’ll let me do one operation. But in AVR Studio you have to read the fuses then set them, you can’t set them by hand then program, this uses my one attempt before the Dragon fails to communicate.&#160; It reads the fuses, but then fails to set them.. I try every variant, unplug the dragon, nope, this fails since it looses the USB setup or whatever AVR studio is doing, reset the target board, disconnect the target board. Nope, the only thing that works is exit the programming interface in AVR studio, let it reset the Dragon and back in again, at which point it reads the fuses again and then I can’t do anything with it, since it no longer communicates with the chip.</p>
<p>Anyway at this point I’m thinking its time just to replace the chip, but then I remember about our AVR programmer which is a smaller , simplified version of the USBAsp, we call it the Kraken.</p>
<p><strong>Prototype</strong></p>
<p><a title="2011-08-21_23-40-28_686.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/6068262773/"><img alt="2011-08-21_23-40-28_686.jpg" src="http://farm7.static.flickr.com/6188/6068262773_8e679fa82c.jpg" width="500" height="259" /></a></p>
<p>&#160;</p>
<p><strong>Final version</strong></p>
<p><a title="2011-08-21_23-36-56_442.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/6068229109/"><img alt="2011-08-21_23-36-56_442.jpg" src="http://farm7.static.flickr.com/6073/6068229109_916360b8f0.jpg" width="500" height="186" /></a></p>
<p>&#160;</p>
<p>We only use the ICSP mode and have our own SIL 6 pin programming header. The pogo pin version is much nicer than my hack.</p>
<p><a title="2011-08-21_23-36-51_683.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/6068775710/"><img alt="2011-08-21_23-36-51_683.jpg" src="http://farm7.static.flickr.com/6063/6068775710_cff6bb8708.jpg" width="500" height="281" /></a></p>
<p>&#160;</p>
<p>Prototype version.</p>
<p>&#160;<a title="AVR 2x6 To CX 1x6 by Null Space Labs, on Flickr" href="http://www.flickr.com/photos/nullspacelabs/5633724341/"><img alt="AVR 2x6 To CX 1x6" src="http://farm6.static.flickr.com/5103/5633724341_ca221934bd.jpg" width="500" height="281" /></a></p>
<p>Krs pulls one out of the back and builds it in less than 20 minutes, it’s programmed and ready to go. I&#160; setup AVRDUDE and read the chip id, that works, read it again, still works.. So i try just to set the LFUSE so that the clock is set back to 8Mhz, and bingo it works straight away.</p>
<p><a title="2011-08-21_23-38-16_2.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/6068262411/"><img alt="2011-08-21_23-38-16_2.jpg" src="http://farm7.static.flickr.com/6065/6068262411_551beca601.jpg" width="500" height="281" /></a></p>
<p>&#160;</p>
<p>USBASP/Kraken <strong>1</strong>, Atmel AVR Dragon <strong>0</strong></p>
<p><a title="2011-08-21_23-41-54_557.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/6069624243/"><img alt="2011-08-21_23-41-54_557.jpg" src="http://farm7.static.flickr.com/6193/6069624243_6c7cbd4904.jpg" width="500" height="281" /></a></p>
<p>&#160;</p>
<p>&#160;</p>
<p>Atmel sells the Dragon for $49 <a href="http://store.atmel.com/PartDetail.aspx?q=p:10500053">http://store.atmel.com/PartDetail.aspx?q=p:10500053</a> it comes with no case (which doesn’t help the chip destroying problem either ). I personally think they should rev it, or sell it with a box,or at least a warning. Using it with a USB Hub will help alleviate the chip killing problem.</p>
<p>Here is the web page that lead us to keeping a stock of chips, we’ve fixed about 6 of them in the last few months, so far its always the same issue. <a href="http://www.aplomb.nl/TechStuff/Dragon/Dragon.html">http://www.aplomb.nl/TechStuff/Dragon/Dragon.html</a></p>
<p>But why it can’t flash the ATTiny2313 when the USBAsp/Kraken can just seems like a software problem. Now if only we had access to DebugWire I could do without the Dragon altogether.</p>
<p>Still after you’ve seen a few of them with holes burnt through the chip and sometimes even into the PCB, you’ll know why Atmel calls it the Dragon. It’s funny how the people who make the chips can’t get their programmer to work well, when one guy in germany can.</p>
<p><em>I’d like to say no Dragons were harmed during this process, but one of our members ( who coincidentally named the Kraken project) blew his up while I was working on this problem ).</em></p>
<p><em>Since this blog was written around 8/22.. We’ve blown up another three dragons..</em></p>
<p><strong>Links</strong></p>
<p><a href="http://www.fischl.de/usbasp/">http://www.fischl.de/usbasp/</a> USBAsp home page     <br /><a href="http://wiki.032.la/nsl/AVR_Programmer">http://wiki.032.la/nsl/AVR_Programmer</a> Null Space Labs Version of the USBAsp     <br /><a href="http://www.aplomb.nl/TechStuff/Dragon/Dragon.html">http://www.aplomb.nl/TechStuff/Dragon/Dragon.html</a> How to fix the Dragon (and add some improvements)</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charliex2.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charliex2.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charliex2.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charliex2.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charliex2.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charliex2.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charliex2.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charliex2.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charliex2.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charliex2.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charliex2.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charliex2.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charliex2.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charliex2.wordpress.com/884/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=884&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://charliex2.wordpress.com/2011/08/22/atmel-avr-dragon-vs-the-kraken/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f95e755c58bbd8b321047785c1ae0f42?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charliex</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5170/5327863563_4e345db3c8.jpg" medium="image">
			<media:title type="html">Production version of [NSL] Cylon I</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5129/5291796515_74cd3176d1.jpg" medium="image">
			<media:title type="html">Cylon=b=gone mode</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6205/6066856257_480309a7b4.jpg" medium="image">
			<media:title type="html">2011-08-21_15-48-14_753.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6030/5980822602_35eb25301f.jpg" medium="image">
			<media:title type="html">Pretty in....</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6188/6068262773_8e679fa82c.jpg" medium="image">
			<media:title type="html">2011-08-21_23-40-28_686.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6073/6068229109_916360b8f0.jpg" medium="image">
			<media:title type="html">2011-08-21_23-36-56_442.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6063/6068775710_cff6bb8708.jpg" medium="image">
			<media:title type="html">2011-08-21_23-36-51_683.jpg</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5103/5633724341_ca221934bd.jpg" medium="image">
			<media:title type="html">AVR 2x6 To CX 1x6</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6065/6068262411_551beca601.jpg" medium="image">
			<media:title type="html">2011-08-21_23-38-16_2.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6193/6069624243_6c7cbd4904.jpg" medium="image">
			<media:title type="html">2011-08-21_23-41-54_557.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Its been a fun busy couple of weeks&#8230;</title>
		<link>http://charliex2.wordpress.com/2011/08/01/getting-our-version-of-the-google-adk-demo-board-ready-for-defcon-19/</link>
		<comments>http://charliex2.wordpress.com/2011/08/01/getting-our-version-of-the-google-adk-demo-board-ready-for-defcon-19/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 04:57:44 +0000</pubDate>
		<dc:creator>charliex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://charliex2.wordpress.com/2011/08/01/getting-our-version-of-the-google-adk-demo-board-ready-for-defcon-19/</guid>
		<description><![CDATA[Its been a fun/busy couple of weeks at our hackerspace Null Space Labs http://032.la, from an idea to a finished dev kit. A couple of weeks ago we decided to redo the Android ADK board from Google and the Circuits@Home/Seeedstudio Arduino board, improving on some aspects of the design but mainly getting it ready for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=839&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Its been a fun/busy couple of weeks at our hackerspace Null Space Labs <a href="http://032.la" rel="nofollow">http://032.la</a>, from an idea to a finished dev kit.</p>
<p><a title="ADS by Null Space Labs, on Flickr" href="http://www.flickr.com/photos/nullspacelabs/5984336110/"><img src="http://farm7.static.flickr.com/6138/5984336110_bbe1001f2f.jpg" alt="ADS" width="500" height="375" /></a></p>
<p><a title="2011-07-31_22-03-23_349.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996519823/"><img src="http://farm7.static.flickr.com/6004/5996519823_5a97c28d2e.jpg" alt="2011-07-31_22-03-23_349.jpg" width="500" height="281" /></a></p>
<p><a title="data by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996517375/"><img src="http://farm7.static.flickr.com/6142/5996517375_0ea258d7b1.jpg" alt="data" width="500" height="281" /></a></p>
<p>A couple of weeks ago we decided to redo the Android ADK board from Google and the <a href="mailto:Circuits@Home/Seeedstudio">Circuits@Home/Seeedstudio</a> Arduino board, improving on some aspects of the design but mainly getting it ready for Defcon 19. After doing some rework in Eagle and CNC’ing the boards at Null Space Labs, we sent them off for manufacturing at Silver Circuits ( Who’re also doing a tutorial based on one of the techniques we used for the board, so that’s cool ).</p>
<p>Oddly a project I’d been working/reworking in my last blog post was also from <a href="mailto:Circuits@Home">Circuits@Home</a>, I had no idea til today that Oleg had been the originator of this project, he’s getting apparently not getting much love for it. <a href="http://www.circuitsathome.com/">http://www.circuitsathome.com/</a> I have a couple of his USB Isolators too.</p>
<p>On the Demo board we added IR Send and Receive so we can make them into TV B Gone’s, changed out the RGB LED’s for better ones than Google used, made some of the parts bigger to make them easier to build, added the double header row 2&#215;18 for the mega,&nbsp; and changed the logo <img class="wlEmoticon wlEmoticon-smile" style="border-style:none;" src="http://www.goth.am/wordpress/Getting-our-version-of-the-Google-ADK_12769/wlEmoticon-smile.png" alt="Smile" /> for a ninja/pirate droid.</p>
<p>We also gold plated the demo board, which turned out pretty nice!</p>
<p>The Arduino board stayed mostly the same, just moving things around though after our first build we’re going to change a few small things that we&#8217;ve noticed are problematic in the process.</p>
<p>A simple pan and tilt was built in Eagle to test the servos, milled out a few interlocking parts and attached a couple of servos.</p>
<p><a title="Mini pan and tilt by Null Space Labs, on Flickr" href="http://www.flickr.com/photos/nullspacelabs/5980849312/"><img src="http://farm7.static.flickr.com/6008/5980849312_14ae282ec0.jpg" alt="Mini pan and tilt" width="500" height="375" /></a></p>
<p>The Google API uses their USB class software, but it only works on 2.3.4 onwards, and to be honest it doesn’t work on a lot of the 2.3.4 devices either, I couldn’t get my Atrix or Iconia A500 which is 3.1 ( even after I rewrote the code to use the new 3.1 API’s ) So today we took the baseline Seeedstudio APK test and extended it to work with the demo board, I ported all the functions, i2c joystick, RGB Leds and so on to work with MicroBridge instead.</p>
<p>Most of the time was actually setting up eclipse and the ADK , there are some issues with the version I downloaded of the Google API 10 which wouldn’t let me compile the DemoBoard APK, it turned out that Rev-2 Was named 10-1 and the SDK was using 10 so the usb.jar was missing, renaming it worked. Eclipse is probably the worst IDE I’ve ever used, though its neck and neck with xTunes 4.</p>
<p>Using the I2C joystick to control the pan/tilt, the temperature and light sensor is on the android tablet, and it also controls the relays from the phone.<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5996607621&amp;photo_secret=d457c85fc7&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5996607621&amp;photo_secret=d457c85fc7&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object></p>
<p>Testing different devices, being a hacker space we have a lot of android phones, not so much of the fruity ones. Here it’s a Samsung Galaxy S2 and an Acer Iconia A500.</p>
<p><a title="2011-07-30_17-50-14_935.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5997114356/"><img src="http://farm7.static.flickr.com/6006/5997114356_6c019818c1.jpg" alt="2011-07-30_17-50-14_935.jpg" width="281" height="500" /></a></p>
<p>The Board running from a cheap Coby android 2.1 tablet thing from Frys Electronics, it was about $150 USD.<a title="2011-07-31_19-42-22_36.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996373739/"><img src="http://farm7.static.flickr.com/6133/5996373739_71644c77b8.jpg" alt="2011-07-31_19-42-22_36.jpg" width="500" height="281" /></a></p>
<p>Doing some things with the Coby, actually about the only thing, it doesn’t even play Angry Birds properly.</p>
<p><a title="2011-07-31_20-34-45_319.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996929318/"><img src="http://farm7.static.flickr.com/6128/5996929318_8e864c3f76.jpg" alt="2011-07-31_20-34-45_319.jpg" width="500" height="281" /></a></p>
<p><a title="2011-07-31_20-40-56_433.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996940824/"><img src="http://farm7.static.flickr.com/6020/5996940824_5fb445d633.jpg" alt="2011-07-31_20-40-56_433.jpg" width="500" height="281" /></a></p>
<p>KRS Splitting up resistors to kit for our mini production line.<a title="2011-07-31_20-39-13_205.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996933770/"><img src="http://farm7.static.flickr.com/6021/5996933770_6720fe96d1.jpg" alt="2011-07-31_20-39-13_205.jpg" width="500" height="281" /></a></p>
<p>Arko is our manual pick and place, ours doesn&#8217;t get here for 6 weeks, so we did what most starting civilisations did and relied on &#8216;free&#8217; labour as its called these days.<a title="2011-07-31_20-40-00_763.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996381161/"><img src="http://farm7.static.flickr.com/6137/5996381161_6a3b2700ab.jpg" alt="2011-07-31_20-40-00_763.jpg" width="500" height="281" /></a></p>
<p><a title="2011-07-31_20-39-55_720.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996384781/"><img src="http://farm7.static.flickr.com/6144/5996384781_ed44d53740.jpg" alt="2011-07-31_20-39-55_720.jpg" width="281" height="500" /></a></p>
<p>Totally awesome NSL tShirt created by [NSL] top bloke and hacker, frank^2.<a title="2011-07-31_20-40-08_732.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996384791/"><img src="http://farm7.static.flickr.com/6146/5996384791_5d12b17599.jpg" alt="2011-07-31_20-40-08_732.jpg" width="500" height="281" /></a></p>
<p>Yes even child labour, tsk tsk those evil hacker types, get back to work.</p>
<p><a title="2011-07-31_20-39-23_982.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996935918/"><img src="http://farm7.static.flickr.com/6004/5996935918_d8cb197f70.jpg" alt="2011-07-31_20-39-23_982.jpg" width="500" height="281" /></a></p>
<p>Part of the assembly line, even the food table isn&#8217;t sacred.<a title="2011-07-31_20-40-17_37.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996383647/"><img src="http://farm7.static.flickr.com/6134/5996383647_e6be9b10fc.jpg" alt="2011-07-31_20-40-17_37.jpg" width="500" height="281" /></a></p>
<p>Final assemble stage, CPU&#8217;s and chips are installed here<a title="2011-07-31_20-40-31_503.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996940976/"><img src="http://farm7.static.flickr.com/6140/5996940976_c60c18bc82.jpg" alt="2011-07-31_20-40-31_503.jpg" width="500" height="281" /></a></p>
<p>Modified Arduino boards with a few of the jellybeans installed<a title="2011-07-31_20-39-51_222.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996941300/"><img src="http://farm7.static.flickr.com/6144/5996941300_f678caf50a.jpg" alt="2011-07-31_20-39-51_222.jpg" width="500" height="281" /></a></p>
<p>CNC&#8217;d version of the top demo board.</p>
<p><a title="2011-07-31_20-53-28_839.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996389729/"><img src="http://farm7.static.flickr.com/6010/5996389729_7b58fd4a47.jpg" alt="2011-07-31_20-53-28_839.jpg" width="281" height="500" /></a></p>
<p>Stack of boards we did in the last couple of days…. The pick and place can’t arrive soon enough!!!</p>
<p><a title="2011-07-31_20-40-25_916.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996944318/"><img src="http://farm7.static.flickr.com/6012/5996944318_4e2c222dc8.jpg" alt="2011-07-31_20-40-25_916.jpg" width="500" height="281" /></a></p>
<p>Some of the microscopes we didn&#8217;t use. These are on their way to the Defcon 19 HHV which we&#8217;re lending a hand in.</p>
<p><a title="2011-07-31_20-39-38_841.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996939742/"><img src="http://farm7.static.flickr.com/6010/5996939742_24edef336e.jpg" alt="2011-07-31_20-39-38_841.jpg" width="281" height="500" /></a></p>
<p>The demo board running a pan/tilt servo setup.</p>
<p><a title="2011-07-31_20-40-41_374.jpg by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5996384657/"><img src="http://farm7.static.flickr.com/6138/5996384657_d89ef320e8.jpg" alt="2011-07-31_20-40-41_374.jpg" width="500" height="281" /></a></p>
<p>Walk thru of the solder paste application process. (sorry a bit quiet on the audio). I said 5mil for the brass sheet, the original one we tried was 5mil but was too thick, so it&#8217;s actually a 3mil sheet, we get them from ace hardware.<br />
<span style="text-align:center; display: block;"><a href="http://charliex2.wordpress.com/2011/08/01/getting-our-version-of-the-google-adk-demo-board-ready-for-defcon-19/"><img src="http://img.youtube.com/vi/sVaymEDLESg/2.jpg" alt="" /></a></span></p>
<p>Going from the solder paste to component layout, (Sorry low audio quality).</p>
<span style="text-align:center; display: block;"><a href="http://charliex2.wordpress.com/2011/08/01/getting-our-version-of-the-google-adk-demo-board-ready-for-defcon-19/"><img src="http://img.youtube.com/vi/kfu7MTI3j-M/2.jpg" alt="" /></a></span>
<p>mmca soldering in the headers.<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5997186146&amp;photo_secret=80ef76e0d6&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5997186146&amp;photo_secret=80ef76e0d6&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object></p>
<p>Hot Plating.<br />
<span style="text-align:center; display: block;"><a href="http://charliex2.wordpress.com/2011/08/01/getting-our-version-of-the-google-adk-demo-board-ready-for-defcon-19/"><img src="http://img.youtube.com/vi/XeHhBzUOEUw/2.jpg" alt="" /></a></span></p>
<span style="text-align:center; display: block;"><a href="http://charliex2.wordpress.com/2011/08/01/getting-our-version-of-the-google-adk-demo-board-ready-for-defcon-19/"><img src="http://img.youtube.com/vi/0_dwW05WaoA/2.jpg" alt="" /></a></span>
<p>Quick pan of Null Space labs, tis a mess.<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5996416849&amp;photo_secret=f68c19fa7c&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5996416849&amp;photo_secret=f68c19fa7c&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object></p>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5996989582&amp;photo_secret=22d303989a&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5996989582&amp;photo_secret=22d303989a&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>CNC room, low quality, short.<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5996447025&amp;photo_secret=1d31ccbc9f&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5996447025&amp;photo_secret=1d31ccbc9f&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object></p>
<p>All the code and changes are available on our wiki , and we’ll have a box of the boards at Defcon too.</p>
<p><strong>Some of the other things we did this last couple of weeks.</strong></p>
<p>Our remix of the RFID Arduino shield (PN532), made this into a mega shield, it’s the microbuilder.eu board.</p>
<p><a title="RFID Shield by Null Space Labs, on Flickr" href="http://www.flickr.com/photos/nullspacelabs/5988763614/"><img src="http://farm7.static.flickr.com/6123/5988763614_bcbb3dab26.jpg" alt="RFID Shield" width="500" height="375" /></a></p>
<p>As well as our usual blinky toys.</p>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5972450239&amp;photo_secret=291efbcb3c&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5972450239&amp;photo_secret=291efbcb3c&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5400178452&amp;photo_secret=efa75d705a&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5400178452&amp;photo_secret=efa75d705a&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5273261493&amp;photo_secret=6d11a22ebf&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5273261493&amp;photo_secret=6d11a22ebf&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5094391406&amp;photo_secret=c856313082&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5094391406&amp;photo_secret=c856313082&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5999083237&amp;photo_secret=a4deb29a94&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5999083237&amp;photo_secret=a4deb29a94&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5999093437&amp;photo_secret=686efccac4&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5999093437&amp;photo_secret=686efccac4&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<object type="application/x-shockwave-flash" width="640" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5999651766&amp;photo_secret=9056449328&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5999651766&amp;photo_secret=9056449328&amp;flickr_show_info_box=true" wmode="opaque" height="360" width="640"></embed></object>
<p>Cylon I<br />
<a href="http://www.flickr.com/photos/51925658@N08/5327863563/" title="Production version of [NSL] Cylon I by charlie _x, on Flickr"><img src="http://farm6.static.flickr.com/5170/5327863563_4e345db3c8.jpg" width="500" height="471" alt="Production version of [NSL] Cylon I"></a></p>
<p>Cylon II<br />
<a href="http://www.flickr.com/photos/51925658@N08/5328489232/" title="[NSL] Cylon II by charlie _x, on Flickr"><img src="http://farm6.static.flickr.com/5125/5328489232_980137fe89.jpg" width="351" height="500" alt="[NSL] Cylon II"></a></p>
<p>Our Logic analyser that fits in an egg<br />
<a href="http://www.flickr.com/photos/51925658@N08/5475423221/" title="NullSpace Logic Analyser Egg by charlie _x, on Flickr"><img src="http://farm6.static.flickr.com/5259/5475423221_fb57c4cd3d.jpg" width="500" height="375" alt="NullSpace Logic Analyser Egg"></a></p>
<p>Getting the hot plates machined so we can bring them to defcon, ebay FTW.<br />
<a href="http://www.flickr.com/photos/nullspacelabs/5998844407/" title="Making a hotplate by Null Space Labs, on Flickr"><img src="http://farm7.static.flickr.com/6140/5998844407_6ce33a46ef.jpg" width="500" height="375" alt="Making a hotplate"></a></p>
<p>Thermal epoxy<br />
<a href="http://www.flickr.com/photos/nullspacelabs/5999511218/" title="Thermal epoxy by Null Space Labs, on Flickr"><img src="http://farm7.static.flickr.com/6011/5999511218_a1f87ab989.jpg" width="500" height="375" alt="Thermal epoxy"></a></p>
<p>Before<br />
<a href="http://www.flickr.com/photos/nullspacelabs/5999855154/" title="Hot plate (before) by Null Space Labs, on Flickr"><img src="http://farm7.static.flickr.com/6012/5999855154_6650171f7c.jpg" width="500" height="375" alt="Hot plate (before)"></a></p>
<p>After<br />
<a href="http://www.flickr.com/photos/nullspacelabs/5999378013/" title="New mic-6 tooling plate by Null Space Labs, on Flickr"><img src="http://farm7.static.flickr.com/6134/5999378013_55c4ef9e12.jpg" width="500" height="375" alt="New mic-6 tooling plate"></a></p>
<p><strong>See you at Defcon 19 !!</strong></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charliex2.wordpress.com/839/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charliex2.wordpress.com/839/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charliex2.wordpress.com/839/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charliex2.wordpress.com/839/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charliex2.wordpress.com/839/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charliex2.wordpress.com/839/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charliex2.wordpress.com/839/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charliex2.wordpress.com/839/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charliex2.wordpress.com/839/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charliex2.wordpress.com/839/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charliex2.wordpress.com/839/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charliex2.wordpress.com/839/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charliex2.wordpress.com/839/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charliex2.wordpress.com/839/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=839&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://charliex2.wordpress.com/2011/08/01/getting-our-version-of-the-google-adk-demo-board-ready-for-defcon-19/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<georss:point>36.169710 -115.123695</georss:point>
		<geo:lat>36.169710</geo:lat>
		<geo:long>-115.123695</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f95e755c58bbd8b321047785c1ae0f42?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charliex</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6138/5984336110_bbe1001f2f.jpg" medium="image">
			<media:title type="html">ADS</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6004/5996519823_5a97c28d2e.jpg" medium="image">
			<media:title type="html">2011-07-31_22-03-23_349.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6142/5996517375_0ea258d7b1.jpg" medium="image">
			<media:title type="html">data</media:title>
		</media:content>

		<media:content url="http://www.goth.am/wordpress/Getting-our-version-of-the-Google-ADK_12769/wlEmoticon-smile.png" medium="image">
			<media:title type="html">Smile</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6008/5980849312_14ae282ec0.jpg" medium="image">
			<media:title type="html">Mini pan and tilt</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6006/5997114356_6c019818c1.jpg" medium="image">
			<media:title type="html">2011-07-30_17-50-14_935.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6133/5996373739_71644c77b8.jpg" medium="image">
			<media:title type="html">2011-07-31_19-42-22_36.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6128/5996929318_8e864c3f76.jpg" medium="image">
			<media:title type="html">2011-07-31_20-34-45_319.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6020/5996940824_5fb445d633.jpg" medium="image">
			<media:title type="html">2011-07-31_20-40-56_433.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6021/5996933770_6720fe96d1.jpg" medium="image">
			<media:title type="html">2011-07-31_20-39-13_205.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6137/5996381161_6a3b2700ab.jpg" medium="image">
			<media:title type="html">2011-07-31_20-40-00_763.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6144/5996384781_ed44d53740.jpg" medium="image">
			<media:title type="html">2011-07-31_20-39-55_720.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6146/5996384791_5d12b17599.jpg" medium="image">
			<media:title type="html">2011-07-31_20-40-08_732.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6004/5996935918_d8cb197f70.jpg" medium="image">
			<media:title type="html">2011-07-31_20-39-23_982.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6134/5996383647_e6be9b10fc.jpg" medium="image">
			<media:title type="html">2011-07-31_20-40-17_37.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6140/5996940976_c60c18bc82.jpg" medium="image">
			<media:title type="html">2011-07-31_20-40-31_503.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6144/5996941300_f678caf50a.jpg" medium="image">
			<media:title type="html">2011-07-31_20-39-51_222.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6010/5996389729_7b58fd4a47.jpg" medium="image">
			<media:title type="html">2011-07-31_20-53-28_839.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6012/5996944318_4e2c222dc8.jpg" medium="image">
			<media:title type="html">2011-07-31_20-40-25_916.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6010/5996939742_24edef336e.jpg" medium="image">
			<media:title type="html">2011-07-31_20-39-38_841.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6138/5996384657_d89ef320e8.jpg" medium="image">
			<media:title type="html">2011-07-31_20-40-41_374.jpg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6123/5988763614_bcbb3dab26.jpg" medium="image">
			<media:title type="html">RFID Shield</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5170/5327863563_4e345db3c8.jpg" medium="image">
			<media:title type="html">Production version of [NSL] Cylon I</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5125/5328489232_980137fe89.jpg" medium="image">
			<media:title type="html">[NSL] Cylon II</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5259/5475423221_fb57c4cd3d.jpg" medium="image">
			<media:title type="html">NullSpace Logic Analyser Egg</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6140/5998844407_6ce33a46ef.jpg" medium="image">
			<media:title type="html">Making a hotplate</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6011/5999511218_a1f87ab989.jpg" medium="image">
			<media:title type="html">Thermal epoxy</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6012/5999855154_6650171f7c.jpg" medium="image">
			<media:title type="html">Hot plate (before)</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6134/5999378013_55c4ef9e12.jpg" medium="image">
			<media:title type="html">New mic-6 tooling plate</media:title>
		</media:content>
	</item>
		<item>
		<title>Starting a new design..</title>
		<link>http://charliex2.wordpress.com/2011/05/11/starting-a-new-design/</link>
		<comments>http://charliex2.wordpress.com/2011/05/11/starting-a-new-design/#comments</comments>
		<pubDate>Wed, 11 May 2011 16:51:04 +0000</pubDate>
		<dc:creator>charliex</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">https://charliex2.wordpress.com/2011/05/11/starting-a-new-design/</guid>
		<description><![CDATA[I’d been meaning to build a USB isolator for a long time, especially since people tend to rely on and my laptop/pc for programming and testing of the new boards they’ve built. Regular hub’s don’t offer much protection and the USB chips will shut down if they detect something, so an opto-isolated USB adapter is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=831&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I’d been meaning to build a USB isolator for a long time, especially since people tend to rely on and my laptop/pc for programming and testing of the new boards they’ve built. Regular hub’s don’t offer much protection and the USB chips will shut down if they detect something, so an opto-isolated USB adapter is a good thing.</p>
<p>I found a USB isolator from <a href="mailto:circuits@home">circuits@home</a>, had BatchPCB make a few of the PCB’s ( Not recommended as they are too expensive and their customer support is non existent, try Silver Circuits instead )</p>
<p>After krs built and I tested the USB Isolator it seemed to work pretty well, so the next step is to adapt it for an NSL project. In this case I went back to the chip itself and decided to start from scratch. We’re using the Analog Devices ADuM4160 USB Isolator.</p>
<p><strong>Step 1 – Find Chip, datasheet and Design</strong></p>
<p>Find the datasheet, and another other points the OEM has, Analog are generally really good at this.</p>
<p><a href="http://www.analog.com/static/imported-files/data_sheets/ADuM4160.pdf">http://www.analog.com/static/imported-files/data_sheets/ADuM4160.pdf</a></p>
<p>Easy enough , a neat chip and its used in the <a href="mailto:Circuits@home">Circuits@home</a>, we looked at the <a href="http://www.analog.com/en/interface/digital-isolators/adum3160/products/product.html">http://www.analog.com/en/interface/digital-isolators/adum3160/products/product.html</a> but its 4-5V and only does 2.5KV of protection.</p>
<p>Even better a whole article discussing the chip, problems and sample designs, it also has a design for the ADuM5000 Isolated power supply.</p>
<p><a href="http://www.analog.com/library/analogdialogue/archives/43-06/USB_isolator.html">http://www.analog.com/library/analogdialogue/archives/43-06/USB_isolator.html</a></p>
<p>So the above shows an isolated hub design. That would make a good project and its different enough from the <a href="mailto:Circuits@home">Circuits@home</a> to make it worthwhile.</p>
<p>Evaluation </p>
<p><a href="http://www.newark.com/analog-devices/eval-adum4160ebz/usb-digital-isolator-eval-board/dp/10R6464?in_merch=true&amp;MER=ACC_N_L5_SemiconductorsIntegratedCircuits_None">http://www.newark.com/analog-devices/eval-adum4160ebz/usb-digital-isolator-eval-board/dp/10R6464?in_merch=true&#038;MER=ACC_N_L5_SemiconductorsIntegratedCircuits_None</a></p>
<p>Another neat link is <a href="http://wcm-prod-edn.cancom.com/article/465019-Isolating_USB.php?gotourl=http://wcm-prod-edn.cancom.com/article/465019-Isolating_USB.php">http://wcm-prod-edn.cancom.com/article/465019-Isolating_USB.php?gotourl=http://wcm-prod-edn.cancom.com/article/465019-Isolating_USB.php</a></p>
<p><strong>Step 2 – Find availability of the chips.</strong></p>
<p>So this is probably one of the most frustrating aspects of design, sourcing the chips. We’ve decided to look for the ADuM4160, the ADuM5000 and the Atmel AT43301 chip… Uh oh&#160; its my nemesis, Atmel… Almost every design I&#8217;ve ever done that’s relied on Atmel has either met out of stock for months, or discontinued..&#160; Ok so off to findchips.com to do a quick survey of the land.</p>
<p>&#160;</p>
<p><a href="http://charliex2.files.wordpress.com/2011/05/adm4k.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="adm4k" border="0" alt="adm4k" src="http://charliex2.files.wordpress.com/2011/05/adm4k_thumb.png?w=667&#038;h=708" width="667" height="708" /></a></p>
<p>Ok good, a spread of stock over different suppliers with a decent quantity for a project of this size. Prices as usual vary widely. Newark often come in the lowest, $9.78 vs $12.23 at digikey and oddly $19.41 at element14. Even odder given Farnell/Newark/element14 are&#160; basically the same place.</p>
<p>Also I notice there is a eval board, so we’ll note this part number and look up the datasheet for that too, it’ll more than likely give us the schematic to work from, as well as layout tips. The chip datasheet covers local layout aspects for the PCB for the chip itself, but the evaluation board gives you it all usually.</p>
<p>Ok the ADum5000 ( which we may not use in the hub since a hub potentially requires more power ) </p>
<p>&#160;</p>
<p><a href="http://charliex2.files.wordpress.com/2011/05/ad5k.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="ad5k" border="0" alt="ad5k" src="http://charliex2.files.wordpress.com/2011/05/ad5k_thumb.png?w=656&#038;h=378" width="656" height="378" /></a></p>
<p>&#160;</p>
<p>It is in stock, but a low count/spread if I were doing a commercial production run I’d look into it further. Again Newark has beaten Digikey pricing (Newark also ship everything in separate white envelopes inside the bag with markings on the outside vs digikeys plastic baggies ) </p>
<p>&#160;</p>
<p>On to the Atmel…. </p>
<p><a href="http://charliex2.files.wordpress.com/2011/05/43301.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="43301" border="0" alt="43301" src="http://charliex2.files.wordpress.com/2011/05/43301_thumb.png?w=665&#038;h=356" width="665" height="356" /></a></p>
<p>What a shocker! no stock… no spread.&#160; Ok so time to head over to Atmel, and see what’s up with the chip. Ok –AC version is non ROHS, so it is gone. Its a few years old so its not surprising its been EOL’d</p>
<p>Over to <a href="http://www.atmel.com/dyn/quality/quality_prod_obsl_result.asp">http://www.atmel.com/dyn/quality/quality_prod_obsl_result.asp</a> and lets see if it is on there. </p>
<p>AT43301-AC AT43301 5/20/2008 11/20/2008 No replacement, same for the -au… Well that tales the biscuit, obsoleted, no replacement.&#160; checking eBay turns up no results, and its too difficult to deal with the part finders on Google to source a chip. So we’ll have to start looking for a different chip. So far my Atmel experience is staying true.</p>
<p>&#160;</p>
<p><strong>Step 3 – Find a replacement chip or design.</strong></p>
<p>I’ve had mostly good luck with TI , I like the Stellaris series they bought, though the chip i used wasn’t in mass production last time i checked. Poking around we get the TUSB2046B its available in LQFP32 too</p>
<p><strong></strong></p>
<p>Data Sheet –: <a href="http://focus.ti.com/lit/ds/symlink/tusb2046b.pdf">http://focus.ti.com/lit/ds/symlink/tusb2046b.pdf</a></p>
<p>Newark :- <a href="http://www.newark.com/jsp/search/productdetail.jsp?SKU=77C1805&amp;CMP=AFC-SF-T11">http://www.newark.com/jsp/search/productdetail.jsp?SKU=77C1805&#038;CMP=AFC-SF-T11</a></p>
<p>3.3V, which isn’t uncommon. Hugely available pretty much everywhere, ( 56,779 in stock for one sku ) slightly more complex to implement.</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charliex2.wordpress.com/831/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charliex2.wordpress.com/831/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charliex2.wordpress.com/831/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charliex2.wordpress.com/831/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charliex2.wordpress.com/831/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charliex2.wordpress.com/831/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charliex2.wordpress.com/831/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charliex2.wordpress.com/831/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charliex2.wordpress.com/831/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charliex2.wordpress.com/831/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charliex2.wordpress.com/831/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charliex2.wordpress.com/831/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charliex2.wordpress.com/831/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charliex2.wordpress.com/831/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=831&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://charliex2.wordpress.com/2011/05/11/starting-a-new-design/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f95e755c58bbd8b321047785c1ae0f42?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charliex</media:title>
		</media:content>

		<media:content url="http://charliex2.files.wordpress.com/2011/05/adm4k_thumb.png" medium="image">
			<media:title type="html">adm4k</media:title>
		</media:content>

		<media:content url="http://charliex2.files.wordpress.com/2011/05/ad5k_thumb.png" medium="image">
			<media:title type="html">ad5k</media:title>
		</media:content>

		<media:content url="http://charliex2.files.wordpress.com/2011/05/43301_thumb.png" medium="image">
			<media:title type="html">43301</media:title>
		</media:content>
	</item>
		<item>
		<title>Redbull marketing, what&#8217;s the latest craze we can attach too, campaign thing</title>
		<link>http://charliex2.wordpress.com/2011/03/23/redbull-marketing-whats-the-latest-craze-campaign/</link>
		<comments>http://charliex2.wordpress.com/2011/03/23/redbull-marketing-whats-the-latest-craze-campaign/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 03:20:50 +0000</pubDate>
		<dc:creator>charliex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://charliex2.wordpress.com/2011/03/23/redbull-marketing-whats-the-latest-craze-campaign/</guid>
		<description><![CDATA[&#160; Someone from redbull just dropped off a hacker thing at our space [ NSL ] in dtla. I put it together, just a couple of RCA’s, 3.5mm speaker and a NES controller port. The board is covered in flux so needs a good cleaning. It’s a NES controller, composite video/audio on an Atmel644&#160; with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=807&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.goth.am/wordpress/Redbull-marketing-whats-the-latest-craze_11BD0/5551527993_5aed7a5972_b.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="5551527993_5aed7a5972_b" border="0" alt="5551527993_5aed7a5972_b" src="http://www.goth.am/wordpress/Redbull-marketing-whats-the-latest-craze_11BD0/5551527993_5aed7a5972_b_thumb.jpg" width="475" height="269" /></a></p>
<p>&#160;</p>
<p><a href="http://www.goth.am/wordpress/Redbull-marketing-whats-the-latest-craze_11BD0/5552112502_6f2ecbdedf_o.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="5552112502_6f2ecbdedf_o" border="0" alt="5552112502_6f2ecbdedf_o" src="http://www.goth.am/wordpress/Redbull-marketing-whats-the-latest-craze_11BD0/5552112502_6f2ecbdedf_o_thumb.jpg" width="487" height="276" /></a></p>
<p>Someone from redbull just dropped off a hacker thing at our space [ NSL ] in dtla. I put it together, just a couple of RCA’s, 3.5mm speaker and a NES controller port. The board is covered in flux so needs a good cleaning.</p>
<p>It’s a NES controller, composite video/audio on an Atmel644&#160; with some AD devices and a code on it</p>
<p>This is written on it U2V0ZWMgQXN0cm9ub215 / Setec Astronomy / Sneakers / Too Many Secrets(frank^2)</p>
<p>Chip is USB drive host, so plugging it in gives some files. Encrypted zip file and a bunch of MAC OSX resource forks, no shock there. There is a google gmail attachment url in the resource fork, but not much you can do with it probably <img style="border-style:none;" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://www.goth.am/wordpress/Redbull-marketing-whats-the-latest-craze_11BD0/wlEmoticon-winkingsmile.png" /></p>
<p>&#160;</p>
<p>I pulled off the hex file etc, </p>
<p>Pictures <a href="http://www.flickr.com/photos/51925658@N08/5552112502/">http://www.flickr.com/photos/51925658@N08/5552112502/</a></p>
<p>&#160;</p>
<p>&#160;</p>
<p>Firmware, files from the usb drive etc.</p>
<p>&#160;</p>
<p>its basically this <a href="http://belogic.com/uzebox/">http://belogic.com/uzebox/</a></p>
<p>&#160;</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:F60BB8FA-6F02-4999-8F5E-9DD4E92C4DA7:abead220-f6e3-444b-8dbb-ece5e780b764" class="wlWriterSmartContent">
<div><a href="http://www.goth.am/wordpress/Redbull-marketing-whats-the-latest-craze_11BD0/redbull.rar" target="_self">redbull.rar</a></div>
</p></div>
<p>WinstonChurchill –cnelson</p>
<p>OK, that was an easy one&#8230; but you&#8217;re not there just yet.</p>
<p>The riddle that ol&#8217; Winston mentioned was Russia, but we&#8217;re talking about a different kind of puzzle altogether.</p>
<p>Somewhere in this box there is another password, this time for a website.</p>
<p>Poke, probe, and hack away at this circuit board&#8230; it&#8217;s an egg hunt.</p>
<p>When you find the url and the password&#8230; go tell us what else you&#8217;ve found along the way.</p>
<p>Good luck for real this time&#8230; you&#8217;ll need it!</p>
<p>&#160;</p>
<p>I’d pulled this apart earlier, then realised it was an uzebox and didn’t bother </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:F60BB8FA-6F02-4999-8F5E-9DD4E92C4DA7:42a09421-c21d-4b1a-8233-ac2cac036977" class="wlWriterSmartContent">
<div><a href="http://www.goth.am/wordpress/Redbull-marketing-whats-the-latest-craze_11BD0/redbull.asm" target="_self">redbull.asm</a></div>
</p></div>
<p>PEEL THE FOAMSUP, GOLDDIGGA?</p>
<p> CAN HAS RICKROLL?!?!.YOU FOUND SECRET ROOM!.REALLY?&#160; THAT GREEDY, HUH?.OK.&#160; NO MORE SECRET ROOM FOR YOU..SRSLY, NOTHING BETTER TO DO?.IM SORRY DAVE, I CANT DO THAT..BROOKLYN, NY&#160;&#160; JULY 2011</p>
<p>&#8230;///../&#8230;/./..//././././/.././&#8230;/..///&#8230;&#8230;&#8230;./&#8230;.//&#8230;../&#8230;../&#8230;../&#8230;../&#8230;.///&#8230;&#8230;&#8230;///../&#8230;/&#8230;../&#8230;//&#8230;/&#8230;./&#8230;../////&#8230;&#8230;..///../&#8230;/&#8230;../..///&#8230;&#8230;/./&#8230;/..///&#8230;&#8230;&#8230;../&#8230;.//&#8230;/./../../../////&#8230;./&#8230;../&#8230;&#8230;../////./&#8230;../.</p>
<p>com.apple.quarantine&#8230;&#8230;..T..%com.apple.metadata:kMDItemWhereFroms.0000;4d805291;Google\x20Chrome;855C7932-787D-45D1-BB3A-2AF1755A1540|com.google.Chromebplist00&#8230;_..</p>
<p>&#160;</p>
<p><a title="https://mail-attachment.googleusercontent.com/attachment?ui=2&amp;ik=b914eefc8a&amp;view=att&amp;th=12ebd020e6396ab5&amp;attid=0.1&amp;disp=safe&amp;zw&amp;saduie=AG9B_P8Ttmz5UtLculmISrea7jWc&amp;sadet=1300255397085&amp;sads=hB_L1EgkB6A4_VqifTCQM0HhnDc&amp;sadssc=1_.&lt;<a href="https://mail.google.com/mail" rel="nofollow">https://mail.google.com/mail</a>" href="https://mail-attachment.googleusercontent.com/attachment?ui=2&amp;ik=b914eefc8a&amp;view=att&amp;th=12ebd020e6396ab5&amp;attid=0.1&amp;disp=safe&amp;zw&amp;saduie=AG9B_P8Ttmz5UtLculmISrea7jWc&amp;sadet=1300255397085&amp;sads=hB_L1EgkB6A4_VqifTCQM0HhnDc&amp;sadssc=1_.&lt;<a href="https://mail.google.com/mail" rel="nofollow">https://mail.google.com/mail</a>"><a href="https://mail-attachment.googleusercontent.com/attachment?ui=2&#038;ik=b914eefc8a&#038;view=att&#038;th=12ebd020e6396ab5&#038;attid=0.1&#038;disp=safe&#038;zw&#038;saduie=AG9B_P8Ttmz5UtLculmISrea7jWc&#038;sadet=1300255397085&#038;sads=hB_L1EgkB6A4_VqifTCQM0HhnDc&#038;sadssc=1_.&lt;https://mail.google.com/mail" rel="nofollow">https://mail-attachment.googleusercontent.com/attachment?ui=2&#038;ik=b914eefc8a&#038;view=att&#038;th=12ebd020e6396ab5&#038;attid=0.1&#038;disp=safe&#038;zw&#038;saduie=AG9B_P8Ttmz5UtLculmISrea7jWc&#038;sadet=1300255397085&#038;sads=hB_L1EgkB6A4_VqifTCQM0HhnDc&#038;sadssc=1_.&lt;https://mail.google.com/mail</a></a></p>
<p>&#160;</p>
<p><a title="data by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5552136454/"><img alt="data" src="http://farm6.static.flickr.com/5016/5552136454_eaa23c40b7.jpg" width="500" height="281" /></a></p>
<p>&#160;</p>
<p>orly?</p>
<p><a title="Rick rolling.. by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5551608559/"><img alt="Rick rolling.." src="http://farm6.static.flickr.com/5297/5551608559_731640956d.jpg" width="500" height="281" /></a></p>
<p>&#160;</p>
<p>flip it</p>
<p><a title="Reverse Rickroll by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5552198024/"><img alt="Reverse Rickroll" src="http://farm6.static.flickr.com/5177/5552198024_e3e9f83971.jpg" width="500" height="281" /></a> </p>
<p><a title="box it came in by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5552200014/"><img alt="box it came in" src="http://farm6.static.flickr.com/5183/5552200014_804a75644d.jpg" width="281" height="500" /></a></p>
<p>&#160;</p>
<p>Uhh yeah sure it is.</p>
<p><a title="redbull box by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5551614795/"><img alt="redbull box" src="http://farm6.static.flickr.com/5179/5551614795_f391505dd0.jpg" width="500" height="281" /></a></p>
<p>&#160;</p>
<p>&#160;</p>
<p>Some overly masculine logo. I feel the need to drink energy drinks now</p>
<p>.<a title="data by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5552247490/"><img alt="data" src="http://farm6.static.flickr.com/5266/5552247490_119892c573.jpg" width="500" height="281" /></a></p>
<p>&#160;</p>
<p>&#160;</p>
<p>Thanks for the pacman game redbull&#8230;</p>
<p>&#160;<a title="data by charlie _x, on Flickr" href="http://www.flickr.com/photos/51925658@N08/5551684987/"><img alt="data" src="http://farm6.static.flickr.com/5305/5551684987_49a90e2e26.jpg" width="500" height="281" /></a></p>
<p>&#160;</p>
<p>hackers…..not makers….</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charliex2.wordpress.com/807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charliex2.wordpress.com/807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charliex2.wordpress.com/807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charliex2.wordpress.com/807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charliex2.wordpress.com/807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charliex2.wordpress.com/807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charliex2.wordpress.com/807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charliex2.wordpress.com/807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charliex2.wordpress.com/807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charliex2.wordpress.com/807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charliex2.wordpress.com/807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charliex2.wordpress.com/807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charliex2.wordpress.com/807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charliex2.wordpress.com/807/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=807&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://charliex2.wordpress.com/2011/03/23/redbull-marketing-whats-the-latest-craze-campaign/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f95e755c58bbd8b321047785c1ae0f42?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charliex</media:title>
		</media:content>

		<media:content url="http://www.goth.am/wordpress/Redbull-marketing-whats-the-latest-craze_11BD0/5551527993_5aed7a5972_b_thumb.jpg" medium="image">
			<media:title type="html">5551527993_5aed7a5972_b</media:title>
		</media:content>

		<media:content url="http://www.goth.am/wordpress/Redbull-marketing-whats-the-latest-craze_11BD0/5552112502_6f2ecbdedf_o_thumb.jpg" medium="image">
			<media:title type="html">5552112502_6f2ecbdedf_o</media:title>
		</media:content>

		<media:content url="http://www.goth.am/wordpress/Redbull-marketing-whats-the-latest-craze_11BD0/wlEmoticon-winkingsmile.png" medium="image">
			<media:title type="html">Winking smile</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5016/5552136454_eaa23c40b7.jpg" medium="image">
			<media:title type="html">data</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5297/5551608559_731640956d.jpg" medium="image">
			<media:title type="html">Rick rolling..</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5177/5552198024_e3e9f83971.jpg" medium="image">
			<media:title type="html">Reverse Rickroll</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5183/5552200014_804a75644d.jpg" medium="image">
			<media:title type="html">box it came in</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5179/5551614795_f391505dd0.jpg" medium="image">
			<media:title type="html">redbull box</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5266/5552247490_119892c573.jpg" medium="image">
			<media:title type="html">data</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5305/5551684987_49a90e2e26.jpg" medium="image">
			<media:title type="html">data</media:title>
		</media:content>
	</item>
		<item>
		<title>Eagle class at [NSL]</title>
		<link>http://charliex2.wordpress.com/2010/10/17/eagle-class-at-nsl/</link>
		<comments>http://charliex2.wordpress.com/2010/10/17/eagle-class-at-nsl/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 21:19:41 +0000</pubDate>
		<dc:creator>charliex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://charliex2.wordpress.com/2010/10/17/eagle-class-at-nsl/</guid>
		<description><![CDATA[There is always a lot of interest in learning Eagle, it cheap and popular. It is not the best PCB layout tool around but for most people it does what they need. Thusday, We decided to make a Evil Mad Science Lab’s Larson Scanner, but make it out of all surface mount and try to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=793&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is always a lot of interest in learning Eagle, it cheap and popular. It is not the best PCB layout tool around but for most people it does what they need.</p>
<p>Thusday, We decided to make a Evil Mad Science Lab’s <a href="http://www.evilmadscientist.com/article.php/larsonkit" target="_blank">Larson Scanner</a>, but make it out of all surface mount and try to make it single sided PCB.</p>
<p><a href="http://www.flickr.com/photos/oskay/3968816265/"><img alt="handheld" src="http://farm4.static.flickr.com/3434/3968816265_a77a73bd00.jpg" width="500" height="375" /></a></p>
<p>&#160;</p>
<p>Using Camtasia&#160; I recorded the screen for each part of the class, at just under 1900&#215;1200, whoops, lessons learnt there, most projectors can’t handle that and it makes massive files. The create a part video was 78GBytes.</p>
<p>So lesson learned, check the native resolution of the projector and go from there! Most people probably don’t run 1900&#215;1200 screens either.</p>
<p>&#160;</p>
<p>I grabbed the PDF schematic from EVMSL, then drew it into the Eagle layout, Windell uses gEDA for his schematic.</p>
<p>The original schematic. Click for a bigger version.</p>
<p><a href="http://www.goth.am/EagleclassatNSL_C915/image.png" target="_blank"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://www.goth.am/EagleclassatNSL_C915/image_thumb.png" width="534" height="335" /></a> </p>
<p>The layout</p>
<p><a href="http://www.flickr.com/photos/oskay/3968794857/"><img alt="ixboard" src="http://farm3.static.flickr.com/2427/3968794857_8a455b0c8d.jpg" width="500" height="131" /></a></p>
<p>&#160;</p>
<p>So its always been difficult for me to source Atmel chips, I&#8217;m cursed. Digikey had the MLF package ATtiny2313, which is tiny and basically leadless. Since this is [NSL] that is how we do things.</p>
<p>Next step was to order up enough to make 50 boards, 75 CPUs, 50 switches, 5000 resistors, 5000 capacitors and 500 LEDs. Total cost came into to around $200, not bad for that many boards and we’ve now got some spare components for the next project.</p>
<p>A nice switch was found, and as a bonus it had no Eagle footprint I could find, so this was the perfect part to use for the ‘Make a Part’ video. Another lesson was about to be learnt, don’t concentrate too much on the video or what to say, and pay attention to the part you’re making, more on that later.</p>
<p>Friday, I laid out the board, managed to get it all single sided, and cut the board. Found a new feature of my PCB CNC , Black lines means that the distance is too small to cut, and they don’t cut even in force mode, so the first three boards had missing pads… Oh well it was enough to verify the design and the parts hadn’t arrived yet.</p>
<p>Without the GND polygon processed. you can see the trickiness employed to route the ICSP. But the VCC is missing, which I&#8217;d never have gotten in this way without a jumper</p>
<p><a href="http://www.goth.am/EagleclassatNSL_C915/cylon.png"><img style="display:inline;border-width:0;" title="cylon" border="0" alt="cylon" src="http://www.goth.am/EagleclassatNSL_C915/cylon_thumb.png" width="550" height="380" /></a> </p>
<p>Saturday, the parts arrive from Digikey. I re-laid out the board, had a chat with Chris over at AccurateCNC who’s knowledge about his product and PCB making never fails to amaze me, we chat a bit about the errors of the pads, its interesting that in Eagle if you make a part and it looks the same, the slight math errors that creep can make the difference between an 8mil and a 6mil gap. You’d never see it in eagle without looking at the actual numbers. I’ve seen this a few times on different parts. One pad of an SMD 0603 resistor CNC’d the other didn’t. This is probably due in some part to floating point numbers. </p>
<p>The bad boards, notice the missing pad on the LED on the right, the 0603 resistor to the right of that and one of the ICSP is missing the isolation, which turns out to be the VCC(3V) too.</p>
<p><img src="http://farm5.static.flickr.com/4146/5085463082_27aca0dee6_z.jpg" /></p>
<p>&#160;</p>
<p>I make the first board, and the MLF package turns out to be really easy to reflow, i basically tinned each of the traces and pad in the middle, placed the part and hot plated it, no problem, except when i test the CPU no go.. Ok add the 3V to the ICSP that i forgot, still no good. And yep the chips in 90o off…. Pull the chip and place another one, this one also drops in easily its almost as if the parts want to sit in the right place, it wasn’t hard to align it at all. </p>
<p>After fiddling about with the AVR dragon a bit, setting the speed in ICSP mode I flash the chip with Wendell’s HEX file, flashes and verified ! </p>
<p>Next is the addition of the resistors and LEDs, I dab a drop of leaded solder paste on each pad and add the components with tweezers, throw it on the hotplate and everything&#8217;s tickety boo. Add 3V and all the LED’s start their dance.</p>
<p>MMCA says hey try the switch, no go… hmm what up i think, bad joint. Investigate and that&#8217;s odd, the schematic said the switch part was lengthways right, nope, its the short side… and the PCB is cut in such a way that all three pads need to be modified. I use an exacto knife to cut the trace , then cut away at the ground plane to isolate all but one of the existing grounded switch pads. This is bringing me back to before I&#8217;d rotated the part design by 90o and so the schematic didn’t match the pads. Easily fixed but a pain. Of course I recorded the video and I&#8217;m watching myself create a schematic with an obvious short , but wasn’t paying attention to the diagram..</p>
<p>After much late night not enough coffee stuff, its all together and patched. Here is it with a 3V CR2032 cell as comparison.</p>
<p><img src="http://farm5.static.flickr.com/4092/5088597462_380ec23177_z.jpg" /></p>
<p>&#160;</p>
<p>The red wire is the patch to add 3V to the CPU.. which wasn’t routed in the original design… whoops. you can see the cutting of the copper around the switch to make it work too..</p>
<p>By Saturday morning i have the first pass done, the PCB cut and a working prototype, the changes are back into the board. </p>
<p>Sunday, I’m watching the video and thinking, have to redo the video in a lower resolution and write up a blog post about it, before i forgot half of what i did.&#160; I’ve re-laid out the schematic, made it smaller, its now square, removed the second header, moved Opt1 and opt2 to opposite sides to allow chaining, added the 3V. Changed the ICSP 6 pin from 3&#215;2 to 6&#215;1 and also changed the order, since it was difficult to reroute the board single without&#160; messy traces and 6mil widths. BatchPCB couldn’t cut the PCB as it was.</p>
<p>Here’s a video of it in ‘action’</p>
<object type="application/x-shockwave-flash" width="400" height="267" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=5088608732&amp;photo_secret=700c8b710e&amp;flickr_show_info_box=true"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="photo_id=5088608732&amp;photo_secret=700c8b710e&amp;flickr_show_info_box=true" wmode="opaque" height="267" width="400"></embed></object>
<p>And the switch works.</p>
<p>&#160;</p>
<p>Hopefully on the 29th, a lot of people will have made theirs and add them to pumpkins all over.</p>
<p>Now to finish up work stuff and then cut the hopefully final PCB,&#160; test a couple and then cut 50 PCB’s, i hope my new V90 bits last..</p>
<p>&#160;</p>
<p>No thermals, and i rushed the rubout cut, so didn’t set the depth , but its fine. Only one warning this time and sure enough it had an issue at that corner but right side of the cpu, so i just have to move that trace ever so slightly, I’ll put the polygon thermals back on , as i think it’ll make it hard for people to solder. about 28mm square now. Shame i rushed the rubout as the cut itself was perfect.</p>
<p><img src="http://farm5.static.flickr.com/4111/5090686709_376da557c9_z.jpg" /></p>
<p>&#160;</p>
<p>After it’s made.</p>
<p><img src="http://farm5.static.flickr.com/4129/5091262507_f86b834216_z.jpg" /></p>
<p>&#160;</p>
<p>Programming with the non standard connector and pogo pins</p>
<p><img src="http://farm5.static.flickr.com/4086/5091112369_73f01acf4d_z.jpg" /></p>
<p>&#160;</p>
<p>Size compare with the previous revision</p>
<p>&#160;</p>
<p><img src="http://farm5.static.flickr.com/4132/5091116511_ddd3f2686b_z.jpg" /></p>
<p>&#160;</p>
<p>Hackerspacing up the battery, superglued onto the FR4, loop a wire around the outside of the battery, then another wire under duct tape. Soldering to coin cells is bad, i didn’t do that other one.</p>
<p><img src="http://farm5.static.flickr.com/4103/5091860918_bbc1a659f7_z.jpg" /></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charliex2.wordpress.com/793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charliex2.wordpress.com/793/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charliex2.wordpress.com/793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charliex2.wordpress.com/793/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charliex2.wordpress.com/793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charliex2.wordpress.com/793/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charliex2.wordpress.com/793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charliex2.wordpress.com/793/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charliex2.wordpress.com/793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charliex2.wordpress.com/793/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charliex2.wordpress.com/793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charliex2.wordpress.com/793/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charliex2.wordpress.com/793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charliex2.wordpress.com/793/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=charliex2.wordpress.com&amp;blog=8431556&amp;post=793&amp;subd=charliex2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://charliex2.wordpress.com/2010/10/17/eagle-class-at-nsl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f95e755c58bbd8b321047785c1ae0f42?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charliex</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3434/3968816265_a77a73bd00.jpg" medium="image">
			<media:title type="html">handheld</media:title>
		</media:content>

		<media:content url="http://www.goth.am/EagleclassatNSL_C915/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2427/3968794857_8a455b0c8d.jpg" medium="image">
			<media:title type="html">ixboard</media:title>
		</media:content>

		<media:content url="http://www.goth.am/EagleclassatNSL_C915/cylon_thumb.png" medium="image">
			<media:title type="html">cylon</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4146/5085463082_27aca0dee6_z.jpg" medium="image" />

		<media:content url="http://farm5.static.flickr.com/4092/5088597462_380ec23177_z.jpg" medium="image" />

		<media:content url="http://farm5.static.flickr.com/4111/5090686709_376da557c9_z.jpg" medium="image" />

		<media:content url="http://farm5.static.flickr.com/4129/5091262507_f86b834216_z.jpg" medium="image" />

		<media:content url="http://farm5.static.flickr.com/4086/5091112369_73f01acf4d_z.jpg" medium="image" />

		<media:content url="http://farm5.static.flickr.com/4132/5091116511_ddd3f2686b_z.jpg" medium="image" />

		<media:content url="http://farm5.static.flickr.com/4103/5091860918_bbc1a659f7_z.jpg" medium="image" />
	</item>
	</channel>
</rss>
