<?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>Madox.NET</title>
	<atom:link href="http://www.madox.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madox.net/blog</link>
	<description>Perversions of an Engineer</description>
	<lastBuildDate>Sun, 05 Feb 2012 13:52:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Quick Post &#8211; Up! 3D prints with updated fan holder</title>
		<link>http://www.madox.net/blog/2012/02/06/quick-post-up-3d-prints-with-updated-fan-holder/</link>
		<comments>http://www.madox.net/blog/2012/02/06/quick-post-up-3d-prints-with-updated-fan-holder/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 13:51:17 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=912</guid>
		<description><![CDATA[Just a quick post on the new fan holder (aka &#8220;Wind Barrier V7&#8243;) for the Up! pp3dp printer that I&#8217;ve been trialling for a couple of days.  The previous holders blew onto the extruder heatsink whereas the new design blows partially onto the model. I&#8217;ve had the design for a while now but have been [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick post on the new fan holder (aka &#8220;Wind Barrier V7&#8243;) for the Up! pp3dp printer that I&#8217;ve been trialling for a couple of days.  The previous holders blew onto the extruder heatsink whereas the new design blows partially onto the model.</p>
<p>I&#8217;ve had the design for a while now but have been procrastinating and sat on it for a while.  That is until seeing how well an Ultimaker worked with its ducted fan attachment.</p>
<p>Jumping to the results, it actually works alot better!</p>
<ul>
<li>The models come off the supports really easily now &lt;&#8212; This is the most noticeable</li>
<li>&#8216;Undersides&#8217; and supported surfaces are alot cleaner now</li>
<li>There appears to be reduced warp, since the top layer is cooled down immediately after extrusion.</li>
</ul>
<p>Off topic, but there is a duck in those photos&#8230; it looks a bit weird but its a prototype.  Plus the weird details like the screw thread attachment serves  well to show how cleanly the supports come off now (I only used my hands in all the photos below!  Seriously!)</p>
<div>Photos after the break.</div>
<div><span id="more-912"></span></div>
<div id="kpg-album-description">
<div id='kpg-title'>Up! 3D Prints 2012-02-05</div>
</div>
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="kpg-pictures">
<tr>
<td width='25%'><a href='http://lh3.ggpht.com/-7PUf9Kg32gk/Ty6AKqHOdyI/AAAAAAAACd0/5AqdTxUHCXc/s800/DSC08090.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh3.ggpht.com/-7PUf9Kg32gk/Ty6AKqHOdyI/AAAAAAAACd0/5AqdTxUHCXc/s144/DSC08090.JPG' height='144' width='96' alt='' class='kpg-thumb' /></a></td>
<td width='25%'><a href='http://lh6.ggpht.com/-wh_84zODxLc/Ty58UJuXcDI/AAAAAAAACdg/IpMFVnAdsK4/s800/DSC08081.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh6.ggpht.com/-wh_84zODxLc/Ty58UJuXcDI/AAAAAAAACdg/IpMFVnAdsK4/s144/DSC08081.JPG' height='96' width='144' alt='' class='kpg-thumb' /></a></td>
<td width='25%'><a href='http://lh4.ggpht.com/-6gxWr9YVn9A/Ty56HeUAQvI/AAAAAAAACcg/qv7BJJhi9oc/s800/DSC08082.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh4.ggpht.com/-6gxWr9YVn9A/Ty56HeUAQvI/AAAAAAAACcg/qv7BJJhi9oc/s144/DSC08082.JPG' height='96' width='144' alt='' class='kpg-thumb' /></a></td>
<td width='25%'><a href='http://lh4.ggpht.com/-okFyRw_PA2s/Ty56J4oG2cI/AAAAAAAACco/4yaZdJubLVA/s800/DSC08083.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh4.ggpht.com/-okFyRw_PA2s/Ty56J4oG2cI/AAAAAAAACco/4yaZdJubLVA/s144/DSC08083.JPG' height='96' width='144' alt='' class='kpg-thumb' /></a></td>
</tr>
<tr>
<td width='25%'><a href='http://lh5.ggpht.com/-jmF6dwgr6pk/Ty55-poIl6I/AAAAAAAACcY/YHrprCpzUH0/s800/DSC08084.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh5.ggpht.com/-jmF6dwgr6pk/Ty55-poIl6I/AAAAAAAACcY/YHrprCpzUH0/s144/DSC08084.JPG' height='96' width='144' alt='' class='kpg-thumb' /></a></td>
<td width='25%'><a href='http://lh5.ggpht.com/-pyjGJISGnb0/Ty57C6ufuFI/AAAAAAAACc0/ecLAw2cpiCM/s800/DSC08085.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh5.ggpht.com/-pyjGJISGnb0/Ty57C6ufuFI/AAAAAAAACc0/ecLAw2cpiCM/s144/DSC08085.JPG' height='96' width='144' alt='' class='kpg-thumb' /></a></td>
<td width='25%'><a href='http://lh4.ggpht.com/-4yp1uneRl7k/Ty57NvgzmMI/AAAAAAAACc8/YXZDu0dYz7Q/s800/DSC08086.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh4.ggpht.com/-4yp1uneRl7k/Ty57NvgzmMI/AAAAAAAACc8/YXZDu0dYz7Q/s144/DSC08086.JPG' height='96' width='144' alt='' class='kpg-thumb' /></a></td>
<td width='25%'><a href='http://lh5.ggpht.com/-XrE5nMnyz7U/Ty57PlJQ3QI/AAAAAAAACdE/P_1nButL6Rk/s800/DSC08087.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh5.ggpht.com/-XrE5nMnyz7U/Ty57PlJQ3QI/AAAAAAAACdE/P_1nButL6Rk/s144/DSC08087.JPG' height='96' width='144' alt='' class='kpg-thumb' /></a></td>
</tr>
<tr>
<td width='25%'><a href='http://lh5.ggpht.com/-Y_ShUoIuVm4/Ty58QSSVItI/AAAAAAAACdY/Nl6ByBzNBQ4/s800/DSC08089.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh5.ggpht.com/-Y_ShUoIuVm4/Ty58QSSVItI/AAAAAAAACdY/Nl6ByBzNBQ4/s144/DSC08089.JPG' height='144' width='96' alt='' class='kpg-thumb' /></a></td>
<td width='25%'><a href='http://lh4.ggpht.com/-viyLw9oqWZQ/Ty58KzOW7iI/AAAAAAAACdQ/6tP1kjBumB4/s800/DSC08088.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh4.ggpht.com/-viyLw9oqWZQ/Ty58KzOW7iI/AAAAAAAACdQ/6tP1kjBumB4/s144/DSC08088.JPG' height='96' width='144' alt='' class='kpg-thumb' /></a></td>
<td width='25%'><a href='http://lh4.ggpht.com/-OVKNl4_QWkg/Ty6ALfNQDtI/AAAAAAAACd8/O94_xzeNMRw/s800/DSC08091.JPG' rel='shadowbox[kpicasa_gallery]'><img src='http://lh4.ggpht.com/-OVKNl4_QWkg/Ty6ALfNQDtI/AAAAAAAACd8/O94_xzeNMRw/s144/DSC08091.JPG' height='96' width='144' alt='' class='kpg-thumb' /></a></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p><br style="clear: both;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2012/02/06/quick-post-up-3d-prints-with-updated-fan-holder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OddBot LaunchPad</title>
		<link>http://www.madox.net/blog/2012/01/02/oddbot-launchpad/</link>
		<comments>http://www.madox.net/blog/2012/01/02/oddbot-launchpad/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 07:28:42 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=905</guid>
		<description><![CDATA[The &#8216;OddBot&#8216; is a Mecanum wheel base derived from Madox Rover. The design is similar but the OddBot has far superior documentation and more practical mounting arrangements.  The common &#8216;flaw&#8217; is that they both use a rather expensive controller (Chumby), the OddBot LaunchPad is a replacement controller that costs $4.30 shipped.  The demonstration here uses a cheap eBay [...]]]></description>
			<content:encoded><![CDATA[<p>The &#8216;<a href="http://www.odd.org.nz/oddbot.html" target="_blank">OddBot</a>&#8216; is a Mecanum wheel base derived from <a href="http://www.madox.net/blog/?p=803" target="_blank">Madox Rover</a>. The design is similar but the OddBot has <strong>far superior</strong> documentation and more practical mounting arrangements.  The common &#8216;flaw&#8217; is that they both use a rather expensive controller (Chumby), the OddBot LaunchPad is a replacement controller that costs $4.30 shipped.  The demonstration here uses a cheap eBay Wireless NunChuk as the controller, though this component is not necessary if sensors and other controls are connected to the Launchpad.  This brings the electronics cost of the platform to approximately $20 [$13.60 (Servos) + $4.30 (Launchpad) + $2.00 (Battery Holder + Wires)].  The 3D printing cost is probably in the order of $5-$10.</p>
<p>The files for the OddBot Launchpad are supplementary to the OddBot and does not contain the 3D files for the wheels etc.</p>
<p>The files are located on Google Code :-</p>
<p><a href="http://code.google.com/p/madox/source/browse/#svn%2Ftrunk%2Foddbot-launchpad">http://code.google.com/p/madox/source/browse/#svn%2Ftrunk%2Foddbot-launchpad</a></p>
<p>The code is written for mspgcc &#8216;Uniarch&#8217; with a Makefile to install the program using Ubuntu + mspdebug.</p>
<p>This demonstration was mainly an exercise for me to familiarise myself with the msp430 LaunchPad + value line chips.  What little &#8220;documentation&#8221; there is exists in the comments of the <a href="http://code.google.com/p/madox/source/browse/trunk/oddbot-launchpad/oddbot-launchpad.c" target="_blank">oddbot-launchpad.c file</a>.</p>
<p>As usual there is an imperfect demonstration video that goes with it (the rotate is in the wrong direction in the video) :-</p>
<p style="text-align: center;"><object width="480" height="360" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 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/VrflD-S_T1M?version=3&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed width="480" height="360" type="application/x-shockwave-flash" src="http://www.youtube.com/v/VrflD-S_T1M?version=3&amp;hl=en_US" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2012/01/02/oddbot-launchpad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s a runaway succ&#8230;. failure</title>
		<link>http://www.madox.net/blog/2011/12/28/its-a-runaway-succ-failure/</link>
		<comments>http://www.madox.net/blog/2011/12/28/its-a-runaway-succ-failure/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 14:38:47 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=892</guid>
		<description><![CDATA[Another failure!  Though all signs pointed to it working&#8230; So I got a freebie OddBot sent to me a couple of weeks ago, it basically is a derivative of my Mecanum Rover and Olaf was kind enough to sent it with almost everything attached less the Chumby.  Since I&#8217;ve been on a TI Launchpad buying spree, I [...]]]></description>
			<content:encoded><![CDATA[<p>Another failure!  Though all signs pointed to it working&#8230;</p>
<p>So I got a freebie <a href="http://www.odd.org.nz/oddbot.html">OddBot</a> sent to me a couple of weeks ago, it basically is a derivative of my <a href="http://www.madox.net/blog/?p=803" target="_blank">Mecanum Rover</a> and Olaf was kind enough to sent it with almost everything attached less the <a href="http://www.chumby.com/">Chumby</a>.  Since I&#8217;ve been on a <a href="http://www.ti.com/tool/msp-exp430g2" target="_blank">TI Launchpad</a> buying spree, I thought I&#8217;ll tack one on in place of the Chumby to drive it.</p>
<p>So far this post reads like a gigantic spam with all those links&#8230;no enlargement links coming up, I promise&#8230;just one short video of it not working and running away on me.</p>
<p><span id="more-892"></span></p>
<p>So I figured, how hard can it be?  I procrastinated soldering 2 header pins onto the Launchpad&#8217;s TP1 and TP3 tie points for power but after doing that everything was almost recycling :-</p>
<p>Code &#8211; Copied from Madox Kart prototype code and original Rover code&#8230;took around 15-30 minutes to copy/paste and tidy up some comments.<br />
Carrier for Launchpad + Battery +  Breadboard &#8211; Almost a direct copy of the Madox Kart prototype again&#8230; 15minutes to tweak and 1+ hour to print.  [Ok 3+ hours, 1+ hour on 0.4mm layers but 3+ hours on 0.2mm layers which I'm a sucker for].</p>
<p>Everything seemed &#8216;too easy&#8217; so far, even the <a href="https://plus.google.com/u/0/114506261366431391535/posts/TBH5mJvHfGw" target="_blank">code compiled first time which I didn&#8217;t believe</a>.  Then the problems started mounting&#8230;</p>
<p>Problem 1 &#8211; Cheap mini-USB cables from eBay failed to connect to the Launchpad properly.  Cable 1 was a complete no go (marked for butchering into a power cable), cable 2 worked only if the connector was held at a particular angle.  I programmed the Launchpad while keeping my hand steady holding the cable.  Cheap eBay USB cables, you disappoint me yet again.</p>
<p>Problem 2 &#8211; Connected everything up onto the breadboard and all, no blinky lights on the Launchpad!!!  Head scratch for a total of ~30 seconds.  It turns out it is the age old problem of &#8216;slightly too fat&#8217; AA cells.  The AA cells are just a bit too wide for the battery holder and because of such, the friction between batteries was stronger than the spring and the + terminal wasn&#8217;t making contact.  Don&#8217;t know whether to blame this on the battery holder or the batteries&#8230;</p>
<p>Problem 3 &#8211; Continuous rotation servos were not zero&#8217;ed, and they were a pain to do so, the slightest adjustment movement will have it spinning the other way.  2 minutes later the zero&#8217;ing seems to have been gone, probably due to temperature drift (heating up) &#8211; PITA.</p>
<p>Problem 4 &#8211; My favorite &#8211; it didn&#8217;t work.  Initially because I didn&#8217;t pair the Wii Nunchuk (Duh! moment) and then probably down to the hackity software code <img src='http://www.madox.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   The movement matrices seemed wrong and the servo control was very odd, need to debug that later.  <strong>Highlight &#8211; IT RAN AWAY ON ME.  </strong>Best illustrated in video form :-</p>
<p style="text-align: center;"><object width="315" height="560" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 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/K8imeBZHoCM?version=3&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed width="315" height="560" type="application/x-shockwave-flash" src="http://www.youtube.com/v/K8imeBZHoCM?version=3&amp;hl=en_US" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>
<p>Problem 4.5 &#8211; The wheels haven&#8217;t been treated with Plasti-Dip or any other grippy surface, so its still very slippery&#8230;</p>
<p>I&#8217;ll upload the code etc when I get around to fixing it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2011/12/28/its-a-runaway-succ-failure/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Madox-Kart &#8211; Background and Introduction</title>
		<link>http://www.madox.net/blog/2011/12/07/madox-kart-background-and-introduction/</link>
		<comments>http://www.madox.net/blog/2011/12/07/madox-kart-background-and-introduction/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 08:12:59 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=889</guid>
		<description><![CDATA[I&#8217;ve always had an idea in my mind to hold a public competition in say Darling Harbour (Sydney, Australia) where participants build something to race. Anything, a boat, a car, a plane, really anything because a competition is always fun to watch. Not necessarily for &#8216;wow that&#8217;s cool&#8217; but failures can be pretty hilarious too. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always had an idea in my mind to hold a public competition in say Darling Harbour (Sydney, Australia) where participants build something to race. Anything, a boat, a car, a plane, really anything because a competition is always fun to watch. Not necessarily for &#8216;wow that&#8217;s cool&#8217; but failures can be pretty hilarious too.</p>
<p>The idea is probably even plagiarised, I remember as a kid there was a woodworker/carpenters competition at said Darling Harbour where various companies were given a pile of wood and had to build a boat and race it in a limited time. There were awesome entries and there was the sheets of wood nailed together and fell apart as soon as it hit the water. Hilarity when the &#8216;losers&#8217; swam and capsized almost everyone else.</p>
<p>Back to the Kart.</p>
<p>The idea is to build and race remote control karts (cars) around a course of obstacles and other fun things. There&#8217;ll be a set of rules and restrictions to make it challenging and fun.</p>
<p>That was the basic idea, with a potential spinoff that if we can aim for a low enough cost we can potentially produce a &#8216;kit&#8217; that can be used for education to promote interest in electonics and Engineering.</p>
<h2>The fork</h2>
<p>I bounced this idea by the local hackerspace (Robots &amp; Dinosaurs) here in Sydney and ended up with a <a href="https://groups.google.com/forum/#!topic/sydney-hackspace/iQWwMlFVQOI" target="_blank">mega thread</a> of 144 replies so far. There are varying opinions on various items, for example how a &#8216;low cost&#8217; solution might be &#8216;too hard&#8217; and also confusion on who the target audience is.</p>
<p>So hence I propose a fork into two Karting Categories</p>
<h2>Madox Kart &#8211; Educational</h2>
<p>I am still very eager to create a platform that can be used for schools and keen parents to teach their kids about electronics/programming/general principles. The audience I had in mind for this is 12-16 year olds, say in high school where design/build/racing of the Kart can be built into the school curriculum. Does anyone remember or know about the &#8216;Mouse Trap Racers&#8217; and &#8216;Rubber band Car&#8217; competitions? Isn&#8217;t it about time we advance a little bit into electronics and build something a bit more complex? I think the Kart would be a great replacement.</p>
<p>To have it in a competition form provides positive motivation for the child to succeed. Who doesn&#8217;t want to win against their mates? Isn&#8217;t this alot more fun than reading out of a text book? Its interactive, its hands on and I think it should be good.</p>
<p>So this idea is currently at the &#8216;Design Challenge&#8217; phase where I seek everyone&#8217;s opinions and ideas on how we can make this an open-source kit for children. The main driver for this would be affordability, with $25 for electronic components as my rough budget. Bonus items would include expandability (can the kit be reprogrammed or used again?) and ease of build (e.g. I&#8217;ll avoid any use of power tools).</p>
<p>Again a reminder, affordability is key. There will be some of us who will say &#8216;but it is only $1 more&#8217; or &#8216;$10 is nothing&#8217;, please remember not everyone may be as fortunate as you and that amount of money may be significant to them. I want to provide the best &#8216;educational value&#8217;, performance is not the main theme.</p>
<h2>Madox Kart &#8211; Hacker</h2>
<p>Of course there are those of us who just wants to have a bit of fun and not let our creativity be constrained by tight budgets, thus creation of this new category for HACKERS. There will still be a set of rules and constraints to avoid overkill and competition domination just by money, so just throwing the idea out that its probably to put a dollar constraint on this one as well &#8211; say $100?</p>
<p>The possibilities for this one is that we can have build workshops at our local hackerspace to help each another and learn as well as having a bit of fun with competitions with prizes. If this gets off the floor, we can compete with neighbouring hackerspaces as well just to add a bit of friendly rivalry into the mix.</p>
<p>I very much like the idea of a &#8216;kart race&#8217; over other forms of competitions like the robot wars type. It is less &#8216;violent&#8217; for starters and may help to promote the public image of hackerspaces in a better light.</p>
<h2>In closing, here is a rubber ducky&#8230;</h2>
<p><img class="aligncenter" title="Remote Controlled Rubber Duck" src="http://lh4.googleusercontent.com/-eJgdiEG9qwU/Tt8ew5OxJ7I/AAAAAAAABOM/0rQHTjuZuDU/s800/IMAG0949.jpg" alt="" width="526" height="800" /></p>
<p>Yup I originally wanted a remote control rubber duck race in Darling Harbour, somehow a &#8216;Madox-Kart&#8217; seemed more practical&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2011/12/07/madox-kart-background-and-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Because failures are educational&#8230;Prototyping</title>
		<link>http://www.madox.net/blog/2011/12/05/because-failures-are-educational-prototyping/</link>
		<comments>http://www.madox.net/blog/2011/12/05/because-failures-are-educational-prototyping/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 12:14:34 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=873</guid>
		<description><![CDATA[Failures are educational and they should be shared with the world.  Too often you see awesome projects on the Internet and wonder &#8216;How did he do that?&#8217; but rarely do you see the failures behind these projects. I&#8217;m planning an &#8216;educational&#8217; project currently code-named &#8216;Madox-Kart&#8217; that I&#8217;ll get around to writing about, the summary is [...]]]></description>
			<content:encoded><![CDATA[<p>Failures are educational and they should be shared with the world.  Too often you see awesome projects on the Internet and wonder &#8216;How did he do that?&#8217; but rarely do you see the failures behind these projects.</p>
<p>I&#8217;m planning an &#8216;educational&#8217; project currently code-named &#8216;Madox-Kart&#8217; that I&#8217;ll get around to writing about, the summary is that it is a educational and fun project for kids to make programmable RC cars on the cheap (&lt;$25) to teach electronics and 3D printing.  To test out the concept, I decided to make a prototype.</p>
<p>Prototype was &#8216;quick and dirty&#8217; and looks something like :-</p>
<div class="wp-caption aligncenter" style="width: 542px"><img title="Madox Kart Prototype" src="https://lh5.googleusercontent.com/-8lQTlFns2IY/TtuXPwI6VVI/AAAAAAAABLM/4iTjXxxgELY/s800/DSC06974.JPG" alt="" width="532" height="800" /><p class="wp-caption-text">Madox Kart Prototype</p></div>
<p><span id="more-873"></span>It took a few hours to print because I printed at 0.2mm resolution and &#8216;fine&#8217; as usual, in hindsight that is overkill for a quick prototype.  <strong>Mistake 1.  Don&#8217;t overkill on quality on a prototype.</strong></p>
<div class="wp-caption aligncenter" style="width: 650px"><img title="Wheel printing in progress" src="https://lh4.googleusercontent.com/-dAuytZiJZT8/TttPKojGkoI/AAAAAAAABKw/ZANLWOFIh2g/s640/IMAG0937.jpg" alt="" width="640" height="383" /><p class="wp-caption-text">Wheel printing in progress, at least I made it hollow...</p></div>
<p>Started modelling at around 8pm, the modelling was straight forward as was the printing so everything was printed by midnight.  Next comes the mistake, it is a BAD idea to code after midnight.  I had most of the code prepared as part of a previous run, with meticulously commented code.  Of course 1am me thought that code was bad and decided to &#8216;correct it&#8217; &#8211; turns out it was the correction that was the bug and kept me debugging until 3am.  <strong>Mistake 2.  Avoid coding after midnight&#8230;  </strong>This and the fact that I wanted to play it safe and test with both a wired and wireless Wii Nunchuk, on the assumption that the wired would be easier and more reliable.  Of course I was wrong and the wired Nunchuk is/was probably defective.  <strong>Mistake 3.  Don&#8217;t assume things&#8230;</strong></p>
<p>After sorting all that out I got lazy and instead of putting in the designed batteries, I slapped on a rather large LiPo battery with duct tape on the thing and tried it out.  This video shows the &#8216;ooops&#8217; result.</p>
<p><object width="560" height="315" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 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/Vq163CJEJa0?version=3&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed width="560" height="315" type="application/x-shockwave-flash" src="http://www.youtube.com/v/Vq163CJEJa0?version=3&amp;hl=en_US" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object><br />
<strong>Mistake 4.  Duct tape doesn&#8217;t really solve everything&#8230;</strong></p>
<p>More lessons to be learnt next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2011/12/05/because-failures-are-educational-prototyping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autodesk Catch &amp; Meshmixer Quick Test</title>
		<link>http://www.madox.net/blog/2011/11/13/autodesk-catch-meshmixer-quick-test/</link>
		<comments>http://www.madox.net/blog/2011/11/13/autodesk-catch-meshmixer-quick-test/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 12:52:23 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=856</guid>
		<description><![CDATA[With the proliferation of home 3D printers, a lot of people ask &#8216;how do you create the 3D models to print?&#8217;. The answers are typically &#8221;I download it from Thingiverse&#8230;&#8221; or &#8221;I model it up using CAD myself&#8221; (My answer), the first isn&#8217;t that fun and the latter might be too hard for the non-technical crowd.  However [...]]]></description>
			<content:encoded><![CDATA[<p>With the proliferation of home 3D printers, a lot of people ask &#8216;how do you create the 3D models to print?&#8217;.</p>
<p>The answers are typically &#8221;I download it from Thingiverse&#8230;&#8221; or &#8221;I model it up using CAD myself&#8221; (My answer), the first isn&#8217;t that fun and the latter might be too hard for the non-technical crowd.  However all is not lost, quite recently a few services have popped up that offer <a href="http://en.wikipedia.org/wiki/Photogrammetry" target="_blank">Photogammetry</a> where you can upload a number of photos and back comes a 3D model.</p>
<p>There are a number of options but based off a chat while visiting <a href="http://thebeehive.net.au/" target="_blank">Beehive Digital Manufacturing</a> over the weekend I decided to give Autodesk&#8217;s Catch (was Photofly) another go so I can share the results on how easy it is to create a printable model.</p>
<div class="wp-caption aligncenter" style="width: 276px"><a href="https://picasaweb.google.com/lh/photo/UO43Peier1Ig9i7l5JaJEA?feat=embedwebsite"><img title="Soldier Boy + Mini Soldier Boy + Micro Soldier Boy" src="https://lh4.googleusercontent.com/-uXfEo7c0krk/Tr-KWyiVjgI/AAAAAAAABAI/IhUmTzM78yE/s400/DSC06875.JPG" alt="" width="266" height="400" /></a><p class="wp-caption-text">Soldier Boy + Mini Soldier Boy + Micro Soldier Boy</p></div>
<p><span id="more-856"></span></p>
<h2>First, find an object you want to create a model of&#8230;</h2>
<p>I found that it was quite hard to find something that I wanted to create a 3D model of that isn&#8217;t copyright or inappropriate in some way, but in the end I found what I now call &#8216;Soldier Boy&#8217; pictured below.  Soldier boy is a &#8216;piggy bank&#8217; I got as a gift from a group of waitresses whilst on a business trip in China, and it appears generic enough not to infringe on any copyrights!  [PS : the other gift I got really was a <a href="http://www.madox.net/blog/wp-content/uploads/2008/11/carpig2.jpg" target="_blank">pig</a>...]</p>
<p>Once you have found the object of choice, you&#8217;ll need to place it somewhere where you can take photos of it from 360 degrees.   If you&#8217;re short of space indoors, you can take it outdoors like what I did :-</p>
<div class="wp-caption aligncenter" style="width: 410px"><img title="Place it where you can take photos from all around" src="https://lh3.googleusercontent.com/-MUf9n5qLaT0/Tr-zHif9AyI/AAAAAAAABAc/oDSpRTwtN9Y/s400/DSC06823.JPG" alt="" width="400" height="266" /><p class="wp-caption-text">Place it where you can take photos from all around</p></div>
<h2 style="text-align: left;"> Second, take photos&#8230;lots of photos&#8230;</h2>
<p>It is recommended that you set your camera to MANUAL FOCUS such that focus doesn&#8217;t change between shots, this helps the photogammetry algorithms.  Take photos all around the object, say 20 photos for 360 degrees.  Take note that unless you want the top of the head to be a gaping hole, it doesn&#8217;t hurt to take another round of photos (say 20 more) from a higher angle.</p>
<div class="wp-caption aligncenter" style="width: 570px"><img class=" " title="Take photos all around, taking care to cover the 'top' if required" src="https://lh4.googleusercontent.com/-UTH1mFZ2wL4/Tr8NaEtwdmI/AAAAAAAAA-k/J0hxdOp8REg/s800/Catch9.png" alt="" width="560" height="344" /><p class="wp-caption-text">Take photos all around, taking care to cover the &#39;top&#39; if required</p></div>
<p>I took 50 photos for soldier boy, with extra shots from a low angle to capture features such as his bags and pockets.</p>
<h2>Then&#8230; Upload them to Photofly/Autodesk Catch&#8230;</h2>
<p>Presuming you have the program already installed, it is really as simple as selecting all the photos you&#8217;ve taken and hitting an upload button.  There are some quirks with the program, mine crashed on the first attempt but retrying worked.</p>
<h2>And then&#8230;</h2>
<p>You should get your &#8216;scene&#8217; back to be opened using the &#8216;Scene Editor&#8217;.</p>
<div class="wp-caption aligncenter" style="width: 570px"><img class=" " title="Scene Creator" src="https://lh6.googleusercontent.com/-qITPGgi09-c/Tr8NLfiR77I/AAAAAAAAA-E/NYSSLSXhmhs/s800/Catch2.png" alt="" width="560" height="305" /><p class="wp-caption-text">Scene Creator</p></div>
<p>The scene editor allows you to preview your model, with some tools to tweak here and there.  It shows you a textured model, and the positions it thinks you&#8217;ve taken the photos from.  Assuming all is well, you shouldn&#8217;t need to edit any stitch points.</p>
<div class="wp-caption aligncenter" style="width: 570px"><img class=" " title="Scene Creator" src="https://lh5.googleusercontent.com/-abEfEKk2GPA/Tr8Nc2ByABI/AAAAAAAAA-0/ibMYn4l-a34/s800/Catch6.png" alt="" width="560" height="305" /><p class="wp-caption-text">You can see how each photo contributes to your scene</p></div>
<p>What is useful in the scene creator is removing obvious artifacts from the model, I ended up getting some extra fence spikes as well as the spike underneath his feet.  Removal is easy, use the lasso select tool to select the parts you don&#8217;t want and hit delete.</p>
<div class="wp-caption aligncenter" style="width: 410px"><img title="Removing unwanted artifacts" src="https://lh6.googleusercontent.com/-tp6XY0fbbO0/Tr8NiHfei0I/AAAAAAAAA-8/0Vi1G1CRTaA/s400/Catch5.png" alt="" width="400" height="218" /><p class="wp-caption-text">Removing unwanted artifacts</p></div>
<div class="wp-caption aligncenter" style="width: 410px"><img title="Artifact gone!" src="https://lh5.googleusercontent.com/-cDbAtUNsw-M/Tr8NiE-hajI/AAAAAAAAA_A/YAV7Ksc894I/s400/Catch5a.png" alt="" width="400" height="218" /><p class="wp-caption-text">Artifact gone!</p></div>
<p>Give your mesh a quick look over to see if the quality is good enough for you.  There are 3 quality levels to choose from :- Mobile, Standard and Maximum.  The mesh I ended up with looked good enough so there wasn&#8217;t a need for me to bump it up to 11.</p>
<div class="wp-caption aligncenter" style="width: 570px"><img class=" " title="Check the mesh quality is suitable for you" src="https://lh3.googleusercontent.com/-yyMixPZQLYY/Tr8NaRQOgxI/AAAAAAAAA-o/u6mQeLWOIkU/s800/Catch8.png" alt="" width="560" height="305" /><p class="wp-caption-text">Check the mesh quality is suitable for you</p></div>
<p>Now you can export that as an OBJ file!</p>
<h2>And then&#8230;</h2>
<p>For no reason than &#8216;because I can&#8217;, I opened the OBJ with its texture files in Meshlab to see that it all exported properly&#8230;</p>
<div class="wp-caption aligncenter" style="width: 570px"><img title="Meshlab shows the model all pretty too..." src="https://lh4.googleusercontent.com/-6orx2vXbBr4/Tr8NG-vtg_I/AAAAAAAAA98/XP8ThSYhfX0/s800/Catch4.png" alt="" width="560" height="305" /><p class="wp-caption-text">Meshlab shows the model all pretty too...</p></div>
<h2>But but but&#8230; there are holes in it!</h2>
<p>Because I couldn&#8217;t take photos of the underside of its feet, the mesh is non-manifold and there are these humongous holes under his feet!</p>
<div class="wp-caption aligncenter" style="width: 650px"><img title="Humongous holes...and the feet are still joined..." src="https://lh3.googleusercontent.com/-27yYjwrSx_Q/Tr8NVLQnCVI/AAAAAAAAA-c/givzC86OOsQ/s640/Catch7.png" alt="" width="640" height="497" /><p class="wp-caption-text">Humongous holes...and the feet are still joined...</p></div>
<p>So the mesh isn&#8217;t perfect and that&#8217;s where Meshmixer comes in.  Opening the model in Meshmixer helpfully shows and highlights the problem areas with a big blue/red outline as you can see above.  Removing the hole was simple, Meshmixer has a tool called &#8216;Erase &amp; Fill&#8217; where it will delete off selected portions and fill it in to make a solid.  i.e. you need to select around the edge/bottom part of the shoes, delete and it will fill it in.  You&#8217;ll need to edit the tool because the default fill is a huge &#8216;bulb&#8217;/'balloon&#8217;.</p>
<p>There are some other useful tools in meshmixer such as the smooth tool to smooth out bumps that might appear here and there but once the model is &#8216;solid&#8217; it is ready for print.  Meshmixer lets you export direct to STL and its straight to the printer!</p>
<h2>To the printer!</h2>
<p>I took a video of my prints, but I&#8217;m too lazy to edit/upload them so photos only below.  There was an issue with my printer I haven&#8217;t seen for a year that caused some artifacts in the prints, but glad I&#8217;ve finally figured it out what the problem is and shouldn&#8217;t happen next time&#8230;</p>
<p>All in all the models that came out look pretty good.  With the photos + uploading + cleaning up, it took perhaps an hour (Autodesk Catch crashed once, Meshmixer crashed thrice&#8230;) so it isn&#8217;t all that time consuming.  Should be alot quicker now that I&#8217;ve got the hang of it too [Meshmixer isn't very intuitive to use...]</p>
<p><img class="aligncenter" src="https://lh5.googleusercontent.com/-SpFViLOJzJ0/Tr-I-YugQVI/AAAAAAAAA_c/FRw-wzNLJCo/s800/DSC06876.JPG" alt="" width="532" height="800" /><img class="aligncenter" src="https://lh5.googleusercontent.com/-sVgtMa9qNHE/Tr-JHSRMxgI/AAAAAAAABAU/ctaPzeFL584/s800/DSC06871.JPG" alt="" width="532" height="800" /><img class="aligncenter" src="https://lh5.googleusercontent.com/-Wc4Jv42XStI/Tr-KPxVO1-I/AAAAAAAAA_4/jITF9oboXUs/s800/DSC06872.JPG" alt="" width="532" height="800" /><img class="aligncenter" src="https://lh6.googleusercontent.com/-l0FDOi_qcjg/Tr-KVdjlu3I/AAAAAAAABAA/q4m40vYw2J8/s800/DSC06874.JPG" alt="" width="532" height="800" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2011/11/13/autodesk-catch-meshmixer-quick-test/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Image to SVG Cutout Script</title>
		<link>http://www.madox.net/blog/2011/10/11/image-to-svg-cutout-script/</link>
		<comments>http://www.madox.net/blog/2011/10/11/image-to-svg-cutout-script/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 12:03:59 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=849</guid>
		<description><![CDATA[I wrote a quickie script to take advantage of Ponoko&#8217;s free cardboard special last month and the test results have arrived!  I can&#8217;t wait until daylight to share the results so here are some photos!  Script source at the end&#8230; The Python script generates squares and circles for each pixel in a photo, I was targeting [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a quickie script to take advantage of Ponoko&#8217;s free cardboard special last month and the test results have arrived!  I can&#8217;t wait until daylight to share the results so here are some photos!  Script source at the end&#8230;</p>
<div id="attachment_851" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.madox.net/blog/wp-content/uploads/2011/10/DSC06807.jpg"><img class="size-medium wp-image-851" title="Projection Test" src="http://www.madox.net/blog/wp-content/uploads/2011/10/DSC06807-450x299.jpg" alt="" width="450" height="299" /></a><p class="wp-caption-text">Cute isn&#39;t she? </p></div>
<p><span id="more-849"></span></p>
<p>The Python script generates squares and circles for each pixel in a photo, I was targeting <a href="http://www.ponoko.com/">Ponoko</a>&#8216;s P2 size so planned for 64&#215;64 pixel images at approximately 6mm per pixel.  The above shows an &#8216;inverted&#8217; generation where the lighter colours generate a cutout, this is intended for light being projected through it onto a surface.  Was hoping to use the sun for best effect but just used a cheap Ikea lamp to take the above photo.</p>
<p>The normal generation is where darker colours generate a cutout, intended for placing the cutout on top of a coloured background.  In the photo below, the background is my table tennis table.</p>
<p><a href="http://www.madox.net/blog/wp-content/uploads/2011/10/DSC06803A.jpg"><img class="aligncenter size-medium wp-image-853" title="Hehehe she is cute :)" src="http://www.madox.net/blog/wp-content/uploads/2011/10/DSC06803A-450x480.jpg" alt="" width="450" height="480" /></a></p>
<p>I barely unpacked the stuff from Ponoko before taking those photos so still need a bit of clean up (some &#8216;holes&#8217; still have the cardboard attached) but overall I&#8217;m happy with the result!  In case anyone is wondering, the &#8216;square&#8217; cutouts are much cheaper than the circular ones based on Ponoko pricing and achieve the same result.</p>
<p>The script source can be found at at the link below, feel free to share.</p>
<p>Script source : <a href="http://code.google.com/p/madox/source/browse/trunk/misc/im2svg.py">http://code.google.com/p/madox/source/browse/trunk/misc/im2svg.py</a></p>
<p>&nbsp;</p>
<p>Edit : New picture using day (Sun) lighting</p>
<p><img class="aligncenter" src="https://lh6.googleusercontent.com/-_MZp6jB-n2g/TpTJi16KHFI/AAAAAAAAA6U/a0kN6tCmVIE/s800/11%252520-%2525201.jpg" alt="" width="800" height="478" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2011/10/11/image-to-svg-cutout-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Full Disclosure &#8211; I am now a pp3dp (3D Printer) reseller in Sydney :)</title>
		<link>http://www.madox.net/blog/2011/10/11/full-disclosure-i-am-now-a-pp3dp-3d-printer-reseller-in-sydney/</link>
		<comments>http://www.madox.net/blog/2011/10/11/full-disclosure-i-am-now-a-pp3dp-3d-printer-reseller-in-sydney/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 11:54:55 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=850</guid>
		<description><![CDATA[I&#8217;ve always said good things about the Up! 3D printer from pp3dp in the past year I&#8217;ve owned the printer and now I&#8217;ve become a local reseller in Australia.  Just want to get this out in the open in case anyone thinks I&#8217;m talking up the printer just to sell it&#8230; However if you ARE [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always said good things about the Up! 3D printer from pp3dp in the past year I&#8217;ve owned the printer and now I&#8217;ve become a local reseller in Australia.  Just want to get this out in the open in case anyone thinks I&#8217;m talking up the printer just to sell it&#8230;</p>
<p>However if you ARE interested in buying one, feel free to buzz me by email to : madox dot net at gmail dot com , and I&#8217;ll see if I can get you a good deal <img src='http://www.madox.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2011/10/11/full-disclosure-i-am-now-a-pp3dp-3d-printer-reseller-in-sydney/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Python Webcam Streamer</title>
		<link>http://www.madox.net/blog/2011/06/13/python-webcam-streamer/</link>
		<comments>http://www.madox.net/blog/2011/06/13/python-webcam-streamer/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 14:15:42 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=847</guid>
		<description><![CDATA[I have only just realised what a misnomer the term &#8216;webcam&#8217; is but can&#8217;t seem to think of something better.  Anyway quick post to upload a Python &#8216;Webcam&#8217; HTTP Streamer. I found mjpg-streamer but it wasn&#8217;t quite right - I had to compile (cross-compile!) it each time I wanted to use it (hard to share&#8230;) [...]]]></description>
			<content:encoded><![CDATA[<p>I have only just realised what a misnomer the term &#8216;webcam&#8217; is but can&#8217;t seem to think of something better.  Anyway quick post to upload a Python &#8216;Webcam&#8217; HTTP Streamer.</p>
<p>I found <a href="http://sourceforge.net/projects/mjpg-streamer/" target="_blank">mjpg-streamer</a> but it wasn&#8217;t quite right -</p>
<ul>
<li>I had to compile (cross-compile!) it each time I wanted to use it (hard to share&#8230;)</li>
<li>I couldn&#8217;t embed it easily with existing programs (to share same http port) etc.</li>
<li>It seemed to use a lot of CPU when it had to compress the images using libjpeg</li>
</ul>
<p>So I decided to &#8216;Google&#8217; around and look for a V4L2 binding for Python and couldn&#8217;t seem to find anything&#8230; only did I realize Pygame has this inbuilt already but no one seems to mention it!  So to keep things short, here it is :-</p>
<p><a href="http://code.google.com/p/madox/source/browse/trunk/webcam_stream/webcam_stream.py">http://code.google.com/p/madox/source/browse/trunk/webcam_stream/webcam_stream.py</a></p>
<ul>
<li>http://&lt;ipaddress&gt;:8080/GetStream &#8211; This gets you the multipart/jpeg stream</li>
<li>http://&lt;ipaddress&gt;:8080/GetImage &#8211; This gets you a single image</li>
<li>http://&lt;ipaddress&gt;:8080/JSImage &#8211; This uses the single image interface and gets the images as fast as it can via JavaScript</li>
</ul>
<p>Framerates, ports (default 8080 in above examples), resolutions are in the source file for you to customize &#8211; go for it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2011/06/13/python-webcam-streamer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting to/from RGB565 in Ubuntu using ffmpeg</title>
		<link>http://www.madox.net/blog/2011/06/06/converting-tofrom-rgb565-in-ubuntu-using-ffmpeg/</link>
		<comments>http://www.madox.net/blog/2011/06/06/converting-tofrom-rgb565-in-ubuntu-using-ffmpeg/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 14:32:04 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=844</guid>
		<description><![CDATA[I used ffmpeg to convert an image for my Android splash screen previously but couldn&#8217;t quite remember the right command.  The standard answer you&#8217;ll find on the internet is to use the rgb2565 tool included in the Android tools source.  Luckily there&#8217;s an easier way Converting from RGB565 (to PNG) ffmpeg -vcodec rawvideo -f rawvideo [...]]]></description>
			<content:encoded><![CDATA[<p>I used <em>ffmpeg</em> to convert an image for my Android splash screen previously but couldn&#8217;t quite remember the right command.  The standard answer you&#8217;ll find on the internet is to use the <em>rgb2565</em> tool included in the Android tools source.  Luckily there&#8217;s an easier way <img src='http://www.madox.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Converting from RGB565 (to PNG)</p>
<pre>ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 320x240 -i image.raw -f image2 -vcodec png image.png</pre>
<p>Converting to RGB565 (from PNG)</p>
<pre>ffmpeg -vcodec png -i image.png -vcodec rawvideo -f rawvideo -pix_fmt rgb565 image.raw
</pre>
<p>Now I have custom Chumby boot screens!  [Yeah wasn't doing it for Android this time...]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2011/06/06/converting-tofrom-rgb565-in-ubuntu-using-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

