<?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>about:benjie &#187; Hardware</title>
	<atom:link href="http://www.benjiegillam.com/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benjiegillam.com</link>
	<description>Benjie Gillam's blog, and home of MythPyWii - probably the best Wii remote (Wiimote) interface to MythTV - see sidebar.</description>
	<lastBuildDate>Tue, 06 Apr 2010 14:14:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MythPyWii &#8211; now on Google Code</title>
		<link>http://www.benjiegillam.com/2010/01/mythpywii-now-on-google-code/</link>
		<comments>http://www.benjiegillam.com/2010/01/mythpywii-now-on-google-code/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 18:58:10 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MythPyWii]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=335</guid>
		<description><![CDATA[Fancy submitting to MythPyWii? Let me know! It&#8217;s now on Google Code.
Code, documentation, bugs, bugfixes, etc all welcome!
]]></description>
			<content:encoded><![CDATA[<p>Fancy <a href="http://code.google.com/p/mythpywii/">submitting to MythPyWii</a>? Let me know! It&#8217;s now on Google Code.</p>
<p>Code, documentation, bugs, bugfixes, etc all welcome!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2010/01/mythpywii-now-on-google-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>N900: first impressions</title>
		<link>http://www.benjiegillam.com/2009/12/n900-first-impressions/</link>
		<comments>http://www.benjiegillam.com/2009/12/n900-first-impressions/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 09:18:39 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[first]]></category>
		<category><![CDATA[impressions]]></category>
		<category><![CDATA[indestructible]]></category>
		<category><![CDATA[n900]]></category>
		<category><![CDATA[nokia]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=254</guid>
		<description><![CDATA[This post is part 2 of a three part series. You may also be interested in:
Part 1: N900: the tale of the indestructible box
Part 3: N900: a phone for hackers? (coming soon&#8230;)
After conquering the indestructible box and charging the N900 I decided to have a quick play. I watched the getting started video which I [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>This post is part 2 of a three part series. You may also be interested in:<br />
<a href="http://www.benjiegillam.com/2009/12/n900-the-tale-of-the-indestructible-box/">Part 1: N900: the tale of the indestructible box</a><br />
Part 3: N900: a phone for hackers? (coming soon&#8230;)</em></strong></p>
<p>After <a href="http://www.benjiegillam.com/2009/12/n900-the-tale-of-the-indestructible-box/">conquering the indestructible box</a> and charging the N900 I decided to have a quick play. I watched the getting started video which I found to be both beautifully smooth, showing off the high definition of the N900 screen immediately, and somewhat slow content-wise.</p>
<p><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/DSCF4230.JPG"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/DSCF4230-300x121.jpg" alt="G1 (top), N900 (left), iPhone 3GS (right)" title="G1 (top), N900 (left), iPhone 3GS (right)" width="300" height="121" class="alignleft size-medium wp-image-323" /></a></p>
<p>The N900 is similar in width and height to the <a class="zem_slink" href="http://www.apple.com/iphone" title="iPhone" rel="homepage">iPhone</a> but is much greater in depth at 1.8cm &#8211; just a millimetre deeper than the G1. This is not surprising due to it&#8217;s hard keyboard and more advanced hardware.</p>
<p><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/DSCF4219.JPG"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/DSCF4219-300x57.jpg" alt="G1 (back), N900 (left), iPhone 3GS (right)" title="G1 (back), N900 (left), iPhone 3GS (right)" width="300" height="57" class="alignleft size-medium wp-image-324" /></a></p>
<p>The first thing that struck me about the N900 (other than how high definition the hands were in the famous Nokia splash video!) was how much force it required to press on the screen. The iPhone (my current primary phone because I develop iPhone fitness apps) only requires the lightest of touches; whilst the <a class="zem_slink" href="http://en.wikipedia.org/wiki/HTC_Dream" title="HTC Dream" rel="wikipedia">Android G1</a> (my wife&#8217;s phone) requires a bit more. I later discovered the reason for this heavier interface was probably the stylus (which I discovered accidentally while interrogating the outside of the device), which is great to use &#8211; reminds me of my old iPaqs only much much higher resolution and more responsive!</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/vcHeVMbO-Ck&#038;hl=en_GB&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vcHeVMbO-Ck&#038;hl=en_GB&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>I noticed that every time I touched the screen firmly enough the phone would do a very small vibration in the way of <a class="zem_slink" href="http://en.wikipedia.org/wiki/Haptic_technology" title="Haptic technology" rel="wikipedia">haptic feedback</a>. This would be good if it weren&#8217;t for the fact that it does it <strong>every</strong> time, and not only the times when your touch actually triggers an action (opening a menu, etc) &#8211; this is becoming more annoying than useful.</p>
<p>Because of the devices HD screen I found it quite hard to be exact with my touches (my thumbs must be almost 200 pixels wide on that screen!) though the interface deals with this well by using large touch areas. After failing at playing Marbles (a pre-installed game with small touch areas) for a minute or so I quickly learned where the device thought my presses were and the device became even easier to use. (Sure this would have been much easier with a stylus but I hadn&#8217;t discovered that yet!)</p>
<p>The web browser is a pleasure to use, though it appears to support in page Flash which I personally hate &#8211; especially on a small screen mobile device. I went to YouTube to see how it handles and &#8220;very well&#8221; was the answer. The device supports the double tap to zoom in to a region of text paradigm of Safari on the iPhone though it obviously lacks the multi-touch pinch and zoom. </p>
<p><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/IMG_0231-2.JPG"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/IMG_0231-2-300x148.jpg" alt="N900 vs G1" title="N900 vs G1" width="300" height="148" class="alignleft size-medium wp-image-320" /></a></p>
<p>Pressing play on a YouTube video, I wished to turn the volume up and so I pressed the volume rocker on the outside of the phone. This surprisingly zoomed the web page (very smoothly!) but not the volume &#8211; a useful feature but definitely not what I had expected. I attempted to change the volume using the YouTube Flash control but could not drag the slider up as my fingers were too fat and dragging scrolled the page. (I hadn&#8217;t discovered the stylus at this time but have since attempted with they stylus with the same result.) To change the volume I had to click the web page, click the &#8220;toggle fullscreen&#8221; button at the bottom right, the status icons at the top and then drag the volume slider. Not too hard, but certainly more effort than just using the volume rocker &#8211; the video would play on a good few seconds more before you can change the volume and get back to it. Perhaps there&#8217;s a better way of doing it, but this is a &#8220;first impressions&#8221; post so I feel I should stick to first impressions!</p>
<p>One very cool feature of the N900 is how blazingly fast the screen lock/unlock is. There&#8217;s a sprung switch on the right side of the phone which when you flick it will lock or unlock the screen seemingly instantly (no slider here!). If you prefer the iPhone style slider then you can press the power button at the top of the phone and use the slider there, though I much prefer the flick button on the side.</p>
<p><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/DSCF4238.JPG"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/DSCF4238-300x156.jpg" alt="N900 lock screen switch (left) and kickstand." title="N900 lock screen switch (left) and kickstand." width="300" height="156" class="alignleft size-medium wp-image-328" /></a></p>
<p>I like the stand on the back of the phone &#8211; this would be immensely useful when you&#8217;re trying to watch a film on the train on the way back from London (rather than constructing a stand with your backpack, wallet and other accessories like I do for my iPhone&#8230;). The stand is fairly sturdy and definitely supports the phone well, though it does rock a bit when you use the stylus at the top right of the screen (not really the stands intention to be fair!).</p>
<p>I know virtually nothing about photography, but to me the camera seems to be a decent quality 5MP phone camera with a fairly decent flash. Coming from a 3MP iPhone with no flash the difference is astounding. The N900&#8217;s sheer performance is very visible here &#8211; as you move the phone around you can clearly see the surroundings &#8211; there is no massive blurring like when you wobble the iPhone&#8217;s camera. The photos themselves come out quite well, though there is still minor blurring due to handshake &#8211; but no where near the magnitude of the blurring on the iPhone. I bet a &#8220;bar code scanner&#8221; application on the N900 would be far faster and more accurate than any I have used on the iPhone or Android!</p>
<p><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/screenshot09.png"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/screenshot09.png" alt="N900-YouTube Windowed" title="N900-YouTube Windowed" width="800" height="480" class="aligncenter size-full wp-image-308" /></a></p>
<p>Connecting the device to my <a class="zem_slink" href="http://en.wikipedia.org/wiki/Wi-Fi" title="Wi-Fi" rel="wikipedia">WiFi</a> network was painless and intuitive. The major widgets (menu button [top left], fullscreen button [bottom right], close button [top right], status tray [top, right of menu button]) are well laid out and application switching (and closing [<a class="zem_slink" href="http://www.symbian.com" title="Symbian" rel="homepage">Symbian</a>: I'm talking to you]!) is simple and intuitive. </p>
<p style="text-align:left;"><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/screenshot04.png"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/screenshot04-300x180.png" alt="N900 - Home Screen" title="N900 - Home Screen" width="300" height="180" class="alignleft size-medium wp-image-313" /></a> <a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/screenshot05.png"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/screenshot05-300x180.png" alt="N900 - Running Applications" title="N900 - Running Applications" width="300" height="180" class="alignleft size-medium wp-image-314" /></a> <a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/screenshot06.png"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/screenshot06-300x180.png" alt="N900 - Applications Home" title="N900 - Applications Home" width="300" height="180" class="alignleft size-medium wp-image-315" /></a> <a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/screenshot07.png"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/screenshot07-300x180.png" alt="N900 - Applications More" title="N900 - Applications More" width="300" height="180" class="alignleft size-medium wp-image-316" /></a></p>
<p>Opening applications could do with some work &#8211; the menu first opens and shows you 15 icons (standard icons like Contacts, Phone, Web, Email, Conversations), with a More button at the bottom right. Pressing More is how you get to your other apps &#8211; games, utilities, etc. Unfortunately these apps appear ordered by the time they were installed and not separated into folders, and there is no obviously intuitive way to organise them. In fact I have yet to find out how to organise them through exploring the device &#8211; I will search the internet later.</p>
<p><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/DSCF4216.JPG"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/DSCF4216-300x198.jpg" alt="N900 (top left), G1 (top right), iPhone 3GS (bottom)" title="N900 (top left), G1 (top right), iPhone 3GS (bottom)" width="300" height="198" class="alignleft size-medium wp-image-325" /></a></p>
<p>That&#8217;s the end of my first impressions&#8230; When I discovered the X Terminal application I got immediately a lot more excited as I am by nature a hacker. Read on&#8230;</p>
<p><strong><em>This post is part 2 of a three part series. You may also be interested in:<br />
<a href="http://www.benjiegillam.com/2009/12/n900-the-tale-of-the-indestructible-box/">Part 1: N900: the tale of the indestructible box</a><br />
Part 3: N900: a phone for hackers? (coming soon&#8230;)</em></strong></p>
<div class="zemanta-pixie" style="margin-top:10px;height:15px"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/1cddb918-dbf7-405a-b4b1-d2de7e9854f4/" title="Reblog this post [with Zemanta]"><img class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=1cddb918-dbf7-405a-b4b1-d2de7e9854f4" alt="Reblog this post [with Zemanta]" style="border:none;float:right"></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2009/12/n900-first-impressions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>N900: the tale of the indestructible box</title>
		<link>http://www.benjiegillam.com/2009/12/n900-the-tale-of-the-indestructible-box/</link>
		<comments>http://www.benjiegillam.com/2009/12/n900-the-tale-of-the-indestructible-box/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 08:51:03 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[box]]></category>
		<category><![CDATA[hackerbox]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[indestructible]]></category>
		<category><![CDATA[n900]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[surprise]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=251</guid>
		<description><![CDATA[This post is part 1 of a 3 part series. You may also be interested in:
Part 2: N900: first impressions
Part 3: N900: a phone for hackers? (coming soon&#8230;)
A week ago I was contacted by Lydia of WOMWorld.com/nokia who asked me if I would be interested in receiving an indestructible box. I was told that she [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>This post is part 1 of a 3 part series. You may also be interested in:<br />
<a href="http://www.benjiegillam.com/2009/12/n900-first-impressions/">Part 2: N900: first impressions</a><br />
Part 3: N900: a phone for hackers? (coming soon&#8230;)</em></strong></p>
<p>A week ago I was contacted by Lydia of <a title="WOMWorld/Nokia" href="http://www.womworld.com/nokia/" target="_blank">WOMWorld.com/nokia</a> who asked me if I would be interested in receiving an indestructible box. I was told that she found me via <a title="Benjie Gillam on Twitter" href="http://twitter.com/BenjieGillam" target="_blank">my twitter profile</a> and felt it would appeal to my passions. After confirming the email was not spam I replied, intrigued, &#8220;yes please&#8221; and sent her my address.</p>
<div style="float:left;margin-right:10px;"><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/NokiaPackageArrives.jpg"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/NokiaPackageArrives-150x150.jpg" alt="Package Arrives" title="Package Arrives" width="150" height="150" class="alignleft size-thumbnail wp-image-266"></a></div>
<p>Yesterday it arrived. I opened the door to a delivery man who offered me a large cardboard box. Jof had suggested to me that it would likely be an N900 (which I had heard a little about but had not had time to look into) so I was expecting a small package. Surprised I was when the box the man handed me was so large and heavy &#8211; 35&#215;35x35cm and 7.5kg!</p>
<div style="float:right;margin-left:10px;"><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/NokiaBoxHybrid.jpg"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/NokiaBoxHybrid-150x150.jpg" alt="Nokia Box" title="Nokia Box" width="150" height="150" class="alignright size-thumbnail wp-image-270"></a></div>
<p>I took it indoors and opened it, to find a large package, cold to the touch, wrapped up in brown parcel paper and surrounded by polystyrene balls.&nbsp;Unwrapping this (and making a hell of a mess with the styrofoam balls which attempted to mirror the snow outside onto my living room floor) unveiled a 25&#215;25x25cm black shiny box with a <a class="zem_slink" href="http://nokia.com" title="Nokia Siemens" rel="homepage">Nokia</a> logo on top, a hinge and a small <a href="http://en.wikipedia.org/wiki/Universal_Serial_Bus#Connector_types" target="_blank">USB mini-B socket</a> barely visible on one side. It was obvious that the top would open&#8230; but how?</p>
<p>I wanted to attempt to hack it right away, but two things stopped me: firstly, I should be working; and secondly the box was wet with condensation from the sudden contrast with the cold outside. I went back to work.</p>
<p>A hour and a half later I got temporarily stumped with a programming problem and decided to attempt to hack the box.</p>
<p>My first step was to see what happened when I plugged it in to the USB. I booted into <a class="zem_slink" href="http://www.ubuntu.com/" title="Ubuntu (operating system)" rel="homepage">Ubuntu</a> 9.10, ran <tt>dmesg -c</tt> to clear all the kernel messages, plugged it in, waited a few seconds, and ran <tt>dmesg</tt> again to see just the new logs:</p>
<pre style="color:green;font-weight:bold;">[  314.544034] usb 6-2: new full speed USB device using uhci_hcd and address 2
[  314.747104] usb 6-2: configuration #1 chosen from 1 choice
[  314.811722] usbcore: registered new interface driver usbserial
[  314.811734] USB Serial support registered for generic
[  314.811764] usbcore: registered new interface driver usbserial_generic
[  314.811766] usbserial: USB Serial Driver core
[  314.823161] USB Serial support registered for FTDI USB Serial Device
[  314.823263] ftdi_sio 6-2:1.0: FTDI USB Serial Device converter detected
[  314.823283] usb 6-2: Detected FT232RL
[  314.823285] usb 6-2: Number of endpoints 2
[  314.823287] usb 6-2: Endpoint 1 MaxPacketSize 64
[  314.823289] usb 6-2: Endpoint 2 MaxPacketSize 64
[  314.823291] usb 6-2: Setting MaxPacketSize 64
[  314.825064] usb 6-2: FTDI USB Serial Device converter now attached to ttyUSB0
[  314.825077] usbcore: registered new interface driver ftdi_sio
[  314.825079] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
</pre>
<p>I spotted the <tt>/dev/ttyUSB0</tt> and instantly thought &#8220;<tt>minicom</tt>.&#8221; It took me a while to refamiliarise myself with the program and get it to connect, but soon I had fiddled with the speed settings (reduced it to just 9600baud from 115200) and was greeted the following output on my screen:</p>
<pre style="color:green;font-weight:bold;">  _   _  ___  _  _____    _
 | \ | |/ _ \| |/ /_ _|  / \
 |  \| | | | | ' / | |  / _ \
 | |\  | |_| | . \ | | / ___ \
 |_| \_|\___/|_|\_\___/_/   \_\
 *******************************
    W3lc0m3 t0 n0k14 h4x0rb0x!
 *******************************                                               

 ? - displays help dialog                                                      

$-nokia h4x0rb0x-&gt;
</pre>
<p>Unfortunately I could not type into minicom. I experimented with the speed and parity settings some more (as they had helped before) but no use. Finally I disabled hardware <a class="zem_slink" href="http://en.wikipedia.org/wiki/Control_flow" title="Control flow" rel="wikipedia">flow control</a> and voilà I could type. Then it was simply a case of typing &#8220;?&#8221; to find out what commands were available:</p>
<pre style="color:green;font-weight:bold;">$-nokia h4x0rb0x-&gt; ?
Available commands:                                                            

 ? - prints this help dialog                                                    

 connecting &lt;argument&gt; - opens box                                              

$-nokia h4x0rb0x-&gt;
</argument></pre>
<p>And guessing what the argument to the nokia connecting command was&#8230;</p>
<pre style="color:green;font-weight:bold;">$-nokia h4x0rb0x-&gt; connecting people                                            

Initiation complete.                                                            

Start Connecting.                                                               

$-nokia h4x0rb0x-&gt;
</pre>
<div style="float:left;margin-right:10px"><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/DSCF4070.JPG"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/DSCF4070-150x150.jpg" alt="The Box Opens" title="The Box Opens" width="150" height="150" class="alignleft size-thumbnail wp-image-273"></a></div>
<p>Hardly a challenge! A nice clichéd progress bar appeared for a few seconds and then *click* the lid popped open a little. I opened it fully and was pleased to see that they had even included <a class="zem_slink" href="http://en.wikipedia.org/wiki/Dry_ice" title="Dry ice" rel="wikipedia">dry ice</a> to maximise theatrics, with the N900 packed safely waiting to be admired.</p>
<div style="float:right;margin-left:10px"><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/NokiaWinnings.jpg"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/NokiaWinnings-150x150.jpg" alt="Nokia Winnings" title="Nokia Winnings" width="150" height="150" class="alignright size-thumbnail wp-image-274"></a></div>
<p>They really put a lot of thought into this! I delved deeper and here are all of my winnings:</p>
<p>That&#8217;s: an N900 with accessories plus a butane soldering iron, sports band, cake, and a little fox figurine. </p>
<p style="clear:both;">The box itself was powered by a Roboduino Nano (which I intend to repurpose later&#8230; not sure what as yet) hooked up to a solenoid:</p>
<div style="text-align:center;"><a href="http://www.benjiegillam.com/wp-content/uploads/2009/12/20091219_001.jpg"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/12/20091219_001-300x168.jpg" alt="Internals of the indestructible box" title="Internals of the indestructible box" width="300" height="168" class="aligncenter size-medium wp-image-276"></a></div>
<p><strong>UPDATE:</strong> Techcrunch have a <a href="http://eu.techcrunch.com/2009/12/22/insane-video-of-nokia-n900-unboxing-requires-you-to-hack-into-it/trackback/">video of the opening</a> &#8211; check it out!</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/SvKL7To6VbM&#038;hl=en_GB&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/SvKL7To6VbM&#038;hl=en_GB&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<p><strong><em>Continue reading:<br />
<a href="http://www.benjiegillam.com/2009/12/n900-first-impressions/">Part 2: N900: first impressions</a><br />
Part 3: N900: a phone for hackers? (coming soon&#8230;)</em></strong></p>
<div class="zemanta-pixie" style="margin-top:10px;height:15px"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/a1ddef28-4180-4a08-bc41-36db7671a790/" title="Reblog this post [with Zemanta]"><img class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=a1ddef28-4180-4a08-bc41-36db7671a790" alt="Reblog this post [with Zemanta]" style="border:none;float:right"></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2009/12/n900-the-tale-of-the-indestructible-box/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>MythPyWii Power Update (v17)</title>
		<link>http://www.benjiegillam.com/2009/10/mythpywii-power-update-v17/</link>
		<comments>http://www.benjiegillam.com/2009/10/mythpywii-power-update-v17/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 17:37:58 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MythPyWii]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Open source]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=242</guid>
		<description><![CDATA[



Image via Wikipedia



Thanks to Matthew Zimmerman for sending me his modified version of MythPyWii, it now has power-saving &#8211; after 35 minutes of inactivity the Wiimote turns off. You can download the latest version, as always, here; or you can get this specific version (v17) here.
I love open source!

]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl class="wp-caption alignright" style="width: 282px;">
<dt class="wp-caption-dt"><a href="http://commons.wikipedia.org/wiki/Image:Myth_tv_logo.png"><img title="Myth tv logo" src="http://upload.wikimedia.org/wikipedia/commons/6/6a/Myth_tv_logo.png" alt="Myth tv logo" width="272" height="91" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a href="http://commons.wikipedia.org/wiki/Image:Myth_tv_logo.png">Wikipedia</a></dd>
</dl>
</div>
</div>
<p>Thanks to Matthew Zimmerman for sending me his modified version of MythPyWii, it now has power-saving &#8211; after 35 minutes of inactivity the Wiimote turns off. You can download the latest version, as always, <a title="Latest MythPyWii version" href="http://www.benjiegillam.com/code/myth_py_wii.py" target="_blank">here</a>; or you can get this specific version (v17) <a title="MythPyWii revision 17" href="http://www.benjiegillam.com/code/myth_py_wii.r17.py" target="_blank">here</a>.</p>
<p>I love open source!</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/422a939e-dfa7-48f3-9059-6e69acd0420a/"><img class="zemanta-pixie-img" style="border: medium none ; float: right;" src="http://img.zemanta.com/reblog_c.png?x-id=422a939e-dfa7-48f3-9059-6e69acd0420a" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2009/10/mythpywii-power-update-v17/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Arduino Pin Speed (Multiplexing)</title>
		<link>http://www.benjiegillam.com/2009/09/arduino-pin-speed-multiplexing/</link>
		<comments>http://www.benjiegillam.com/2009/09/arduino-pin-speed-multiplexing/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 21:13:57 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Binary numeral system]]></category>
		<category><![CDATA[Clock signal]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[Source code]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=224</guid>
		<description><![CDATA[I&#8217;m working on a new project, I&#8217;ve got a 8&#215;8 dual colour dot matrix display (£2.50 delivered from Earthshine Design) and I want to power it from the Arduino. One way of making a chip like that (which has 2&#215;8x8 = 128 LEDs) would be to have a common ground and an additional 128 pins [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.earthshinedesign.co.uk/index.php?route=product/product&amp;path=38_43&amp;product_id=82" target="_blank"><img class="alignright" title="8x8 dual colour dot matrix display" src="http://www.earthshinedesign.co.uk/image/cache/1425313_75-250x250.jpg" alt="" width="250" height="250" /></a>I&#8217;m working on a new project, I&#8217;ve got a <a title="8x8 dual colour dot matrix display" href="http://www.earthshinedesign.co.uk/index.php?route=product/product&amp;path=38_43&amp;product_id=82" target="_blank">8&#215;8 dual colour dot matrix display</a> (£2.50 delivered from Earthshine Design) and I want to power it from the <a class="zem_slink" title="Arduino" rel="homepage" href="http://www.arduino.cc" target="_blank">Arduino</a>. One way of making a chip like that (which has 2&#215;8x8 = 128 <a class="zem_slink" title="Light-emitting diode" rel="wikipedia" href="http://en.wikipedia.org/wiki/Light-emitting_diode" target="_blank">LEDs</a>) would be to have a common ground and an additional 128 pins &#8211; one for each LED. This, I think you&#8217;d agree, would be a nightmare, so instead they&#8217;ve basically gone for an 8&#215;16 grid for a total of 24 pins. This raises two main problems:</p>
<ol>
<li>You can&#8217;t turn 2 arbitrary LEDs on at the same time unless they are on the same row/column. (Doing so would actually draw a square of LEDs.)</li>
<li>My Arduino doesn&#8217;t have enough digital input/output pins</li>
</ol>
<p>Point 1 is easily solved &#8211; we simply update just one row at a time, letting <a href="http://en.wikipedia.org/wiki/Persistence_of_vision" target="_blank">Persistance Of Vision</a> (POV) do the hard work for us. Point 2 is the subject of this post &#8211; multiplexing, combining multiple individual signals into just one signal. I will not be using this dot matrix display in this post, instead I will simply be powering normal LEDs. I wanted to find out if the Arduino is fast enough to multiplex the data through just a few pins in order to power this display. The answer (one of my favourite answers!) is: &#8220;Yes, but not without some hacking.&#8221; Read on&#8230;</p>
<p><span id="more-224"></span></p>
<h2>The Hardware</h2>
<p>In order to get a balance between the number of pins we use for this and the speed of the output I&#8217;ve decided to use 3 data pins, each controlling 8 bits, for a total of 24 bits (the same as the number of pins on the LED component &#8211; no coincidence!) The way that I have implemented it, we also need 2 pins for clocks (one fast, one slow) &#8211; read on. The clock pins will be common to all 3 data pins, so for the rest of this post I will only detail one data pin (8 bits).</p>
<p><a href="http://www.benjiegillam.com/wp-content/uploads/2009/09/arduino-project2.JPG"><img src="http://www.benjiegillam.com/wp-content/uploads/2009/09/arduino-project2-300x155.jpg" alt="The Hardware" title="The Hardware" width="300" height="155" class="aligncenter size-medium wp-image-235" /></a></p>
<p>(Sorry about the messiness. Click for a larger picture. There is a Roboduino (Arduino compatible) board on the left, the LEDs and resistors should be fairly obvious from the photo, then there are 3 chips. From left to right they are the Darlington array, the SIPO shift register and the flip flop array (see below for all of these)).</p>
<h3>Fast clock &#8211; Shift Register</h3>
<p>We want to send the data through one pin (data line 1, DL1) to an external Serial-In Parallel-Out (SIPO) chip, also known as a <a class="zem_slink" title="Shift register" rel="wikipedia" href="http://en.wikipedia.org/wiki/Shift_register" target="_blank">shift-register</a> (I&#8217;m using a <a href="http://www.google.co.uk/search?q=M74HC164B1" target="_blank">M74HC164B1</a> octal shift register). This does exactly what it says &#8211; it takes a serial (single) input and converts it to parallel (multiple) outputs. However the chip just receives some high signals and some low signals &#8211; how should it know how many digital 1s there are in a second&#8217;s worth of high signal? This is where the fast clock (FC) comes in. FC just goes from low to high and back again for every bit of data we send through the data lines, and when it changes from low to high the SIPO chip &#8220;reads&#8221; the value of DL1 and outputs it on it&#8217;s first output pin (Pin1). The next time the SIPO chip reads from DL1, it &#8220;shifts&#8221; the value from Pin1 to the second pin (Pin2), and again stores the value of DL1 (on or off) into Pin1. This continues indefinitely, shifting the data along a pin at a time, filling up all 8 of the SIPO chip&#8217;s output pins (and forever overwriting previous data). Here&#8217;s a diagram from the datasheet:</p>
<p><img src="http://www.benjiegillam.com/wp-content/uploads/2009/09/screenshot736.png" alt="Shift Register" title="Shift Register" width="576" height="470" class="aligncenter size-full wp-image-234" /></p>
<p>Time goes from right to left (the left shows an earlier time than the right). The data is the second signal (the third can just remain high always) and the 4th signal is the clock pulse. Signals 5-12 show the state of the output pins at each point in time.</p>
<h3>Slow Clock &#8211; Flip Flop</h3>
<p>We don&#8217;t want to display this shifting data though, so we use a &#8220;<a class="zem_slink" title="Flip-flop (electronics)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Flip-flop_%28electronics%29" target="_blank">flip-flop</a>&#8221; (FF) to store the values. A flip flop can be thought of as a Serial-In Serial-Out (SISO) chip in that it takes it&#8217;s input and uses that as the output. What&#8217;s so special about it then, I hear you ask, isn&#8217;t it just a bit of wire? The &#8220;special&#8221; thing about flip flops is that they &#8220;store&#8221; this value &#8211; recording it when it receives a clock pulse, like the SIPO chip above. We&#8217;re going to use the slow clock (SC) for this purpose, because we only want to store the values once all 8 bits have been output from the SIPO chip. (The SC is triggered once every 8 FC pulses.) Doing so we wait for the SIPO chip to correctly represent the 8 bits it has been sent, and then we store these values whilst the next 8 bits are loaded. I&#8217;m using a <a href="http://www.google.co.uk/search?q=SN74HC273N" target="_blank">SN74HC273N</a> octal flip flop chip which has 8 individual flip flops in it.</p>
<h3>Boosting &#8211; Darlington array</h3>
<p>Unfortunately the flip flop chip does not supply much current &#8211; not enough to power an LED &#8211; so we need to use transistors to boost the current. I&#8217;ve used a Darlington array to boost the current in my circuit as I had one left over from a previous project (it is a <a href="http://www.google.co.uk/search?q=ULN2803A" target="_blank">ULN2803A</a>).</p>
<h3>Display</h3>
<p>I&#8217;ve displayed the output of just one of the data pins using 8 standard LEDs, each with a resistor that&#8217;s too big (didn&#8217;t have one the correct rating).</p>
<h2>The Software</h2>
<p>To test this, I decided to do some binary counting.</p>
<h3>Initial Software</h3>
<p>First I implemented my own solution, and when I turned of the debugging delays and optimized as much as I could it resulted in 2 of the LEDs (the ones signifying the most significant bits) visibly flashing, a sad result meaning that there would be visible flickering on the final display if I used this method, especially as I was outputting only 8 bits and not 24 (doing 24 would make it roughly half as fast due to the extra digitalWrite operations).</p>
<p><code class="source">
<span class="enscript-comment">// The pins I will be using:
</span><span class="enscript-type">int</span> dataPin = 10;
<span class="enscript-type">int</span> fastClockPin = 11;
<span class="enscript-type">int</span> slowClickPin = 12;
<span class="enscript-comment">// The data to display:
</span>byte count=0; 

<span class="enscript-type">void</span> <span class="enscript-function-name">setup</span>() {
  <span class="enscript-comment">// All the pins are output pins
</span>  pinMode(dataPin,OUTPUT);
  pinMode(fastClockPin, OUTPUT);
  pinMode(slowClockPin, OUTPUT);
  <span class="enscript-comment">// Reset all pins low
</span>  digitalWrite(dataPin, LOW);
  digitalWrite(fastClockPin, LOW);
  digitalWrite(slowClockPin, LOW);
}
<span class="enscript-comment">// This will pulse the fast clock pin
</span><span class="enscript-type">void</span> <span class="enscript-function-name">fastClock</span>() {
  digitalWrite(fastClockPin, HIGH);
  digitalWrite(fastClockPin, LOW);
}
<span class="enscript-comment">// This will pulse the slow clock pin
</span><span class="enscript-type">void</span> <span class="enscript-function-name">slowClock</span>() {
  digitalWrite(slowClockPin, HIGH);
  digitalWrite(slowClockPin, LOW);
}
<span class="enscript-type">void</span> <span class="enscript-function-name">loop</span>() {
  <span class="enscript-comment">// We don't want to edit count, so copy it.
</span>  byte v = count;
  <span class="enscript-type">int</span> i;
  <span class="enscript-comment">// There are 8 bits in a byte, do the following for each bit.
</span>  <span class="enscript-keyword">for</span> (i=0; i&lt;8; i++) {
    <span class="enscript-comment">// Set the data: if v modulo 2 is 1, send high, otherwise low. (v modulo 2 is the remainder when you divide v by 2)
</span>    digitalWrite(dataPin, v%2 == 1 ? HIGH : LOW);
    <span class="enscript-comment">// I've written the data, let the SIPO chip know
</span>    fastClock();
    <span class="enscript-comment">// Shift v 1 bit along, dropping the bit we just checked.
</span>    v = v &gt;&gt; 1;
  }
  <span class="enscript-comment">// All 8 bits have been output, tell the flip flops to store their current values:
</span>  slowClock();
  <span class="enscript-comment">// Increase the value of count by one
</span>  ++count;
}
</code>
</p>
<h3>Abstraction Principle</h3>
<p>Looking around at how to optimize this, I soon found that I could use a built in function shiftOut instead of my own method calling digitalWrite for every bit. I updated my code, changing 11 lines of code to just 1. This did speed it up (their <a class="zem_slink" title="Binary numeral system" rel="wikipedia" href="http://en.wikipedia.org/wiki/Binary_numeral_system" target="_blank">binary arithmetic</a> was faster than my method of the time) but not by enough &#8211; 1 LED still flashed &#8211; there would still be visible flicker. How annoying.</p>
<p><code class="source">
<span class="enscript-comment">// The pins I will be using:
</span><span class="enscript-type">int</span> dataPin = 10;
<span class="enscript-type">int</span> fastClockPin = 11;
<span class="enscript-type">int</span> slowClickPin = 12;
<span class="enscript-comment">// The data to display:
</span>byte count=0; 

<span class="enscript-type">void</span> <span class="enscript-function-name">setup</span>() {
  <span class="enscript-comment">// All the pins are output pins
</span>  pinMode(dataPin,OUTPUT);
  pinMode(fastClockPin, OUTPUT);
  pinMode(slowClockPin, OUTPUT);
  <span class="enscript-comment">// Reset all pins low
</span>  digitalWrite(dataPin, LOW);
  digitalWrite(fastClockPin, LOW);
  digitalWrite(slowClockPin, LOW);
}
<span class="enscript-comment">// REMOVED: fastClock(), because shiftOut() handles this for us.
</span>
<span class="enscript-comment">// This will pulse the slow clock pin
</span><span class="enscript-type">void</span> <span class="enscript-function-name">slowClock</span>() {
  digitalWrite(slowClockPin, HIGH);
  digitalWrite(slowClockPin, LOW);
}
<span class="enscript-type">void</span> <span class="enscript-function-name">loop</span>() {
  <span class="enscript-comment">// REMOVED: Most of the code here, shiftOut() does it all for us:
</span>  shiftOut(dataPin, fastClockPin, LSBFIRST, count);
  <span class="enscript-comment">// All 8 bits have been output, tell the flip flops to store their current values:
</span>  slowClock();
  <span class="enscript-comment">// Increase the value of count by one
</span>  ++count;
}
</code>
</p>
<h3>Digging Deeper</h3>
<p>I was a bit disappointed by this, as I knew from the last SoutHACKton meetup that on <a class="zem_slink" title="PICAXE" rel="wikipedia" href="http://en.wikipedia.org/wiki/PICAXE" target="_blank">PICAXE</a> boards you could set multiple pins at the same time. Setting just one pin at a time in Arduino seemed unnecessarily slow. I dug a bit deeper in the <a title="Arduino Extended Reference" href="http://arduino.cc/en/Reference/Extended" target="_blank">extended documentation</a>, and came across <a title="Arduino Port Manipulation" href="http://arduino.cc/en/Reference/PortManipulation" target="_blank">the Port Manipulation page</a>:</p>
<blockquote><p>You may need to be able to turn pins on and off very quickly, meaning within fractions of a microsecond. If you look at the source code in lib/targets/arduino/wiring.c, you will see that digitalRead() and digitalWrite() are each about a dozen or so lines of code, which get compiled into quite a few machine instructions. Each machine instruction requires one clock cycle at 16MHz, which can add up in time-sensitive applications. Direct port access can do the same job in a lot fewer <a class="zem_slink" title="Clock signal" rel="wikipedia" href="http://en.wikipedia.org/wiki/Clock_signal" target="_blank">clock cycles</a>.</p></blockquote>
<p>Huzzah! I can write multiple pins at once, and not only that, I can skip a lot of the clever code that the Arduino libraries come with as I&#8217;m happy making assumptions about my program&#8217;s operation. Excellent!</p>
<p>I had a look at the built in functions, and revised my binary arithmetic so that I could be as optimized as possible, and ran the code&#8230;</p>
<p><code class="source">
<span class="enscript-comment">// REMOVED: the pins (these are now implicit in the binary masks below rather than explicit as before)
</span><span class="enscript-comment">// The data to display:
</span>byte count=0;
<span class="enscript-comment">// Alternatively: unsigned int count = 0;
</span>
<span class="enscript-type">void</span> <span class="enscript-function-name">setup</span>() {
  <span class="enscript-comment">// The pins I am using are output pins: (12,11,10)
</span>  DDRB = B00011100;
  <span class="enscript-comment">// Reset all pins low:
</span>  PORTB = B00000000;
}
<span class="enscript-type">int</span> i;
<span class="enscript-type">void</span> <span class="enscript-function-name">loop</span>() {
  <span class="enscript-comment">// REMOVED: most previous code
</span>  <span class="enscript-comment">// Loop through the bits of count. (if count is an unsigned int, then use this instead:) for (i=0; i &lt; 16; i++) {
</span>  <span class="enscript-keyword">for</span> (i=0; i &lt; 8; i++) {
    <span class="enscript-comment">// Turn all clocks off, and set the data pin
</span>    PORTB = B00000000 | (!!(count &amp; (1 &lt;&lt; i)) &lt;&lt; 2);
    <span class="enscript-comment">// Leave the data pin as it is, turn on the fast clock pin, and if we're on the last bit also turn on the slow clock pin
</span>    PORTB |= B00001000 | (!!(i == 7) &lt;&lt; 4);
    <span class="enscript-comment">// If we're working with an unsigned int, then change the 7 above to a 15.
</span>  }
  <span class="enscript-comment">// Increase the value of count by one
</span>  ++count;
}
</code>
</p>
<p>... All the LEDs appeared on all the time... Either it's working perfectly or something's very wrong. Fortunately by adding a delay into the loop, I could see it was the former, and I celebrated! But just how much faster is it? I couldn't use the Arduinos internal timing, as timing it would cause it to use more processing power and thus slow down... Instead I decided to display the 8 most significant bits of a 16bit number, and see how many of those flickered. All except one flickered (not unexpected) but this meant it was significantly faster than before.</p>
<p>I timed the slowest flashing LED - one full cycle (on to off and back on again) of this 1st bit took an average of 2.2 seconds. This meant that one full cycle of the 9th bit (the one we're bothered about - the slowest of the initial 8 bits) was taking 2.2/256 = 0.0086s, or, in other words, it was running at 116Hz - good enough to not be noticeable by human perception (standard TV is 25-30 Hz). (This also means that the fastest bit is being pulsed at around 15,000Hz.) This is just 8bits, mind, not 24. Adding in the extra bits would not be too taxing on the system though - purely mathematics - as we can set all the pins in the same step. I would expect it to run all 24 bits at around 40-60Hz. </p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/20a08457-e3af-41d3-a25c-0a4b3401d280/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_c.png?x-id=20a08457-e3af-41d3-a25c-0a4b3401d280" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2009/09/arduino-pin-speed-multiplexing/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Calling All Southampton Hackers!</title>
		<link>http://www.benjiegillam.com/2009/05/calling-all-southampton-hackers/</link>
		<comments>http://www.benjiegillam.com/2009/05/calling-all-southampton-hackers/#comments</comments>
		<pubDate>Wed, 20 May 2009 09:36:48 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MythPyWii]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Personal computer]]></category>
		<category><![CDATA[Southackton]]></category>
		<category><![CDATA[Southampton]]></category>
		<category><![CDATA[Wii]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=199</guid>
		<description><![CDATA[



Image via Wikipedia




Before we start, just to be clear &#8211; this is not for crackers (people who illegally break in to computer systems) but for hackers (people who modify the software or hardware of their computer system including building, rebuilding, modifying and creating software and electronic hardware either to make it better, faster, give added [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl class="wp-caption alignright" style="width: 310px;">
<dt class="wp-caption-dt"><a href="http://commons.wikipedia.org/wiki/Image:Southampton_-_Bargate.JPG"><img title="City of Southampton" src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Southampton_-_Bargate.JPG/300px-Southampton_-_Bargate.JPG" alt="City of Southampton" width="300" height="216" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a href="http://commons.wikipedia.org/wiki/Image:Southampton_-_Bargate.JPG">Wikipedia</a></dd>
</dl>
</div>
</div>
<blockquote>
<p style="text-align: right;">Before we start, just to be clear &#8211; this is not for <a title="Crackers are Black Hat Hackers" href="http://en.wikipedia.org/wiki/Hacker_(computer_security)#Black_hat" target="_blank">crackers</a> (people who illegally break in to computer systems) but for <a title="Wikipedia Hacker (hobbyist) article" href="http://en.wikipedia.org/wiki/Hacker_(hobbyist)" target="_blank">hackers</a> (people who modify the software or hardware of their computer system including building, rebuilding, modifying and creating software and electronic hardware either to make it better, faster, give added features or to make it do something it was never intended to do).</p>
</blockquote>
<p><strong>UPDATE</strong>: we have a google group: <a title="Southackton Google Group" href="http://groups.google.com/group/southackton" target="_blank">http://groups.google.com/group/southackton</a></p>
<p>I&#8217;m intending on setting up a &#8220;<a title="Hackerspace Wikipedia Article" href="http://en.wikipedia.org/wiki/Hackerspace" target="_blank">Hackerspace</a>&#8221; in <a class="zem_slink" title="Southampton" rel="wikipedia" href="http://en.wikipedia.org/wiki/Southampton">Southampton</a> targeted around software programming (for fun) and <a class="zem_slink" title="Hacker (hobbyist)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Hacker_%28hobbyist%29">hardware hacking</a> (e.g. robotics). I anticipate that people would attend the hackerspace either with their own personal projects (such as <a title="MythPyWii" href="http://www.benjiegillam.com/mythpywii-installation/" target="_blank">controlling their television using a Wii remote</a>), or looking to join in on a cool project. The idea is that we can all share knowledge and help each other out in a fun and innovative environment.</p>
<p>I am provisionally calling this project Sout<span style="color: #ff0000;">hack</span>ton, though I expect (hope!) a better name will surface once more people are interested! If you or anyone you know is interested, please contact me via email (my name at benjiegillam.com) or by leaving a comment on this post.</p>
<p>The ultimate goal would be having an &#8220;office&#8221; somewhere in Southampton where members can drop in any time (within reason) and get to work on their project/just hang out with fellow hackers. If you work from home you could even work form the Hackerspace directly &#8211; it wouldn&#8217;t be so lonely! I am, however, expecting that we would run it as a &#8220;club&#8221; until we have enough interested members to make it feasible. Whether this club be weekly, fortnightly, monthly, or bi-monthly is a matter for interested persons to discuss &#8211; get in contact and let me know what you think!</p>
<p>As you may know if you read this blog (doubtful!), I am a great fan of <a class="zem_slink" title="Open source" rel="wikipedia" href="http://en.wikipedia.org/wiki/Open_source">open source</a>, and have been a dedicated <a class="zem_slink" title="Linux" rel="wikipedia" href="http://en.wikipedia.org/wiki/Linux">GNU/Linux</a> user for almost 10 years now, so Linux users would be cool to have as they tend to be interested in tweaking hardware/software, however everyone would be welcome independent of their choice of <a class="zem_slink" title="Operating system" rel="wikipedia" href="http://en.wikipedia.org/wiki/Operating_system">operating system</a>. Yes, that&#8217;s right &#8211; even Windows users!</p>
<p>Further, there is no required skill level. I&#8217;m happy to have people attend who want to acheive something (e.g. making a webcam recognise who is sat at the PC and change the computers background to a related picture/have their favourite teddy walk towards them) but have no idea how to go about it, so long as they are patient and willing to learn!</p>
<p>I hope you&#8217;re interested &#8211; let me know!</p>
<p><strong>UPDATE</strong>: if you&#8217;re interested, sign up to our google group: <a title="Southackton Google Group" href="http://groups.google.com/group/southackton" target="_blank">http://groups.google.com/group/southackton</a>.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/3a5211f8-7322-41da-89fa-0b90fecabf9a/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_c.png?x-id=3a5211f8-7322-41da-89fa-0b90fecabf9a" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2009/05/calling-all-southampton-hackers/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>New Year: Get Fit With GymFu!</title>
		<link>http://www.benjiegillam.com/2009/01/new-year-get-fit-with-gymfu/</link>
		<comments>http://www.benjiegillam.com/2009/01/new-year-get-fit-with-gymfu/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 14:29:18 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[AppStore]]></category>
		<category><![CDATA[GymFu]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[PushupFu]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=172</guid>
		<description><![CDATA[I had intended to get fit (and thin) before my wedding last August, however that never happened. And before I knew it it was Christmas, with all that loverly food. I&#8217;m not stupid enough to try and diet over the Christmas period! Instead, I thought, what else is the New Year for if not improving [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 210px"><a href="http://www.GymFu.com/"><img title="PushupFu" src="http://www.gymfu.com/img/helpStart.png" alt="PushupFu Demo" width="200" height="300" /></a><p class="wp-caption-text">PushupFu Demo</p></div>
<p>I had intended to get fit (and thin) before my wedding last August, however that never happened. And before I knew it it was Christmas, with all that loverly food. I&#8217;m not stupid enough to try and diet over the Christmas period! Instead, I thought, what else is the New Year for if not improving ones health?</p>
<p>My business partner <a class="zem_slink" title="Jof Arnold" rel="blog" href="http://www.brainbakery.com">Jof</a> and myself had been working on a fitness app for the iPhone, <a title="PushupFu at GymFu.com" href="http://www.GymFu.com/" target="_blank">PushupFu</a>, for a couple of months and we finally uploaded it to Apple on 23rd December. In a very generous gesture from Apple, the app was released on 1st January (or 31st December, depending where you live!) &#8211; a full week earlier than we were expecting. I find that the app definitely motivates me to do pushups when users challenge me, plus I also intend to complete the training course (should be done by May) &#8211; when I can do 100 pushups I will really feel fit! (Currently I&#8217;m still only able to do single figures, but I have only just started!)</p>
<p>So, if you feel you need to get a bit more toned this year, why not give it a go by visiting <a title="PushupFu at GymFu.com" href="http://www.GymFu.com/" target="_blank">http://www.GymFu.com/</a> ? At time of writing we have 5 reviews in the App Store, all are 5 stars, so give it a go! Check out our other reviews below:</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://uk.techcrunch.com/2009/01/02/pushupfu-turns-iphone-into-fitness-gaming-network/">PushupFu turns iPhone into fitness gaming network</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.indenialhealth.com/?p=514">PushupFu &#8211; Portable Pushup Trainer</a></li>
<li class="zemanta-article-ul-li"><a href="http://kotaku.com/5122566/iphone-game-lets-your-pecs-battle-with-push-ups">iPhone Game Lets Your Pecs Battle With Push Ups [IPhone]</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/0cf2b8c8-f36f-4744-a788-958eee3ea64e/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_c.png?x-id=0cf2b8c8-f36f-4744-a788-958eee3ea64e" alt="Reblog this post [with Zemanta]" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2009/01/new-year-get-fit-with-gymfu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Working: HDMI Audio on ATI Graphics Card</title>
		<link>http://www.benjiegillam.com/2008/10/working-hdmi-audio-on-ati-graphics-card/</link>
		<comments>http://www.benjiegillam.com/2008/10/working-hdmi-audio-on-ati-graphics-card/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 19:30:21 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Intel Corporation]]></category>
		<category><![CDATA[PulseAudio]]></category>
		<category><![CDATA[Sound card]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Video card]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=169</guid>
		<description><![CDATA[

Under Ubuntu Intrepid Ibex (should also work for Hardy Herron) with pulseaudio.
(Gfx card: ATI HD 4850)
It is a simple fix that took me ages to work out. Basically, PulseAudio does not recognize the graphics card&#8217;s sound card. To fix, we simply force it to recognize it, and remove detection  of alternatives to make it default. [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img zemanta-action-click">
<div class="wp-caption alignright" style="width: 212px"><a href="http://commons.wikipedia.org/wiki/Image:High_Definition_Multimedia_Interface_Plug.jpg"><img title="List of video connectors" src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/be/High_Definition_Multimedia_Interface_Plug.jpg/202px-High_Definition_Multimedia_Interface_Plug.jpg" alt="List of video connectors" width="202" height="96" /></a><p class="wp-caption-text">Image via Wikipedia</p></div>
</div>
<p>Under <a class="zem_slink" title="Ubuntu" rel="homepage" href="http://www.ubuntu.com/">Ubuntu Intrepid Ibex</a> (should also work for Hardy Herron) with pulseaudio.</p>
<p>(Gfx card: ATI HD 4850)</p>
<p>It is a simple fix that took me ages to work out. Basically, <a class="zem_slink" title="PulseAudio" rel="homepage" href="http://pulseaudio.org/">PulseAudio</a> does not recognize the graphics card&#8217;s sound card. To fix, we simply force it to recognize it, and remove detection  of alternatives to make it default. There is almost definitely a better way than removing the alternatives,  but *meh* it works for me.</p>
<p>First, work out which device is your correct <a class="zem_slink" title="High-Definition Multimedia Interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/High-Definition_Multimedia_Interface">HDMI</a> device (in this case, <strong>1,3</strong> as it is card <strong>1</strong>, output <strong>3</strong>):</p>
<blockquote><p>$ aplay -l<br />
**** List of PLAYBACK Hardware Devices ****<br />
card 0: Intel [HDA Intel], device 0: ALC883 Analog [ALC883 Analog]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: Intel [HDA Intel], device 1: ALC883 Digital [ALC883 Digital]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
<strong>card 1</strong>: HDMI [HDA ATI <strong>HDMI</strong>], <strong>device 3</strong>: ATI HDMI [ATI HDMI]<br />
Subdevices: 0/1<br />
Subdevice #0: subdevice #0</p></blockquote>
<p>Open up /etc/pulse/default.pa in your favourite text editor</p>
<p>Add this line just before all the #load_module lines (around line 32), replacing <strong>1,3</strong> with whatever you found above):</p>
<blockquote><p>add-autoload-sink output module-alsa-sink device=plughw:<strong>1,3</strong> rate=48000 sink_name=output</p></blockquote>
<p>Comment out the module-hal-detect section (around lines 40-47):</p>
<blockquote><p>#### Automatically load driver modules depending on the hardware available<br />
#.ifexists module-hal-detect.so<br />
#load-module module-hal-detect<br />
#.else<br />
#### Alternatively use the static hardware detection module (for systems that<br />
#### lack HAL support)<br />
#load-module module-detect<br />
#.endif</p></blockquote>
<p>Uncomment this line at the bottom of the file:</p>
<blockquote><p>set-default-sink output</p></blockquote>
<p>Save and close the file, then log out and back in again (or kilall pulseaudio &amp;&amp; pulseaudio) and, hopefully, your sound should work!</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.linux.com/feature/119926">Why you should care about PulseAudio (and how to start doing it)</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/a0afb46b-dfdd-46ea-bff6-24ff6a9c9f49/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_c.png?x-id=a0afb46b-dfdd-46ea-bff6-24ff6a9c9f49" alt="Reblog this post [with Zemanta]" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2008/10/working-hdmi-audio-on-ati-graphics-card/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>New (Minor) MythPyWii Release (r15)</title>
		<link>http://www.benjiegillam.com/2008/09/new-minor-mythpywii-release-r15/</link>
		<comments>http://www.benjiegillam.com/2008/09/new-minor-mythpywii-release-r15/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 08:08:45 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MythPyWii]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[error handling]]></category>
		<category><![CDATA[feedback]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=150</guid>
		<description><![CDATA[Image via Wikipedia 
Thanks to a heads up from Sam, I have updated the MythPyWii script with better error handling and more informative feedback messages. Hopefully now when you run the script you will know what to do! I&#8217;ve also fixed a few minor bugs in the documentation.
As always, you can download the latest version [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; float: right; display: block;"><a href="http://commons.wikipedia.org/wiki/Image:Bash_screenshot.png"><img style="border: medium none; display: block;" src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/Bash_screenshot.png/202px-Bash_screenshot.png" alt="Screenshot of a sample Bash session, taken on ..." /></a><span class="zemanta-img-attribution">Image via <a href="http://commons.wikipedia.org/wiki/Image:Bash_screenshot.png">Wikipedia</a> </span></div>
<p>Thanks to a heads up from Sam, I have updated the MythPyWii script with better error handling and more informative feedback messages. Hopefully now when you run the script you will know what to do! I&#8217;ve also fixed a few minor bugs in the documentation.</p>
<p>As always, you can download the latest version of MythPyWii <a title="MythPyWii latest version download and instructions" href="http://www.benjiegillam.com/mythpywii-installation/">here</a>.</p>
<p>I should probably make a GUI for MythPyWii at some point&#8230; though it seems a little pointless at the moment. I could allow you to change the controls to your liking, I spose&#8230;</p>
<p><strong>UPDATE</strong>: If you&#8217;re getting errors like:</p>
<blockquote><p>$ myth_py_wii.py<br />
Please open Mythfrontend and then press 1&amp;2 on the wiimote&#8230;<br />
Connected to a wiimote <img src='http://www.benjiegillam.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Logged in to MythFrontend<br />
TypeError: wmcb() takes exactly 2 arguments (3 given)<br />
TypeError: wmcb() takes exactly 2 arguments (3 given)<br />
TypeError: wmcb() takes exactly 2 arguments (3 given)<br />
TypeError: wmcb() takes exactly 2 arguments (3 given)</p></blockquote>
<p>Then you have a more up to date version of cwiid than me. The fix is simple &#8211; change line 141:<br />
def wmcb(self, messages):<br />
to:<br />
def wmcb(self, messages<strong>, timeIgnore</strong>):</p>
<p>Thanks to Mike H for pointing out this issue.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.linux.com/feature/145949">Dress up your Python scripts with EasyGui</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/cee41f52-af92-4108-aa88-c7472551c21d/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_c.png?x-id=cee41f52-af92-4108-aa88-c7472551c21d" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2008/09/new-minor-mythpywii-release-r15/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>MythPyWii Video</title>
		<link>http://www.benjiegillam.com/2008/09/mythpywii-video/</link>
		<comments>http://www.benjiegillam.com/2008/09/mythpywii-video/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 22:26:39 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MythPyWii]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[Controls]]></category>
		<category><![CDATA[Instructions]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Video editing]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=136</guid>
		<description><![CDATA[Here&#8217;s the short version:

Despite having got up at 3:30am this morning and being extremely tired, it&#8217;s been quite a good day. I finished setting up the media centre, hooked it up to the TV and got it working, sound and all. It seems the PC doesn&#8217;t run video smoothly at 1080p (not suprisingly, it was [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the short version:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/Fx8uoTlZXF0" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/Fx8uoTlZXF0"></embed></object></p>
<p>Despite having got up at 3:30am this morning and being extremely tired, it&#8217;s been quite a good day. I finished setting up the media centre, hooked it up to the TV and got it working, sound and all. It seems the PC doesn&#8217;t run video smoothly at 1080p (not suprisingly, it was bought a good few years ago on a budget, it&#8217;s an onboard graphics card too!) &#8211; but that&#8217;s OK. I dropped it down to ~720p and it seems to run great.</p>
<p>It&#8217;s completely diskless, it&#8217;s only purpose being to play MythTV videos from my main mythbackend. It might find itself playing some DVDs at some point also, we&#8217;ll see.</p>
<p>I installed <a title="MythPyWii is a wiimote interface to MythTV" href="http://www.benjiegillam.com/2008/09/mythpywii-a-wiimote-interface-to-mythtv-using-python/" target="_blank">MythPyWii</a> on it, using my new MythPyWii Install Instructions, which I wrote today and you can <a title="MythPyWii Installation Instructions Ubuntu" href="http://www.benjiegillam.com/mythpywii-installation/" target="_blank">find here</a>. (I also made a page detailing the controls, <a title="MythPyWii Controls" href="http://www.benjiegillam.com/mythpywii-2-controls/" target="_blank">here</a>. Both links can also be found in my sidebar.) Everything went smoothly, so I made the video I had been promising. This is my first time *ever* doing any video editing, and this video was all filmed in one take with no rehersals, so please bear with me! The longer version is better if you need help during the install/etc, and is linked to on the instructions page.</p>
<p>Here goes, I know it&#8217;s a bit long&#8230; perhaps I will make a scripted version sometime which is shorter:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/fqacVgG394I" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/fqacVgG394I"></embed></object></p>
<p>For anyone wondering, I used &#8220;Kino&#8221; to edit the video. It&#8217;s OK, took me a little while to figure it out. &#8220;Add text to&#8221; is a filter under FX called &#8220;Tilter&#8221; &#8211; Text fILTER, I guess&#8230; How intuitive&#8230; <img src='http://www.benjiegillam.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2008/09/mythpywii-video/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
