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

<channel>
	<title>Kellbot! &#187; hacking</title>
	<atom:link href="http://www.kellbot.com/category/tech/hacking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kellbot.com</link>
	<description>Tinysaurs and Hacking and Nonsense</description>
	<lastBuildDate>Sat, 07 Jan 2012 19:49:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Homemade Cast-on Comb</title>
		<link>http://www.kellbot.com/2011/12/homemade-cast-on-comb/</link>
		<comments>http://www.kellbot.com/2011/12/homemade-cast-on-comb/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 15:00:49 +0000</pubDate>
		<dc:creator>Kellbot</dc:creator>
				<category><![CDATA[crafting]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[cast on comb]]></category>
		<category><![CDATA[DIY tools]]></category>
		<category><![CDATA[knitting machine]]></category>
		<category><![CDATA[superba 1602]]></category>

		<guid isPermaLink="false">http://www.kellbot.com/?p=991</guid>
		<description><![CDATA[The White/Superba 1602 I purchased sadly did not include a full-bed cast on comb, which makes casting on things wider than swatches somewhat tricky. There are a few floating around eBay, but they all seem to be $50 and/or in France, and shipping a three foot long steel comb from France to the US ...]]></description>
			<content:encoded><![CDATA[<p class="wp-flattr-button"></p><p>The White/Superba 1602 I purchased sadly did not include a full-bed cast on comb, which makes casting on things wider than swatches somewhat tricky. There are a few floating around eBay, but they all seem to be $50 and/or in France, and shipping a three foot long steel comb from France to the US isn&#8217;t particularly cheap. Also, I am impatient. I&#8217;m told that a knitting machine store in Toronto also has some, but again, impatient.</p>
<p>So I set out to make my own. The comb consists of small metal teeth which go in between each stitch, and a rod which is threaded through holes in the top of the teeth to trap the yarn in place. I made a 12&#8243; long test comb to see if it would work before committing to a whole yardstick worth of bobby pins and hot glue.</p>
<p>I purchased 4 packages of bobby pins and some wooden rulers at the local dollar store. I then arranged the bobby pins at 5mm intervals along the ruler, since the Superba machines are 5mm machines.</p>
<p><a href="http://www.flickr.com/photos/kellbot/6443865213/" title="IMG_0304 by kellbot, on Flickr"><img src="http://farm8.staticflickr.com/7163/6443865213_9409c77fd9.jpg" width="500" height="375" alt="IMG_0304"></a></p>
<p>I used a second ruler (they were 3 for $1!) to make sure the pins were all at an even height and that they retained their 5mm spacing. Then I ran a line of hot glue along both sides to hold things in place.</p>
<p><a href="http://www.flickr.com/photos/kellbot/6443885859/" title="IMG_0306 by kellbot, on Flickr"><img src="http://farm8.staticflickr.com/7035/6443885859_75c93f69e9.jpg" width="500" height="375" alt="IMG_0306"></a></p>
<p>To use the comb to cast on ribbing, you run the carriage/yarn across the needles to establish a zig-zag of yarn across the bed. Then you push the cast on comb up between each stitch, and run a rod through the top of the comb. This traps the yarn between the rod and the ruler below, letting you appropriately tension the yarn for the first row of stitches.</p>
<p><a href="http://www.flickr.com/photos/kellbot/6443876107/" title="IMG_0309 by kellbot, on Flickr"><img src="http://farm8.staticflickr.com/7012/6443876107_c8d510e4d1.jpg" width="500" height="375" alt="IMG_0309"></a></p>
<p>As you knit, the comb pulls the fabric down between the two beds. A weight is attached to each end to provide tension. In this photo, I&#8217;ve lowered the front bed to make it easier to see what the comb is doing. You can just barely see the small copper rod at the bottom of the fabric.</p>
<p><a href="http://www.flickr.com/photos/kellbot/6443874679/" title="IMG_0307 by kellbot, on Flickr"><img src="http://farm8.staticflickr.com/7020/6443874679_be7c81a3c2.jpg" width="500" height="375" alt="IMG_0307"></a></p>
<p>I used it to knit a gauge swatch for a sweater I plan on knitting soon. It&#8217;s a mini-cable rib pattern. The cables are worked by hand, which is pretty tedious though I&#8217;m slowly getting faster at it.</p>
<p><a href="http://www.flickr.com/photos/kellbot/6444006187/" title="Mini cable rib swatch by kellbot, on Flickr"><img src="http://farm8.staticflickr.com/7022/6444006187_4a27e1d315.jpg" width="500" height="374" alt="Mini cable rib swatch"></a></p>
<p>My dollar store comb is by no means as good as the real thing, but it works pretty well for $2 worth of materials. It has a few key issues which make it a little tricker to use than a normal cast on comb. First, the end of the bobby pins are just a little bit too wide, I have to set the bed spacing all the way up to 6 in order to get them to fit through. Second, the bobby pins get in the way of the holes used to hang the weights. And my DIY comb is nowhere near as durable as the steel one. But it works well enough for now.</p>
 <p><a href="http://www.kellbot.com/?flattrss_redirect&amp;id=991&amp;md5=38bc46e7025c202034311c632ff69ccb" title="Flattr" target="_blank"><img src="http://www.kellbot.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kellbot.com/2011/12/homemade-cast-on-comb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I can stop whenever I want</title>
		<link>http://www.kellbot.com/2011/12/i-can-stop-whenever-i-want/</link>
		<comments>http://www.kellbot.com/2011/12/i-can-stop-whenever-i-want/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 03:31:36 +0000</pubDate>
		<dc:creator>Kellbot</dc:creator>
				<category><![CDATA[crafting]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[knitting machine]]></category>
		<category><![CDATA[light scanning selector box]]></category>
		<category><![CDATA[superba 1602]]></category>

		<guid isPermaLink="false">http://www.kellbot.com/?p=987</guid>
		<description><![CDATA[I don't have a knitting machine problem, I could quit right now, I swear.

While working with my Toyota 747 I decided to try and find a ribber for it, which led me to the Ravelry Knitting Machine Sales group. I did not find a Toyota ribber, but I did find someone in Brooklyn who ...]]></description>
			<content:encoded><![CDATA[<p class="wp-flattr-button"></p><p>I don&#8217;t have a knitting machine problem, I could quit right now, I swear.</p>
<p>While working with my <a title="Knitting Machine Teardown" href="http://www.kellbot.com/2011/11/knitting-machine-teardown/">Toyota 747</a> I decided to try and find a ribber for it, which led me to the Ravelry Knitting Machine Sales group. I did not find a Toyota ribber, but I did find someone in Brooklyn who was selling a White/Superba 1602. He was selling it at a reduced price because the electronic selector box was not functioning.</p>
<p><a title="White/Superba 1602 by kellbot, on Flickr" href="http://www.flickr.com/photos/kellbot/6434164423/"><img src="http://farm8.staticflickr.com/7022/6434164423_37a3c6949b.jpg" alt="White/Superba 1602" width="500" height="375" /></a></p>
<p>The <a href="http://www.superbaknitting.com">Superba knitting machines</a>, which were also sold under the brand names White, Singer, and Phildar, are really interesting machines. Instead of a main bed and an optional removable ribbing bed like most Japanese machines, the Superbas have two permanently fixed identical beds. This makes it much easier to get consistent, even ribbing.</p>
<p>Mechanically, the machine is in good shape. Stockinette stitch, ribbing, and jacquard patterning (done by manually moving the needles into place) all work well.</p>
<p>The selector box, which can be seen in <a href="http://www.flickr.com/photos/paddyboy/2046482954/">Patrick&#8217;s photo stream</a>, works by reading stitch patterns off mylar sheets. A photoresistor detects either a light or dark square and sends a signal to the machine which moves the needles accordingly.<br />
In addition to maintaining a comprehensive site on Superba machines, Patrick also was kind enough to supply me with the users manual, service manual, exploded part diagrams, and logic flow charts for the electronics.</p>
<p>As soon as I opened up the machine and took out the circuit boards, it was clear things weren&#8217;t working properly:</p>
<p><a title="Broken :( by kellbot, on Flickr" href="http://www.flickr.com/photos/kellbot/6434168441/"><img src="http://farm8.staticflickr.com/7021/6434168441_2914dc1531.jpg" alt="Broken :(" width="500" height="375" /></a></p>
<p>I superglued the board itself back together, and then used lumps of solder to repair the broken traces. Jumper wires would have been better, but admittedly I was too lazy to get up and find a spool of wire.</p>
<p>Once the traces were repaired, Phooky helped me test the output voltages. Since it takes in 110V mains power, I was nervous to start poking at it by myself. But we only made the electricity arc between the multimeter probes once. Have I mentioned that mains power is kind of terrifying?</p>
<p>Anyway, of the four pins that connect to the card edge, two are tied together to ground, and the other two provide 24v for the motor drive (which feeds the mylar sheets) as 12v for the COP420 microchip.</p>
<p>Speaking of the COP420, my first instinct was to try to get a firmware dump off the chip and try to reverse engineer the firmware. Not that I have any experience doing that, but luckily <a href="http://magiclantern.wikia.com/wiki/Magic_Lantern_Firmware_Wiki">Trammell</a> does. Unfortunately, he found out that the COP420 is a mask-programmed device, meaning that the program is put into ROM when the chip is created, in contrast to something like the Atmega chips used in Arduinos. If you&#8217;re lucky, the &#8220;test mode&#8221; on the chip was initially enabled, making it possible (if somewhat of a pain) to read out the firmware.</p>
<p>The more I think about it, the more it makes sense just to redesign the selector box from the ground up. Most of the bulk and power of the box is related to the scanning and advancing of the mylar cards, which are adorably archaic but not exactly convenient. A USB interface would be vastly preferable, and would cut down on about 2/3 of the circuit. I need to do some investigating to see if the whole thing could be USB powered, eliminating the need for a separate power cord and bulky transformer.</p>
<p>Yeah, ok, I have a knitting machine problem.</p>
 <p><a href="http://www.kellbot.com/?flattrss_redirect&amp;id=987&amp;md5=38f820c5ca08442b4cd3a208ad91cee6" title="Flattr" target="_blank"><img src="http://www.kellbot.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kellbot.com/2011/12/i-can-stop-whenever-i-want/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Knitting Machine Teardown Part 2</title>
		<link>http://www.kellbot.com/2011/11/knitting-machine-teardown-part-2/</link>
		<comments>http://www.kellbot.com/2011/11/knitting-machine-teardown-part-2/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 18:17:51 +0000</pubDate>
		<dc:creator>Kellbot</dc:creator>
				<category><![CDATA[crafting]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[knitting machine]]></category>
		<category><![CDATA[Toyota K747]]></category>

		<guid isPermaLink="false">http://www.kellbot.com/?p=978</guid>
		<description><![CDATA[After purchasing a fresh sponge bar for the Toyota K747 I started to put it through its paces. It knits stockinette beautifully, so I started working through the tuck stitches.

At first I couldn't get the I and II buttons to stay in place at all. After some disassembly and a lot of oil, we ...]]></description>
			<content:encoded><![CDATA[<p class="wp-flattr-button"></p><p>After purchasing a fresh sponge bar for the <a href="http://www.kellbot.com/tag/toyota-k747/">Toyota K747</a> I started to put it through its paces. It knits stockinette beautifully, so I started working through the tuck stitches.</p>
<p>At first I couldn&#8217;t get the I and II buttons to stay in place at all. After some disassembly and a lot of oil, we got things moving again and it works great. But I quickly noticed that the 3rd needle selector wasn&#8217;t working. So I started to disassemble the machine to figure out why.</p>
<p><a title="IMG_0289 by kellbot, on Flickr" href="http://www.flickr.com/photos/kellbot/6380499513/"><img class="aligncenter" src="http://farm7.staticflickr.com/6105/6380499513_b38a76b45e.jpg" alt="IMG_0289" width="500" height="375" /></a></p>
<p>With the top cover off you can see some of the neat mechanisms in there. The zigzag gear (right) physically moves the needle selector up or down the needle bed. This means if you have a simple shifting pattern like a zigzag or checkerboard, you don&#8217;t need a punch card at all. You can just move the zigzag back and forth with each row.</p>
<p>Each of the blue needle selector levers rotates down to catch a small lever on the bottom of the machine. When these levers are caught, they cause the corresponding shafts (anyone know what these are really called?) to raise, which then push the needle butts forward. The small red lever releases the needle selectors.</p>
<p>Getting into the machine was a little tricky, you have to remove the card and zigzag knobs to access all the screws. Thankfully there&#8217;s a useful diagram in the <a title="Toyota K747 Knitting Machine Instruction and Service Manuals" href="http://www.kellbot.com/2011/11/toyota-k747-knitting-machine-instruction-and-service-manuals/">K747 service manual</a>. With the knobs removed, you can see the discoloration of the plastic over the years.</p>
<p><a title="IMG_0287 by kellbot, on Flickr" href="http://www.flickr.com/photos/kellbot/6380497449/"><img class="aligncenter" src="http://farm7.staticflickr.com/6118/6380497449_4a1ffd1325.jpg" alt="IMG_0287" width="500" height="375" /></a></p>
<p>I had to fully remove the needle bed from the machine casing to get at the needle selector levers. Unfortunately by that time my hands were absolutely covered in grease so I couldn&#8217;t take many pictures. But once I got it out, I could flip it over and see the problem part:<br />
<a title="Busted by kellbot, on Flickr" href="http://www.flickr.com/photos/kellbot/6380500341/"><img class="aligncenter" src="http://farm7.staticflickr.com/6043/6380500341_34c62d85b3.jpg" alt="Busted" width="375" height="500" /></a></p>
<p>The two little tangs on the bottom of the 3rd needle selector have somehow broken off, though I&#8217;m really not sure how. Unfortunately disassembly/repair of that part of the machine isn&#8217;t covered in the service manual. I see two options going forward: 1) I can carefully disassemble the needle selector mechanism, 3D print a replacement lever, and pray to God that I can get it all back together again, or 2) Fashion some replacement tangs with <a href="http://sugru.com/">Sugru</a> and hope they stay in place.</p>
<p>Since option 2 doesn&#8217;t require completely disassembling the machine, I&#8217;m going to try that first. There are a lot of little springs and I&#8217;m not sure I have the dexterity to get them all back in place again. I&#8217;d also like to better document the machine teardown, so sometime in the new year I&#8217;ll recruit an assistant and take apart / photograph the whole thing.</p>
<p>In the meantime the machine works great, and I can come up with plenty of patterns that avoid the 3rd needle selector.</p>
 <p><a href="http://www.kellbot.com/?flattrss_redirect&amp;id=978&amp;md5=6615a83b4f1ae410e84917908619c9d9" title="Flattr" target="_blank"><img src="http://www.kellbot.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kellbot.com/2011/11/knitting-machine-teardown-part-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Knitting Machine Teardown</title>
		<link>http://www.kellbot.com/2011/11/knitting-machine-teardown/</link>
		<comments>http://www.kellbot.com/2011/11/knitting-machine-teardown/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 01:39:17 +0000</pubDate>
		<dc:creator>Kellbot</dc:creator>
				<category><![CDATA[crafting]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[knitting machine]]></category>
		<category><![CDATA[Toyota K747]]></category>

		<guid isPermaLink="false">http://www.kellbot.com/?p=961</guid>
		<description><![CDATA[A few years ago I was given a Toyota K747 knitting machine, a gorgeous blue knitting machine that features a punchcard patterning system. It is by all counts a fascinating machine, and I was excited to receive a lace carriage for it today.



It's been a while since I've devoted time to the knitting machine ...]]></description>
			<content:encoded><![CDATA[<p class="wp-flattr-button"></p><p>A few years ago I was given a Toyota K747 knitting machine, a gorgeous blue knitting machine that features a punchcard patterning system. It is by all counts a fascinating machine, and I was excited to receive a lace carriage for it today.</p>
<p><a href="http://www.flickr.com/photos/kellbot/6346159462/in/photostream/"><img class="size-full wp-image-965 aligncenter" title="Toyota K747" src="http://www.kellbot.com/wp-content/uploads/6346159462_3262147822.jpg" alt="" width="500" height="375" /></a></p>
<p>It&#8217;s been a while since I&#8217;ve devoted time to the knitting machine &#8211; they&#8217;re a bear to set up and take down so without somewhere to leave it set up all the time it can be daunting to use.</p>
<p>I noticed that one of the screws on the side wasn&#8217;t biting into anything, and decided to take the machine apart to figure out what was missing. I took out 6 screws on each end, and pulled off the end caps.</p>
<p><a title="Side view by kellbot, on Flickr" href="http://www.flickr.com/photos/kellbot/6346142694/"><img class="aligncenter" src="http://farm7.static.flickr.com/6212/6346142694_f2f0f7cbc2.jpg" alt="Side view" width="500" height="375" /></a></p>
<p>With the caps off I could stare into the dark abyss of needles and gears. I discovered it&#8217;s really challenging to take photos down a long, dark tube when using a point and shoot camera, so forgive the image quality of the following photos.</p>
<p>There are two &#8220;compartments&#8221; inside the machine, the front area which is all metal and has slots at the top for the needle tabs (called the needle butt) to stick out of, and the back which is mostly plastic where the needle butts rest. This is also where the patterning shafts (for lack of a better term) are located.</p>
<p>Here&#8217;s the front compartment, the front of the machine is to the left. If you have trouble seeing the needle tabs, click the image for an annotated version.</p>
<p><a title="Front interior by kellbot, on Flickr" href="http://www.flickr.com/photos/kellbot/6345393185/"><img class="aligncenter" src="http://farm7.static.flickr.com/6213/6345393185_4e4acd985a.jpg" alt="Front interior" width="500" height="375" /></a></p>
<p>Here&#8217;s the back. You can see there&#8217;s some greasy dusty areas. I&#8217;m not sure how to get in there to clean it. The needle shanks are pointing down to the &#8220;shafts&#8221;, which if you look closely you can see there are 12. The Toyota K747&#8242;s repeat is 12 stitches wide.</p>
<p><a title="Rear interior by kellbot, on Flickr" href="http://www.flickr.com/photos/kellbot/6345393947/"><img class="aligncenter" src="http://farm7.static.flickr.com/6051/6345393947_f84ba6281c.jpg" alt="Rear interior" width="500" height="375" /></a></p>
<p>The missing part in question is a small rectangular nut which slides into the end cap. I&#8217;m really hoping this is something I can source rather than having to mill/tap one myself. Any suggestions for shortcuts are appreciated.</p>
<p><a title="Mysterious nut by kellbot, on Flickr" href="http://www.flickr.com/photos/kellbot/6346159924/"><img class="aligncenter" src="http://farm7.static.flickr.com/6054/6346159924_b86f183590_m.jpg" alt="Mysterious nut" width="180" height="240" /></a></p>
<p>Aside from the missing nut, the machine is in great shape, and the nut isn&#8217;t super crucial to the machine&#8217;s operation. My next step is to find a scale version of one of the punch cards so I can cut some out on the laser cutter. I found a few places that claim to sell punch cards for it but none of them had them in stock.</p>
 <p><a href="http://www.kellbot.com/?flattrss_redirect&amp;id=961&amp;md5=3042a9860f6729d40e6064ed6cd80a3e" title="Flattr" target="_blank"><img src="http://www.kellbot.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kellbot.com/2011/11/knitting-machine-teardown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting XBMC to work with our Xbox 360 Wireless Controller</title>
		<link>http://www.kellbot.com/2011/11/getting-xbmc-to-work-with-our-xbox-360-wireless-controller/</link>
		<comments>http://www.kellbot.com/2011/11/getting-xbmc-to-work-with-our-xbox-360-wireless-controller/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 21:53:02 +0000</pubDate>
		<dc:creator>Kellbot</dc:creator>
				<category><![CDATA[Consumer Hardware]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.kellbot.com/?p=929</guid>
		<description><![CDATA[This is part two of our home theater PC adventure. If you've just arrived you may want to start with part 1, Hello Xbox 360 Wireless Gaming Receiver.



Hooray, Windows can finally see the controller. We fire up the control panel tool for gaming devices and confirm that all buttons and axes work. We're just ...]]></description>
			<content:encoded><![CDATA[<p class="wp-flattr-button"></p><p><em>This is part two of our home theater PC adventure. If you&#8217;ve just arrived you may want to start with part 1, <a href="http://www.kellbot.com/2011/11/controlling-our-home-theater-pc-with-a-wireless-360-controller/">Hello Xbox 360 Wireless Gaming Receiver</a>.</em></p>
<p><a href="http://www.kellbot.com/wp-content/uploads/gamekitten.jpg"><img class="alignleft size-medium wp-image-935" title="gamekitten" src="http://www.kellbot.com/wp-content/uploads/gamekitten-300x200.jpg" alt="" width="300" height="200" /></a></p>
<p>Hooray, Windows can finally see the controller. We fire up the control panel tool for gaming devices and confirm that all buttons and axes work. We&#8217;re just about there! XBMC even helpfully includes keymappings for the xbox controller by default! We should be pretty much plug-and-play from here! I open up XBMC and&#8230;. nothing. The controller does nothing. I smash all the buttons, and still nothing.</p>
<p>The first step in debugging is to <a href="http://wiki.xbmc.org/index.php?title=Log_file#Location">open up the log file</a> and see what&#8217;s going on. The log file starts fresh every time you boot XBMC, and if you&#8217;re lucky you&#8217;ll see a line like this shoved in there:</p>
<p><code>19:00:17 T:2904 M:876916736 NOTICE: Enabled Joystick: Controller (XBOX 360 For Windows)</code></p>
<p>This means that XBMC can see the controller. It also tells us that it thinks the controller is named &#8220;Controller (XBOX 360 For Windows)&#8221; and depending on your OS and a few other seemingly random factors, it may be named something different.</p>
<p>This name is critically important, because it&#8217;s how XBMC knows which keymapping profile to pick up. When I went into the XBMC system/keymappings folder and looked at the existing 360 controller profiles, none of them was an exact name match. So I copied one of them and pasted it into the <a href="http://wiki.xbmc.org/?title=Keymap.xml">user keymappings folder</a>.</p>
<p>The next step is to go into our copy and replace <code></code> with <code></code> <em>or whatever your system thinks it&#8217;s called</em>. That node pops up a bunch so you&#8217;ll probably want to use find+replace rather than manually copying and pasting all the time.</p>
<p>I&#8217;m not sure exactly what happened, at some point while I was messing around with all of this I managed to un-pair the controller from the PC without realizing it. After much cursing and whining, &#8220;why doesn&#8217;t it woooooork,&#8221; I realized what had happened and rebooted things.<br />
Once I had renamed the joystick and it was actually communicating with the PC, I fired up XBMC and something magical happened: both the A and B buttons were functioning as Select and Back, respectively. Hooray! And the right analog stick was working as a volume control (though the axis was inverted). Not much else seemed to do anything, but IT WAS WORKING. Hooray!</p>
<p>The next task was getting the D-pad to work for navigating menus. Let me take this time to say that like most people who grew up with Nintendo controllers, the d-pad on the Xbox 360 controller is a source of scorn and hatred. But I wasn&#8217;t quite ready to tackle the analog stick, so the d-pad would have to do.</p>
<p>At this point I <a href="http://wiki.xbmc.org/index.php?title=Log_file#Enable_Debugging">turned on debugging</a> in XBMC and then proceeded to methodically press every button on the controller (and swivel each stick axis) exactly once. This worked great for the buttons but none of the axis data showed up in the debugger at all. Great. The keymap xml file I copied incorrectly identified the d-pad as &#8220;buttons&#8221; when it is in fact a &#8220;hat&#8221; according to Windows, so once I replaced the &#8220;button&#8221; nodes with &#8220;hat&#8221; nodes I was able to map the directions on the d-pad to Up/Down/Left/Right commands.</p>
<p>I should mention that I spent a lot of time googling about my problem, and mostly found forum threads where one person said &#8220;my xbox controller doesn&#8217;t work&#8221; and another person said &#8220;use xpadder,&#8221; or someone says &#8220;the d-pad doesn&#8217;t seem to work&#8221; and again the reply is &#8220;use xpadder.&#8221; After reading that response in about 20 threads, I was really starting to think the whole system was just too bugged to be viable. But in reality, people on the xbmc forums just aren&#8217;t willing to get their hands dirty.</p>
<p>Only in the process of writing up this post did I find someone who had actually taken the time to <a href="http://forum.xbmc.org/archive/index.php/t-89630.html">map out which buttons, hats, and axes where which</a>. I wish I had found that post last night, it would have saved me about two hours.</p>
<p>I&#8217;m still deciding what the analog sticks should do, and trying to figure out how to get the controller to turn off when I&#8217;m done, but we got things to the point where it was good enough to navigate around to Dexter, and that was enough for one night. And I will say, navigating with the Xbox controller feels nice, much nicer than breaking out the clunky keyboard.</p>
 <p><a href="http://www.kellbot.com/?flattrss_redirect&amp;id=929&amp;md5=a7e525bf1055a2a6565c836c97254208" title="Flattr" target="_blank"><img src="http://www.kellbot.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kellbot.com/2011/11/getting-xbmc-to-work-with-our-xbox-360-wireless-controller/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Controlling our Home Theater PC with a wireless 360 Controller</title>
		<link>http://www.kellbot.com/2011/11/controlling-our-home-theater-pc-with-a-wireless-360-controller/</link>
		<comments>http://www.kellbot.com/2011/11/controlling-our-home-theater-pc-with-a-wireless-360-controller/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 03:12:11 +0000</pubDate>
		<dc:creator>Kellbot</dc:creator>
				<category><![CDATA[Consumer Hardware]]></category>
		<category><![CDATA[hacking]]></category>

		<guid isPermaLink="false">http://www.kellbot.com/?p=924</guid>
		<description><![CDATA[

We recently set up Xbox Media Center (XBMC) on the computer that's attached to the TV. XBMC actually has nothing to do with xbox - it was a homebrew media center application for the original xbox that has since been ported to Windows/Linux/Mac/iOS.

We're pretty close to what we feel is the "perfect" setup, but ...]]></description>
			<content:encoded><![CDATA[<p class="wp-flattr-button"></p><p><a href="http://www.kellbot.com/wp-content/uploads/aeon_multiplex.jpg"><img class="aligncenter size-medium wp-image-925" title="aeon_multiplex" src="http://www.kellbot.com/wp-content/uploads/aeon_multiplex-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p>We recently set up Xbox Media Center (XBMC) on the computer that&#8217;s attached to the TV. XBMC actually has nothing to do with xbox &#8211; it was a homebrew media center application for the original xbox that has since been ported to Windows/Linux/Mac/iOS.</p>
<p>We&#8217;re pretty close to what we feel is the &#8220;perfect&#8221; setup, but getting here was a headache and a half so I&#8217;m putting up a series of posts documenting our journey.</p>
<p>Part 1:  Hello Xbox 360 Wireless Gaming Receiver<br />
Part 2: <a href="http://www.kellbot.com/2011/11/getting-xbmc-to-work-with-our-xbox-360-wireless-controller/">Getting XBMC to work with our Xbox 360 Wireless Controller</a></p>
<h1>Hello Xbox 360 Wireless Gaming Receiver</h1>
<p>We&#8217;re currently using a wireless keyboard/mouse combo with our media PC, which is clunky and sort of a pain to use. I started looking into media center remotes. We also have a collection of wireless 360 controllers, and only very rarely use all four at once. And so my mission began.</p>
<p>Microsoft did at one point make a wireless 360 controller receiver for the PC, a little white dongle that plugs in to a USB port. Unfortunately, they discontinued it some time ago. You can still find the <a href="http://www.amazon.com/gp/product/B004QRKWKQ/ref=as_li_ss_tl?ie=UTF8&amp;tag=independanttoys&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=B004QRKWKQ">receiver bundled with a controller</a> some places, but I had a hard time finding an OEM standalone receiver.</p>
<p><a href="http://www.kellbot.com/wp-content/uploads/unnamed.jpg"><img class="alignleft size-full wp-image-927" title="unnamed" src="http://www.kellbot.com/wp-content/uploads/unnamed.jpg" alt="" width="220" height="220" /></a>Fortunately, the Chinese knock-offs on eBay are still readily available. I got one for $13 including shipping, it&#8217;s a little white wireless dongle with a USB cable. Unsurprisingly, it did not include a driver disk. Equally unsurprisingly, Windows had no idea what it was when we plugged it in.</p>
<p>We downloaded the official Microsoft drivers for the official dongle. You can find them here: <a href="http://www.microsoft.com/hardware/en-us/downloads">http://www.microsoft.com/hardware/en-us/downloads</a> , click under the gaming heading.</p>
<p>Our media PC is running Windows XP. Everyone else seemed to have a perfectly fine time <a href="http://www.steelfrog.com/using-the-microsoft-wireless-gaming-receiver-in-64-bit-windows-7-or-vista/">installing the drivers by hand</a>. I guess we&#8217;re just unlucky, but the damned thing just wouldn&#8217;t install.</p>
<p>Turns out, we had the same problem <a href="http://www.wtflolomgbbq.com/article/2010/1/20/The-Xbox-360-Wireless-controller-saga">this guy</a> had: the dongle wasn&#8217;t identifying itself correctly, and thus Windows didn&#8217;t recognize that it belonged to the driver.</p>
<p>The fix involves editing the driver&#8217;s .ini file, which sounds a lot scarier than it is. Here are the steps I took:</p>
<p>Step 1: Find your errant dongle in the hardware manager.</p>
<ol>
<li>Go to your <strong>Control Panel</strong></li>
<li>Click on <strong>Hardware and Sound</strong></li>
<li>Click on <strong>Device Manager</strong> under Devices and Printers</li>
<li>Scroll down the list to <strong>Other devices</strong></li>
<li>Double-click the <strong>Unknown device</strong><strong>. </strong>If you have multiple unknown devices, you may need to use the process of elimination to figure out which one it is.<strong><br />
</strong></li>
</ol>
<p>Step 2: Find out your device&#8217;s PID</p>
<ol>
<li>Click on the <strong>Details</strong> tab</li>
<li>Look for something like this <strong>USB\VID_045E&amp;PID_0291&amp;REV_0107</strong></li>
<li>The bit you&#8217;re looking for is PID_0291, or whatever number is in the place of 0291</li>
<li>If the number you see is 0719, <em>you have a different problem than I did</em>. Sorry.</li>
</ol>
<p>Step 3: Edit the driver .ini file to reflect the actual PID</p>
<ol>
<li>Figure out where the driver installed itself (probably somewhere within c:/program files) and open that folder</li>
<li>Open up Xusb21.inf in Notepad or your favorite text editor</li>
<li>Find and replace any instances of &#8216;Pid_0719&#8242; with &#8216;Pid_0291&#8242; or whatever your device&#8217;s number is</li>
<li>Save the file</li>
</ol>
<p>Now if you&#8217;re lucky, you can run through the update driver dialog, point it at the folder containing xusb21.ini, and Windows will recognize the device as a Wireless Xbox 360 Receiver. Hooray! You are now halfway to tv-controller bliss.</p>
<p>On to the next part, <a href="http://www.kellbot.com/2011/11/getting-xbmc-to-work-with-our-xbox-360-wireless-controller/">getting the stupid thing to work with XBMC</a>.</p>
 <p><a href="http://www.kellbot.com/?flattrss_redirect&amp;id=924&amp;md5=b057798a8d70f31c46b954e30fd4837a" title="Flattr" target="_blank"><img src="http://www.kellbot.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kellbot.com/2011/11/controlling-our-home-theater-pc-with-a-wireless-360-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just Say No to &#8220;No&#8221;</title>
		<link>http://www.kellbot.com/2011/05/just-say-no-to-no/</link>
		<comments>http://www.kellbot.com/2011/05/just-say-no-to-no/#comments</comments>
		<pubDate>Wed, 11 May 2011 20:31:14 +0000</pubDate>
		<dc:creator>Kellbot</dc:creator>
				<category><![CDATA[hacking]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.kellbot.com/?p=847</guid>
		<description><![CDATA[I'm a member of NYC Resistor, and while I think we're a pretty awesome group of people, we're not without our bikeshed arguments. These kinds of arguments, in any group, can range from mild time-killers to arguments so intense people end up feeling personally hurt.

One of the biggest problems I've noticed is when people ...]]></description>
			<content:encoded><![CDATA[<p class="wp-flattr-button"></p><p>I&#8217;m a member of NYC Resistor, and while I think we&#8217;re a pretty awesome group of people, we&#8217;re not without our <a href="http://hackerspaces.org/wiki/The_Bikeshed_Anti-Pattern">bikeshed arguments</a>. These kinds of arguments, in any group, can range from mild time-killers to arguments so intense people end up feeling personally hurt.</p>
<p>One of the biggest problems I&#8217;ve noticed is when people start shooting other people ideas down. It starts a negative feedback loop, and everything goes downhill from there. But lets face it, some ideas really are terrible, and maybe we think it&#8217;s worth a bruise to the person&#8217;s ego to save us all from a huge mistake. How do you skirt a bad idea without killing a friendship?</p>
<p>Personally, I&#8217;m going to work on shifting away from saying &#8220;no&#8221; to people. Which is not the same as saying yes. I&#8217;m banning &#8220;no&#8221; from my discussion vocabulary, and replacing it with the phrases &#8220;what if, instead/additionally&#8230;&#8221; and &#8220;I&#8217;d be OK with that if&#8230;, &#8221; followed by an explanation of what would make me more comfortable with the project.</p>
<p><a href="http://www.kellbot.com/wp-content/uploads/no.jpg"><img class="aligncenter size-full wp-image-848" title="no" src="http://www.kellbot.com/wp-content/uploads/no.jpg" alt="" width="500" height="317" /></a></p>
<p>For [an absurd] example, let&#8217;s say someone in the group wants to buy an iguana and keep it at the space. I think this is a terrible idea, the space is for people, not animals. Instead of saying, &#8220;no, an iguana at the space is a disaster waiting to happen, it will totally die,&#8221; I could say &#8220;before diving into herpetology, let&#8217;s get a few plants for the space and see how that goes.&#8221; Or maybe, &#8220;I&#8217;m worried it will be forgotten and die, what could we do to make sure Iggy is cared for?&#8221; This gives people a way out of the stalemate and on to continue the discussion.</p>
<p>It takes less than a second to say no. Yet we spend too much time reciting our many and varied reasons to say no, rather than listening and considering what we could do to find a compromise.</p>
<p>So just like giving up &#8220;<a href="http://www.kellbot.com/2009/04/you-know-what-you-should-do/">you should</a>,&#8221; I&#8217;m giving up &#8220;no.&#8221;  I invite you to call me out on it when I backslide, and hope you&#8217;ll consider ditching &#8220;no&#8221; too.</p>
 <p><a href="http://www.kellbot.com/?flattrss_redirect&amp;id=847&amp;md5=fa13196c0eea386b3e676c0250e632da" title="Flattr" target="_blank"><img src="http://www.kellbot.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kellbot.com/2011/05/just-say-no-to-no/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hooked on &#039;botting</title>
		<link>http://www.kellbot.com/2011/04/hooked-on-botting/</link>
		<comments>http://www.kellbot.com/2011/04/hooked-on-botting/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 21:23:20 +0000</pubDate>
		<dc:creator>Postling</dc:creator>
				<category><![CDATA[hacking]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[makerbot]]></category>

		<guid isPermaLink="false">http://www.kellbot.com/2011/04/hooked-on-botting/</guid>
		<description><![CDATA[	This week I makerbotted for the first time! I know, I know... I should have done this much much sooner. Everything Tiny and Makerbot were actually founded in the same room, the old NYC Resistor location, and it&#39;s been really exciting to see things take off for them. But until recently, partly due to ...]]></description>
			<content:encoded><![CDATA[<p class="wp-flattr-button"></p><p>	This week I makerbotted for the first time! I know, I know&#8230; I should have done this much much sooner. <a href="http://www.everythingtiny.com">Everything Tiny</a> and <a href="http://www.makerbot.com">Makerbot</a> were actually founded in the same room, the old <a href="http://nycresistor.com">NYC Resistor</a> location, and it&#39;s been really exciting to see things take off for them. But until recently, partly due to the success of Everything Tiny, I never really had time to sit down and get personally aquanited with the wide world of 3D printing.</p>
<p>	Part of my probelm was that I always had ideas which were large and complicated, and I never finished the designs. So in an effort to actually produce something, I set myself to a very simple first project: a plastic organizer insert for a mint tin.</p>
<p>	<img alt="Subdivided mint tin" src="http://images.postling.com/3/37a/g_400xN.13039.jpg" style="width: 400px; height: 300px;" /></p>
<p>	I&#39;m using it to organize my miniature pompom collection. Because I have one of those.</p>
<p>	Overall the printing process was pretty easy. Adam, Matt, and Pax were nice enough to help me get over the few problems I ran into. Matt, who is the developer in charge of ReplicatorG (Makerbot&#39;s printing software), gave helpful instructions like &quot;now click the picture of the potato with an arrow coming out of it.&quot; He then asked if I knew any UI designers looking for work.</p>
<p>	Here are the issues I ran into on my maiden print:</p>
<p>	<strong>The model didn&#39;t adhere to the bed.&nbsp; </strong>Because my design is pretty thin, it didn&#39;t stick very well to the bed of the makerbot, even with the heated build platform. This was easy enough to fix, we turned on the raft (a layer of plastic which goes down evenly before you start the real print, and is removable later).</p>
<p>	<strong>The plastic was coming out goopy.</strong> The main issue with my first two attempts was that the plastic was coming out much too thick, and kind of lumpy/grainy. This caused two problems: first, it looked terrible, with little lumpy bits everywhere. But more importantly, the lumpy goopy bits would build up and then harden. Then when the extruder head came by again, it would hit these plastic lumps and move the model, throwing off the registration.</p>
<p>	There were two suggested fixes here: first was to increase the speed, so that the build platform would move faster (allowing for less material to build up). This was met with a certain degree of success, but Adam suggested that the plastic we were using, which had been sitting out at Resistor for quite some time, had absorbed too much water from the air to really be useful. The moral of the story here is to store your plastics in airtight containers with some desiccant. In the end, we switched plastics.</p>
<p>	<strong>My machine wouldn&#39;t talk to the Makerbot. </strong>This ended up being an issue with my machine, a somewhat unhappy eeePC. When I switched to my mac, all was happy again. Also, the eee is way too underpowered to really be generating gcode for prints. I was able to cold-boot my mac, install RepG, install the drivers, and generate the print&#39;s gcode from scratch in the time it took my eee to get halfway done generating the same gcode.</p>
<p>	<strong>The build platform wouldn&#39;t heat</strong>. This one took us the longest to debug. One of the connectors was visibly damaged (names were named but I won&#39;t reprint them here), but it worked just often enough to make us think something else was the problem. After some thorough testing with the&nbsp; multimeter, and some careful coaxing of the connections, power was restored to the build platform.</p>
<p>	<a href="http://www.thingiverse.com/thing:7815"><img alt="" src="http://images.postling.com/9/9f2/g_400xN.13040.jpg" style="width: 400px; height: 353px;" /></a></p>
<p>	Here&#39;s the source model, which I&#39;ve uploaded to Thingiverse. Note that this is meant to fit mint tins that I purchase wholesale, and as such may not fit the Altoids tins. I created the object in Google SketchUp and then exported it to STL for use with RepG. GoogleSketchUp is OK for doing things quickly, but there are a lot of things I wanted to do with the design that I couldn&#39;t convince SketchUp to let me do. Particularly, I wanted nice rounded edges on the top of my model.</p>
<p>	I&#39;m happy with the final print, and really stoked about Makerbotting more models in the future!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kellbot.com/2011/04/hooked-on-botting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hackers The Movie 15th Anniversary</title>
		<link>http://www.kellbot.com/2010/09/hackers-the-movie-15th-anniversary/</link>
		<comments>http://www.kellbot.com/2010/09/hackers-the-movie-15th-anniversary/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 18:22:36 +0000</pubDate>
		<dc:creator>Postling</dc:creator>
				<category><![CDATA[hacking]]></category>

		<guid isPermaLink="false">http://www.kellbot.com/2010/09/hackers-the-movie-15th-anniversary/</guid>
		<description><![CDATA[	It&#39;s hard to imagine that 15 years have passed since Hackers came out. It seems like only yesterday we were grimacing through the bad acting and worse &#34;technology&#34; references that Hackers brought to life.		Whether you love or hate the movie, everyone can agree that the 15th Anniversary Party is the perfect excuse to dress ...]]></description>
			<content:encoded><![CDATA[<p class="wp-flattr-button"></p><p>	It&#39;s hard to imagine that 15 years have passed since Hackers came out. It seems like only yesterday we were grimacing through the bad acting and worse &quot;technology&quot; references that Hackers brought to life.</p>
<p>	<img alt="" src="http://azman.blog.com/files/2009/11/hackers.jpg" style="width: 500px; height: 367px;" /></p>
<p>	Whether you love or hate the movie, everyone can agree that the <a href="http://www.kickstarter.com/projects/fred/hackers-the-movie-15th-anniversary-party-on-oct-2n">15th Anniversary Party</a> is the perfect excuse to dress up in ridiculous looking retro clothing and drink with a bunch of other wannabe cyberpunks. In other words, it will be a typical night in Williamsburg.</p>
<p>	More information on the party <a href="http://www.kickstarter.com/projects/fred/hackers-the-movie-15th-anniversary-party-on-oct-2n">Kickstarter Page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kellbot.com/2010/09/hackers-the-movie-15th-anniversary/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DSx86</title>
		<link>http://www.kellbot.com/2010/07/dsx86/</link>
		<comments>http://www.kellbot.com/2010/07/dsx86/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 18:41:27 +0000</pubDate>
		<dc:creator>Kellbot</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[hacking]]></category>

		<guid isPermaLink="false">http://www.kellbot.com/?p=669</guid>
		<description><![CDATA[Every now and then I come across something that I can't believe someone has taken the time to write.

In this case, it's a DOS emulator for the Nintendo DS, the DSx86.

As if there weren't enough options for extending the DS (homebrew, NES emulation), one man has taken it upon himself to write a DOS ...]]></description>
			<content:encoded><![CDATA[<p class="wp-flattr-button"></p><p>Every now and then I come across something that I can&#8217;t believe someone has taken the time to write.</p>
<p>In this case, it&#8217;s a DOS emulator for the Nintendo DS, the <a href="http://dsx86.patrickaalto.com/">DSx86</a>.</p>
<p>As if there weren&#8217;t enough options for extending the DS (homebrew, NES emulation), one man has taken it upon himself to write a DOS emulator for the DS. It will run most games that run on a 286/386, with some caveats. Not all the opcodes have been written in yet, and sound blaster support requires a little bit of finesse. But it&#8217;s under active development, which is exciting.</p>
<p>You load a game the same way you did back in the day&#8230; from the command line. Since the DS doesn&#8217;t have a keyboard, DSx86 includes one for you on the touch screen. It&#8217;s hilariously adorable.</p>
<p><a href="http://www.kellbot.com/wp-content/uploads/dsx86.gif"><img class="aligncenter size-full wp-image-670" title="dsx86" src="http://www.kellbot.com/wp-content/uploads/dsx86.gif" alt="" width="256" height="192" /></a>Once the game is loaded you can either continue to use the &#8220;keyboard&#8221; or swap screens so that your game is shown in the touchscreen and you can use the stylus as a mouse. Holding down left/right on the d-pad to click took a bit of getting used to. There&#8217;s also a tap-to-click mode, but I found it difficult to use for gaming. It was a good illustration of how programs not designed for a touchscreen can be infuriating to use on one. Because most DOS games run at a slightly larger resolution than the DS, you have the option of either panning or resizing the screen. I found panning to be the most useful, and all it really cut off was the title/menu bar at the top.</p>
<p>Seeing the old Sierra logo along with the MIDI-tastic intro music on the DS was ridiculous and awesome. I&#8217;m just about finished my 20th or so lifetime play through of <a href="http://en.wikipedia.org/wiki/The_Island_of_Dr._Brain">The Island of Dr. Brain</a>. If you&#8217;re dying to take some of your old DOS games with you (you did save them all, right?) , check the <a href="http://dsx86compatibility.pbworks.com/Compatibility-List">compatibility list</a> and give DSx86 a try.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kellbot.com/2010/07/dsx86/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

