<?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>The Project Blag</title>
	<atom:link href="http://scott-n.com/wp/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://scott-n.com/wp</link>
	<description>A place for the things I do while putting off homework, chores, and other less interesting things.</description>
	<lastBuildDate>Sun, 30 Jan 2011 05:03:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Drawn at Random</title>
		<link>http://scott-n.com/wp/?p=74</link>
		<comments>http://scott-n.com/wp/?p=74#comments</comments>
		<pubDate>Thu, 11 Nov 2010 18:26:13 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Sketches]]></category>

		<guid isPermaLink="false">http://scott-n.com/wp/?p=74</guid>
		<description><![CDATA[I got a little bored my first semester of college and decided to try my hand at something other than technical sketches.]]></description>
			<content:encoded><![CDATA[<p>I got a little bored my first semester of college and decided to try my hand at something other than technical sketches.</p>

<a href='http://scott-n.com/wp/?attachment_id=86' title='Sketching'><img width="150" height="150" src="http://scott-n.com/wp/wp-content/uploads/2010/11/IMGA0201-150x150.jpg" class="attachment-thumbnail" alt="Sketching" title="Sketching" /></a>
<a href='http://scott-n.com/wp/?attachment_id=91' title='Island_lores'><img width="150" height="150" src="http://scott-n.com/wp/wp-content/uploads/2010/11/Island_lores-150x150.jpg" class="attachment-thumbnail" alt="Island_lores" title="Island_lores" /></a>
<a href='http://scott-n.com/wp/?attachment_id=75' title='hands'><img width="150" height="150" src="http://scott-n.com/wp/wp-content/uploads/2010/11/hands-150x150.gif" class="attachment-thumbnail" alt="Hands - Sequence GIF" title="hands" /></a>
<a href='http://scott-n.com/wp/?attachment_id=76' title='Hands'><img width="150" height="150" src="http://scott-n.com/wp/wp-content/uploads/2010/11/Hands-150x150.jpg" class="attachment-thumbnail" alt="Hands - Finished" title="Hands" /></a>

]]></content:encoded>
			<wfw:commentRss>http://scott-n.com/wp/?feed=rss2&#038;p=74</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Old Renderings</title>
		<link>http://scott-n.com/wp/?p=60</link>
		<comments>http://scott-n.com/wp/?p=60#comments</comments>
		<pubDate>Thu, 11 Nov 2010 18:02:11 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Renderings]]></category>

		<guid isPermaLink="false">http://scott-n.com/wp/?p=60</guid>
		<description><![CDATA[I took an awesome drafting class in high school, and I would periodically ignore my more formal assignments to do something a little more interesting. All of these were done...]]></description>
			<content:encoded><![CDATA[<p>I took an awesome drafting class in high school, and I would periodically ignore my more formal assignments to do something a little more interesting. All of these were done in AutoCAD.</p>

<a href='http://scott-n.com/wp/?attachment_id=64' title='Rocketship Aerial'><img width="150" height="150" src="http://scott-n.com/wp/wp-content/uploads/2010/11/Rocketship-Aerial1-150x150.jpg" class="attachment-thumbnail" alt="Rocketship Aerial" title="Rocketship Aerial" /></a>
<a href='http://scott-n.com/wp/?attachment_id=65' title='Rocketship'><img width="150" height="150" src="http://scott-n.com/wp/wp-content/uploads/2010/11/Rocketship-150x150.jpg" class="attachment-thumbnail" alt="Rocketship" title="Rocketship" /></a>
<a href='http://scott-n.com/wp/?attachment_id=67' title='BiohazardCracked'><img width="150" height="150" src="http://scott-n.com/wp/wp-content/uploads/2010/11/BiohazardCracked-150x150.jpg" class="attachment-thumbnail" alt="BiohazardCracked" title="BiohazardCracked" /></a>

]]></content:encoded>
			<wfw:commentRss>http://scott-n.com/wp/?feed=rss2&#038;p=60</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rapid-Prototyping Attitude Control System</title>
		<link>http://scott-n.com/wp/?p=20</link>
		<comments>http://scott-n.com/wp/?p=20#comments</comments>
		<pubDate>Wed, 10 Nov 2010 20:30:19 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://scott-n.com/wp/?p=20</guid>
		<description><![CDATA[In what has become our longest &#038; largest project to date, a few of the NSROC summer interns and I built a cold-gas, Arduino-controlled, 2-axis attitude control system in our garage over the summer.]]></description>
			<content:encoded><![CDATA[<h2><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/rpacsassy.jpg"><img class="aligncenter size-full wp-image-207" title="rpacsModelAssy" src="http://scott-n.com/wp/wp-content/uploads/2010/11/rpacsassy.jpg" alt="" width="597" height="288" /></a></h2>
<h2><span style="font-size: x-large;">Back Story </span>(tl:dr &#8211; skip to Design)</h2>
<p>Early in my freshman year in college I got interested in attitude control systems (ACS) and genetic algorithms after reading <a href="http://nn.cs.utexas.edu/downloads/papers/gomez.gecco03.pdf">this paper</a>. I was disappointed, however, that the author had only tested his theories in simulations, and decided with a couple friends to rectify this. The end goal was to prove the ability of evolutionary computation to automatically generate a controller for a finless rocket through a live test. It would, of course, work the first time.</p>
<p>The only thing standing between us and scientific glory was the need to build a rather large rocket (no problem!), create some kind of inertial measurement unit (no doubt a simple matter!), and develop an attitude control system (How hard could it be?). In retrospect, it was only by vastly underestimating the complexity of the task that we were able to justify attempting it.</p>
<p>So, armed with our ignorance and a little spending money, we began work on what would turn out to be the longest, most expensive project I&#8217;ve ever worked on.</p>
<p>We considered several different methods of attitude control, but eventually settled on a cold-gas ACS that would push the rocket one way or another using jets of compressed air. We figured we could use paintball tanks and electric solenoid valves, but the ACS began to look rather complicated and we decided to work first on building an IMU (which somehow seemed much simpler).</p>
<p>None of us had any real electronics experience. The only thing I&#8217;d ever built that had actually worked was a simple <a href="http://scott-n.com/Archives/Docs/Firing%20Panel%20Instructions.pdf">electronic ignition box</a> for fireworks in high school. Nevertheless, we began researching different methods of attitude determination and began experimenting with MEMs accelerometers and gyro rate sensors. We even managed to get an <a href="http://www.utdallas.edu/news/2008/01/29-001.php">undergraduate research award</a> from UTDallas to help with funds. Over the course of the next year we built and launched several small high-power rockets, and learned quite a bit about microcontrollers and basic electronics. Our efforts towards building a full 3-axis IMU, however, led us only to one simple conclusion: Attitude determination is hard.</p>
<p><a href="http://scott-n.com/srs/images/1/1f/SRS_IMU_poster.pdf"><img src="http://1.bp.blogspot.com/_r7bIfLexlxI/TJ940fI5jFI/AAAAAAAAAOU/PjXrH8KC530/s640/IMUPoster.png" border="0" alt="" width="640" height="414" /></a><br />
While we completely failed at producing any kind of usable, accurate attitude determination system, we were able to accomplish quite a bit. We started a <a href="http://scott-n.com/srs/index.php?title=Main_Page">student organization</a>, built a cheap cellular GPS tracker, made a large <a href="http://www.youtube.com/watch?v=rrUNPMvg1RY">pneumatic cannon</a> for testing <a href="http://www.scott-n.com/srs/images/0/0a/Flight_Recorder_Preliminary_Testng_Report.pdf">impact-resistant flight recorders</a>, and even managed to send GPS data down from a rocket during a launch and plot it in Google Earth in real-time. And, after a last-minute all-nighter putting together a poster, we even placed <a href="http://www.utdallas.edu/news/2008/05/08-001.php">2nd</a> at the UTD Undergrad Research Awards poster competition.</p>
<p>The story could easily have ended there. Without a functioning IMU, and without further funding to build an ACS, the project would likely have been replaced by something less interesting and I would have gone on with my studies in cognitive science. However, I was bugging Dr. Greg Earle&#8211;my physics professor who had recently had an experiment fly on a sounding rocket out of Wallops Flight Facility&#8211;with questions about our project, and almost as an afterthought he said, &#8220;I think they might still do internships out at Wallops. I&#8217;ll check.&#8221;</p>
<p>As fate would have it, they did indeed still offer internships, and the following summer I found myself writing software for the Attitude Control Systems group there. I would intern there three times over the next few years for a total of 13 months. One of the other guys from UTD, Trev Sheerin, also made it out to help finish some simulation work I&#8217;d begun. The guys at Wallops were even kind enough to let us run an air bearing test, where one of their attitude control systems was controlled by neural net code we wrote.</p>
<p>Despite our most valiant last-minute efforts, the neural net code simply took too long to run and, even though the test looked good from the flight computer&#8217;s point of view, the gyro lost track of where it was pointed. This caused the ACS to point at all sorts of things, but not what we had intended it to. This was at the very end of Summer &#8217;09, and we had to go back to school before we could make any improvements. Even when we returned the following year, it seemed unlikely that we would get another chance. Procuring an ACS for experimental tests and setting up the air bearing&#8211;all to satisfy the curiosity of a couple interns&#8211;was something we were extremely lucky (and grateful) to get to do once. The guys at NSROC are awesome, and they certainly would&#8217;ve let us try again, but we didn&#8217;t want to have to bother them every time we had a new idea. We wanted a way to test quickly, to test often.</p>
<p>And so it wasn&#8217;t until Trevor and I were out at Wallops this past summer that we started thinking about building an ACS again. We realized that, with the knowledge we&#8217;d gained there at Wallops, it really shouldn&#8217;t be that hard. Most of our original design decisions actually seemed valid, and having an ACS at home would allow us to continue experimenting with neural networks for attitude control. Indeed, having a cheap ACS platform that could be quickly modified and cheaply run would allow us to test all sorts of interesting things. Finding ourselves without much else to do in our spare time, work began in ernest. One of the other ACS interns, Adam Hunter, who had more (read: not zero) experience with pneumatics also agreed to help.</p>
<h2><span style="font-size: x-large;">Design </span><span>(tl;dr &#8211; skip to Testing)</span></h2>
<div id="attachment_163" class="wp-caption alignright" style="width: 310px"><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/EarlyDesigns.png"><img class="size-medium wp-image-163" title="EarlyDesigns" src="http://scott-n.com/wp/wp-content/uploads/2010/11/EarlyDesigns-300x188.png" alt="" width="300" height="188" /></a><p class="wp-caption-text">Early designs were somewhat rudimentary.</p></div>
<p>We wanted to take a rapid-prototyping approach to building the ACS. That is, we wanted to build the simplest version that could possibly work and not get bogged down by chasing performance we didn&#8217;t need. We also didn&#8217;t want to be too concerned with performance in general. We knew we weren&#8217;t going to get amazing performance without spending tons of money, and that was ok. Most of the things we wanted to test could be tested with a pretty rough ACS. It didn&#8217;t need to work well, it just had to work.</p>
<div style="text-align: center;"><span style="line-height: normal; font-size: small;"><br />
</span></div>
<p><strong>Method of Suspension</strong><br />
The first major design task was to figure out how we would suspend the ACS in such a way that it could move freely. Normally, the ACS would be mounted to a spherical <a href="http://www.youtube.com/watch?v=0ELZcDLtlLI">air bearing</a> which would be floated up on a cushion of gas. We figured we could do something similar using pressurized water like what is done with <a href="http://www.youtube.com/watch?v=qEJ0RDNzZh8&amp;p=109156932CB5C74E&amp;index=17&amp;playnext=4">spherical stone fountains</a>. Making spheres, however, turns out to be hard. We also weren&#8217;t convinced that we would be able to drill a hole or set of holes perfectly through the center of an existing spherical object. All  in all, the spherical bearing method seemed rather complicated, and we decided in the spirit of the project to go with the simplest possible solution: hanging it by a cable.<br />
This would end up preventing us from doing any kind of roll control because the ACS couldn&#8217;t spin, but it greatly simplified the setup and let us get to work on actually building the ACS. We could have spent months building a usable air bearing, and in retrospect going with the simplest choice here saved us a lot of time and money.</p>
<p><strong>Thrust Requirements</strong><br />
Before we started designing the pneumatics system, we wanted to get a sense of what kind of force we would need out of the gas valves to push the ACS. We knew that an angular acceleration of 0.05 rad/s/s would give us decent coarse control (which is all we were after), and calculated that for a homogenous 3&#8242;x6&#8243;dia cylinder weighing 50lbs, we would need only need 0.075 pounds of force out of our thrusters to get that same acceleration. This really reassured us that we didn&#8217;t need very high gas pressure or flow rate to make this thing work.</p>
<h2><strong>Pneumatics</strong></h2>
<p><strong> </strong>The biggest design decisions to be made were in choosing the gas tank, pressure regulator, and electric valves. The pneumatics system itself is dead simple, but figuring out the details of things like tank capacity and regulator pressure range took some time.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/_r7bIfLexlxI/TM37CyyNsJI/AAAAAAAAAOs/LRuSbfbAnOU/s1600/PneumaticsDiagram.png"><img src="http://4.bp.blogspot.com/_r7bIfLexlxI/TM37CyyNsJI/AAAAAAAAAOs/LRuSbfbAnOU/s400/PneumaticsDiagram.png" border="0" alt="" width="400" height="231" /></a></div>
<p><strong>Tank</strong><br />
We decided to go with the early design decision to use paintball tanks to store the compressed gas. Used tanks are relatively cheap, and getting them refilled is pretty easy if there&#8217;s a paintball shop nearby. We weren&#8217;t sure how much gas we would need, but again we decided not to get too caught up with worrying about performance and bought a middle-of-the-road  <a href="http://www.ansgear.com/PMI_Pure_Energy_Aluminum_48_3000_Basic_Tank_p/pmialu483kbasichp.htm">48cu 3000psi tank</a> from Pure Energy. It also turns out to be more economical to buy several small tanks than one large one, so we could always go that route if we needed more gas.</p>
<p><strong>Pressure Regulator</strong><br />
The biggest design decision we had to make for the pneumatics system was what kind of pressure regulator to use. The paintball tanks stores gas at up to 3000psi. This gets reduced to 800psi by a regulator built into the output stem. Finding valves rated for 800psi was difficult (and expensive). We wanted to regulate this down somewhat, but were weren&#8217;t sure what output pressure range we would need to get the force we wanted. Being completely ignorant of fluid dynamics and pneumatics in general, we consulted one of the other interns who seemed to know more. He did some calculations and concluded that, assuming several simplifying conditions, the output force would be very roughly equal to the output pressure times the exit area. From this, we were able to decide that an output range of 0:100psi would probably be a safe bet for our regulator. We got really lucky and were able to find one on ebay for $5.</p>
<p><strong>Valves</strong><br />
Having decided on what kind of output pressure we needed, we could figure out what kind of valves we could choose from. We found two different valves on McMastercarr that seemed to fit our needs.</p>
<div class="separator" style="clear: both; text-align: center;"><a href="http://www.mcmaster.com/#direct-acting-solenoid-valves/=92p22e"><img class="aligncenter" src="http://www.mcmaster.com/catalog/116/gfx/small/5077tp1s.gif" border="0" alt="" width="56" height="122" /></a></div>
<p>The first was a stainless steel valve (McCastercarr #<span style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; white-space: nowrap;"><a id="PT9931" style="color: black; font-size: 12px; font-weight: bold; text-decoration: underline;" href="http://www.mcmaster.com/ctlg/DisplCtlgPage.aspx?ReqTyp=CATALOG&amp;CtlgPgNbr=455&amp;RelatedCtlgPgs=458,457,456,455,454&amp;CtlgEdition=116&amp;ScreenWidth=1280&amp;McMMainWidth=1006&amp;ToolsetID=ToolMultiPageNav&amp;ToolsetAct="><span style="background-color: white;">5077T13</span></a></span>). This valve was more expensive ($64.76), but seemed more durable and we thought might have a faster response time.</p>
<div class="separator" style="clear: both; text-align: center;"><a href="http://www.mcmaster.com/#compressed-air-actuated-solenoid-valves/=92p06k"><img src="http://www.mcmaster.com/catalog/116/gfx/small/7876kp1s.gif" border="0" alt="" /></a></div>
<p>The second valve that caught our eye was a delrin valve (McMastercarr #<span style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; white-space: nowrap;"><a id="PT12501" style="color: black; font-size: 12px; text-decoration: underline;" href="http://www.mcmaster.com/ctlg/DisplCtlgPage.aspx?ReqTyp=CATALOG&amp;CtlgPgNbr=458&amp;CtlgEdition=116&amp;ScreenWidth=1280&amp;McMMainWidth=1006"><span style="background-color: white;">7876K11</span></a></span>). This valve was less expensive ($42.48), lighter, and had a much larger flow coefficient than the stainless valve. Being generally unsure about which valve to get, we ordered one of each for testing. When they arrived, we found the delrin valve to be smaller, much lighter, and that indeed it did flow significantly more gas for a given pressure than the stainless valve. We figured flow rate and cost were more important factors than external durability, so we decided to go with the delrin valve.</p>
<h2><strong>Electronics</strong></h2>

<div class="ngg-galleryoverview" id="ngg-gallery-5-20">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-14" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/rpacs-electronics/arduinorelay.jpg" title=" " class="shutterset_set_5" >
								<img title="arduinorelay" alt="arduinorelay" src="http://scott-n.com/wp/wp-content/gallery/rpacs-electronics/thumbs/thumbs_arduinorelay.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-15" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/rpacs-electronics/electronicsdeck_lowres.jpg" title=" " class="shutterset_set_5" >
								<img title="electronicsdeck_lowres" alt="electronicsdeck_lowres" src="http://scott-n.com/wp/wp-content/gallery/rpacs-electronics/thumbs/thumbs_electronicsdeck_lowres.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-16" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/rpacs-electronics/electronicsdiagram.png" title=" " class="shutterset_set_5" >
								<img title="electronicsdiagram" alt="electronicsdiagram" src="http://scott-n.com/wp/wp-content/gallery/rpacs-electronics/thumbs/thumbs_electronicsdiagram.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<p>The electronics ended up being pretty simple, and consited of only four primary parts:</p>
<ul>
<li>Voltage regulator board &#8211; Accepts the 12V from the battery and regulates it down to 5V for the Arduino</li>
<li>Arduino &#8211; Reads the gyro sensor and runs the flight code</li>
<li>Relay board &#8211; Accepts the 12V from the battery and four 5V signals from the Arduino. When the Arduino sets one of the digital valve outputs to high (+5v), the relay opens and allows high-current 12V to switch the corresponding valve open.</li>
<li>MEMS Gyro &#8211; Small angular rate sensor</li>
</ul>
<p><strong><span style="font-weight: normal;"><span style="text-decoration: underline;">Controller</span><br />
We had worked with PIC microcontrollers in the past, but I ran into issues getting everything to work again and decided to look for a simpler, easier option. I&#8217;d heard numerous mentions of Arduino in other project write-ups, so I decided to order one and give it a shot. We wrote some simple test code while waiting for it to arrive, and when it finally came in we were amazed to find that A) it took less than ten minutes to get the build environment working, and B) our test code actually compiled the first time. It was clear that Arduino was a much better choice for rapid prototyping, and I&#8217;ve nothing but praise for it. </span></strong><br />
<strong> </strong><br />
<span style="text-decoration: underline;">Valve Driver Board</span><br />
The valves we wanted to use required 12v at 1.2amps to open. This is more power than a microcontroller can source, so we knew we had to build some kind of relay board to switch power directly from a battery.</p>
<p><span style="text-decoration: underline;">MEMS Gyro Sensor</span><br />
We initially tried using a +-180 deg/s sensor, but it really wasn&#8217;t sensitive enough to catch the mostly slow rates the ACS saw. We switched to a  <a href="http://www.sparkfun.com/products/9422">LPR503AL +-30 deg/s sensor</a> and had much better results. So good, in fact, that we were able to estimate change in pitch/yaw by simply integrating the value from the gyro. I&#8217;d always assumed that the integration drift for MEMS sensors would be too high, but it actually works surprisingly well.</p>
<p><span style="text-decoration: underline;"><br />
</span></p>
<h2><span style="font-size: x-large;">Construction</span></h2>
<p>The components of the ACS were mounted to wooden decks cut from 1/4&#8243; plywood. The stack of decks was held in place by four allthread rods.</p>

<div class="ngg-galleryoverview" id="ngg-gallery-4-20">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-11" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/rpacs-construction/image7.jpg" title=" " class="shutterset_set_4" >
								<img title="image7" alt="image7" src="http://scott-n.com/wp/wp-content/gallery/rpacs-construction/thumbs/thumbs_image7.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-12" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/rpacs-construction/pneumatics.jpg" title=" " class="shutterset_set_4" >
								<img title="pneumatics" alt="pneumatics" src="http://scott-n.com/wp/wp-content/gallery/rpacs-construction/thumbs/thumbs_pneumatics.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-13" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/rpacs-construction/valveassy_lowres.jpg" title=" " class="shutterset_set_4" >
								<img title="valveassy_lowres" alt="valveassy_lowres" src="http://scott-n.com/wp/wp-content/gallery/rpacs-construction/thumbs/thumbs_valveassy_lowres.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-17" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/rpacs-construction/valveassy.jpg" title=" " class="shutterset_set_4" >
								<img title="valveassy" alt="valveassy" src="http://scott-n.com/wp/wp-content/gallery/rpacs-construction/thumbs/thumbs_valveassy.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<div style="margin: 0px;"><span style="text-decoration: underline;">Nozzles</span></div>
<div style="margin: 0px;">We weren&#8217;t really sure what we were going to use for nozzles originally, as the commercial ones we found on McMastercarr were pretty expensive. Luckily, I found some 1/4&#8243; NPT brass <a href="http://www.tractorsupply.com/agricultural-sprayers-spraying/sprayer-parts-accessories/sprayer-tips/lechler-reg-80-03-b-es-sprayer-nozzle-80-deg-even-spray-pack-of-4-2101064">fertilizer nozzles</a> at the local Tractor Supply that worked wonderfully. They&#8217;re only rated to 60psi, but we&#8217;ve used them at 100psi with no trouble. They even had uncut nozzle blanks you could use to drill your own nozzles, but we never got around to trying that.</div>
<div style="margin: 0px;"><span style="text-decoration: underline;">Piping</span></div>
<div style="margin: 0px;">We needed some way of connecting different components in the pneumatics system. One of my friends who works on Jeeps as a hobby suggested plain old steel brake line, which turned out to be perfect for what we needed. It&#8217;s cheap (20&#8242; coil for $20), easy to get (Autozone), and can be easily connected to other pneumatics components using NPT compression fittings. Flared fittings would have sealed easier, but flaring brake line turns out to be something of a dark art and none of us could get the hang of it. Besides, the compression fittings worked fine and while we do get small leaks every now and then, they&#8217;re quickly fixed by tightening the fittings.</div>
<div class="separator" style="clear: both; text-align: center; margin: 0px;"><a style="margin-left: 1em; margin-right: 1em;" href="http://2.bp.blogspot.com/_r7bIfLexlxI/TNhVfZzOKmI/AAAAAAAAAPA/K0UeOhjoDtE/s1600/CompressionFittings.png"><img style="cursor: move;" src="http://2.bp.blogspot.com/_r7bIfLexlxI/TNhVfZzOKmI/AAAAAAAAAPA/K0UeOhjoDtE/s400/CompressionFittings.png" border="0" alt="" width="400" height="170" /></a></div>
<div style="margin: 0px;">Note: As a very helpful man at Home Depot confided, the all-in-one compression fittings they sell don&#8217;t work well. The sleeve is just barely too small for the pipe to fit through. The easiest way to go is to buy the all-in-one fittings, and then also buy the brass sleeves and compression nuts separately. At that point you can gut the all-in-one fittings and replace them with parts that actually work.</div>
<div style="margin: 0px;"><span style="text-decoration: underline;"><br />
</span></div>
<div style="margin: 0px;"><span style="text-decoration: underline;">Fitting Types &amp; Sizes</span></div>
<div style="margin: 0px;">While it seems like a minute detail, it took a really long time to wade through all the different fitting types, sizes, etc. Long story short, we went with NPT thread on everything because it was ubiquitous and easy to find fittings for (We got most of ours from Home Depot). NPT fittings also don&#8217;t require O-rings, which was a plus. The paintball tank adapter had an 1/8&#8243; NPT output port, and indeed the 1/4&#8243; brake line we used was easily adapted to 1/8&#8243; NPT using compression fittings. However, we decided to go with 1/4&#8243; NPT ports for the valves just to keep our options open (we could always easily adapt down to 1/8&#8243;), and it&#8217;s a good thing we did. Otherwise, the nozzles we found wouldn&#8217;t have fit. Again, planning for flexibility over efficiency payed off here.</div>
<h2><span style="font-size: x-large;">Testing</span></h2>
<p><span style="font-size: x-large;"> </span><span style="font-size: small;">Here&#8217;s the most recent set of tests using just the rate sensor for attitude estimation. This was before we got the bluetooth modem, so you can see the USB cable still attached for monitoring purposes.</span></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Mqttm0ay8gk?fs=1&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/Mqttm0ay8gk?fs=1&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/Inertial_TOS.png"><img class="aligncenter size-large wp-image-201" title="Inertial_TOS" src="http://scott-n.com/wp/wp-content/uploads/2010/11/Inertial_TOS-1024x573.png" alt="" width="620" height="346" /></a></p>
<h2>Additional Info &amp; Future Directions</h2>
<p>There are lots of directions we could go with this. I&#8217;d like to look into vision-based control and also a couple cool things involving remote control via Wii-mote. Below is a link to a report Trevor and I did for a school project, including more info on the control law we came up with, how we calibrated the MEMS sensors, and how we determined the spring constant of the suspension cable.</p>
<p style="text-align: center;"><a href="http://snietfeld@scott-n.com/Archives/Docs/RPACSFinalReport.pdf">RPACSFinalReport.pdf</a></p>
<p>I think we could also miniaturize the system to fit inside a 6&#8243; dia x 18&#8243; tube&#8211;something launchable. I don&#8217;t think I&#8217;ve ever seen an amateur rocket with a full pneumatic ACS, but I think it&#8217;s definitely doable.</p>
<p>Sadly, I&#8217;m entering my last semester of undergrad at UTD and expect to be busy with less productive, more important things. Work on this project will probably continue this upcoming summer. However, if you&#8217;re local to the area and you&#8217;d like to use the ACS for something, by all means let me know and I&#8217;ll be happy to lend it out for science.</p>
<h2>Special Thanks</h2>
<p>We had an enormous amount of help from many people in working on this project, and it would be nothing less than petty theft if their contributions weren&#8217;t recognized here. Firstly, thanks to Dr. Greg Earle and Dr. Phil Anderson at UTD for supporting us in our initial work back in 2008&#8211;this project would certainly have fizzled out if we hadn&#8217;t had your help at the get-go. Big thanks also go out to Nate and Nick Wroblewski, who allowed this tomfoolery to be built in their garage and offered key design insights (the use of brake line &amp; a sliding mounting point assembly were their ideas). Also thanks to Ashley Wroblewski, who provided strategic nutritional support throughout the summer. Also a huge thanks to the guys down in NSROC pneumatics, Mike Scott and Time Wilson. We certainly would not have been able to get the pneumatics system together without your help, so thanks for letting us pester you all summer. Also thanks to Josh Laub for doing the nozzle flow calculations for us. Finally, thanks to Jan Jackson and all the other guys at NSROC who supported us and helped us along&#8211;you know who you are.</p>
]]></content:encoded>
			<wfw:commentRss>http://scott-n.com/wp/?feed=rss2&#038;p=20</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>DynaFlex Dynamo</title>
		<link>http://scott-n.com/wp/?p=19</link>
		<comments>http://scott-n.com/wp/?p=19#comments</comments>
		<pubDate>Tue, 04 May 2010 22:50:00 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://scott-n.com/wp/?p=19</guid>
		<description><![CDATA[A small, handheld generator I built out of a DynaFlex wrist exerciser for charging small USB devices like cell phones, MP3 players, and my Kindle.]]></description>
			<content:encoded><![CDATA[<p>About a year ago a friend of mine introduced me to the DynaFlex wrist exerciser. I was intrigued by its simple design and clever use of angular momentum, but it didn&#8217;t seem useful for much. Then, out of the blue, it occurred to me that this device would make an excellent mini-generator. Since the rotor spins at such a high rate (200-300Hz), the magnets and coils could be small. And unlike the lever-action handheld generators, this would have very few moving parts&#8211;no pesky nylon gears to wear down. I&#8217;d done a decent amount of reading about wind turbines, and I thought I had a pretty good understanding of how dynamos worked, so I decided to give it a shot.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/_r7bIfLexlxI/S-CjPB4ywNI/AAAAAAAAANA/b33Z7bo2V3Q/s1600/DSCN0176.jpg"><img src="http://1.bp.blogspot.com/_r7bIfLexlxI/S-CjPB4ywNI/AAAAAAAAANA/b33Z7bo2V3Q/s320/DSCN0176.jpg" border="0" alt="" /></a></div>
<p>I found a pack of neodymium magnets at Wal-Mart that looked like they&#8217;d fit inside the spokes of the rotor, and I bought some 26-gauge wire at a local electronics store. The magnets fit inside the rotor spokes, and I temporarily wedged them in using folded paper. This worked well enough that I would never bother to glue them in. Four magnets could be placed inside the spokes on each side of the rotor, giving eight magnets total. I arranged the magnets so that their polarities alternated every quarter turn.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://2.bp.blogspot.com/_r7bIfLexlxI/S-CkXaeeEsI/AAAAAAAAANI/bGV13YH_L68/s1600/DSCN0171.jpg"><img src="http://2.bp.blogspot.com/_r7bIfLexlxI/S-CkXaeeEsI/AAAAAAAAANI/bGV13YH_L68/s320/DSCN0171.jpg" border="0" alt="" /></a></div>
<p>Next, I used a power drill and a screwdriver handle to wind a pair of test coils. The coils were connected in series, taped to the top and bottom of the generator, and the rotor was spun up. Sure enough, a sine wave appeared on the scope.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/_r7bIfLexlxI/S-Ckcc3FHHI/AAAAAAAAANQ/mjEp2Uz9bYw/s1600/DSCN0168.jpg"><img src="http://1.bp.blogspot.com/_r7bIfLexlxI/S-Ckcc3FHHI/AAAAAAAAANQ/mjEp2Uz9bYw/s320/DSCN0168.jpg" border="0" alt="" /></a></div>
<p>After experimenting with different numbers of winds, I determined that a coil with 320 winds would yield between 3 and 5 volts, depending on how fast the rotor was spun. I wanted a pair of coils that could easily drive a simple linear 5v regulator for USB charging, so I figured two of these in series should work. I made a simple rectifier/5v regulator circuit and scalped a female USB connector from something less interesting.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/_r7bIfLexlxI/S-CkmAVKUVI/AAAAAAAAANY/w4A5C6XbxPw/s1600/DSCN0173.jpg"><img src="http://1.bp.blogspot.com/_r7bIfLexlxI/S-CkmAVKUVI/AAAAAAAAANY/w4A5C6XbxPw/s320/DSCN0173.jpg" border="0" alt="" /></a></div>
<p>Here&#8217;s a rough diagram of the electronics showing the coils and rectifier/capacitor arrangement. This was actually done in a circuit simulator applet I found at <a href="http://www.falstad.com/circuit/">http://www.falstad.com/circuit/</a>. I would highly recommend this program to anyone new to electronics, as it really does a good job of showing how current flows through various circuits.</p>
<p><a href="http://scott-n.com/wp/wp-content/uploads/2010/05/Circuit.png"><img class="aligncenter size-full wp-image-195" title="Circuit" src="http://scott-n.com/wp/wp-content/uploads/2010/05/Circuit.png" alt="" width="480" height="247" /></a></p>
<p>The coils themselves only output 1.9 Watts at maximum rotor speed (0.25A at 7.5V), but I think this could be greatly improved by someone who actually knew what they were doing. A more efficient switching regulator and stronger, better-placed magnets would be great improvements.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/_r7bIfLexlxI/S-CktI-OeBI/AAAAAAAAANg/nF_PlMiRiuI/s1600/DSCN0172.jpg"><img src="http://1.bp.blogspot.com/_r7bIfLexlxI/S-CktI-OeBI/AAAAAAAAANg/nF_PlMiRiuI/s320/DSCN0172.jpg" border="0" alt="" /></a></div>
<p><BR></p>
<div class="separator" style="clear: both; text-align: left;">Finally, here&#8217;s a quick video showing a cell phone being charged:</div>
<div>
<center><br />
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/BqLHxbneAus?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/BqLHxbneAus?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://scott-n.com/wp/?feed=rss2&#038;p=19</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Kindle Hardcase 2.0</title>
		<link>http://scott-n.com/wp/?p=18</link>
		<comments>http://scott-n.com/wp/?p=18#comments</comments>
		<pubDate>Sat, 24 Apr 2010 21:01:00 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://scott-n.com/wp/?p=18</guid>
		<description><![CDATA[My second attempt at a hardwood Kindle case, with several improvements including cleaner construction, brass turn buttons, and an engraved logo on the front.]]></description>
			<content:encoded><![CDATA[<p>Though I was more than happy with the way the <a href="http://theprojectblag.blogspot.com/2010/02/about-year-ago-i-was-fortunate-enough.html">first Kindle hardcase</a> turned out, there were still several improvements I wanted to make. First, I was really dissatisfied with having to route out the kindle insets by hand with the router on top of the board. The process was tedious, messy, and altogether unpleasant. I thought I might be able to keep the router in the routing table and make some sort of bounding frame that would allow me to just  slide the case half around on the table. This was a little tricky to set up, but ended up working really well. The resulting insets were cleaner, straighter, and much faster to cut. I don&#8217;t have a picture of this setup at the moment, but I&#8217;ll get one soon.</p>
<p>The first case was pretty heavy, so the second improvement I wanted to make was to route out both insets a little deeper, allowing thicker foam. This ended up reducing the weight from 1.4kg to 1.1kg with the Kindle inside.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/_r7bIfLexlxI/S9NTUknoXXI/AAAAAAAAAMU/BP_VPFIWrdo/s1600/DSCN0204.jpg"><img src="http://4.bp.blogspot.com/_r7bIfLexlxI/S9NTUknoXXI/AAAAAAAAAMU/BP_VPFIWrdo/s400/DSCN0204.jpg" border="0" alt="" width="400" height="300" /></a></div>
<p>Another major improvement was cutting the Kindle inset big enough for foam around all four edges.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/_r7bIfLexlxI/S9NbwLfb-VI/AAAAAAAAAM0/2RhtgZwkXOw/s1600/DSCN0208.jpg"><img src="http://1.bp.blogspot.com/_r7bIfLexlxI/S9NbwLfb-VI/AAAAAAAAAM0/2RhtgZwkXOw/s400/DSCN0208.jpg" border="0" alt="" width="400" height="300" /></a></div>
<p>I also wanted something that would keep the Kindle from falling out of the case when it was open. I settled on brass turn buttons and routed out insets for them in all four corners using a dremel. This ended up looking really nice, but it&#8217;s a little inconvenient to have to move the top turn buttons to turn the thing on and off. Also, if I leave them engaged when I close the case, they keep the foam on the front side from doing any good. I&#8217;m sure there&#8217;s a simple solution for this, but I haven&#8217;t come up with anything decent yet.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://2.bp.blogspot.com/_r7bIfLexlxI/S9NVbtSilpI/AAAAAAAAAMc/dT4DCnQzUQw/s1600/DSCN0123.jpg"><img src="http://2.bp.blogspot.com/_r7bIfLexlxI/S9NVbtSilpI/AAAAAAAAAMc/dT4DCnQzUQw/s400/DSCN0123.jpg" border="0" alt="" width="400" height="300" /></a></div>
<div class="separator" style="clear: both; text-align: left;">As a nod to this <a href="http://xkcd.com/548/">xkcd comic</a>, I wanted to put a Hitchhiker&#8217;s Guide graphic on the cover somehow. I printed it out, taped it to the cover, and then outlined it with a thumbtack.</div>
<div style="text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/_r7bIfLexlxI/S9NVoTaIWJI/AAAAAAAAAMk/q5aYLnJp7GA/s1600/DSCN0125.jpg"><img src="http://3.bp.blogspot.com/_r7bIfLexlxI/S9NVoTaIWJI/AAAAAAAAAMk/q5aYLnJp7GA/s400/DSCN0125.jpg" border="0" alt="" width="400" height="300" /></a></div>
<p>After the paper was removed the little holes were visible enough that I could score the design using a small, flat tool. Unfortunately, the design didn&#8217;t end up being quite as visible as I would have liked.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/_r7bIfLexlxI/S9NV_v9cueI/AAAAAAAAAMs/svX6eg_6aho/s1600/DSCN0206.jpg"><img src="http://4.bp.blogspot.com/_r7bIfLexlxI/S9NV_v9cueI/AAAAAAAAAMs/svX6eg_6aho/s400/DSCN0206.jpg" border="0" alt="" width="400" height="300" /></a></div>
<p>I found a guy that does laser engraving, so I&#8217;m going to give that a shot. All in all I think this case is a major improvement over the first one. It&#8217;s still a little heavy, and the hinges aren&#8217;t aligned quite right, so there&#8217;s still some improvements to be made yet, but I think I&#8217;m almost done here. A friend of mine has commissioned me to make one for her dad, so maybe this project will even pay for itself!</p>
]]></content:encoded>
			<wfw:commentRss>http://scott-n.com/wp/?feed=rss2&#038;p=18</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Crescent Island</title>
		<link>http://scott-n.com/wp/?p=93</link>
		<comments>http://scott-n.com/wp/?p=93#comments</comments>
		<pubDate>Fri, 12 Mar 2010 05:24:47 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Renderings]]></category>

		<guid isPermaLink="false">http://scott-n.com/wp/?p=93</guid>
		<description><![CDATA[Ever since I played Myst when I was young I&#8217;ve really enjoyed volcanic islands. I had an idea for one a while back, and during my drawing kick a few...]]></description>
			<content:encoded><![CDATA[<p>Ever since I played Myst when I was young I&#8217;ve really enjoyed volcanic islands. I had an idea for one a while back, and during my drawing kick a few years ago I made a concept sketch of one I really liked.</p>
<p><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/Island_lores.jpg"><img class="aligncenter size-medium wp-image-91" title="Island_lores" src="http://scott-n.com/wp/wp-content/uploads/2010/11/Island_lores-300x232.jpg" alt="" width="300" height="232" /></a></p>
<p>I was never very good at drawing things without actually being able to see them, so the sketch wasn&#8217;t really quite what I&#8217;d imagined and the idea continued to fester. Later, while working on an idea for a reverse-geocaching device, I was trying to find the point of land that was the furthest possible distance from me. Turns out one of the island that was closest to being on the opposite side of the Earth from me (and one of only three antipodes for the U.S.) was <a href="http://en.wikipedia.org/wiki/%C3%8Ele_Saint-Paul">Ile Saint Pau</a>l, and it just happened to look similar to my sketch.</p>
<p style="text-align: center;">
<div class="ngg-galleryoverview" id="ngg-gallery-1-93">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-1" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/ile-saint-paul/cratere_de_l_ile_saint_paul.jpg" title=" " class="shutterset_set_1" >
								<img title="cratere_de_l_ile_saint_paul" alt="cratere_de_l_ile_saint_paul" src="http://scott-n.com/wp/wp-content/gallery/ile-saint-paul/thumbs/thumbs_cratere_de_l_ile_saint_paul.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/ile-saint-paul/ilesaintpaul.jpg" title=" " class="shutterset_set_1" >
								<img title="ilesaintpaul" alt="ilesaintpaul" src="http://scott-n.com/wp/wp-content/gallery/ile-saint-paul/thumbs/thumbs_ilesaintpaul.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</p>
<p>A couple years later the guys over at <a href="http://unity3d.com/">Unity3D</a> made part of their game development application freely available to the public (thanks guys!). Included in this development environment were lots of really cool tools for designing level maps and modeling terrain. I spent the next few days compulsively modelling the island that had been rolling around in my head for so long.</p>
<p style="text-align: center;">
<div class="ngg-galleryoverview" id="ngg-gallery-2-93">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-3" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/crescent-island/island1.jpg" title=" " class="shutterset_set_2" >
								<img title="island1" alt="island1" src="http://scott-n.com/wp/wp-content/gallery/crescent-island/thumbs/thumbs_island1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-4" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/crescent-island/islandside.jpg" title=" " class="shutterset_set_2" >
								<img title="islandside" alt="islandside" src="http://scott-n.com/wp/wp-content/gallery/crescent-island/thumbs/thumbs_islandside.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-5" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/crescent-island/islandtop.jpg" title=" " class="shutterset_set_2" >
								<img title="islandtop" alt="islandtop" src="http://scott-n.com/wp/wp-content/gallery/crescent-island/thumbs/thumbs_islandtop.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</p>
<p style="text-align: left;">But the best part was that once the map was created, Unity, being a game engine, happily let me run around on a beautifully rendered version of my brand new island.</p>
<p style="text-align: center;">
<div class="ngg-galleryoverview" id="ngg-gallery-3-93">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-6" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/crescent-island-walkaround/island_render1.jpg" title=" " class="shutterset_set_3" >
								<img title="island_render1" alt="island_render1" src="http://scott-n.com/wp/wp-content/gallery/crescent-island-walkaround/thumbs/thumbs_island_render1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-7" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/crescent-island-walkaround/island_render2.jpg" title=" " class="shutterset_set_3" >
								<img title="island_render2" alt="island_render2" src="http://scott-n.com/wp/wp-content/gallery/crescent-island-walkaround/thumbs/thumbs_island_render2.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-8" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/crescent-island-walkaround/island_render3.jpg" title=" " class="shutterset_set_3" >
								<img title="island_render3" alt="island_render3" src="http://scott-n.com/wp/wp-content/gallery/crescent-island-walkaround/thumbs/thumbs_island_render3.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-9" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://scott-n.com/wp/wp-content/gallery/crescent-island-walkaround/island_render4.jpg" title=" " class="shutterset_set_3" >
								<img title="island_render4" alt="island_render4" src="http://scott-n.com/wp/wp-content/gallery/crescent-island-walkaround/thumbs/thumbs_island_render4.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</p>
]]></content:encoded>
			<wfw:commentRss>http://scott-n.com/wp/?feed=rss2&#038;p=93</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Puzzle Crate</title>
		<link>http://scott-n.com/wp/?p=17</link>
		<comments>http://scott-n.com/wp/?p=17#comments</comments>
		<pubDate>Thu, 11 Mar 2010 23:00:00 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://scott-n.com/wp/?p=17</guid>
		<description><![CDATA[Shipping crate + chess board + secret sliding door panel = My most excellent box.]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Arial;">I have always been fascinated by puzzle boxes. When I was little I used to draw up very simple designs, but lacked the tools and know-how to actually build them. I got distracted with high school and the idea wandered off into the back of my mind where stayed for about a decade&#8230;.That is, until it resurfaced a week ago. </span><br />
<span style="font-family: Arial;"><br />
</span><br />
<span style="font-family: Arial; font-size: small;"> </span></p>
<div style="margin: 0px;">I had come into possession of a box (a shipping crate, to be exact). It was clear to me from the moment I laid eyes on it that this was no ordinary box, that I loved it, and that a man could do great things with a box like that. I wasn&#8217;t quite sure what I would do with it, but I knew it would be good.</div>
<div style="margin: 0px;">My first idea was to spray-paint a chessboard on the top. After a mask had been made out of an unreasonable amount of painter&#8217;s tape, the board was sprayed and there was much rejoicing.</div>
<div style="margin: 0px;">
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/_r7bIfLexlxI/S5lzLRK_YgI/AAAAAAAAAKo/lg-mXMgu95E/s1600-h/DSCN0073.JPG"><img src="http://4.bp.blogspot.com/_r7bIfLexlxI/S5lzLRK_YgI/AAAAAAAAAKo/lg-mXMgu95E/s400/DSCN0073.JPG" border="0" alt="" width="400" height="300" /></a></div>
</div>
<div style="margin: 0px;">I don&#8217;t remember how I arrived at the idea, but about six months afterward it occurred to me that I could modify one side of the box to have a hidden sliding panel which, when moved, would allow the whole side to open out. I drew a fancy picture on my desk to cement the idea:</div>
<div style="margin: 0px;">
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/_r7bIfLexlxI/S5lzfq7l9QI/AAAAAAAAAKw/Cy_HCD15R4k/s1600-h/DSCN0119.JPG"><img src="http://3.bp.blogspot.com/_r7bIfLexlxI/S5lzfq7l9QI/AAAAAAAAAKw/Cy_HCD15R4k/s320/DSCN0119.JPG" border="0" alt="" width="320" height="240" /></a></div>
</div>
<div style="margin: 0px;">I was a little worried about tearing into my most beloved box, but the idea seemed simple enough, so I promptly began ignoring the upcoming week&#8217;s midterms and began construction.</div>
<div style="margin: 0px;">The hardest part of the whole process was actually removing the panels from one side of the box. Shipping crates don&#8217;t look terribly inspiring, but this one was really well-built. Some of the nails could be pried out, but many were buried in the wood and I didn&#8217;t want to risk splitting the planks with a crowbar. I ended up having to use a hacksaw blade <em>between</em> the joints to cut most of the nails holding each plank on. This took some time. There was also a 2&#8243; thick sheet of foam insulation glued to the inside of off three planks, complicating the process.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://2.bp.blogspot.com/_r7bIfLexlxI/S5lz0dP1IrI/AAAAAAAAAK4/YA_7pSihG_M/s1600-h/DSCN0074.JPG"><img src="http://2.bp.blogspot.com/_r7bIfLexlxI/S5lz0dP1IrI/AAAAAAAAAK4/YA_7pSihG_M/s400/DSCN0074.JPG" border="0" alt="" width="400" height="300" /></a></div>
</div>
<div style="margin: 0px;">Once the planks were removed from the box and separated from each other, things went pretty quickly. I drilled holes in the middle board for the pins, and cut mortise grooves in the other two boards using a drill and dremel.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/_r7bIfLexlxI/S5l0dzaMtoI/AAAAAAAAALI/pKkuTr8xC6o/s1600-h/DSCN0107.JPG"><img src="http://3.bp.blogspot.com/_r7bIfLexlxI/S5l0dzaMtoI/AAAAAAAAALI/pKkuTr8xC6o/s400/DSCN0107.JPG" border="0" alt="" width="300" height="400" /></a></div>
</div>
<div style="margin: 0px;">
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/_r7bIfLexlxI/S5l0EHQXWRI/AAAAAAAAALA/usaUbjtpCUQ/s1600-h/DSCN0108.JPG"><img src="http://3.bp.blogspot.com/_r7bIfLexlxI/S5l0EHQXWRI/AAAAAAAAALA/usaUbjtpCUQ/s400/DSCN0108.JPG" border="0" alt="" width="400" height="300" /></a></div>
<p>The three planks would eventually act as a door, so to give it some rigidity I connected the upper and lower planks using two 1&#215;4&#8242;s. This allowed the door to stay square while sandwiching the center plank in place. I found some concealed cabinet hinges at Home Depot, but they didn&#8217;t travel outward quite enough and I had to remove some material from the inside edge of the box so the door would open completely.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/_r7bIfLexlxI/S5l076rtXII/AAAAAAAAALQ/dQhjkOHIq0Q/s1600-h/DSCN0110.JPG"><img src="http://4.bp.blogspot.com/_r7bIfLexlxI/S5l076rtXII/AAAAAAAAALQ/dQhjkOHIq0Q/s400/DSCN0110.JPG" border="0" alt="" width="400" height="300" /></a></div>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/_r7bIfLexlxI/S5l1Ogd9V6I/AAAAAAAAALY/2JFGTtRsQHs/s1600-h/DSCN0113.JPG"><img src="http://3.bp.blogspot.com/_r7bIfLexlxI/S5l1Ogd9V6I/AAAAAAAAALY/2JFGTtRsQHs/s400/DSCN0113.JPG" border="0" alt="" width="400" height="300" /></a></div>
<p>Unfortunately, the door won&#8217;t open with the center plank fully translated for the same reason I had to remove material in the inside edge. I considered removing material from the adjacent side to make a recess that the overhang of the center plank would fold back into, but my friends informed me that this was lame since it would be very obvious that the box had been tampered with. Instead we decided that it would be okay if the center plank was slid out once to release the bolts and open the door slightly, and then slid back in to open the door entirely. This was the only real design decisions I wasn&#8217;t sure about, but in retrospect I think we really made the right decision here. If anything, the added step adds to the box&#8217;s charm, though you have to be careful not to yank the door open with the center plank still pushed out.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/_r7bIfLexlxI/S5l1aVvoyiI/AAAAAAAAALg/fIhU7L_pzPo/s1600-h/DSCN0112.JPG"><img src="http://1.bp.blogspot.com/_r7bIfLexlxI/S5l1aVvoyiI/AAAAAAAAALg/fIhU7L_pzPo/s400/DSCN0112.JPG" border="0" alt="" width="400" height="300" /></a></div>
<p>I added a section of 1&#215;4 to the center plank so that bolts could be attached at the top and bottom of the door instead of just the center. I chose to use spring-loaded door bolts so that the door could be opened and closed freely if the bolts were retracted.</p>
<p>The bolts were installed.</p>
<p>The box was closed and opened repeatedly.</p>
<p>And there was much rejoicing.   \o/</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/4endDAR9duo&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/4endDAR9duo&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
(Forgive my creepy breathing, I was a bit sick at the time.)</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://scott-n.com/wp/?feed=rss2&#038;p=17</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kindle Hardcase 1.0</title>
		<link>http://scott-n.com/wp/?p=16</link>
		<comments>http://scott-n.com/wp/?p=16#comments</comments>
		<pubDate>Sat, 27 Feb 2010 23:16:00 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://scott-n.com/wp/?p=16</guid>
		<description><![CDATA[I got tired of worrying about my Kindle's screen cracking, so I decided to try to build a protective case for it. Here's my first shot at a mesquite hardcase.]]></description>
			<content:encoded><![CDATA[<div style="text-align: left;"><span style="font-family: 'times new roman';">About a year ago I was fortunate enough to receive a Kindle for my birthday. I also received a protective <a href="http://www.amazon.com/Belkin-Neoprene-Generation-Frustration-Free-Packaging/dp/B001NPDA44">neoprene case</a> to keep it from getting damaged. The case seemed like it might protect the Kindle against short drops and light direct pressure, but I never felt comfortable throwing it in my backpack or leaving it out. I looked online for a good, protective hardcase for the Kindle, but found only neoprene sleeves and moderately protective <a href="http://www.amazon.com/Amazon-Kindle-Leather-Display-Generation/dp/B001T0HYCM/ref=sr_1_10?ie=UTF8&amp;s=electronics&amp;qid=1267312089&amp;sr=1-10">leather covers</a>. None of these things seemed to offer the amount of protection I wanted for a $350 gadget with a very thin and delicate screen (which cannot itself be replaced). I wanted something more like a <a href="http://www.pelican.com/cases_detail.php?Case=1080">Pelican case</a>, something capable of withstanding high static pressures. The closest Pelican case I could find to what I wanted was designed for a laptop, but that seemed way too big to be practical. So, having been failed by capitalism, I endeavored to build my own.</span></div>
<div style="text-align: justify;"><span style="font-family: 'times new roman';"><br />
</span></div>
<div style="text-align: justify;"><span style="font-family: 'times new roman';">Initially, I had grand schemes about making the case out of fiberglass and integrating a solar charger into the cover. I even drew a fancy picture:</span></div>
<div style="text-align: justify;"><span style="font-family: 'times new roman';"><br />
</span></div>
<div style="text-align: justify;"><span style="font-family: 'times new roman';"><span style="font-family: Georgia, serif;"><a href="http://3.bp.blogspot.com/_r7bIfLexlxI/S4muX-pQdOI/AAAAAAAAAJU/GIUS9paVDBw/s1600-h/DSCN0114.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5443073351630222562" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 240px; height: 320px;" src="http://3.bp.blogspot.com/_r7bIfLexlxI/S4muX-pQdOI/AAAAAAAAAJU/GIUS9paVDBw/s320/DSCN0114.JPG" border="0" alt="" /></a></span></span></div>
<div style="text-align: justify;"><span style="font-family: 'times new roman';"><br />
</span></div>
<div>
<div style="text-align: justify;"><span style="font-family: 'times new roman';">I put a lot of time into trying to make fiberglass case halves, but this ended up being mostly messy and difficult without the proper tools. Someone with more (read: any) experience with molds and fiberglass could probably knock it out pretty easily, but my feeble attempts using wooden molds just weren&#8217;t as clean as I&#8217;d hoped they&#8217;d be. </span></div>
<div style="text-align: justify;"><span style="font-family: 'times new roman';"><br />
</span></div>
<div>
<div><span style="color: #0000ee;"><span style="text-decoration: underline;"><img id="BLOGGER_PHOTO_ID_5443073795456746754" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_r7bIfLexlxI/S4mux0BvxQI/AAAAAAAAAJc/eQS38Rj2hUA/s320/DSCN0041.JPG" border="0" alt="" /></span></span></div>
<div><span style="font-family: 'times new roman';">I felt like I&#8217;d gotten something that, with a little more effort, time and money could have been refined into being usable, but I was discouraged by the general messiness of fiberglass and decided to try a new approach. I wanted to look into building a solid wood case, so I drew another fancy picture and began construction.</span></div>
<div><span style="font-family: 'times new roman';"><br />
</span></div>
<div><span style="font-family: 'times new roman';"><span style="font-family: Georgia, serif;"><a href="http://1.bp.blogspot.com/_r7bIfLexlxI/S4m15W0wbgI/AAAAAAAAAJs/K9cRhywCimI/s1600-h/PICT1614.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5443081621637983746" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 240px; height: 320px;" src="http://1.bp.blogspot.com/_r7bIfLexlxI/S4m15W0wbgI/AAAAAAAAAJs/K9cRhywCimI/s320/PICT1614.JPG" border="0" alt="" /></a><a href="http://1.bp.blogspot.com/_r7bIfLexlxI/S4m1htcTO3I/AAAAAAAAAJk/WqGonSpKyhM/s1600-h/DSCN0001_02.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"></a></span></span></div>
<div><span style="font-family: 'times new roman';"><br />
</span></div>
<div><span style="font-family: 'times new roman';"> Although I had no prior experience working with hardwoods, I think the results turned out just fine. Here&#8217;s the first iteration of my mesquite Kindle hardcase:</span></div>
<div><span style="font-family: 'times new roman';"><br />
</span></div>
<div><span style="font-family: 'times new roman';"><br />
</span></div>
<div><span style="font-family: 'times new roman';"><span style="font-family: Georgia, serif;"><a href="http://1.bp.blogspot.com/_r7bIfLexlxI/S4m1htcTO3I/AAAAAAAAAJk/WqGonSpKyhM/s1600-h/DSCN0001_02.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5443081215392562034" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_r7bIfLexlxI/S4m1htcTO3I/AAAAAAAAAJk/WqGonSpKyhM/s320/DSCN0001_02.JPG" border="0" alt="" /></a></span></span></div>
<div>
<div style="text-align: left;"><span style="color: #0000ee;"><span style="color: #000000; font-family: 'times new roman';">Some will say that two spring-loaded clasps is overkill. They will say this until their singular clasp accidentally unlatches, their case pops open and their Kindle falls out &amp; onto the ground. To protect something that costs several hundred dollars, an extra clasp makes sense to me.</span></span></div>
</div>
<div style="text-align: justify;"><span style="font-family: 'times new roman';"><span style="font-family: Georgia, serif;"><a href="http://4.bp.blogspot.com/_r7bIfLexlxI/S4m2boeKpcI/AAAAAAAAAJ8/AUgCx9bgIDw/s1600-h/DSCN0035.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5443082210490623426" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_r7bIfLexlxI/S4m2boeKpcI/AAAAAAAAAJ8/AUgCx9bgIDw/s400/DSCN0035.jpg" border="0" alt="" /></a><span style="font-family: 'times new roman';">The edge of the kindle is surrounded by high-density foam to protect it from short drops. I cut the inset for the Kindle a little too short, so there wasn&#8217;t space for padding along the top edge. Future versions will have foam on all edges.</span></span></span></div>
<div style="text-align: justify;"><span style="font-family: 'times new roman';"><span style="font-family: Georgia, serif;"><br />
</span></span></div>
<p><span style="font-family: 'times new roman';"> </span></p>
<div style="text-align: justify;"><span style="font-family: Georgia, serif;"><a href="http://1.bp.blogspot.com/_r7bIfLexlxI/S4m2vB2RKmI/AAAAAAAAAKE/t8JYY3rCB3c/s1600-h/DSCN0016.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5443082543720114786" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://1.bp.blogspot.com/_r7bIfLexlxI/S4m2vB2RKmI/AAAAAAAAAKE/t8JYY3rCB3c/s400/DSCN0016.jpg" border="0" alt="" /></a></span></div>
<div>You&#8217;ll notice there also isn&#8217;t anything holding the Kindle inside the case. This is definitely something that needs to be fixed, and in future versions I think I&#8217;ll add <a href="http://www.rockler.com/product.cfm?page=1593">brass turn buttons</a> to all four corners. I also still want to integrate a solar charger into the case, but that will take some more time.</div>
<div style="text-align: justify;"><span style="font-family: 'times new roman';"><br />
</span></div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://scott-n.com/wp/?feed=rss2&#038;p=16</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Artificial Synesthesia</title>
		<link>http://scott-n.com/wp/?p=7</link>
		<comments>http://scott-n.com/wp/?p=7#comments</comments>
		<pubDate>Mon, 13 Nov 2006 22:17:01 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://scott-n.com/wp/?p=7</guid>
		<description><![CDATA[I&#8217;ve always been interested in synesthesia and steganography. The two aren&#8217;t really related, but when I was tasked with a project for an art class, I decided to make it...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always been interested in synesthesia and steganography. The two aren&#8217;t really related, but when I was tasked with a project for an art class, I decided to make it interesting by trying to marry the two.</p>
<p>You can &#8220;listen&#8221; to a picture pretty easily. By simply copying and pasting the contents of a bitmap into a .wav file, you can trick a program like Audacity into &#8220;playing&#8221; an image file. Here&#8217;s what the Mona Lisa sounds like using this method:</p>
<p><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/MonaLisa.jpg"><img class="aligncenter size-full wp-image-111" title="MonaLisa" src="http://scott-n.com/wp/wp-content/uploads/2010/11/MonaLisa.jpg" alt="" width="265" height="352" /></a></p>
<div id="attachment_107" class="wp-caption aligncenter" style="width: 310px"><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/MonaLisaWav.png"><img class="size-medium wp-image-107" title="MonaLisaWav" src="http://scott-n.com/wp/wp-content/uploads/2010/11/MonaLisaWav-300x40.png" alt="" width="300" height="40" /></a><p class="wp-caption-text">MonaLisa.bmp as .wav</p></div>
<p><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/MonaLisa.mp3">MonaLisa.mp3</a></p>
<p>While interesting, I wanted something that was a little more musical. I wanted something that <em>sounded</em> nice. For a while I played with the idea of trying to make an image that, when converted into a .wav in this way, would sound interesting. I quickly discovered that the color content of the image was much less important than the its spatial frequency content. That is, while a single vertical red bar and a green bar might sound identical (a single tone), <strong>two</strong> bars stacked next to each other would sound very different (a doubling in frequency). This is probably better illustrated by the image below:</p>
<div id="attachment_114" class="wp-caption aligncenter" style="width: 630px"><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/Totem1.jpg"><img class="size-large wp-image-114" title="Totem" src="http://scott-n.com/wp/wp-content/uploads/2010/11/Totem1-1024x185.jpg" alt="" width="620" height="112" /></a><p class="wp-caption-text">One of my first attempts to draw something that sounded interesting. The image has been rotated 90 degrees, and so gets played from left to right.</p></div>
<p style="text-align: center;"><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/totem.mp3">totem.mp3</a></p>
<div style="text-align: auto;">You can clearly hear the part in the middle where the bars produce semi-uniform tones. You can also hear the difference between the black halves of the rightmost circles versus the green halves. What you&#8217;re hearing is the difference in the way green and black pixels are represented. For the black section, you&#8217;re hearing the simple alternating between bits that are mostly &#8216;all on&#8217; and &#8216;all off&#8217;. For the green section, however, you&#8217;re hearing an alternation between bits that are &#8216;all on&#8217; (white) and triplets of bytes where every third one is &#8216;all on&#8217;.</div>
<div style="text-align: auto;">At any rate, while it was interesting to try to reverse the process by drawing something from scratch, I wanted to get back to the idea of converting existing visual art into something that sounded musical. I needed to find some way of mapping the pixel data in the image to notes that would be at least somewhat intuitive. Directly mapping the audio spectrum onto the visual spectrum turns out to be tough, though, because visual color can&#8217;t be described by a simple frequency&#8211;there is a brightness component as well. For instance, you can see every color in the visible spectrum in the image below, but nowhere along that spectrum is white or dark green.</div>
<div class="wp-caption aligncenter" style="width: 478px"><img title="visibleSpectrum" src="http://upload.wikimedia.org/wikipedia/commons/8/87/Computer_color_spectrum.svg" alt="" width="468" height="89" /><p class="wp-caption-text">Source: Wikimedia Commons</p></div>
<p>Our eyes produce these &#8216;emergent&#8217; colors by both being sensitive to intensity and by treating <em>combinations</em> of colors differently. To try to imitate this, I wrote a java program using JFugue to translate the pixels in an image into a midi sequence of three-note piano chords. For each pixel, the three values for red, green, and blue get mapped onto corresponding sections of the piano.</p>
<p><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/SpectrumMapping.jpg"><img class="aligncenter size-full wp-image-124" title="SpectrumMapping" src="http://scott-n.com/wp/wp-content/uploads/2010/11/SpectrumMapping.jpg" alt="" width="609" height="228" /></a></p>
<p>It&#8217;s not perfect, but the results were actually pretty interesting. I had to downsample the images heavily so they could be played in a timely manner (640&#215;480 pixels at 2 pixels per second would take about 42 hours to play).  Here are some sample images and their corresponding &#8216;songs&#8217;:</p>
<p><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/ml30.bmp"><img class="alignleft size-full wp-image-127" title="ml30" src="http://scott-n.com/wp/wp-content/uploads/2010/11/ml30.bmp" alt="" /></a><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/mlMidi.mid">MonaLisa.midi</a></p>
<p><a href="http://scott-n.com/wp/wp-content/uploads/2010/11/blueflower.bmp"><img class="alignleft size-full wp-image-134" title="blueflower" src="http://scott-n.com/wp/wp-content/uploads/2010/11/blueflower.bmp" alt="Blue flower" /></a> <a href="http://scott-n.com/wp/wp-content/uploads/2010/11/blueflower.mid">blueflower.midi</a></p>
<p>The rhythm you hear in the Mona Lisa midi is actually due to the padding bytes used in the bitmap format the image was saved in. These padding bytes occur at regular intervals ever few pixels, and always have the same value. This causes the rhythm effect your hear. It had never occurred to me that a file format might have a rhythm, but by all accounts it makes sense. The padding bytes were removed in the blue flower midi.</p>
<p>At any rate, it was a really interesting project and I hope to get more time someday to keep playing with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://scott-n.com/wp/?feed=rss2&#038;p=7</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://scott-n.com/wp/wp-content/uploads/2010/11/MonaLisa.mp3" length="66901" type="audio/mpeg" />
<enclosure url="http://scott-n.com/wp/wp-content/uploads/2010/11/totem.mp3" length="751829" type="audio/mpeg" />
<enclosure url="http://scott-n.com/wp/wp-content/uploads/2010/11/mlMidi.mid" length="18606" type="audio/midi" />
<enclosure url="http://scott-n.com/wp/wp-content/uploads/2010/11/blueflower.mid" length="2846" type="audio/midi" />
		</item>
	</channel>
</rss>
