<?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>Awooga!!! &#187; hacking</title>
	<atom:link href="http://awooga.nl/tag/hacking/feed" rel="self" type="application/rss+xml" />
	<link>http://awooga.nl</link>
	<description>how hard can it be?</description>
	<lastBuildDate>Tue, 05 Apr 2011 12:46:28 +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>Droidock</title>
		<link>http://awooga.nl/droidock</link>
		<comments>http://awooga.nl/droidock#comments</comments>
		<pubDate>Thu, 03 Feb 2011 22:28:52 +0000</pubDate>
		<dc:creator>Q</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[chargers]]></category>
		<category><![CDATA[crafts]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[dock]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[modaco]]></category>
		<category><![CDATA[modding]]></category>
		<category><![CDATA[orange]]></category>
		<category><![CDATA[san francisco]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[zte blade]]></category>

		<guid isPermaLink="false">http://awooga.nl/?p=527</guid>
		<description><![CDATA[About two weeks ago, I finally bit the bullet and retired my trusty iPhone 3G, and went to the dark bright side, with an Orange San Francisco (also known as the ZTE Blade). At £99 (including a compulsory £10 Orange topup) it can be SIM unlocked for free and flashed to Froyo 2.2 with a [...]]]></description>
			<content:encoded><![CDATA[<p>About two weeks ago, I finally bit the bullet and retired my trusty <a href="/officially-sad-or-officially-geek" class="liinternal">iPhone 3G</a>, and went to the <del>dark</del> bright side, with an <a href="http://newsroom.orange.co.uk/2010/09/21/orange-brings-android-to-the-masses-with-the-launch-of-san-francisco/" target="_blank" class="liexternal">Orange San Francisco</a> (also known as the <a href="http://wwwen.zte.com.cn/en/press_center/news/201011/t20101108_194339.html" target="_blank" class="liexternal">ZTE Blade</a>).  At £99 (including a compulsory £10 Orange topup) it can be <a href="http://arrtoo.x10.mx/unlockBlade.php" target="_blank" class="liexternal">SIM unlocked for free</a> and flashed to <a href="http://en.wikipedia.org/wiki/Android_%28operating_system%29" target="_blank" class="liexternal">Froyo 2.2</a> with a variety of <a href="http://android.modaco.com/content/zte-blade-roms-rom-customisation/329856/02-feb-roms-current-known-available-roms-for-the-zte-blade/" target="_blank" class="liexternal">ROMs</a>.</p>
<p>But despite a incredible take up by punters everywhere, the lack of handset accessories is frustrating.  Until recently we couldn&#8217;t even get an OSF specific screen protector, let alone a <a href="http://android.modaco.com/content/zte-blade-blade-modaco-com/319419/suitable-silicone-case-screen-protector-for-san-francisco-by-orange/" target="_blank" class="liexternal">protective cover</a>.  And still we can not buy a desktop charger that fits!</p>
<p>And so, when a colleague was unpacking a toner cartridge and I spotted the polystyrene padding material, I thought, why not bodge one myself?</p>
<p><a href="/gallery/modding/droidock/Photo+Feb+03_+9+36+47+PM.jpg.html" class="liimagelink"><img src="/g/image/37850-4/Photo+Feb+03_+9+36+47+PM.jpg" alt="" class="aligncenter" /></a></p>
<p>15 minutes (and a sharp blade) later, and voila!</p>
<p><a href="/gallery/modding/droidock/Photo+Feb+03_+9+36+30+PM.jpg.html" class="liimagelink"><img src="/g/image/37844-3/Photo+Feb+03_+9+36+30+PM.jpg" alt="" /></a> <a href="/gallery/modding/droidock/Photo+Feb+03_+9+37+03+PM.jpg.html" class="liimagelink"><img src="/g/image/37853-3/Photo+Feb+03_+9+37+03+PM.jpg" alt="" /></a> <a href="/gallery/modding/droidock/Photo+Feb+03_+9+37+19+PM.jpg.html" class="liimagelink"><img src="/g/image/37857-3/Photo+Feb+03_+9+37+19+PM.jpg" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://awooga.nl/droidock/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ooh Arr-duino</title>
		<link>http://awooga.nl/ooh-arr-duino</link>
		<comments>http://awooga.nl/ooh-arr-duino#comments</comments>
		<pubDate>Thu, 03 Feb 2011 14:45:38 +0000</pubDate>
		<dc:creator>Q</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[chargers]]></category>
		<category><![CDATA[ciseco]]></category>
		<category><![CDATA[crafts]]></category>
		<category><![CDATA[dfrobot]]></category>
		<category><![CDATA[ebay]]></category>
		<category><![CDATA[electricity]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[i2c]]></category>
		<category><![CDATA[lcd]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[makezine]]></category>
		<category><![CDATA[maplin]]></category>
		<category><![CDATA[modding]]></category>
		<category><![CDATA[relay]]></category>
		<category><![CDATA[shield]]></category>
		<category><![CDATA[socket]]></category>
		<category><![CDATA[timer]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://awooga.nl/?p=495</guid>
		<description><![CDATA[Santa this year was very generous to my son and gifted him with a Maverick Atom XT RTR 1/18 Electric 4WD Truggy but failed to mention that the batteries that came with it could only be left in the charger for 6 hours, no longer. With grave warnings about explosions and fire, I tried to [...]]]></description>
			<content:encoded><![CDATA[<p>Santa this year was very generous to my son and gifted him with a <a href="http://www.hpiracing.co.uk/piw.php?partNo=MV12102" target="_blank" class="liexternal">Maverick Atom XT RTR 1/18 Electric 4WD Truggy</a> but failed to mention that the batteries that came with it could only be left in the charger for 6 hours, no longer.  With grave warnings about explosions and fire, I tried to find an egg-timer on a socket kind of solution, but could not find anything that would go beyond 4 hours.</p>
<p>So what is a <a href="http://en.wikipedia.org/wiki/Tinkerer" target="_blank" class="liexternal">tinkerer</a> to do?  He makes one himself! ;)<br />
<br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /><br />
A long time ago I bought an <a href="http://arduino.cc/en/Main/ArduinoBoardDuemilanove" target="_blank" class="liexternal">Arduino</a>, but never really got any further with it than a blinking RGB led.  Now I finally found a purpose for it :)  I was going to build an Arduino controlled timer socket!</p>
<p>All I needed now were some kind of relay, some sockets, a few buttons and a way of letting <del>the user</del> my son know what the time was set to and if it was on or not.  I ended up with a <a href="http://www.ciseco.co.uk/content/?p=1515" target="_blank" class="liexternal">Ciseco Arduino Relay Shield</a>, two <a href="http://www.maplin.co.uk/push-to-make-switch-34858" target="_blank" class="liexternal">Maplin push-to-make switches</a>, a <a href="http://www.dfrobot.com/index.php?route=product/product&#038;path=53&#038;product_id=135" target="_blank" class="liexternal">DFRobot I2C 16&#215;2 LCD</a> and a <a href="http://www.maplin.co.uk/mb-plastic-boxes-1676" target="_blank" class="liexternal">Maplin project box</a> big enough to fit it all in</p>
<blockquote><p><b>First a small word of warning.</b>  You are dealing with <b>MAINS voltage</b>, which can be lethal if you fool around.  <b>DO NOT EVER!</b> connect the bits to mains power when parts of it are exposed.  You&#8217;ve been warned</p></blockquote>
<p><a href="/gallery/modding/arduino/DSC04157.JPG.html" class="liimagelink"><img src="/g/image/37596-3/DSC04157.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04158.JPG.html" class="liimagelink"><img src="/g/image/37601-3/DSC04158.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04159.JPG.html" class="liimagelink"><img src="/g/image/37605-3/DSC04159.JPG" alt="" /></a></p>
<p>I started off with a small mockup of materials and then got my trusty Dremel clone out and started cutting away at the project case.</p>
<p><a href="/gallery/modding/arduino/DSC04160.JPG.html" class="liimagelink"><img src="/g/image/37609-3/DSC04160.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04161.JPG.html" class="liimagelink"><img src="/g/image/37613-3/DSC04161.JPG" alt="" /></a></p>
<p>First off is the socket in which the battery charger can be plugged.  A small template on paper is by far the easiest way to make sure you don&#8217;t cut out too much behind the socket</p>
<p><a href="/gallery/modding/arduino/DSC04162.JPG.html" class="liimagelink"><img src="/g/image/37617-3/DSC04162.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04164.JPG.html" class="liimagelink"><img src="/g/image/37625-3/DSC04164.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04165.JPG.html" class="liimagelink"><img src="/g/image/37629-3/DSC04165.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04166.JPG.html" class="liimagelink"><img src="/g/image/37633-3/DSC04166.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04167.JPG.html" class="liimagelink"><img src="/g/image/37637-3/DSC04167.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04168.JPG.html" class="liimagelink"><img src="/g/image/37641-3/DSC04168.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04169.JPG.html" class="liimagelink"><img src="/g/image/37645-3/DSC04169.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04170.JPG.html" class="liimagelink"><img src="/g/image/37649-3/DSC04170.JPG" alt="" /></a></p>
<p>With the socket in place, I created the template for the LCD.  I took my time with this, as I didn&#8217;t want to cut out too much.  A lot of careful sanding ensured that only the black part would be visible, and nothing else.  Then with the help of some small bolts and nuts, I created some spacers, enabling the LCD to sit nicely in the cutout.  Lots of hotglue completes the mounting</p>
<p><a href="/gallery/modding/arduino/DSC04171.JPG.html" class="liimagelink"><img src="/g/image/37653-3/DSC04171.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04172.JPG.html" class="liimagelink"><img src="/g/image/37657-3/DSC04172.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04173.JPG.html" class="liimagelink"><img src="/g/image/37661-3/DSC04173.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04174.JPG.html" class="liimagelink"><img src="/g/image/37665-3/DSC04174.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04175.JPG.html" class="liimagelink"><img src="/g/image/37669-3/DSC04175.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04176.JPG.html" class="liimagelink"><img src="/g/image/37673-3/DSC04176.JPG" alt="" /></a></p>
<p>The buttons only required some measuring to make sure they are neatly symetric and do not interfere with the LCD</p>
<p><a href="/gallery/modding/arduino/DSC04177.JPG.html" class="liimagelink"><img src="/g/image/37677-3/DSC04177.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04178.JPG.html" class="liimagelink"><img src="/g/image/37681-3/DSC04178.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04179.JPG.html" class="liimagelink"><img src="/g/image/37685-3/DSC04179.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04180.JPG.html" class="liimagelink"><img src="/g/image/37689-3/DSC04180.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04182.JPG.html" class="liimagelink"><img src="/g/image/37697-3/DSC04182.JPG" alt="" /></a></p>
<p>All that remains is the IEC socket where the power will go into the project box</p>
<p><a href="/gallery/modding/arduino/DSC04186.JPG.html" class="liimagelink"><img src="/g/image/37713-3/DSC04186.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04187.JPG.html" class="liimagelink"><img src="/g/image/37717-3/DSC04187.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04188.JPG.html" class="liimagelink"><img src="/g/image/37721-3/DSC04188.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04190.JPG.html" class="liimagelink"><img src="/g/image/37729-3/DSC04190.JPG" alt="" /></a></p>
<p>Now with everything in place, all we need to do is connect the components together with some wire using the below schematic</p>
<p><a href="/gallery/modding/arduino/socket-wiring.jpg.html" class="liimagelink"><img src="/g/image/37838-4/socket-wiring.jpg" alt="" class="aligncenter" /></a></p>
<p>Warm up the soldering iron and just follow the diagram.  As my soldering skills are not that great, I also used a bit of heatshrink here and there to make sure that wires could not short on each other :)</p>
<p><a href="/gallery/modding/arduino/DSC04191.JPG.html" class="liimagelink"><img src="/g/image/37733-3/DSC04191.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04192.JPG.html" class="liimagelink"><img src="/g/image/37737-5/DSC04192.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04193.JPG.html" class="liimagelink"><img src="/g/image/37741-3/DSC04193.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04194.JPG.html" class="liimagelink"><img src="/g/image/37745-3/DSC04194.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04195.JPG.html" class="liimagelink"><img src="/g/image/37749-3/DSC04195.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04200.JPG.html" class="liimagelink"><img src="/g/image/37769-5/DSC04200.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04198.JPG.html" class="liimagelink"><img src="/g/image/37761-5/DSC04198.JPG" alt="" /></a></p>
<p>I&#8217;m using an old iPhone charger to power the Arduino as it provides a neat 5V/1A, with a small retractable USB lead with a Type A to B converter.  A quick test of the wiring to make sure it all works as planned</p>
<p><a href="/gallery/modding/arduino/DSC04196.JPG.html" class="liimagelink"><img src="/g/image/37754-6/DSC04196.JPG" alt="" class="aligncenter" /></a></p>
<p>Now with construction over, it was time to do the Arduino coding.  The LCD uses the <a href="/stuff/LiquidCrystal_I2C.zip" class="lizip">LiquidCrystal I2C</a> library which takes care of all the hard work interfacing to it.  Likewise, the <a href="/stuff/Metro.zip" class="lizip">Metro</a> library takes care of the timer.  So, it is just a simple case of increasing the clock by an hour every time the red button is pressed, and starting the timer when the green button is pressed.  Once the timer is running, any button press will stop the timer and reset the state to the beginning.</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Arduino controlled timer socket</span>
<span style="color: #666666; font-style: italic;">// (CC BY) 2011</span>
<span style="color: #666666; font-style: italic;">// http://awooga.nl</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// pull in libraries</span>
<span style="color: #339933;">#include &lt;Wire.h&gt;</span>
<span style="color: #339933;">#include &lt;LiquidCrystal_I2C.h&gt;</span>
<span style="color: #339933;">#include &lt;Metro.h&gt;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">// arduino pins constants</span>
<span style="color: #339933;">#define RELAY 2 // black wire connected to input on shield</span>
<span style="color: #339933;">#define RED   6 // green wire</span>
<span style="color: #339933;">#define GREEN 7 // white wire</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// i2c pin A5 = white wire</span>
<span style="color: #666666; font-style: italic;">// i2c pin A4 = green wire</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// allow between 1 and 6 hours</span>
<span style="color: #339933;">#define MINIMUM_TIME 1</span>
<span style="color: #339933;">#define DEFAULT_TIME 6</span>
<span style="color: #339933;">#define MAXIMUM_TIME 6</span>
&nbsp;
&nbsp;
<span style="color: #993333;">const</span> <span style="color: #993333;">unsigned</span> <span style="color: #993333;">long</span> MILLISECONDS<span style="color: #339933;">=</span><span style="color: #0000dd;">1</span><span style="color: #339933;">;</span>
<span style="color: #993333;">const</span> <span style="color: #993333;">unsigned</span> <span style="color: #993333;">long</span> SECONDS<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">1000</span><span style="color: #339933;">*</span>MILLISECONDS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #993333;">const</span> <span style="color: #993333;">unsigned</span> <span style="color: #993333;">long</span> MINUTES<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">60</span><span style="color: #339933;">*</span>SECONDS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #993333;">const</span> <span style="color: #993333;">unsigned</span> <span style="color: #993333;">long</span> HOURS<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">60</span><span style="color: #339933;">*</span>MINUTES<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #993333;">const</span> <span style="color: #993333;">unsigned</span> <span style="color: #993333;">long</span> DAYS<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">24</span><span style="color: #339933;">*</span>HOURS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #993333;">const</span> <span style="color: #993333;">unsigned</span> <span style="color: #993333;">long</span> UNITS<span style="color: #339933;">=</span>HOURS<span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">// prgram states</span>
<span style="color: #339933;">#define IDLE         0</span>
<span style="color: #339933;">#define RED_BUTTON   1</span>
<span style="color: #339933;">#define GREEN_BUTTON 2</span>
<span style="color: #339933;">#define MENU         3</span>
<span style="color: #339933;">#define PAUSE        4</span>
<span style="color: #339933;">#define STOP_TIMER   5</span>
<span style="color: #339933;">#define CANCEL_TIMER 6</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">// global variables</span>
byte events<span style="color: #339933;">;</span>
byte countdowntime<span style="color: #339933;">;</span>
boolean menu_running<span style="color: #339933;">;</span>
boolean timer_running<span style="color: #339933;">;</span>
&nbsp;
boolean debug <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
byte currentRed <span style="color: #339933;">=</span> LOW<span style="color: #339933;">;</span>
byte currentGreen <span style="color: #339933;">=</span> LOW<span style="color: #339933;">;</span>
byte previousRed <span style="color: #339933;">=</span> LOW<span style="color: #339933;">;</span>
byte previousGreen <span style="color: #339933;">=</span> LOW<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// set the LCD address to 0x27 for the 16x2 display</span>
LiquidCrystal_I2C lcd<span style="color: #009900;">&#40;</span><span style="color: #208080;">0x27</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">16</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// initiate Metro object</span>
Metro relayMetro <span style="color: #339933;">=</span> Metro<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">// arduino setup routine</span>
<span style="color: #993333;">void</span> setup<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// set the arduino pins</span>
  pinMode<span style="color: #009900;">&#40;</span>RELAY<span style="color: #339933;">,</span> OUTPUT<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  pinMode<span style="color: #009900;">&#40;</span>RED<span style="color: #339933;">,</span> INPUT<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  pinMode<span style="color: #009900;">&#40;</span>GREEN<span style="color: #339933;">,</span> INPUT<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
&nbsp;
  <span style="color: #666666; font-style: italic;">// initialise the lcd</span>
  lcd.<span style="color: #202020;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">backlight</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// activate debugging on the serial port</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>debug<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    Serial.<span style="color: #202020;">begin</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">9600</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    Serial.<span style="color: #202020;">println</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Lets go!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// initialise variables</span>
  events <span style="color: #339933;">=</span> IDLE<span style="color: #339933;">;</span>
  countdowntime <span style="color: #339933;">=</span> DEFAULT_TIME<span style="color: #339933;">;</span>
  menu_running <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  timer_running <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  digitalWrite<span style="color: #009900;">&#40;</span>RELAY<span style="color: #339933;">,</span> LOW<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">// arduino loop routine</span>
<span style="color: #993333;">void</span> loop<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span>events<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #b1b100;">case</span> IDLE<span style="color: #339933;">:</span>
      events <span style="color: #339933;">=</span> Idling<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">case</span> MENU<span style="color: #339933;">:</span>
      events <span style="color: #339933;">=</span> MainMenu<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">case</span> RED_BUTTON<span style="color: #339933;">:</span>
      events <span style="color: #339933;">=</span> RedButton<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">case</span> GREEN_BUTTON<span style="color: #339933;">:</span>
      events <span style="color: #339933;">=</span> GreenButton<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">case</span> PAUSE<span style="color: #339933;">:</span>
      events <span style="color: #339933;">=</span> Pause<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">case</span> STOP_TIMER<span style="color: #339933;">:</span>
      events <span style="color: #339933;">=</span> StopTimer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">case</span> CANCEL_TIMER<span style="color: #339933;">:</span>
      events <span style="color: #339933;">=</span> CancelTimer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">default</span><span style="color: #339933;">:</span>
      events <span style="color: #339933;">=</span> IDLE<span style="color: #339933;">;</span>
      <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #993333;">int</span> MainMenu<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>timer_running<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> IDLE<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>menu_running<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> IDLE<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>debug<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> Serial.<span style="color: #202020;">println</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;MainMenu()&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
  lcd.<span style="color: #202020;">clear</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;  Red: Set time&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">setCursor</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Green: Go (&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span>countdowntime<span style="color: #339933;">,</span> DEC<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>countdowntime <span style="color: #339933;">==</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;hr)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;hrs)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  menu_running <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">return</span> IDLE<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #993333;">int</span> Idling<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  boolean do_red <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  boolean do_green <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>timer_running<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>relayMetro.<span style="color: #202020;">check</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> STOP_TIMER<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  currentRed <span style="color: #339933;">=</span> digitalRead<span style="color: #009900;">&#40;</span>RED<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  currentGreen <span style="color: #339933;">=</span> digitalRead<span style="color: #009900;">&#40;</span>GREEN<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>currentRed <span style="color: #339933;">!=</span> previousRed<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    do_red <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>currentRed <span style="color: #339933;">==</span> HIGH<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  previousRed <span style="color: #339933;">=</span> currentRed<span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>currentGreen <span style="color: #339933;">!=</span> previousGreen<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    do_green <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>currentGreen <span style="color: #339933;">==</span> HIGH<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  previousGreen <span style="color: #339933;">=</span> currentGreen<span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>do_red<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>do_green<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> RED_BUTTON<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>do_red<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>do_green<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> GREEN_BUTTON<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// all other button combinations are ignored</span>
  <span style="color: #b1b100;">return</span> MENU<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #993333;">int</span> RedButton<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>debug<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> Serial.<span style="color: #202020;">println</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;RedButton()&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>timer_running<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> CANCEL_TIMER<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">++</span>countdowntime <span style="color: #339933;">&gt;</span> MAXIMUM_TIME<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> countdowntime <span style="color: #339933;">=</span> MINIMUM_TIME<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
  lcd.<span style="color: #202020;">clear</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Time set to&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">setCursor</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span>countdowntime<span style="color: #339933;">,</span> DEC<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>countdowntime <span style="color: #339933;">==</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot; hour&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot; hours&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  menu_running <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">return</span> PAUSE<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #993333;">int</span> GreenButton<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>debug<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> Serial.<span style="color: #202020;">println</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;GreenButton()&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>timer_running<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> CANCEL_TIMER<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  lcd.<span style="color: #202020;">clear</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Running timer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">setCursor</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;for &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span>countdowntime<span style="color: #339933;">,</span> DEC<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>countdowntime <span style="color: #339933;">==</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot; hour&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot; hours&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #993333;">unsigned</span> <span style="color: #993333;">long</span> t <span style="color: #339933;">=</span> countdowntime <span style="color: #339933;">*</span> UNITS<span style="color: #339933;">;</span>
&nbsp;
  timer_running <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>debug<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    Serial.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Setting metro for &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    Serial.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span>t<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    Serial.<span style="color: #202020;">println</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot; seconds&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  relayMetro.<span style="color: #202020;">interval</span><span style="color: #009900;">&#40;</span>t<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  digitalWrite<span style="color: #009900;">&#40;</span>RELAY<span style="color: #339933;">,</span> HIGH<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">return</span> IDLE<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #993333;">int</span> StopTimer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>debug<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> Serial.<span style="color: #202020;">println</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;StopTimer()&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
  digitalWrite<span style="color: #009900;">&#40;</span>RELAY<span style="color: #339933;">,</span> LOW<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  lcd.<span style="color: #202020;">clear</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Timer finished&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  timer_running <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  menu_running <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  relayMetro.<span style="color: #202020;">reset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">return</span> PAUSE<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #993333;">int</span> CancelTimer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>debug<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> Serial.<span style="color: #202020;">println</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;CancelTimer()&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
  digitalWrite<span style="color: #009900;">&#40;</span>RELAY<span style="color: #339933;">,</span> LOW<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  lcd.<span style="color: #202020;">clear</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Timer stopped&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  timer_running <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  menu_running <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  relayMetro.<span style="color: #202020;">reset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">return</span> PAUSE<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #993333;">int</span> Pause<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  delay<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">return</span> IDLE<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Or just download the .pde file <a href="/stuff/SocketTimer.pde" class="liinternal">here</a></p>
<p>Obviously you can go all crazy with options and clocks, but I just wanted something quick and working.  Changing the code to do all that is just a matter of opening it up, and uploading the new software.</p>
<p><a href="/gallery/modding/arduino/DSC04201.JPG.html" class="liimagelink"><img src="/g/image/37773-5/DSC04201.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04202.JPG.html" class="liimagelink"><img src="/g/image/37777-3/DSC04202.JPG" alt="" /></a> <a href="/gallery/modding/arduino/DSC04204.JPG.html" class="liimagelink"><img src="/g/image/37785-3/DSC04204.JPG" alt="" /></a></p>
<p><br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /></p>
<p>And just to prove it is all working, here&#8217;s a small video demonstration.  It doesn&#8217;t show the timer ending, you just have to take my word on that :D</p>
<p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/STLeDXH6rNU?rel=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed wmode="opaque" src="http://www.youtube.com/v/STLeDXH6rNU?rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://awooga.nl/ooh-arr-duino/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Bye Bye Standby double wall switch</title>
		<link>http://awooga.nl/bye-bye-standby-double-wall-switch</link>
		<comments>http://awooga.nl/bye-bye-standby-double-wall-switch#comments</comments>
		<pubDate>Mon, 26 Oct 2009 12:56:15 +0000</pubDate>
		<dc:creator>Q</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[bye bye standby]]></category>
		<category><![CDATA[electricity]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[home easy]]></category>
		<category><![CDATA[modding]]></category>

		<guid isPermaLink="false">http://awooga.nl/?p=423</guid>
		<description><![CDATA[I&#8217;m a big fan of Bye Bye Standby and am slowly replacing all switches and lights with their products. One thing that is sorely missed though, is a double wall switch. The kind that sits at the bottom of your stairs and controls the lights upstairs and downstairs. Home Easy do one, but that protocol [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a big fan of <a href="http://www.byebyestandby.co.uk/" target="_blank" class="liexternal">Bye Bye Standby</a> and am slowly replacing all switches and lights with their products.  One thing that is sorely missed though, is a double wall switch.  The kind that sits at the bottom of your stairs and controls the lights upstairs and downstairs.  <a href="http://www.homeeasy.eu/home.php" target="_blank" class="liexternal">Home Easy</a> do one, but that protocol is not compatible.  So I combined the best of both worlds and cobbled one together myself :)<br />
<br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /><br />
<a href="/gallery/modding/bbsb-switch/DSC02694.JPG.html" class="liimagelink"><img src="/g/image/35810-3/DSC02694.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02695.JPG.html" class="liimagelink"><img src="/g/image/35815-3/DSC02695.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02696.JPG.html" class="liimagelink"><img src="/g/image/35819-3/DSC02696.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02697.JPG.html" class="liimagelink"><img src="/g/image/35823-3/DSC02697.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02698.JPG.html" class="liimagelink"><img src="/g/image/35827-3/DSC02698.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02699.JPG.html" class="liimagelink"><img src="/g/image/35831-3/DSC02699.JPG" alt="" /></a></p>
<p>Start by stripping all switches down to their bare PCBs.  The idea is to use the push button switches inside the <a href="http://www.diy.com/diy/jsp/bq/nav.jsp?action=detail&#038;fh_secondid=9686459&#038;fh_view_size=10&#038;fh_eds=%3F&#038;fh_location=%2F%2Fcatalog01%2Fen_GB%2Fcategories%3C{9372015}%2Fcategories%3C{9372042}%2Fcategories%3C{9372189}%2FspecificationsProductType%3Dhome_automation%2FspecificationsSpecificProductType%3Don_off_range&#038;fh_refview=lister&#038;ts=1249160690494&#038;isSearch=false" target="_blank" class="liexternal">Home Easy HE308</a> switch and connect them to the push button switches from the <a href="http://www.uk-automation.co.uk/wall-switch-standby-domia-lite-p-1273.html" target="_blank" class="liexternal">Bye Bye Standby wall switches</a> and then stuff it all in the wall.</p>
<p><a href="/gallery/modding/bbsb-switch/DSC02700.JPG.html" class="liimagelink"><img src="/g/image/35835-3/DSC02700.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02702.JPG.html" class="liimagelink"><img src="/g/image/35843-3/DSC02702.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02703.JPG.html" class="liimagelink"><img src="/g/image/35847-3/DSC02703.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02704.JPG.html" class="liimagelink"><img src="/g/image/35851-3/DSC02704.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02705.JPG.html" class="liimagelink"><img src="/g/image/35855-3/DSC02705.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02706.JPG.html" class="liimagelink"><img src="/g/image/35859-3/DSC02706.JPG" alt="" /></a></p>
<p>Carefully solder wires to each BBSB switch and then solder them to the HE308.  As the PCB of the HE308 connects some of the pins, it wouldn&#8217;t work when I tested it.  No problem though, it just meant that I had to get my faithful Dremel out and dremel away all PCB lines surrounding the switches.</p>
<p><a href="/gallery/modding/bbsb-switch/DSC02707.JPG.html" class="liimagelink"><img src="/g/image/35864-5/DSC02707.JPG" alt="" class="aligncenter" /></a></p>
<p>Make sure you test it once it&#8217;s all been connected up, not just when you&#8217;re finished putting it back into your wall ;)  At this point in time, make sure you have set the address codes to the correct modules.</p>
<p><a href="/gallery/modding/bbsb-switch/DSC02711.JPG.html" class="liimagelink"><img src="/g/image/35879-3/DSC02711.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02712.JPG.html" class="liimagelink"><img src="/g/image/35883-3/DSC02712.JPG" alt="" /></a> <a href="/gallery/modding/bbsb-switch/DSC02714.JPG.html" class="liimagelink"><img src="/g/image/35891-3/DSC02714.JPG" alt="" /></a></p>
<p>As the whole package is larger than my backbox, I removed the bottom from a plastic backbox and used a hammer and old screwdriver to chisel away at the wall behind it.  Once I had everything inside and made sure that it was still working, I discovered that the edges from the backbox were larger than the switch itself.  Doh!</p>
<p>I took everything out again and carefully reduced the edging until it all fitted neatly underneath the switch.</p>
<p><a href="/gallery/modding/bbsb-switch/DSC02716.JPG.html" class="liimagelink"><img src="/g/image/35900-5/DSC02716.JPG" alt="" class="aligncenter" /></a><br />
<br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /><br />
For those who are worried about the batteries, they are no more difficult to replace than a normal BBSB switch.  I would replace both at the same time though if you have to :)</p>
]]></content:encoded>
			<wfw:commentRss>http://awooga.nl/bye-bye-standby-double-wall-switch/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Mul-tea Charger</title>
		<link>http://awooga.nl/the-mul-tea-charger</link>
		<comments>http://awooga.nl/the-mul-tea-charger#comments</comments>
		<pubDate>Sun, 04 Oct 2009 19:15:23 +0000</pubDate>
		<dc:creator>Q</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[chargers]]></category>
		<category><![CDATA[crafts]]></category>
		<category><![CDATA[electricity]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[hub]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[modding]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[sony ericsson]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[W880i]]></category>

		<guid isPermaLink="false">http://awooga.nl/?p=413</guid>
		<description><![CDATA[Who doesn&#8217;t have a multitude of devices, phones and other gadgets on their desks? I certainly have, and I finally had enough of all the chargers and wallwarts that each item seems to bring with them. With two iPhones almost constantly being charged, and a Nokia phone thrown in for good measure, I needed to [...]]]></description>
			<content:encoded><![CDATA[<p>Who doesn&#8217;t have a multitude of devices, phones and other gadgets on their desks?  I certainly have, and I finally had enough of all the chargers and wallwarts that each item seems to bring with them.  With two iPhones almost constantly being charged, and a Nokia phone thrown in for good measure, I needed to have something flexible enough for those plus any future gadgets.  So, I googled a bit, and found the <a href="http://www.idaptweb.com/UK/idapt/idapt_i3/overview.html" target="_blank" class="liexternal">IDAPT I3</a>, and the beautiful, but ridiculously priced <a href="http://www.pedlars.co.uk/page_1973.html" target="_blank" class="liexternal">The Sanctuary</a>.  And then I started to think, how easy would it be to put a mains powered USB hub inside a box and have several USB charger leads coming out of the box, each charging a different device?<br />
<br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /><br />
And the answer is, very easy :)</p>
<p><a href="/gallery/modding/charger/DSC02612.JPG.html" class="liimagelink"><img src="/g/image/35708-3/DSC02612.JPG" alt="" /></a> <a href="/gallery/modding/charger/DSC02613.JPG.html" class="liimagelink"><img src="/g/image/35713-3/DSC02613.JPG" alt="" /></a> <a href="/gallery/modding/charger/DSC02614.JPG.html" class="liimagelink"><img src="/g/image/35717-3/DSC02614.JPG" alt="" /></a></p>
<p>I started off with a 4 port powered USB hub, which I had lying in a drawer and plugged my iPhone charger leads into it, expecting them to instantly charge my two iPhones.  But to my surpise, nothing happened&#8230;  so another quick Google later, I came accross a blog entry of <a href="http://carlhutzler.com/blog/2009/07/28/usb-hub-as-an-ipodiphone-charger/" target="_blank" class="liexternal">Carl Hutzler</a>, which details why they won&#8217;t charge.  All you have to do is sacrifice the hub and forego it&#8217;s PC functionality by cutting the D+/- lines and short them.  A quick test shows they now finally charge themselves.  Apparently it is better to stick 2x 100K Ohm resistors on the D+/- lines, which I will do at some point, but for now, this will do.</p>
<p><a href="/gallery/modding/charger/DSC02616.JPG.html" class="liimagelink"><img src="/g/image/35721-3/DSC02616.JPG" alt="" /></a> <a href="/gallery/modding/charger/DSC02617.JPG.html" class="liimagelink"><img src="/g/image/35725-3/DSC02617.JPG" alt="" /></a> <a href="/gallery/modding/charger/DSC02618.JPG.html" class="liimagelink"><img src="/g/image/35734-3/DSC02618.JPG" alt="" /></a></p>
<p>All I now had to do was find a suitable SWMBO friendly container, and as our furniture is all beech, the tea storage container I found for £1.99 at <a href="http://www.qdstores.co.uk/" target="_blank" class="liexternal">QD stores</a> was perfect.  I just needed to gut the compartiments out and put something on top of the plastic lid.  At my local crafts store I found a small foam pad for 50p which was nice and soft.  Unfortunately I got my measurements all wrong, so I messed up the black pad, but SWMBO came to the rescue by rummaging through my kids crafts drawers by digging up a piece of brown padding.</p>
<p><a href="/gallery/modding/charger/DSC02619.JPG.html" class="liimagelink"><img src="/g/image/35738-3/DSC02619.JPG" alt="" /></a> <a href="/gallery/modding/charger/DSC02620.JPG.html" class="liimagelink"><img src="/g/image/35742-3/DSC02620.JPG" alt="" /></a> <a href="/gallery/modding/charger/DSC02621.JPG.html" class="liimagelink"><img src="/g/image/35746-3/DSC02621.JPG" alt="" /></a> <a href="/gallery/modding/charger/DSC02622.JPG.html" class="liimagelink"><img src="/g/image/35750-3/DSC02622.JPG" alt="" /></a> <a href="/gallery/modding/charger/DSC02623.JPG.html" class="liimagelink"><img src="/g/image/35759-3/DSC02623.JPG" alt="" /></a></p>
<p>The final thing to do is then drill some holes at the locations convenient for your devices, and put it all together.  Job done!</p>
<p><a href="/gallery/modding/charger/DSC02624.JPG.html" class="liimagelink"><img src="/g/image/35763-3/DSC02624.JPG" alt="" /></a> <a href="/gallery/modding/charger/DSC02625.JPG.html" class="liimagelink"><img src="/g/image/35767-3/DSC02625.JPG" alt="" /></a> <a href="/gallery/modding/charger/DSC02626.JPG.html" class="liimagelink"><img src="/g/image/35771-3/DSC02626.JPG" alt="" /></a><br />
<br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /></p>
]]></content:encoded>
			<wfw:commentRss>http://awooga.nl/the-mul-tea-charger/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Eee PC Digital Picture Frame</title>
		<link>http://awooga.nl/the-eee-pc-digital-picture-frame</link>
		<comments>http://awooga.nl/the-eee-pc-digital-picture-frame#comments</comments>
		<pubDate>Mon, 13 Apr 2009 19:53:59 +0000</pubDate>
		<dc:creator>Q</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[eee pc]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[ibex]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[lcd]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[maplin]]></category>
		<category><![CDATA[mini 9]]></category>
		<category><![CDATA[modding]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[photo frame]]></category>
		<category><![CDATA[picture frame]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://awooga.nl/?p=342</guid>
		<description><![CDATA[I just can&#8217;t help myself. It all started way back in 2002 with The Swedish Chef, followed in 2005 by the (still) popular Project Bling: the desire to create the ultimate digital picture frame. So here it is, the third (and hopefully last) instalment: The Eee PC Digital Picture Frame aka The Eee PF. I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>I just can&#8217;t help myself.  It all started way back in 2002 with <a href="/gallery/modding/chef/" class="liinternal"><em>The Swedish Chef</em></a>, followed in 2005 by the (still) popular <a href="/project-bling" class="liinternal"><em>Project Bling</em></a>: the desire to create the ultimate digital picture frame.</p>
<p>So here it is, the third (and hopefully last) instalment: <strong>The Eee PC Digital Picture Frame</strong> aka <strong>The Eee PF</strong>.</p>
<p>I&#8217;ve divided it up in four sections, for easy digesting ;)  All pictures can be enlarged, and the complete set of pictures can be found in <a href="/gallery/modding/eeepc" class="liinternal">the gallery</a>.</p>
<p><a href="#eeepf-part1" class="liinternal">Part 1: Disassembling the Eee PC</a><br />
<a href="#eeepf-part2" class="liinternal">Part 2: Mounting the LCD</a><br />
<a href="#eeepf-part3" class="liinternal">Part 3: Building the frame</a><br />
<a href="#eeepf-part4" class="liinternal">Part 4: Finishing touches</a><br />
<br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /><br />
<strong><a name="eeepf-part1">Part 1</a>: Disassembling the Eee PC</strong></p>
<p>It starts off with an <a href="http://eeepc.asus.com/uk/product700.html" target="_blank" class="liexternal">Asus Eee PC 701 2G</a>, which is perfectly small, yet cheap enough to destroy in the name of science.</p>
<p><a href="/gallery/modding/eeepc/DSC01747.JPG.html" class="liimagelink"><img src="/g/image/35363-5/DSC01747.JPG" alt="Asus Eee PC 701 2G" class="aligncenter" /></a></p>
<p>Push the three tabs at the top of the keyboard in and lift the keyboard up to reveal the keyboard connector at the bottom of the keyboard. Using a small flat screwdriver, push the two locks open and remove the keyboard completely.  Next to the keyboard connector is the touchpad connector which should be disconnected as well.</p>
<p><a href="/gallery/modding/eeepc/DSC01748.JPG.html" class="liimagelink"><img src="/g/image/35369-3/DSC01748.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01749.JPG.html" class="liimagelink"><img src="/g/image/35373-3/DSC01749.JPG" alt="" /></a></p>
<p>With the keyboard removed, the bottom half of the case is next. Remove the nine screws as indicated in the pictures. Turn the Eee PC over and remove the six remaining screws.  For good measure, also remove the battery by sliding the two latches outwards, and slide the battery out.  Flip the Mini over again and open the lid again.  Using a plastic wedge (or your finger nails if you have them), pry the case open using some gentle force along the sides. Be patient at this point as the plastic latches inside the case, are fragile and will snap if you exercise too much force.</p>
<p><a href="/gallery/modding/eeepc/DSC01750.JPG.html" class="liimagelink"><img src="/g/image/35377-3/DSC01750.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01751.JPG.html" class="liimagelink"><img src="/g/image/35381-3/DSC01751.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01752.JPG.html" class="liimagelink"><img src="/g/image/35385-3/DSC01752.JPG" alt="" /></a></p>
<p>Now we just need to remove the motherboard.  Disconnect the speaker and display connectors.  There are two latches holding it in place, located at the bottom edge of the PCB.  Lift the motherboard up at the right hand side and then pull it out up and sideways.</p>
<p><a href="/gallery/modding/eeepc/DSC01753.JPG.html" class="liimagelink"><img src="/g/image/35389-3/DSC01753.JPG" alt="" /></a></p>
<p>Time to separate the LCD from the bezel.  Six screws are hidden underneath the plastic covers which are stickied in place.  Use a plastic wedge along the side of the bezel but be very careful, it is very fragile.  Take your time and be gentle.  Just four screws and four sticky metal tape strips to remove before you can lift the LCD clean out.</p>
<p><a href="/gallery/modding/eeepc/DSC01754.JPG.html" class="liimagelink"><img src="/g/image/35393-3/DSC01754.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01755.JPG.html" class="liimagelink"><img src="/g/image/35397-3/DSC01755.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01756.JPG.html" class="liimagelink"><img src="/g/image/35401-3/DSC01756.JPG" alt="" /></a></p>
<p>Voilà, the Eee PC naked!  Now we are ready for some serious modding ;)</p>
<p><a href="/gallery/modding/eeepc/DSC01757.JPG.html" class="liimagelink"><img src="/g/image/35404-5/DSC01757.JPG" alt="The Eee PC dissected" class="aligncenter" /></a><br />
&nbsp;</p>
<p><strong><a name="eeepf-part2">Part 2</a>: Mounting the LCD</strong></p>
<p>Whatever you do, make sure you buy a frame and mount which have a high <a href="http://en.wikipedia.org/wiki/Woman_acceptance_factor" target="_blank" class="liexternal">WAF</a> since it needs to live in the living room.  You don&#8217;t want to find yourself building something like this and then <a href="http://en.wikipedia.org/wiki/SWMBO" target="_blank" class="liexternal">SWMBO</a> tossing it in the bin because is clashes with the design ;)  Take the mount and measure the dimensions of the LCD and frame and carefully cut it to size.  As usual; measure twice, cut once :)</p>
<p><a href="/gallery/modding/eeepc/DSC01758.JPG.html" class="liimagelink"><img src="/g/image/35409-3/DSC01758.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01759.JPG.html" class="liimagelink"><img src="/g/image/35413-3/DSC01759.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01760.JPG.html" class="liimagelink"><img src="/g/image/35417-3/DSC01760.JPG" alt="" /></a></p>
<p>The LCD driver board sits neatly underneath the LCD, but when you mount the display into the frame, it doesn&#8217;t fit.  Cutting away a bit of the frame allows it to be sunken into it and sit flush with the frame.  Some double sided tape holds the mount in place.</p>
<p><a href="/gallery/modding/eeepc/DSC01761.JPG.html" class="liimagelink"><img src="/g/image/35421-3/DSC01761.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01762.JPG.html" class="liimagelink"><img src="/g/image/35425-3/DSC01762.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01763.JPG.html" class="liimagelink"><img src="/g/image/35429-3/DSC01763.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01764.JPG.html" class="liimagelink"><img src="/g/image/35433-3/DSC01764.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01765.JPG.html" class="liimagelink"><img src="/g/image/35437-3/DSC01765.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01769.JPG.html" class="liimagelink"><img src="/g/image/35441-3/DSC01769.JPG" alt="" /></a></p>
<p>On to the motherboard.  This needs to be mounted with enough clearance above the LCD so that heat can escape and to do this I made my own spacers using normal <a href="http://cpc.farnell.com/_/sticky-feet-small/pcb-spacers-small-self-adhesive/dp/SR00039" target="_blank" class="liexternal">motherboard spacers</a> which I had plenty of from my PC building days.  The screw holes on the Eee PC are tiny, so cut away at the top of the spacers to make them small enough to fit.  Looks rather neat, eh?</p>
<p><a href="/gallery/modding/eeepc/DSC01775.JPG.html" class="liimagelink"><img src="/g/image/35445-3/DSC01775.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01776.JPG.html" class="liimagelink"><img src="/g/image/35449-3/DSC01776.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01777.JPG.html" class="liimagelink"><img src="/g/image/35453-3/DSC01777.JPG" alt="" /></a></p>
<p><a href="/gallery/modding/eeepc/DSC01778.JPG.html" class="liimagelink"><img src="/g/image/35456-5/DSC01778.JPG" alt="The Eee PC mounted" class="aligncenter" /></a><br />
&nbsp;</p>
<p><strong><a name="eeepf-part3">Part 3</a>: Building the frame</strong></p>
<p>Before we create the frame, we need to think about an alternative heat sink.  Normally, the bottom of the keyboard would dissipate the heat, so after doing some testing, I settled on an <a href="http://www.akasa.co.uk/akasa_english/spec_page/system_coolers/spec_ak_vcx_01.htm" target="_blank" class="liexternal">Akasa Southbridge cooler</a> and some tiny <a href="http://www.maplin.co.uk/Module.aspx?ModuleNo=30377" target="_blank" class="liexternal">Maplin heat sinks</a>.  Tests showed that the temps remained nicely around the 50ºC mark, which will rise to about 65ºC once the back cover will be on.  Well within the limits :)</p>
<p><a href="/gallery/modding/eeepc/DSC01781.JPG.html" class="liimagelink"><img src="/g/image/35469-3/DSC01781.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01782.JPG.html" class="liimagelink"><img src="/g/image/35500-3/DSC01782.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01784.JPG.html" class="liimagelink"><img src="/g/image/35508-3/DSC01784.JPG" alt="" /></a></p>
<p>Using some <a href="http://www.wickes.co.uk/Stripwood/Pine-Stripwood/invt/128537" target="_blank" class="liexternal">4mm Pine Stripwood</a> cut to length, mark out all the ports and crevices that need to be carefully removed from the frame to allow access once everything is closed up again.</p>
<p><a href="/gallery/modding/eeepc/DSC01779.JPG.html" class="liimagelink"><img src="/g/image/35461-3/DSC01779.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01780.JPG.html" class="liimagelink"><img src="/g/image/35465-3/DSC01780.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01785.JPG.html" class="liimagelink"><img src="/g/image/35512-3/DSC01785.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01801.JPG.html" class="liimagelink"><img src="/g/image/35524-3/DSC01801.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01783.JPG.html" class="liimagelink"><img src="/g/image/35504-3/DSC01783.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01802.JPG.html" class="liimagelink"><img src="/g/image/35528-3/DSC01802.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01800.JPG.html" class="liimagelink"><img src="/g/image/35520-3/DSC01800.JPG" alt="" /></a></p>
<p>Here&#8217;s a quick mock up of how it all will fit together once we&#8217;ve painted the frame and glued it to the photo frame&#8217;s back.</p>
<p><a href="/gallery/modding/eeepc/DSC01799.JPG.html" class="liimagelink"><img src="/g/image/35515-5/DSC01799.JPG" alt="The Eee PC framed" class="aligncenter" /></a></p>
<p>Because the power switch would be covered up when the back is glued on, we need to move the switch&#8217;s function to somewhere more convenient.  Reading <a href="http://infsq.co.uk/2008/04/19/taking-apart-an-asus-eee-pc-remote-onoff/" target="_blank" class="liexternal">this blog post</a> over at Infinity Squared on an external power switch, I decided to go for <a href="http://www.maplin.co.uk/Module.aspx?ModuleNo=2492" target="_blank" class="liexternal">the smallest</a> I could find at Maplin.  My soldering is definitely not the best, so a bit of heat shrink camouflages most of it ;)</p>
<p><a href="/gallery/modding/eeepc/DSC01803.JPG.html" class="liimagelink"><img src="/g/image/35532-3/DSC01803.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01804.JPG.html" class="liimagelink"><img src="/g/image/35536-3/DSC01804.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01805.JPG.html" class="liimagelink"><img src="/g/image/35540-3/DSC01805.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01903.JPG.html" class="liimagelink"><img src="/g/image/35580-3/DSC01903.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01904.JPG.html" class="liimagelink"><img src="/g/image/35584-3/DSC01904.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01905.JPG.html" class="liimagelink"><img src="/g/image/35588-3/DSC01905.JPG" alt="" /></a></p>
<p>I also wanted to have some sort of visual indication that the frame is on or off (other than the tell-tale display ;)).  But how to get the minuscule surface mounted LEDs displayed through the frame?  I had seen something previously, where light was transported using a small transparent acrylic tube.  And when I was killing some time wandering around my local Tesco, I found my 48p answer&#8230;  translucent golf markers!  Remove the heads, drill a few holes and <a href="http://en.wikipedia.org/wiki/Bob%27s_your_uncle" target="_blank" class="liexternal">Bob is a relative</a>.</p>
<p><a href="/gallery/modding/eeepc/DSC01806.JPG.html" class="liimagelink"><img src="/g/image/35544-3/DSC01806.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01807.JPG.html" class="liimagelink"><img src="/g/image/35548-3/DSC01807.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01808.JPG.html" class="liimagelink"><img src="/g/image/35552-3/DSC01808.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01809.JPG.html" class="liimagelink"><img src="/g/image/35556-3/DSC01809.JPG" alt="" /></a></p>
<p>Almost there.  Using some left over black paint, paint all the sides and make sure that once assembled, all the small blemishes are hidden.  Well, most of them ;)</p>
<p><a href="/gallery/modding/eeepc/DSC01810.JPG.html" class="liimagelink"><img src="/g/image/35560-3/DSC01810.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01908.JPG.html" class="liimagelink"><img src="/g/image/35599-3/DSC01908.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01907.JPG.html" class="liimagelink"><img src="/g/image/35595-3/DSC01907.JPG" alt="" /></a></p>
<p>Ready for assembly!  Some glue, some patience and some skilful balancing of weighty items on top of the corners and all that is left to do is add the back cover.</p>
<p><a href="/gallery/modding/eeepc/DSC01909.JPG.html" class="liimagelink"><img src="/g/image/35602-5/DSC01909.JPG" alt="The Eee PF framed and painted" class="aligncenter" /></a><br />
&nbsp;</p>
<p><strong><a name="eeepf-part4">Part 4</a>: Finishing touches</strong></p>
<p>A sheet of hardboard has been cut to be the approximate size and then using patience and lots of sanding made to fit exactly.  The space at the bottom of the frame is perfect for the speakers, so using a small drill, create lots of small holes where the sound can penetrate through.  It won&#8217;t be high fidelity, but it&#8217;s good enough for announcements.  At the top of the frame, the microphone has been mounted, so we may be able to support voice commands in the future!  A quick lick of paint finishes it off.</p>
<p><a href="/gallery/modding/eeepc/DSC01921.JPG.html" class="liimagelink"><img src="/g/image/35609-3/DSC01921.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01922.JPG.html" class="liimagelink"><img src="/g/image/35613-3/DSC01922.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01923.JPG.html" class="liimagelink"><img src="/g/image/35617-3/DSC01923.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01924.JPG.html" class="liimagelink"><img src="/g/image/35621-3/DSC01924.JPG" alt="" /></a><a href="/gallery/modding/eeepc/DSC01925.JPG.html" class="liimagelink"><img src="/g/image/35625-3/DSC01925.JPG" alt="" /></a></p>
<p>We&#8217;re re-using the stand from the picture frame, but instead of hammering it in the backboard, we have to glue it.  I&#8217;ve used <a href="http://en.wikipedia.org/wiki/Araldite" target="_blank" class="liexternal">Araldite</a>, which should create a long lasting strong bond.</p>
<p><a href="/gallery/modding/eeepc/DSC01926.JPG.html" class="liimagelink"><img src="/g/image/35629-3/DSC01926.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01927.JPG.html" class="liimagelink"><img src="/g/image/35633-3/DSC01927.JPG" alt="" /></a></p>
<p>And that is it!  I&#8217;m quite pleased with the result, and even SWMBO commented on how nicely it looks in the living room&#8230;  result!</p>
<p><a href="/gallery/modding/eeepc/DSC01930.JPG.html" class="liimagelink"><img src="/g/image/35646-5/DSC01930.JPG" alt="The Eee PF finished" class="aligncenter" /></a></p>
<p><a href="/gallery/modding/eeepc/DSC01928.JPG.html" class="liimagelink"><img src="/g/image/35637-3/DSC01928.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01931.JPG.html" class="liimagelink"><img src="/g/image/35649-3/DSC01931.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01932.JPG.html" class="liimagelink"><img src="/g/image/35653-3/DSC01932.JPG" alt="" /></a> <a href="/gallery/modding/eeepc/DSC01934.JPG.html" class="liimagelink"><img src="/g/image/35657-3/DSC01934.JPG" alt="" /></a></p>
<p>As a final note, I haven&#8217;t mentioned at all what software the frame is running, so before you bombard me with questions, I better list them here ;)<br />
<br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /><br />
The OS is a standard <a href="http://www.ubuntu.com/" target="_blank" class="liexternal">Ubuntu 8.10 Desktop</a>, with <a href="http://po-ru.com/diary/linux-liposuction-or-xubuntu-in-under-a-gig-on-the-eee-pc/" target="_blank" class="liexternal">/usr compressed with squashfs/unionfs</a> so it can fit on the 2GB SSD.  After booting, it starts <a href="http://www.mozilla-europe.org/en/firefox/" target="_blank" class="liexternal">Firefox</a> on my homepage, a PHP/Ajax/MySQL slideshow script which displays the pictures, weather and clock.  The mousepointer is hidden using a small utility called <a href="http://ubuntu-tutorials.com/2008/07/07/auto-hide-your-mouse-pointer-when-idle-with-unclutter/" target="_blank" class="liexternal">Unclutter</a> and the display is automatically switched off at night using <code>sudo vbetool dpms off</code> and switched on again in the morning using <code>sudo vbetool dpms on</code>.  It&#8217;s still all a bit rough round the edges, but for now it works :)</p>
]]></content:encoded>
			<wfw:commentRss>http://awooga.nl/the-eee-pc-digital-picture-frame/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Modding the Dell Mini 9 &#8211; Part 2</title>
		<link>http://awooga.nl/modding-the-dell-mini-9-part-2</link>
		<comments>http://awooga.nl/modding-the-dell-mini-9-part-2#comments</comments>
		<pubDate>Sat, 07 Feb 2009 20:18:11 +0000</pubDate>
		<dc:creator>Q</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[hackintosh]]></category>
		<category><![CDATA[inspiron 910]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[mini 9]]></category>
		<category><![CDATA[modding]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[osx86]]></category>
		<category><![CDATA[runcore]]></category>
		<category><![CDATA[ssd]]></category>
		<category><![CDATA[stec]]></category>

		<guid isPermaLink="false">http://awooga.nl/?p=315</guid>
		<description><![CDATA[I wasn&#8217;t planning on revisiting my Mini mods yet, but when someone offered (and I happened to be looking) an upgrade to a 32GB RunCore SSD, I could not pass on the occasion. The only problem was that it rendered my SSD activity light useless as the RunCore does not carry the same signal on [...]]]></description>
			<content:encoded><![CDATA[<p>I wasn&#8217;t planning on revisiting <a href="/modding-the-dell-mini-9" class="liinternal">my Mini mods</a> yet, but when someone offered (and I happened to be looking) an upgrade to a <a href="http://www.runcore.com/prodshow.asp?ID=161" target="_blank" class="liexternal">32GB RunCore SSD</a>, I could not pass on the occasion.  The only problem was that it rendered my SSD activity light useless as the RunCore does not carry the same signal on the pin that the STEC drive uses.</p>
<p><img src="/g/image/35241-5/DSC01687.JPG" alt="" class="aligncenter" /></p>
<p>Thankfully all the hard work figuring out where the negative side of the SSD light had to connect to was done once more by <a href="http://mydellmini.com/forum/memberlist.php?mode=viewprofile&#038;u=116" target="_blank" class="liexternal">UnaClocker</a> on the <a href="http://mydellmini.com/forum/index.php" target="_blank" class="liexternal">MyDellMini forums</a>, so all I had to do was find a quiet Saturday and warm up the soldering iron.</p>
<p>We begin by undoing the work we did on the STEC.  Heat up the pin on the SSD and remove the black wire.  We will need to connect that to the RunCore drive.</p>
<p><a href="/gallery/modding/mini9/DSC01488.JPG.html" class="liimagelink"><img src="/g/image/35078-5/DSC01488.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01695.JPG.html" class="liimagelink"><img src="/g/image/35252-3/DSC01695.JPG" alt="" /></a></p>
<p>As said, UnaClocker found out that the signal we need is present on a small resistor, which although tiny, isn&#8217;t the worst place in the world to solder on.  Just fold back the sticker to reveal it.  If you enlarge the 2nd picture, you will see which one it is.  Use the tiniest amount of solder and attach the black wire to the resistor.</p>
<p><a href="/gallery/modding/mini9/DSC01689.JPG.html" class="liimagelink"><img src="/g/image/35244-3/DSC01689.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01690.jpg.html" class="liimagelink"><img src="/g/image/35280-3/DSC01690.jpg" alt="" /></a> <a href="/gallery/modding/mini9/DSC01698.JPG.html" class="liimagelink"><img src="/g/image/35260-3/DSC01698.JPG" alt="" /></a></p>
<p>Fold back the sticker, put the SSD back into it&#8217;s slot and boot it up.  Blue LED goodness once again!</p>
<p><a href="/gallery/modding/mini9/DSC01700.JPG.html" class="liimagelink"><img src="/g/image/35264-3/DSC01700.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01701.JPG.html" class="liimagelink"><img src="/g/image/35268-3/DSC01701.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01702.JPG.html" class="liimagelink"><img src="/g/image/35272-3/DSC01702.JPG" alt="" /></a><br />
<br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /></p>
]]></content:encoded>
			<wfw:commentRss>http://awooga.nl/modding-the-dell-mini-9-part-2/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Modding the Dell Mini 9</title>
		<link>http://awooga.nl/modding-the-dell-mini-9</link>
		<comments>http://awooga.nl/modding-the-dell-mini-9#comments</comments>
		<pubDate>Tue, 30 Dec 2008 19:39:02 +0000</pubDate>
		<dc:creator>Q</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[brodit]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[hackintosh]]></category>
		<category><![CDATA[hub]]></category>
		<category><![CDATA[inspiron 910]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[mini 9]]></category>
		<category><![CDATA[modding]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[osx86]]></category>
		<category><![CDATA[sodimm]]></category>
		<category><![CDATA[ssd]]></category>
		<category><![CDATA[stec]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[wlan]]></category>
		<category><![CDATA[wwan]]></category>

		<guid isPermaLink="false">http://awooga.nl/?p=173</guid>
		<description><![CDATA[For Christmas this year I received a Dell Mini 9, which is one of the most flexible netbooks around. Searching around on the internet quickly revealed an incredible source of information posted on the forums over at My Dell Mini. As I was looking for a new modding project, the Mini 9 seemed perfect. First [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/g/image/34765-9/DSC01397.JPG" alt="Dell Mini 9" class="aligncenter" /></p>
<p>For Christmas this year I received a <a href="http://www.dell.com/content/products/productdetails.aspx/laptop-inspiron-9?c=uk&#038;l=en&#038;s=dhs" target="_blank" class="liexternal">Dell Mini 9</a>, which is one of the most flexible netbooks around.  Searching around on the internet quickly revealed an incredible source of information posted on the <a href="http://mydellmini.com/forum/index.php" target="_blank" class="liexternal">forums</a> over at <a href="http://mydellmini.com/" target="_blank" class="liexternal">My Dell Mini</a>.  As I was looking for a new modding project, the Mini 9 seemed perfect.<br />
<br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /></p>
<blockquote><p><strong>First an important message</strong></p>
<p>The information below has all been taken from the My Dell Mini forums, especially the SSD activity LED mod by <a href="http://mydellmini.com/forum/memberlist.php?mode=viewprofile&#038;u=116" target="_blank" class="liexternal">UnaClocker</a>.  I have merely adapted it to suit my own needs.  As with all things involving voiding your warranty, I will not (and can not) take any responsibility for any problems that you have trying to do the same.  You break it, you pay for it (and if you read on, so do I :))</p></blockquote>
<p>&nbsp;</p>
<p>Right, that&#8217;s out of the way, let&#8217;s get to it!  Here&#8217;s a quick overview of the things that I have done to my Mini.</p>
<p><a href="#mini9-part1" class="liinternal">Part 1: Disassembling the Mini 9</a><br />
<a href="#mini9-part2" class="liinternal">Part 2: Disassembling an USB hub</a><br />
<a href="#mini9-part3" class="liinternal">Part 3: Disassembling an USB flash drive</a><br />
<a href="#mini9-part4" class="liinternal">Part 4: Putting it all together</a><br />
&nbsp;</p>
<p><strong><a name="mini9-part1">Part 1</a>: Disassembling the Mini 9</strong></p>
<p>Dell publishes a great <a href="http://support.dell.com/support/edocs/systems/ins910/en/sm/index.htm" target="_blank" class="liexternal">online manual</a> which details how to disassemble your precious Mini 9.  I used their guide and documented it all on one page.  All pictures can be enlarged by clicking on them for additional detail.</p>
<p>I used a selection of tools, but one that I would specifically like to recommend is the plastic wedge.  This allows you to pry open the case without damaging it.  I got mine when I bought a <a href="http://www.brodit.com/?lang=E" target="_blank" class="liexternal">Brodit</a> phone mount, but I&#8217;m sure <a href="http://www.ebay.co.uk" target="_blank" class="liexternal">Ebay</a> will have a selection of these too.</p>
<p><a href="/gallery/modding/mini9/DSC01399.JPG.html" class="liimagelink"><img src="/g/image/34773-3/DSC01399.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01400.JPG.html" class="liimagelink"><img src="/g/image/34777-3/DSC01400.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01449.JPG.html" class="liimagelink"><img src="/g/image/34996-3/DSC01449.JPG" alt="" /></a></p>
<p>Switch the Mini off if you haven&#8217;t already, and turn it over.  I placed an old tea towel underneath it to prevent scratches to the mirror finish lid.  First we need to remove the battery.  On either side of the battery is a latch, which when pushed outwards, allows for the battery to be slide out.</p>
<p><a href="/gallery/modding/mini9/DSC01398.JPG.html" class="liimagelink"><img src="/g/image/34769-3/DSC01398.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01401.JPG.html" class="liimagelink"><img src="/g/image/34781-3/DSC01401.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01402.JPG.html" class="liimagelink"><img src="/g/image/34785-3/DSC01402.JPG" alt="" /></a></p>
<p>The module cover is next.  Two <a href="http://en.wikipedia.org/wiki/Henry_F._Phillips" target="_blank" class="liexternal">Phillips</a> screws hold it in place and then using your nails, or the wedge tool, lift it up.  It may require some force as it is held further into place by small plastic tabs.</p>
<p><a href="/gallery/modding/mini9/DSC01403.JPG.html" class="liimagelink"><img src="/g/image/34789-3/DSC01403.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01404.JPG.html" class="liimagelink"><img src="/g/image/34793-3/DSC01404.JPG" alt="" /></a></p>
<p>With the module cover removed, you have access to the memory, SSD, WLAN card, and if you are lucky/ticked the WWAN option, a WWAN card.  As you can see, I have already upgraded my memory to a 2GB <a href="http://en.wikipedia.org/wiki/Sodimm" target="_blank" class="liexternal">SODIMM</a>.  To remove the memory, gently push away the latches on either side of the memory, until the module is tilted up.  Then just pull it out.</p>
<p><a href="/gallery/modding/mini9/DSC01406.JPG.html" class="liimagelink"><img src="/g/image/34801-3/DSC01406.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01409.JPG.html" class="liimagelink"><img src="/g/image/34813-3/DSC01409.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01410.JPG.html" class="liimagelink"><img src="/g/image/34817-3/DSC01410.JPG" alt="" /></a></p>
<p>The <a href="http://en.wikipedia.org/wiki/Solid-state_drive" target="_blank" class="liexternal">SSD</a> is held down by two screws.  Just unscrew them, and slide the SSD out of its socket.</p>
<p><a href="/gallery/modding/mini9/DSC01405.JPG.html" class="liimagelink"><img src="/g/image/34797-3/DSC01405.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01411.JPG.html" class="liimagelink"><img src="/g/image/34835-3/DSC01411.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01413.JPG.html" class="liimagelink"><img src="/g/image/34843-3/DSC01413.JPG" alt="" /></a></p>
<p>Remove the two antenna wires from the <a href="http://en.wikipedia.org/wiki/Wireless_LAN" target="_blank" class="liexternal">WLAN</a> card by gently (really gently) pulling them out from the sockets and undo the two screws.  Just pull the card out and place it to one side.</p>
<p><a href="/gallery/modding/mini9/DSC01407.JPG.html" class="liimagelink"><img src="/g/image/34805-3/DSC01407.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01412.JPG.html" class="liimagelink"><img src="/g/image/34839-3/DSC01412.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01414.JPG.html" class="liimagelink"><img src="/g/image/34847-3/DSC01414.JPG" alt="" /></a></p>
<p>My Mini doesn&#8217;t come with a <a href="http://en.wikipedia.org/wiki/WWAN" target="_blank" class="liexternal">WWAN</a> card, so that leaves a nice empty space where we will stuff the USB hub and flash drive.  More on that in the last <a href="#part4" class="liinternal">part</a>.</p>
<p><a href="/gallery/modding/mini9/DSC01408.JPG.html" class="liimagelink"><img src="/g/image/34809-6/DSC01408.JPG" alt="" /></a></p>
<p>To make life as easy as possible, we need to have access to both sides of the mainboard, so the next item that need to be removed is the keyboard.  Locate the two screws marked with a <strong>K</strong> and undo them.  Turn the Mini over again (right side up), open the lid, and lift it up slightly to reveal the keyboard connector at the bottom of the keyboard.  Using a small flat screwdriver, push the two locks open and remove the keyboard completely.</p>
<p><a href="/gallery/modding/mini9/DSC01415.JPG.html" class="liimagelink"><img src="/g/image/34851-3/DSC01415.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01416.JPG.html" class="liimagelink"><img src="/g/image/34855-3/DSC01416.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01417.JPG.html" class="liimagelink"><img src="/g/image/34859-3/DSC01417.JPG" alt="" /></a></p>
<p>With the keyboard removed, the palmrest is next.  Place the Mini again on it&#8217;s lid and remove the nine screws as indicated in the pictures.  Two of them are below some rubber studs, which can be lifted out using a flat screwdriver.  They have a sticky bit underneath, so they require a bit of an push to get over the initial resistance.</p>
<p><a href="/gallery/modding/mini9/DSC01419.JPG.html" class="liimagelink"><img src="/g/image/34863-3/DSC01419.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01420.JPG.html" class="liimagelink"><img src="/g/image/34867-3/DSC01420.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01421.JPG.html" class="liimagelink"><img src="/g/image/34880-3/DSC01421.JPG" alt="" /></a></p>
<p>Flip the Mini over and open the lid again.  Remove the seven screws.  Disconnect the bluetooth, touchpad and power button connectors and then, using the plastic wedge, pry the case open using some gentle force along the sides.  Be patient at this point as the plastic latches inside the case, are fragile and will snap if you exercise too much force.</p>
<p><a href="/gallery/modding/mini9/DSC01422.JPG.html" class="liimagelink"><img src="/g/image/34884-3/DSC01422.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01423.JPG.html" class="liimagelink"><img src="/g/image/34888-3/DSC01423.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01424.JPG.html" class="liimagelink"><img src="/g/image/34892-3/DSC01424.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01425.JPG.html" class="liimagelink"><img src="/g/image/34896-3/DSC01425.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01426.JPG.html" class="liimagelink"><img src="/g/image/34900-3/DSC01426.JPG" alt="" /></a></p>
<p>Now we just need to remove the mainboard.  There are two screws to undo, followed by a number of connectors.  First route the WLAN antenna wires through the hole in the mainboard and disconnect the speaker connector just below it.  Then disconnect the microphone, the two power connectors and the display connector.</p>
<p><a href="/gallery/modding/mini9/DSC01428.JPG.html" class="liimagelink"><img src="/g/image/34908-3/DSC01428.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01433.JPG.html" class="liimagelink"><img src="/g/image/34938-3/DSC01433.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01434.JPG.html" class="liimagelink"><img src="/g/image/34942-3/DSC01434.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01435.JPG.html" class="liimagelink"><img src="/g/image/34946-3/DSC01435.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01436.JPG.html" class="liimagelink"><img src="/g/image/34950-3/DSC01436.JPG" alt="" /></a></p>
<p>Lift the mainboard up at the left side and then pull it out sideways.</p>
<p><a href="/gallery/modding/mini9/DSC01437.JPG.html" class="liimagelink"><img src="/g/image/34954-3/DSC01437.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01438.JPG.html" class="liimagelink"><img src="/g/image/34958-3/DSC01438.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01439.JPG.html" class="liimagelink"><img src="/g/image/34962-3/DSC01439.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01440.JPG.html" class="liimagelink"><img src="/g/image/34966-3/DSC01440.JPG" alt="" /></a></p>
<p>That&#8217;s it!  You&#8217;ve successfully made your first step on to the <em>void your warranty</em> ladder :D<br />
&nbsp;</p>
<p><strong><a name="mini9-part2">Part 2</a>: Disassembling an USB hub</strong></p>
<p>Following a recommendation on the My Dell Mini forums for a small USB hub, I found the so called &#8220;Octopus&#8221; hub to be small enough to fit inside the WWAN space, leaving enough space for additional USB devices.  I bought one on <a href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&#038;item=180312516764" target="_blank" class="liexternal">Ebay</a> from a seller called <a href="http://myworld.ebay.co.uk/2008_topseller/" target="_blank" class="liexternal">2008_topseller</a> for £3.60 and had to wait about 2 weeks before it arrived.  Plan your mods in advance ;)</p>
<p><a href="/gallery/modding/mini9/DSC01462.JPG.html" class="liimagelink"><img src="/g/image/35004-3/DSC01462.JPG" alt="" /></a></p>
<p>Remove the plastic cover and it reveals the tiny <a href="http://en.wikipedia.org/wiki/Printed_circuit_board" target="_blank" class="liexternal">PCB</a> that will fit neatly in the WWAN slot later.  Using a soldering iron remove all the existing wiring and (although not shown in these pictures), move the ceramic resonator from the bottom to the top (take note in which direction it needs to be on).  Also make a note what wiring is which pin on the PCB.  Fortunately the wiring follows the <a href="http://pinouts.ru/Slots/USB_pinout.shtml" target="_blank" class="liexternal">USB standard</a>, which is Red/White/Green/Black.</p>
<p><a href="/gallery/modding/mini9/DSC01464.JPG.html" class="liimagelink"><img src="/g/image/35008-3/DSC01464.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01465.JPG.html" class="liimagelink"><img src="/g/image/35012-3/DSC01465.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01466.JPG.html" class="liimagelink"><img src="/g/image/35016-3/DSC01466.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01467.JPG.html" class="liimagelink"><img src="/g/image/35020-3/DSC01467.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01468.JPG.html" class="liimagelink"><img src="/g/image/35024-3/DSC01468.JPG" alt="" /></a></p>
<p>Once done, put some electrical tape underneath the PCB to make sure that at no point that side is able to short on the mainboard.  I also put a piece of <a href="http://www.maplin.co.uk/Module.aspx?ModuleNo=33766&#038;U=33766&#038;T=Module" target="_blank" class="liexternal">double sided foam tape</a> on it so it will remain in place once put inside the Mini.<br />
&nbsp;</p>
<p><strong><a name="mini9-part3">Part 3</a>: Disassembling an USB flashdrive</strong></p>
<p>I bought a 16GB PNY Attache Premium USB Flash drive from <a href="http://www.play.com/PC/PCs/4-/6167052/PNY-Attache-Premium-16GB-USB-2-0-Flash-Drive/Product.html" target="_blank" class="liexternal">Play.com</a>, as it looked in the pictures small enough once all the plastics were removed and at £16.99 it was cheap enough.</p>
<p><a href="/gallery/modding/mini9/DSC01469.JPG.html" class="liimagelink"><img src="/g/image/35028-3/DSC01469.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01461.JPG.html" class="liimagelink"><img src="/g/image/35000-3/DSC01461.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01470.JPG.html" class="liimagelink"><img src="/g/image/35032-3/DSC01470.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01471.JPG.html" class="liimagelink"><img src="/g/image/35050-3/DSC01471.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01472.JPG.html" class="liimagelink"><img src="/g/image/35054-3/DSC01472.JPG" alt="" /></a></p>
<p>But then things started to go wrong for me.  Applying a bit too much force on the USB connector whilst trying to heat up the connector legs up, caused the copper pads to be removed completely from the PCB.  Doh!</p>
<p><a href="/gallery/modding/mini9/DSC01475.JPG.html" class="liimagelink"><img src="/g/image/35058-3/DSC01475.JPG" alt="" /></a></p>
<p>If anyone has an idea what I can do with it now (other than to bin it), use the <a href="/contact" class="liinternal">contact form</a> :)<br />
&nbsp;</p>
<p><strong><a name="mini9-part4">Part 4</a>: Putting it all together</strong></p>
<p>Fire up the soldering iron, the time to kiss that warranty goodbye has come!</p>
<p>In order to add the SSD activity light, we need to tap into pin 52 on the standard STEC SSD.  This is where having a <a href="http://www.stec-inc.com/downloads/flash_datasheets/SLMPCIxGM4U_M_61000_05494.pdf" class="lipdf">spec sheet from the manufacturer</a> comes in handy.  Please note that this mod only works on the STEC SSD&#8217;s (as supplied standard by Dell), not any other brand.  Pin 52 is marked as &#8220;-DSAP&#8221; with description &#8220;In the True IDE Mode, this input/output is the Disk Active/Slave Present signal in the Master/Slave handshake protocol&#8221;.  To you and me that translates as disk activity :)</p>
<p>The SSD LED will then be located next to the battery surface mounted LED as shown in the picture.</p>
<p><a href="/gallery/modding/mini9/DSC01441.JPG.html" class="liimagelink"><img src="/g/image/34980-3/DSC01441.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01444.JPG.html" class="liimagelink"><img src="/g/image/34992-3/DSC01444.JPG" alt="" /></a></p>
<p>The LED will also require a +3.3V source, which you can find on pad 52 of the WWAN connector.</p>
<p>In order to add the USB hub, we need to use the WWAN connector which carries the required Data+ (pad 38) and Data- (pad 36) signals.  For completeness I also added +5V (found in the copper track that runs through the &#8220;L&#8221;) and ground (using a screw hole) from underneath the WLAN card.</p>
<p><a href="/gallery/modding/mini9/DSC01443.JPG.html" class="liimagelink"><img src="/g/image/34988-3/DSC01443.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01442.JPG.html" class="liimagelink"><img src="/g/image/34984-3/DSC01442.JPG" alt="" /></a></p>
<p>Now comes the scary bit.  Scrape, using a tip of a knife, a small area of the PCB coating (that Blue/Green layer you see) to reveal the copper track underneath.  Then using a small dab of solder, attach the Red and Black wires.  Protect the wires from stress by sticking some electrical insulated tape on top of it.  Using an even smaller amount of solder, attach the White and Green wires to the WWAN pads, making sure the pads do not touch each other.  If you can&#8217;t manage first time around, heat the pads up and remove the wiring again.  Then retry it.</p>
<p><a href="/gallery/modding/mini9/DSC01478.JPG.html" class="liimagelink"><img src="/g/image/35062-3/DSC01478.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01479.JPG.html" class="liimagelink"><img src="/g/image/35066-3/DSC01479.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01480.JPG.html" class="liimagelink"><img src="/g/image/35070-3/DSC01480.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01484.JPG.html" class="liimagelink"><img src="/g/image/35074-3/DSC01484.JPG" alt="" /></a></p>
<p>Just two more wires to go.  As pin 52 on the SSD connector is miniscule, it is better to solder the Black wire onto the SSD directly.  Make sure the wire is as flat and small as possible, and then use the tiniest amount of solder to attach it.  Double check that you haven&#8217;t connected two pins together.  The Red wire needs to be attached to the WWAN connector again on pad 52.  By now, this should be easy ;)</p>
<p><a href="/gallery/modding/mini9/DSC01488.JPG.html" class="liimagelink"><img src="/g/image/35078-3/DSC01488.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01489.JPG.html" class="liimagelink"><img src="/g/image/35082-3/DSC01489.JPG" alt="" /></a></p>
<p>Before we continue putting the hub and LED in place, fire up the mini (assembling just enough to get it to boot) to make sure it is still working.  If it doesn&#8217;t, revisit your soldering and double check they are done properly.</p>
<p>Put the USB hub in it&#8217;s place and cut the USB wires to measure.  Maintain a small amount of extra length, in case you need to move it around later.  Solder the wires back to the USB hub in the correct order, and test the Mini again.  It works!</p>
<p><a href="/gallery/modding/mini9/DSC01492.JPG.html" class="liimagelink"><img src="/g/image/35099-3/DSC01492.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01496.JPG.html" class="liimagelink"><img src="/g/image/35103-3/DSC01496.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01491.JPG.html" class="liimagelink"><img src="/g/image/35095-3/DSC01491.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01497.JPG.html" class="liimagelink"><img src="/g/image/35107-3/DSC01497.JPG" alt="" /></a></p>
<p>Almost there now.  Route the remaining Red and Black wires towards the battery LED and cut them to length.  Solder a new LED and a resistor to the wires and test it is working.  If it isn&#8217;t, then swap the legs of the LED around and try again as LEDs only work one way.  You have to use a resistor suitable for the LED too.  I used a <a href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&#038;item=120344291604" target="_blank" class="liexternal">3000mcd &#8220;Tru-Colour&#8221; Blue LED</a> with a forward voltage of 3-3.2V and a 100 ohm resistor.  It doesn&#8217;t matter on which side of the LED the resistor goes, as long as it is there.</p>
<p><a href="/gallery/modding/mini9/DSC01498.JPG.html" class="liimagelink"><img src="/g/image/35111-3/DSC01498.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01500.JPG.html" class="liimagelink"><img src="/g/image/35115-3/DSC01500.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01502.JPG.html" class="liimagelink"><img src="/g/image/35119-3/DSC01502.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01503.JPG.html" class="liimagelink"><img src="/g/image/35123-3/DSC01503.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01504.JPG.html" class="liimagelink"><img src="/g/image/35127-3/DSC01504.JPG" alt="" /></a></p>
<p>Unfortunately, when it came to assembling everything, I discovered that the way I have mounted the LED did not allow the case to be closed properly.  I mounted it therefore slightly different, but I forgot to take pictures of it.  I&#8217;m sure I will open up the case in the future and then I&#8217;ll update this page with the new pictures.  In the pictures below it shows the LED in action when the SSD is being accessed, when the battery runs low, and when they both light up.  Neat! </p>
<p><a href="/gallery/modding/mini9/DSC01505.JPG.html" class="liimagelink"><img src="/g/image/35131-3/DSC01505.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01513.JPG.html" class="liimagelink"><img src="/g/image/35149-3/DSC01513.JPG" alt="" /></a> <a href="/gallery/modding/mini9/DSC01523.JPG.html" class="liimagelink"><img src="/g/image/35153-3/DSC01523.JPG" alt="" /></a><br />
<br /><br /><center><script type="text/javascript"><!--
google_ad_client = "pub-3248212177098373";
google_ad_slot = "3039514391";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br /><br />
Finally, take a last look at the mods, before we close the module cover and call it a day ;)</p>
<p><img src="/g/image/35136-8/DSC01506.JPG" alt="" class="aligncenter" /></p>
<blockquote><p><strong>Update 7.2.2009</strong></p>
<p>I&#8217;ve upgraded to a 32GB RunCore SSD, so I have done the LED mod again.  Have a look at <a href="http://awooga.nl/modding-the-dell-mini-9-part-2" class="liinternal">this post</a> for details</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://awooga.nl/modding-the-dell-mini-9/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

