<?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>biphenyl.org &#187; DIY</title>
	<atom:link href="http://biphenyl.org/blog/category/diy/feed/" rel="self" type="application/rss+xml" />
	<link>http://biphenyl.org/blog</link>
	<description>Aromatic, organic, no longer associated with persistent environmental toxins?</description>
	<lastBuildDate>Sat, 16 Jul 2011 07:03:50 +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>Power Glove Updates, Maker Faire Bay Area</title>
		<link>http://biphenyl.org/blog/2009/05/24/power-glove-updates-maker-faire-bay-area/</link>
		<comments>http://biphenyl.org/blog/2009/05/24/power-glove-updates-maker-faire-bay-area/#comments</comments>
		<pubDate>Mon, 25 May 2009 05:56:41 +0000</pubDate>
		<dc:creator>biphenyl</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Flashbang]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://biphenyl.org/blog/?p=55</guid>
		<description><![CDATA[Over the past few weeks I&#8217;ve been working on some improvements and extensions to my Power Glove 20th Anniversary Edition. On the tech side of things, I replaced the ugly 9V battery I was using with a low-profile, rechargeable Lithium-Polymer battery. I&#8217;ve updated the steps in the Instructable with new pictures and instructions. I also [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past few weeks I&#8217;ve been working on some improvements and extensions to my <a href="http://biphenyl.org/blog/2009/04/03/the-power-glove-20th-anniversary-edition/">Power Glove 20th Anniversary Edition</a>. On the tech side of things, I replaced the ugly 9V battery I was using with a low-profile, rechargeable Lithium-Polymer battery. I&#8217;ve updated the steps in the <a href="http://www.instructables.com/id/Power-Glove-20th-Anniversary-Edition/">Instructable</a> with new pictures and instructions.</p>
<p>I also re-wrote my Java-Unity bridge using a UDP socket. This is a lot more elegant than the text file approach I had been using before. Now the Java program acts as a server, reading in serial data from Bluetooth and broadcasting each line as a UDP packet. The Unity input manager then reads the UDP packets and parses the actual sensor values. This should reduce disk writes, and is more reliable, so I don&#8217;t have to reset the Java bridge as often. I&#8217;ve updated the <a href="http://biphenyl.org/projects/PG20Edition/PG20Edition.zip">code bundle</a> with the new Java and Unity source code.</p>
<p><a href="http://www.makezine.com/go/makerfaire"><img src="http://makezine.com/images/makerfaire/badges/2009/mf_bayarea_150X60.jpg" alt="See me at Maker Faire!" width="150" height="60" border="0" /></a></p>
<p>The other big news is that I&#8217;m going to be exhibiting at <a href="http://makerfaire.com/">Maker Faire Bay Area</a>! Maker Faire is one of my favorite gatherings &#8212; a fantastic nexus of creative people making wonderful things. If you&#8217;re in the Bay Area, you can come try the Power Glove out for yourself this weekend, May 30-31, at the San Mateo County Expo Center!</p>
<p>As a bonus for Maker Faire attendees, I&#8217;ve finished adding Power Glove support to our most popular Blurst game, <a href="http://blurst.com/raptor-safari/play">Off-Road Velociraptor Safari</a>! I recorded a demo video to show it off:</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=4821694&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=4821694&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://biphenyl.org/blog/2009/05/24/power-glove-updates-maker-faire-bay-area/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Make the Future You Imagined: The Power Glove &#8212; 20th Anniversary Edition</title>
		<link>http://biphenyl.org/blog/2009/04/03/the-power-glove-20th-anniversary-edition/</link>
		<comments>http://biphenyl.org/blog/2009/04/03/the-power-glove-20th-anniversary-edition/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 17:20:45 +0000</pubDate>
		<dc:creator>biphenyl</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Flashbang]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://biphenyl.org/blog/?p=36</guid>
		<description><![CDATA[I always loved the Nintendo Power Glove. Not because it was a fun or useful peripheral &#8212; it wasn&#8217;t. In fact it wasn&#8217;t bad, as Lucas asserted, it was absolutely terrible. Only two games were ever made to work with it &#8212; Super Glove Ball and Bad Street Brawler. You could use it with other [...]]]></description>
			<content:encoded><![CDATA[<p>I always loved the Nintendo Power Glove. Not because it was a fun or useful peripheral &#8212; it wasn&#8217;t. In fact it wasn&#8217;t bad, as <a href="http://www.imdb.com/title/tt0098663/quotes">Lucas</a> asserted, it was absolutely terrible. Only two games were ever made to work with it &#8212; Super Glove Ball and Bad Street Brawler. You could use it with other NES games of course, but it was just an obfuscated controller. Plus, it was horribly imprecise, and since it required a sensor bar to find its orientation, you had to hold your hand at shoulder level all the time. No, I loved the Power Glove for what it represented &#8212; a precursor to virtual reality, a way for humans to directly manipulate computers, like an artifact from some sort of alternate future Earth.</p>
<p>I realized one day that we&#8217;re actually living in that future. It doesn&#8217;t look the same as we imagined it, but the necessary elements are all there. It&#8217;s been 20 years now since Mattel released the Power Glove, in 1989. Especially in the last few years, the availability of sophisticated sensing equipment to hardware hackers has grown by leaps and bounds. Technology like programmable microcontrollers, accelerometers, and Bluetooth are readily available &#8212; and cheap. In short, the time is ripe to re-make the Power Glove &#8212; and make it <em>right</em>.</p>
<p>Over the past month, I&#8217;ve done just that. I stripped the guts out of an original Power Glove, replaced the ultrasonic sensors with an accelerometer, the proprietary microcontroller with an open-source Arduino, and the wired connection with Bluetooth. I wrote an input manager to get the data into <a href="http://unity3d.com">Unity</a>, and hooked it up to the boxing game Adam and I are making for iPhone, Touch KO. What&#8217;s more, I&#8217;ve documented the whole process so that you can make you own!</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3985361&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=3985361&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object></p>
<p>I have a video, photos, and an instructable of the build process, and have the schematic, Arduino, and Unity code available for download. You can read the data in any way you like, but since many software packages don&#8217;t have direct access to serial ports (Unity included), I&#8217;ve also written a small Java program that takes the input and dumps it directly to a text file.</p>
<p>Side note: Since my last post I tried and now totally dig twitter. <a href="http://twitter.com/biphenyl">Follow me</a>.</p>
<ul>
<li><a href="http://www.instructables.com/id/Power-Glove-20th-Anniversary-Edition/">Instructable</a></li>
<li><a href="http://vimeo.com/3985361">Video on Vimeo</a></li>
<li><a href="http://www.flickr.com/photos/mmechtley/sets/72157615867731266/">Build Photoset on Flickr</a></li>
<li><a href="http://biphenyl.org/projects/PG20Edition/PG20EditionSchematic.pdf">Circuit Schematic</a></li>
<li><a href="http://biphenyl.org/projects/PG20Edition/PG20Edition.zip">Zip of Arduino, Unity, and Java code</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://biphenyl.org/blog/2009/04/03/the-power-glove-20th-anniversary-edition/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Cable Wrangling &#8212; Making Your Own Ribbon Cables</title>
		<link>http://biphenyl.org/blog/2009/02/20/cable-wrangling-making-your-own-ribbon-cables/</link>
		<comments>http://biphenyl.org/blog/2009/02/20/cable-wrangling-making-your-own-ribbon-cables/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 08:57:21 +0000</pubDate>
		<dc:creator>biphenyl</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://biphenyl.org/blog/?p=32</guid>
		<description><![CDATA[I&#8217;m working on a larger-scope project right now that involves collecting a lot of sensor data with an Arduino to transmit over Bluetooth. For past projects, I&#8217;ve relied mostly on individually cut wires, but even if you use heat-shrink tubing or the like to bundle them up, they&#8217;re still a pain to keep in order. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a larger-scope project right now that involves collecting a lot of sensor data with an Arduino to transmit over Bluetooth. For past projects, I&#8217;ve relied mostly on individually cut wires, but even if you use heat-shrink tubing or the like to bundle them up, they&#8217;re still a pain to keep in order. Consumer electronics often use <a href="http://en.wikipedia.org/wiki/Ribbon_cable">ribbon cables</a> for this sort of thing when they can&#8217;t just run traces on a board. I realized that I could make custom cables using the ribbon cables from old floppy and CD drives. With a steady hand and a utility knife, cut off the number of cables you need, cut them to length, and split and strip the ends. Voila &#8212; custom-sized ribbon cables, and a great way to recycle old computer parts!</p>
<p><a href="http://www.flickr.com/photos/mmechtley/3294946342/" title="3.5 inch floppy drive ribbon cable by mmechtley, on Flickr"><img src="http://farm4.static.flickr.com/3424/3294946342_aa32a695d0_m.jpg" width="240" height="180" alt="3.5 inch floppy drive ribbon cable" /></a><a href="http://www.flickr.com/photos/mmechtley/3294121345/" title="Voila - custom ribbon cable! by mmechtley, on Flickr"><img src="http://farm4.static.flickr.com/3357/3294121345_f8ba91052a_m.jpg" width="180" height="240" alt="Voila - custom ribbon cable!" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://biphenyl.org/blog/2009/02/20/cable-wrangling-making-your-own-ribbon-cables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More Citations and a Camera Mount Field Test</title>
		<link>http://biphenyl.org/blog/2008/03/15/more-citations-and-a-camera-mount-field-test/</link>
		<comments>http://biphenyl.org/blog/2008/03/15/more-citations-and-a-camera-mount-field-test/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 07:36:23 +0000</pubDate>
		<dc:creator>biphenyl</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Operation Mindfuck]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://biphenyl.org/blog/2008/03/15/more-citations-and-a-camera-mount-field-test/</guid>
		<description><![CDATA[Here are a couple updates regarding previous projects. I&#8217;ve been spending free time lately reading, but I should have some new stuff soonish. [citation needed] stickers have been slowly showing up in new places. I&#8217;ve still got a number left, so if you want a few, just send me an email or a message via [...]]]></description>
			<content:encoded><![CDATA[<p>Here are a couple updates regarding previous projects. I&#8217;ve been spending free time lately reading, but I should have some new stuff soonish.</p>
<p><a href="http://biphenyl.org/blog/2008/01/01/citation-needed/">[citation needed] stickers</a> have been slowly showing up in new places. I&#8217;ve still got a number left, so if you want a few, just send me an email or a message via Flickr. A few from around Tempe and San Francisco are in the <a href="http://www.flickr.com/photos/tags/citationneeded/">Flickr tag pool</a>:</p>
<p><a href="http://www.flickr.com/photos/mmechtley/2205859730/" title="Inclusive community [citation needed] by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2154/2205859730_29babd985f_m.jpg" alt="Inclusive community [citation needed]" height="180" width="240" /></a><a href="http://www.flickr.com/photos/mmechtley/2289692579/" title="I'm willing to bet I've had something similar by mmechtley, on Flickr"><img src="http://farm4.static.flickr.com/3073/2289692579_70147c4edb_m.jpg" alt="I'm willing to bet I've had something similar" height="180" width="240" /></a></p>
<p>I especially dig this one from Flickr user cutlerite:</p>
<p><a href="http://www.flickr.com/photos/cutlerite/2303580134/" title="Boise State ROTC by cutlerite, on Flickr"><img src="http://farm3.static.flickr.com/2415/2303580134_cae2b329b2.jpg" alt="Boise State ROTC" width="500" /></a></p>
<p><a href="http://reason.com">Reason Magazine</a> also recently published <a href="http://reason.com/news/show/124400.html">a short article</a> about the project, in their March issue. Don&#8217;t be afraid &#8212; they&#8217;re much nicer Libertarians than some of the Randroids I&#8217;ve met!</p>
<p>I also finally had a chance to really test my <a href="http://biphenyl.org/blog/2008/01/27/a-quick-release-bicycle-camera-mount/">bicycle camera mount</a> &#8212; the lead-up to the Game Developers Conference had left me with little time for biking anywhere other than work. I went riding with Matthew and took <a href="http://www.flickr.com/photos/mmechtley/sets/72157604029750394/">a few shots</a> as well as this video:</p>
<p><object type="application/x-shockwave-flash" data="http://blip.tv/scripts/flash/showplayer.swf?enablejs=true&#038;feedurl=http%3A%2F%2Fbiphenyl%2Eblip%2Etv%2Frss&#038;file=http%3A%2F%2Fblip%2Etv%2Frss%2Fflash%2F751081&#038;showplayerpath=http%3A%2F%2Fblip%2Etv%2Fscripts%2Fflash%2Fshowplayer%2Eswf" width="400" height="255" allowfullscreen="true" id="showplayer"><param name="movie" value="http://blip.tv/scripts/flash/showplayer.swf?enablejs=true&#038;feedurl=http%3A%2F%2Fbiphenyl%2Eblip%2Etv%2Frss&#038;file=http%3A%2F%2Fblip%2Etv%2Frss%2Fflash%2F751081&#038;showplayerpath=http%3A%2F%2Fblip%2Etv%2Fscripts%2Fflash%2Fshowplayer%2Eswf" /><param name="quality" value="best" /><embed src="http://blip.tv/scripts/flash/showplayer.swf?enablejs=true&#038;feedurl=http%3A%2F%2Fbiphenyl%2Eblip%2Etv%2Frss&#038;file=http%3A%2F%2Fblip%2Etv%2Frss%2Fflash%2F751081&#038;showplayerpath=http%3A%2F%2Fblip%2Etv%2Fscripts%2Fflash%2Fshowplayer%2Eswf" quality="best" width="400" height="255" name="showplayer" type="application/x-shockwave-flash"></embed></object></p>
<p>On a side note I don&#8217;t recommend trail riding with this particular mount &#8212; the constant jostling broke the conduit hanger I was using to mount the tripod head. Luckily it&#8217;s the cheapest piece at only 50 cents, but the weight of the assembly demands something a bit sturdier than cheap plastic if you&#8217;re going to be navigating bumpy terrain!</p>
]]></content:encoded>
			<wfw:commentRss>http://biphenyl.org/blog/2008/03/15/more-citations-and-a-camera-mount-field-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drunkpong: An excuse to make a USB Breathalyzer</title>
		<link>http://biphenyl.org/blog/2008/02/19/drunkpong-an-excuse-to-make-a-usb-breathalyzer/</link>
		<comments>http://biphenyl.org/blog/2008/02/19/drunkpong-an-excuse-to-make-a-usb-breathalyzer/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 09:13:35 +0000</pubDate>
		<dc:creator>biphenyl</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://biphenyl.org/blog/2008/02/19/drunkpong-an-excuse-to-make-a-usb-breathalyzer/</guid>
		<description><![CDATA[You&#8217;re throwing a party for the Game Developers Conference and you think it would be cool to have a custom game. What&#8217;s the natural response? How about Pong that adapts its difficulty based on how drunk you are! Among my numerous interests is custom hardware for games and interactive art. When my friend and coworker [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;re throwing a party for the <a href="http://gdconf.com/">Game Developers Conference</a> and you think it would be cool to have a custom game. What&#8217;s the natural response? How about Pong that adapts its difficulty based on how drunk you are!</p>
<p>Among my numerous interests is custom hardware for games and interactive art. When my friend and coworker <a href="http://fun-motion.com/">Matthew Wegner</a> suggested the idea of making a breathalyzer peripheral for a party game at GDC, how could I respond with anything but, &#8220;Hahahaha, Hells YES! I am ON that!&#8221;</p>
<p>I started by researching the various consumer breathalyzers. In the end I decided to hack the <a href="http://www.amazon.com/Alcoscan-AL2500-Breathalyzer-Breathalizer-Alcohol/dp/B000OGIREQ">Alcoscan AL2500</a>. It provides readings within a reasonable error tolerance and costs about $30 on Amazon &#8212; much cheaper than fuel cell meters. Upon opening it up, I found that it&#8217;s set up pretty simply. It&#8217;s driven by an ATMEGA48V-10AU microcontroller, with the semiconductor sensor connected to an analog input, and digital outputs that drive a simple seven-segment style LCD.</p>
<p><a href="http://www.flickr.com/photos/mmechtley/2276954688/" title="Alcoscan AL2500 Breathalyzer by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2313/2276954688_b21841e347_m.jpg" alt="Alcoscan AL2500 Breathalyzer" height="240" width="180" /></a><a href="http://www.flickr.com/photos/mmechtley/2276957674/" title="Board, back. Simple AVR microcontroller with sensor as an analog input and LCD as digital outputs by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2341/2276957674_ee1d6cd7f9_m.jpg" alt="Board, back. Simple AVR microcontroller with sensor as an analog input and LCD as digital outputs" height="180" width="240" /></a></p>
<p>As I saw it, there were basically two options for obtaining the data from the breathalyzer and sending it to the computer. On the one hand, you could read the analog value from the breath sensor, or on the other hand, you could reconstruct the LCD digits from the digital outputs. Since the analog circuit driving the sensor was a little complicated and beyond my expertise (and I&#8217;d procrastinated enough that learning more before GDC was out of the question), I decided to reconstruct digits. I first followed traces on the PCB to find which pins on the microcontroller were driving the LCD. I then systematically grounded each pin while turning the unit on to determine which pins drove which LCD segments.</p>
<p><a href="http://www.flickr.com/photos/mmechtley/2276170061/" title="Mapping out which pins control which LCD segments by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2339/2276170061_720ddc3156_m.jpg" alt="Mapping out which pins control which LCD segments" height="240" width="180" /></a><a href="http://www.flickr.com/photos/mmechtley/2276172743/" title="Pin cross reference for AVR microcontroller and LCD by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2335/2276172743_4f1a68fe09_m.jpg" alt="Pin cross reference for AVR microcontroller and LCD" height="180" width="240" /></a></p>
<p>I then soldered wires to the relevant LCD outputs on the board (the connectors were nice and big compared to the microcontroller pins). I spent a bit of time determining which outputs from the LCD I wanted to read. As it turns out, you only need five segments from a seven-segment digit to determine the numerical value of the digit &#8212; the bottom and bottom right segments are superfluous (see <a href="http://www.cibomahto.com/?p=152">Matt Mets&#8217;s recent post</a>, who solved the problem independently). I ran a total of eleven wires &#8212; two digits for the BAC level and one wire for the &#8220;Wait&#8221; indicator &#8212; into digital inputs on an <a href="http://www.arduino.cc/en/Main/ArduinoBoardDiecimila">Arduino Diecimila</a>. The Arduino code ended up pretty simple &#8212; it reconstructs two digits and the status of the &#8220;Wait&#8221; indicator and transmits these serially via USB.</p>
<p><a href="http://www.flickr.com/photos/mmechtley/2276175019/" title="You only need to observe five segments of a seven-segment display to know which number is displayed by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2185/2276175019_89175e3bcd_m.jpg" alt="You only need to observe five segments of a seven-segment display to know which number is displayed" height="180" width="240" /></a><a href="http://www.flickr.com/photos/mmechtley/2276967352/" title="Soldering more wires - first digit done by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2077/2276967352_ff39bfce04_m.jpg" alt="Soldering more wires - first digit done" height="180" width="240" /></a></p>
<p>I then read the serial data in using the Java <a href="http://rxtx.org/">RXTX library</a> and spit it into a text file, which I then read in from <a href="http://unity3d.com/">Unity</a>. The game then makes the paddle size larger the drunker you are!</p>
<p><a href="http://www.flickr.com/photos/mmechtley/2276970964/" title="Waiting for the player to use the breathalyzer by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2240/2276970964_3fb3aeb47a_m.jpg" alt="Waiting for the player to use the breathalyzer" height="182" width="240" /></a><a href="http://www.flickr.com/photos/mmechtley/2276180739/" title="Playing with Player 1 significantly drunk by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2382/2276180739_985c0fb33a_m.jpg" alt="Playing with Player 1 significantly drunk" height="180" width="240" /></a></p>
<p>The hardware is of course begging to be used in other ways &#8212; how about a program that locks you out of Ecto and your forum accounts when you&#8217;re right trashed? No more embarrassing comments that you can&#8217;t take back! I may go back and make a more sophisticated game in the future &#8212; Pong was about the right scope for the single day of development time I had left after handling the hardware and serial transmission!</p>
<p>I&#8217;ll have the game up for play at the 9Bit indie games party Tuesday night &#8212; if you&#8217;re at GDC just find folks from <a href="http://flashbangstudios.com">Flashbang</a>, <a href="http://www.gastronautstudios.com">Gastronaut</a>, or <a href="http://thatgamecompany.com">ThatGameCompany</a> to get an invite and drink tickets! I&#8217;ll post an Instructable and some more information about the software when time permits. Extra special thanks to <a href="http://sternlab.org">Becky Stern</a> and <a href="http://cibomahto.com">Matt Mets</a> for their advising on the hardware interface!</p>
]]></content:encoded>
			<wfw:commentRss>http://biphenyl.org/blog/2008/02/19/drunkpong-an-excuse-to-make-a-usb-breathalyzer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>A Quick Release Bicycle Camera Mount</title>
		<link>http://biphenyl.org/blog/2008/01/27/a-quick-release-bicycle-camera-mount/</link>
		<comments>http://biphenyl.org/blog/2008/01/27/a-quick-release-bicycle-camera-mount/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 03:33:44 +0000</pubDate>
		<dc:creator>biphenyl</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://biphenyl.org/blog/2008/01/27/a-quick-release-bicycle-camera-mount/</guid>
		<description><![CDATA[Since buying my bike, I find myself cycling pretty often and I usually bring my camera along to take pictures. Usually taking photos involves stopping and fumbling around in my backpack for the camera &#8212; not an ideal situation. Naturally, the first thing I started thinking about after buying the bike was, &#8220;How can I [...]]]></description>
			<content:encoded><![CDATA[<p>Since buying <a href="http://biphenyl.org/blog/2007/11/21/people-power/">my bike</a>, I find myself cycling pretty often and I usually bring my camera along to take pictures. Usually taking photos involves stopping and fumbling around in my backpack for the camera &#8212; not an ideal situation. Naturally, the first thing I started thinking about after buying the bike was, &#8220;How can I mod this to make it uniquely mine?&#8221; While looking through <a href="http://www.instructables.com/">Instructables</a> for ideas, I found instructions for a <a href="http://www.instructables.com/id/Bicycle-Camera-Mount-for-under-%241/">bicycle camera mount</a>. It dug it, and it had the benefit of being cheap, but was a little feature-anemic. Specifically, it couldn&#8217;t tilt at all, so would result in unlevel pictures on my bike, and it wasn&#8217;t easy to remove the camera &#8212; you had to unscrew it from a bolt for unmounted shots. I immediately thought of tripods with quick release plates and decided on a simple remake using a tripod head. I made and attached it this weekend, with pretty excellent results! Now I can make photos while biking and easily transition to hand-held shots when I see something cool on the roadside!</p>
<p>I published <a href="http://www.instructables.com/id/Articulated-Bicycle-Camera-Mount-With-Quick-Releas/">an Instructable</a> for anyone interested in making one, and have a <a href="http://www.flickr.com/photos/mmechtley/sets/72157603808677529/">photoset</a> up on Flickr.</p>
<p><a href="http://www.flickr.com/photos/mmechtley/2224938486/" title="Parts by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2301/2224938486_7550c38eab_m.jpg" alt="Parts" height="180" width="240" /></a><a href="http://www.flickr.com/photos/mmechtley/2224939560/" title="Drilling the bracket to attach the mounting bolt by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2053/2224939560_cdf5d4f509_m.jpg" alt="Drilling the bracket to attach the mounting bolt" height="180" width="240" /></a><br />
<a href="http://www.flickr.com/photos/mmechtley/2224943100/" title="Finished bracket with cotter pin screw inserted by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2336/2224943100_82ed2b640a_m.jpg" alt="Finished bracket with cotter pin screw inserted" height="180" width="240" /></a><a href="http://www.flickr.com/photos/mmechtley/2224153089/" title="Finished mount assembly, front by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2176/2224153089_0329c23047_m.jpg" alt="Finished mount assembly, front" height="240" width="180" /></a><br />
<a href="http://www.flickr.com/photos/mmechtley/2224154545/" title="A sample photo taken along a canal - it's pretty level! by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2288/2224154545_1c985f7d8f_m.jpg" width="240" height="180" alt="A sample photo taken along a canal - it's pretty level!" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://biphenyl.org/blog/2008/01/27/a-quick-release-bicycle-camera-mount/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Sun Jars</title>
		<link>http://biphenyl.org/blog/2007/12/16/sun-jars/</link>
		<comments>http://biphenyl.org/blog/2007/12/16/sun-jars/#comments</comments>
		<pubDate>Sun, 16 Dec 2007 17:54:42 +0000</pubDate>
		<dc:creator>biphenyl</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://biphenyl.org/blog/2007/12/16/sun-jars/</guid>
		<description><![CDATA[I saw an Instructable for these neat LED-lighted jars some time ago &#8211; I thought it would be cool to make a couple to leave in my room. It&#8217;s a very simple hack &#8211; you gut a solar garden lamp, replace the LED if desired, and then place the parts into the lid of a [...]]]></description>
			<content:encoded><![CDATA[<p>I saw <a href="http://www.instructables.com/id/Home-made-Sun-Jar/">an Instructable</a> for these neat LED-lighted jars some time ago &#8211; I thought it would be cool to make a couple to leave in my room. It&#8217;s a very simple hack &#8211; you gut a solar garden lamp, replace the LED if desired, and then place the parts into the lid of a large-mouth jar. Then simply do something to diffuse the light emitted &#8211; I used a glass frosting paint but you could just as easily add in a sheet of tracing paper or the like. I ended up making four &#8211; they turned out very nice, and I gave two away at the Phoenix DIY Meeting. Full Flickr <a href="http://www.flickr.com/photos/mmechtley/sets/72157603453391346/">photoset</a>.</p>
<p><a href="http://www.flickr.com/photos/mmechtley/2110859770/" title="Really, there weren't many construction photos to take, but here's the garden lamp guts being epoxied to the jar lids by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2034/2110859770_0ceb988354_m.jpg" alt="Really, there weren't many construction photos to take, but here's the garden lamp guts being epoxied to the jar lids" height="180" width="240" /></a><a href="http://www.flickr.com/photos/mmechtley/2110083185/" title="The energy of the sun, collected in jars! by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2249/2110083185_d076f63417_m.jpg" alt="The energy of the sun, collected in jars!" height="180" width="240" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://biphenyl.org/blog/2007/12/16/sun-jars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LED Bike Helmet</title>
		<link>http://biphenyl.org/blog/2007/11/28/led-bike-helmet/</link>
		<comments>http://biphenyl.org/blog/2007/11/28/led-bike-helmet/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 21:51:04 +0000</pubDate>
		<dc:creator>biphenyl</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://biphenyl.org/blog/2007/11/28/led-bike-helmet/</guid>
		<description><![CDATA[After getting my new bike, it was clearly project time. But what to do first? There are plenty of interesting things to do with a bike, but what cinched it was my light being stolen. I decided to mod my helmet by adding LEDs, so that I&#8217;m more visible to cars and other cyclists at [...]]]></description>
			<content:encoded><![CDATA[<p>After getting my new bike, it was clearly project time. But what to do first? There are plenty of interesting things to do with a bike, but what cinched it was my light being stolen. I decided to mod my helmet by adding LEDs, so that I&#8217;m more visible to cars and other cyclists at night, and as a backup against light failure or misappropriation. (also, mental masturbation &#8211; LEDs make anything cooler) I followed <a href="http://www.instructables.com/id/LED-Bike-Helmet/">Becky&#8217;s Instructable</a> for the most part, with a few modifications of my own. The basic idea is to use conductive paint to draw traces for the circuit, then attach the LEDs, battery, and switch with conductive epoxy, and finally use regular epoxy and a clearcoat to weatherproof everything. The switch used is a <a href="http://www.allelectronics.com/cgi-bin/item/RSW-14/search/SPST_N.O._REED_SWITCH_.html">magnetic reed switch</a>, activated by a magnet tethered to the helmet&#8217;s strap anchors. Full <a href="http://www.flickr.com/photos/mmechtley/sets/72157603320747043/">photoset</a> on my Flickr account.</p>
<p><a href="http://www.flickr.com/photos/mmechtley/2071147232/" title="Testing the circuit by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2114/2071147232_7ed84313a2_m.jpg" alt="Testing the circuit" height="180" width="240" /></a><a href="http://www.flickr.com/photos/mmechtley/2071147970/" title="Masking for conductive paint by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2132/2071147970_72259f913d_m.jpg" alt="Masking for conductive paint" height="180" width="240" /></a><br />
<a href="http://www.flickr.com/photos/mmechtley/2071150974/" title="Final configuration on my head - Back by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2209/2071150974_79a001318d_m.jpg" alt="Final configuration on my head - Back" height="180" width="240" /></a><a href="http://www.flickr.com/photos/mmechtley/2071152084/" title="The original design had a magnet with a hole in the center - I epoxied a small loop of wire to the magnet I had by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2192/2071152084_e5db02df65_m.jpg" alt="The original design had a magnet with a hole in the center - I epoxied a small loop of wire to the magnet I had" height="180" width="240" /></a><br />
<a href="http://www.flickr.com/photos/mmechtley/2070353515/" title="Final configuration on my head - Front by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2059/2070353515_8e3d39d196_m.jpg" alt="Final configuration on my head - Front" height="240" width="180" /></a><a href="http://www.flickr.com/photos/mmechtley/2072865022/" title="A final touch by mmechtley, on Flickr"><img src="http://farm3.static.flickr.com/2194/2072865022_5132337a7e_m.jpg" alt="A final touch" height="180" width="240" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://biphenyl.org/blog/2007/11/28/led-bike-helmet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing ls in OS X</title>
		<link>http://biphenyl.org/blog/2007/11/10/replacing-ls-in-os-x/</link>
		<comments>http://biphenyl.org/blog/2007/11/10/replacing-ls-in-os-x/#comments</comments>
		<pubDate>Sat, 10 Nov 2007 07:19:16 +0000</pubDate>
		<dc:creator>biphenyl</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://biphenyl.org/blog/2007/11/10/replacing-ls-in-os-x/</guid>
		<description><![CDATA[Ever since I replaced my laptop with a MacBook in January of this year I&#8217;ve been impressed with Apple&#8217;s OS X &#8211; in fact I&#8217;ve moved over to using it entirely, having replaced my desktop with a Mac Pro in July. It has a very snazzy interface and overall good user experience, and underneath all [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since I replaced my laptop with a MacBook in January of this year I&#8217;ve been impressed with Apple&#8217;s OS X &#8211; in fact I&#8217;ve moved over to using it entirely, having replaced my desktop with a Mac Pro in July. It has a very snazzy interface and overall good user experience, and underneath all that prettiness it&#8217;s running on BSD so I can hack away via terminal all I like. However, coming from a Linux background, I&#8217;ve found the color options for the default BSD <code>ls</code> command lacking. With the GNU <code>ls</code>, you have a very large degree of control over how things look by using the <code>.dir_colors</code> file in your home directory. With that in mind, I decided to replace the default <code>ls</code> using this simple method.</p>
<p>First, install <a href="http://developer.apple.com/tools/xcode/">XCode Tools</a>, found on the original OS X disc. Alternatively, you can download it from Apple, though it&#8217;s about 1GB. There are a number of useful developer tools included, but what you really want is <code>gcc</code>, the GNU C Compiler. (If you do much programming, you&#8217;ve probably already installed this) The idea here is we&#8217;re simply going to compile the GNU <code>ls</code> and <code>dircolors</code> for our Mac. If you&#8217;ve used Linux much, you&#8217;ll recognize the steps exactly.</p>
<p>Next, download the newest version of coreutils from the <a href="http://ftp.gnu.org/gnu/coreutils/">GNU FTP</a>. Pop open a terminal and make a temporary directory, then decompress the archive &#8211; for instance <code>tar -xvjf coreutils-6.9.tar.bz2</code></p>
<p>Enter the directory created from decompressing coreutils. Now we&#8217;ll compile for our system. Simply run <code>./configure</code> and then <code>make</code> when it&#8217;s done. If either <code>configure</code> or <code>make</code> gives you any guff, you probably just need a new version of XCode Tools/<code>gcc</code>.</p>
<p>Presuming that all went well, we&#8217;ve now got a new <code>ls</code> binary ready to go. To backup your old one (and its man pages) and replace it with the new, simply run:<br />
<code>sudo mv /bin/ls /bin/ls.bak<br />
sudo cp src/ls /bin/ls<br />
sudo cp src/dircolors /bin/dircolors<br />
sudo mv /usr/share/man/man1/ls.1 /usr/share/man/man1/ls.1.bak<br />
sudo cp man/ls.1 /usr/share/man/man1/ls.1<br />
sudo cp man/dircolors.1 /usr/share/man/man1/dircolors.1</code></p>
<p>Don&#8217;t forget to trash the coreutils directory once you&#8217;re done with it.</p>
<p>Now all you need to do is run <code>ls --color=auto</code> to get colored output. I suggest adding the line <code>alias ls='ls -hF --color=auto'</code> to your <code>.bash_profile</code> file. This makes <code>ls</code> color-code output, as well as giving helpful symbols to indicate executable/directory/etc status and displaying file sizes in a human-readable format.</p>
<p>To get the full benefit of the color system, you&#8217;ll also want to create a <code>.dir_colors</code> file in your home directory, and have <code>dircolors</code> run when you start a shell. Add a line to your <code>.bash_profile</code> such as <code>eval `dircolors`</code>. You may <a href="http://biphenyl.org/blog/content/files/.dir_colors">download my <code>.dir_colors</code></a> and modify it if you like. With all that done, you can get pretty results like this:</p>
<p><img src="http://biphenyl.org/blog/content/images/replaced_ls.png" alt="ls with colors!" /></p>
]]></content:encoded>
			<wfw:commentRss>http://biphenyl.org/blog/2007/11/10/replacing-ls-in-os-x/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>TV-B-Gone</title>
		<link>http://biphenyl.org/blog/2007/11/08/tv-b-gone/</link>
		<comments>http://biphenyl.org/blog/2007/11/08/tv-b-gone/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 02:13:16 +0000</pubDate>
		<dc:creator>biphenyl</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Operation Mindfuck]]></category>

		<guid isPermaLink="false">http://biphenyl.org/blog/2007/11/08/tv-b-gone/</guid>
		<description><![CDATA[After playing with one of these little fellows last weekend I resolved that I had to have one of my own &#8211; I can&#8217;t stand TVs in restaurants in particular, or ones that do nothing but play ads in stores. So I ordered up my own kit and assembled it per Limor&#8217;s instructions. A selection [...]]]></description>
			<content:encoded><![CDATA[<p>After playing with one of these little fellows <a href="http://biphenyl.org/blog/2007/11/08/operation-mindfuck-roundup/">last weekend</a> I resolved that I had to have one of my own &#8211; I can&#8217;t stand TVs in restaurants in particular, or ones that do nothing but play ads in stores.  So I ordered up my own <a href="http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=20&amp;products_id=73">kit</a> and assembled it per Limor&#8217;s <a href="http://www.ladyada.net/make/tvbgone/">instructions</a>. A selection of the <a href="http://www.flickr.com/photos/mmechtley/sets/72157603002003150/">photos</a>:</p>
<p><a href="http://www.flickr.com/photos/mmechtley/1914839455/in/set-72157603002003150/"><img src="http://farm3.static.flickr.com/2248/1914839455_96f868575f_m.jpg" alt="In development" height="180" width="240" /></a><a href="http://www.flickr.com/photos/mmechtley/1914843751/"><img src="http://farm3.static.flickr.com/2393/1914843751_8d11aa810e_m.jpg" alt="A lovely infrared glow" height="180" width="240" /></a><br />
<a href="http://www.flickr.com/photos/mmechtley/1919873435/"><img src="http://farm3.static.flickr.com/2266/1919873435_68ceb83672_m.jpg" alt="Completed TV-B-Gone" height="180" width="240" /></a></p>
<p>It had been about a year and a half since I&#8217;d had a chance to solder anything, which I realize now was far too long! Luckily, soldering seems to stick like bike riding &#8211; my joints were as clean and pretty as ever! Now just to test it out!</p>
]]></content:encoded>
			<wfw:commentRss>http://biphenyl.org/blog/2007/11/08/tv-b-gone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

