<?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>Silly Science</title>
	<atom:link href="http://www.silly-science.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silly-science.co.uk</link>
	<description>Electronics, Programming and Hacking About</description>
	<lastBuildDate>Sat, 17 Jul 2010 14:14:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Netgear Stora and Time Machine Setup</title>
		<link>http://www.silly-science.co.uk/2010/07/17/netgear-stora-and-time-machine-setup/</link>
		<comments>http://www.silly-science.co.uk/2010/07/17/netgear-stora-and-time-machine-setup/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 14:08:42 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[stora]]></category>
		<category><![CDATA[time machine]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=104</guid>
		<description><![CDATA[Having just got a Netgear Stora I wanted to use it as my time machine backup (I have an old ibook G4 and 10.5 so some of this may or may not work for 10.6 &#8211; i haven&#8217;t tried it!). It turns out this isn&#8217;t a simple operation (despite ease of use supposedly being a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.silly-science.co.uk/2010/07/17/netgear-stora-and-time-machine-setup/"><img class="alignleft size-thumbnail wp-image-115" title="Netgear Stora" src="http://www.silly-science.co.uk/wp-content/uploads/2010/07/netgear-stora-150x150.jpg" alt="Netgear Stora NAS box" width="150" height="150" /></a>Having just got a Netgear Stora I wanted to use it as my time machine backup (I have an old ibook G4 and 10.5 so some of this may or may not work for 10.6 &#8211; i haven&#8217;t tried it!). It turns out this isn&#8217;t a simple operation (despite ease of use supposedly being a big selling feature of the Stora&#8230;). Here are the steps I eventually worked my way through to get this working:<br />
<span id="more-104"></span><br />
<br/></p>
<ol>
<li>Enable unsupported time machine devices. In the Mac terminal type:<br />
<code>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</code></li>
<li>Enable &#8220;Computer Backups&#8221; on the Stora through the web interface &#8211; this is an option in preferences. Select a password and set the changes through &#8220;Submit&#8221;</li>
<li>Mount the share in finder by going to Finder -&gt; Go -&gt; Connect to Server. Use smb://ComputersBackup@Stora/ComputersBackup</li>
<li>Enter the password (username should be ComputersBackup)</li>
<li>Open up a terminal and create a &#8220;sparsebundle&#8221; image locally by following the steps below:
<ol>
<li> In a local directory run:<br />
<code>hdiutil create -library SPUD -size $SIZESPEC -fs HFS+ -type SPARSEBUNDLE $MACHINENAME_$MAC_ADDRESS.sparsebundle</code><br />
where <code>$SIZESPEC</code> is the size (in bytes, or suffixed with <code>g</code> or <code>t</code> for Gigabytes and Terabytes &#8211; note you can resize it later, but you can&#8217;t make it bigger than the space on your HD. <code>$MACHINENAME</code> is the &#8216;name&#8217; of your machine and <code>$MAC_ADDRESS</code> is the mac address (seen in Network Preferences) in the form <code>aabbccddeeff</code> (i.e. no colons!).</li>
<li>Copy it to your network drive by typing<br />
<code>cp -r $MACHINENAME_$MAC_ADDRESS.sparsebundle /Volumes/ComputersBackup\$/</code><br />
you can now delete the local .sparsebundle file</li>
<li>Resize to the size of backup you want by running the following command on the network mount:<br />
<code>hdiutil resize -size $SIZEg $MACHINENAME_$MAC_ADDRESS.sparsebundle</code><br />
where <code>$SIZE</code> is the size in GB (note the <code>g</code> after the size number</li>
<li>Load up time machine and select the ComputersBackup mount for backup. It should now detect the image and start backing up to it, using only the size of image that you have created (e.g. 200GB, rather than filling the entire drive!)</li>
</ol>
</li>
<li>Pat yourself on the back get a cup of tea which it backs up and wonder why it wasn&#8217;t easier!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/07/17/netgear-stora-and-time-machine-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Workbench Logic Sniffer First Impressions</title>
		<link>http://www.silly-science.co.uk/2010/05/15/open-workbench-logic-sniffer-first-impressions/</link>
		<comments>http://www.silly-science.co.uk/2010/05/15/open-workbench-logic-sniffer-first-impressions/#comments</comments>
		<pubDate>Sat, 15 May 2010 21:56:06 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Other Peoples Projects]]></category>
		<category><![CDATA[fpga]]></category>
		<category><![CDATA[open source hardware]]></category>
		<category><![CDATA[open workbench logic sniffer]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[spartan]]></category>
		<category><![CDATA[xc-3]]></category>
		<category><![CDATA[xilinx]]></category>
		<category><![CDATA[xmos]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=92</guid>
		<description><![CDATA[A while ago I spotted the Open Workbench Logic Sniffer on Hackaday. A logic sniffer . analyser is a useful tool have around the place and at ~$50 with some flying leads to make it up to the free shipping threshold. Seeing as it arrived the other day I thought I would share my first [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/05/sniffer_LRG.jpg"><img class="alignleft size-medium wp-image-93" title="Open Workbench Logic Sniffer" src="http://www.silly-science.co.uk/wp-content/uploads/2010/05/sniffer_LRG-300x225.jpg" alt="Open Workbench Logic Sniffer Board Photo" width="300" height="225" /></a> A while ago I spotted the Open Workbench Logic Sniffer on Hackaday. A logic sniffer . analyser is a useful tool have around the place and at ~$50 with some flying leads to make it up to the free shipping threshold. Seeing as it arrived the other day I thought I would share my first impressions of it&#8230;</p>
<p><span id="more-92"></span></p>
<p><strong>The Board</strong></p>
<p>The system comes shipped as a bare board &#8211; so I need to get some self adhesive rubber feet for it really &#8211; I will also keep my eye out for a potential case as well.</p>
<p>The main components is a Xilinx Spartan FPGA. The whole thing is based on the <a title="SUMP FPGA Logica Analyzer" href="http://www.sump.org/projects/analyzer/">SUMP FPGA base logic analyser</a> &#8211; so no big surprises that this is the main work horse!</p>
<p>It also has a Microchip 18F24 which looks like it is handling the USB interface.</p>
<p>The board also has several non-populated through hole headers which are for PIC ICSP, FPGA JTAG and some kind of expansion pins (as well as a set of four labelled TRG1 CK1 TRG0 and CK0). There is also a populated set of ROM ISP headers and what looks like some UART pin headers.</p>
<p>Alongside all this we have a number of indicator LEDs for ARM, Trigger, Power and USB Activity. Also some buttons for update and reset actions.</p>
<p>At the end of the board we have the analyser bus. This has a GND connection at both ends and 16 signals available for connecting flying leads to. The signals are fed into a <a title="LCX16245 Low voltage bidirectonal buffer" href="http://www.fairchildsemi.com/ds/74/74LCX16245.pdf" target="_blank">LCX16245</a> &#8211; which is a low voltage bidirectional buffer (so in theory the FPGA could drive the the signals out if you wanted to re-purpose the board!)</p>
<p>Anyway, for more detailed information on the project see the <a title="Logic Sniffer Gadget Factory page" href="http://www.gadgetfactory.net/gf/project/butterflylogic/" target="_blank">Gadget Factory page</a> &#8211; this has the <a title="Open Workbench Logic Sniffer User Guide" href="http://dangerousprototypes.com/2010/02/25/prototype-open-logic-sniffer-logic-analyzer-2/" target="_blank">user guide</a>, schematics, board design and software on it as well as installation videos and a video tutorial on UART analysis (something I will be trying soon!).</p>
<p><strong>Installation</strong></p>
<p>Once I had dug out a USB A to Mini-B cable and downloaded the software I was set to go. I had tried getting it to run on Linux (Ubuntu 10.04), but I gave up after about 20 minutes of fiddling and getting nowhere and decided to revert to good old windows XP &#8211; so if anyone has any easy to follow instructions on that one let me know!</p>
<p>After extracting the archives I plugged in the device, at which point windows requests a driver. Find the inf folder from the OpenLogic binaries archive, select that and the correct driver will be installed. This creates a virtual COM port. The number of the COM port can be found in the Device Manager (it is the one with Manufacturer = &#8220;Microchip Technology, Inc.&#8221; and Location = &#8220;Location 0 (CDC RS-232 Emulation Demo)&#8221;).</p>
<p>Once this is installed run the OB_Logic_Sniffer.exe file and you get the client.</p>
<p>Select Device -&gt; Capture and you get the Capture setup menu. This enables you to setup triggers, sampling rate and recording size.</p>
<p><strong>Testing</strong></p>
<p>To test it I grabbed my XMOS XC-3 and connected 8 of the the lines to the GPIO port (XS1_PORT_8C on Core 0). I wrote a simple XC program to simply count up in a sequence continuously in a loop at 25Mhz. Here is the setup I used for testing.</p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/05/DSC04907.jpg"><img class="aligncenter size-medium wp-image-96" title="Open Workbench Logic Sniffer Test Setup" src="http://www.silly-science.co.uk/wp-content/uploads/2010/05/DSC04907-300x200.jpg" alt="Open Workbench Logic Sniffer connected to XC-3 GPIO port" width="300" height="200" /></a></p>
<p>After fiddling around wondering why Bank 1 wasn&#8217;t working, I enabled all the banks and discovered that the signals were on bank 3 (channels 16 -24). I have no idea why this is&#8230; but hey ho. It is working and the output is below.</p>
<p style="text-align: center;"><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/05/capture.png"><img class="aligncenter size-large wp-image-94" title="First Logic Sniffer Capture" src="http://www.silly-science.co.uk/wp-content/uploads/2010/05/capture-1024x240.png" alt="First Logic Sniffer Capture Showing Binary Counting Sequence" width="1024" height="240" /></a></p>
<p style="text-align: left;"><strong>Conclusion</strong></p>
<p style="text-align: left;">Overall this has the all the makings of a strong tool. It is very affordable @ $45 shipped (available from <a title="Seeed Studio Open Workbench Logic Sniffer" href="http://www.seeedstudio.com/depot/open-workbench-logic-sniffer-p-612.html?cPath=61_68" target="_blank">Seeed Studio</a>) and 16/32 channels of logic analyser @ 100MSPS is certainly not to be sniffed at.</p>
<p style="text-align: left;">Quality of the software is one of the most important things in a logic analyser as without good analysis software they are a waste of time. The Logic Sniffer doesn&#8217;t disappoint in this area- It has the capabilities to do simple single trigger or a complex 4 stage triggering and the analyser Java based client is easy and intuitive to use. While basic in the professional logic analyser world they are pretty good for most peoples needs. Extension of the triggering modes would be well worth the development time. Also simple improvements such as the ability to type in Hex values would be nice, rather than having to build a trigger mask with tick boxes.</p>
<p style="text-align: left;">Alongside the triggering features is the systems ability to analyse SPI, I2C and UART signals. Expanding this protocol analysis is something that should be actively worked on, though it has a good base (these features will hopefully be subject to another review at a later date).</p>
<p style="text-align: left;">However, the project in its entirety is currently it is a little rough around the edges. A couple of pointers for simple improvements would be:</p>
<ul>
<li>an integrated installer &#8211; especially the windows stuff. It&#8217;s a small point, but they aren&#8217;t hard to make and it makes the whole software installation process a lot less painful (rather than downloading two zips and having to extract them!)</li>
<li>a simpler firmware upgrade process ( i.e. more integrated PC side software) &#8211; the current one looks fairly daunting (even for someone like me who is a relatively experienced user of embedded hardware).</li>
</ul>
<p style="text-align: left;"><em>Over all, as an open source hacking tool, I would give this project 8/10, a few minor improvements would push it up. Open source hardware like this can be functionally good, but is often let down by the lack of polish in the user experience.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/05/15/open-workbench-logic-sniffer-first-impressions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microchip Development Kit &amp; Programmer for Sale! (SOLD)</title>
		<link>http://www.silly-science.co.uk/2010/04/04/microchip-development-kit-programmer-for-sale/</link>
		<comments>http://www.silly-science.co.uk/2010/04/04/microchip-development-kit-programmer-for-sale/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 18:50:58 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[For Sale]]></category>
		<category><![CDATA[ebay]]></category>
		<category><![CDATA[microchip]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=79</guid>
		<description><![CDATA[As I no longer have any need for them I dug out my EasydsPIC4 and Microchip ICD2 (In Circuit Debugger) the other day and they have made their way to ebay. You can get the EasydsPIC4 development board/kit here SOLD and the Microchip In Circuit Debugger (ICD) 2 here SOLD. More info after the break&#8230; MikroElektronika [...]]]></description>
			<content:encoded><![CDATA[<p>As I no longer have any need for them I dug out my EasydsPIC4 and Microchip ICD2 (In Circuit Debugger) the other day and they have made their way to ebay. You can get the <del><a title="EasydsPIC4 development board for sale" href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=170468226066" target="_blank">EasydsPIC4 development board/kit here</a></del> SOLD and the <del datetime="2010-04-07T20:52:44+00:00"><a title="Microchip ICD2 for sale" href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=170468225990" target="_blank">Microchip In Circuit Debugger (ICD) 2 here</a></del> SOLD. More info after the break&#8230;</p>
<p><span id="more-79"></span><br />
<strong><a title="EasydsPIC4 Microchip PIC development board" href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=170468226066" target="_blank"> MikroElektronika EasydsPIC4 Development Kit / Board for Microchip PIC devices</a></strong></p>
<p><strong>Included in this sale -</strong></p>
<ul>
<li>EasydsPIC4 Development kit/board</li>
<li>USB cable (board is USB powered)</li>
<li>&#8216;Easy Connect&#8217; expander</li>
<li>2 x 16 Character LCD (white on blue)</li>
<li>DIP devices -
<ul>
<li>2 x dsPIC30F4013 30I/P</li>
<li>3 x 16F818 I/P</li>
<li>3 x 16F872 I/SP</li>
<li>2 x 16F72 I/SP</li>
<li>1 x 16F84A 04/P</li>
</ul>
</li>
</ul>
<p>This board is in excellent condition and was used only for a short project I was involved with &#8211; new this board retails at $129.</p>
<p>It is a comprehensive development kit/board that allows simple development of Microchip PIC applications across a variety of devices.</p>
<p>It has everything you need for almost any project &#8211; character display, RS232 level shift/connector, ADC Vref, expansion ports, LEDs, keypad, integrated debug and programming.</p>
<p>More pictures and specific information (including manual and documentation downloads) can be found at here</p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/04/easydsPic4.jpg"><img class="aligncenter size-medium wp-image-81" title="EasydsPIC4 Development board" src="http://www.silly-science.co.uk/wp-content/uploads/2010/04/easydsPic4-300x200.jpg" alt="EasydsPIC4 Development board" width="300" height="200" /></a></p>
<p><strong>SOLD</strong> <strong><del><a title="Microchip ICD 2 for sale" href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=170468225990" target="_blank">Microchip In Circuit Debugger (ICD 2)</a></del></strong><br />
<strong> Summary -</strong></p>
<ul>
<li><del datetime="2010-04-07T20:52:44+00:00">1 x Microchip ICD 2 device</del></li>
<li><del datetime="2010-04-07T20:52:44+00:00">1 x USB Cable</del></li>
<li><del datetime="2010-04-07T20:52:44+00:00">1 x Standard &#8216;phone&#8217; ICD connection cable</del></li>
</ul>
<p><del datetime="2010-04-07T20:52:44+00:00">This item is in <em>excellent condition</em></del>.</p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/04/MicrochipICD.jpg"><img class="aligncenter size-medium wp-image-80" title="Microchip ICD" src="http://www.silly-science.co.uk/wp-content/uploads/2010/04/MicrochipICD-300x200.jpg" alt="Microchip ICD" width="300" height="200" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/04/04/microchip-development-kit-programmer-for-sale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clock Faces</title>
		<link>http://www.silly-science.co.uk/2010/03/20/clock-faces/</link>
		<comments>http://www.silly-science.co.uk/2010/03/20/clock-faces/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 11:37:13 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Jiggery Pokery]]></category>
		<category><![CDATA[clocks]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[samurize]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=75</guid>
		<description><![CDATA[After spending a bit of time playing with Conky I wondered if there was a Windows option. Turns out there is &#8211; it is called Samurize and it comes with a functional GUI editor to make all your system monitors very easily. At the moment I have quite a fascination with the clock style meters. A picture [...]]]></description>
			<content:encoded><![CDATA[<p>After spending a bit of time playing with <a title="Conky - a linux system monitor" href="http://conky.sourceforge.net/" target="_blank">Conky</a> I wondered if there was a Windows option. Turns out there is &#8211; it is called <a title="Samurize system monitor" href="http://www.samurize.com">Samurize</a> and it comes with a functional GUI editor to make all your system monitors very easily. At the moment I have quite a fascination with the clock style meters. A picture of my configuration is below and you can get the <a title="Clocks samurize configuration file" href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/clocks.zip">clock meter configuration from here</a>.</p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/clocks_samurize.png"><img class="aligncenter size-medium wp-image-74" title="Clock Faces" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/clocks_samurize-300x225.png" alt="Samurize Clock faces" width="300" height="225" /></a>The bottom left circles show my hard disk usage (top circles) and my network rx/tx. The ones above that show CPU0 and CPU1 and also RAM usage.</p>
<p>The big one in the middle is a clock that ticks round with seconds, minutes, hours, day, month working from the outside in.</p>
<p>It&#8217;s quite a nice funky addition to my desktop. I like it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/03/20/clock-faces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Powermeter</title>
		<link>http://www.silly-science.co.uk/2010/03/05/google-powermeter/</link>
		<comments>http://www.silly-science.co.uk/2010/03/05/google-powermeter/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 23:57:21 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Energy Monitoring]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=69</guid>
		<description><![CDATA[A post on hackaday alerted me to google power meter and them releasing their new powermeter API. This looks pretty cool- especially for my energy monitoring project! Taking a look at the more detailed information it looks like Google have some pretty interesting requirements for devices: Have to be able to do HTTPS (so need SSL) [...]]]></description>
			<content:encoded><![CDATA[<p>A post on <a title="Hackaday Google Powermeter Announcement" href="http://hackaday.com/2010/03/04/google-unveils-api-to-powermeter/" target="_blank">hackaday alerted me to google power meter</a> and them releasing their <a title="Google Powermeter API release" href="http://blog.google.org/2010/03/google-powermeter-api-introduced-for.html" target="_blank">new powermeter API</a>. This looks pretty cool- especially for my energy monitoring project!</p>
<p>Taking a look at the <a title="Google powermeter getting started" href="http://code.google.com/apis/powermeter/docs/getting_started.html" target="_blank">more detailed information</a> it looks like Google have some pretty interesting requirements for devices:</p>
<ul>
<li>Have to be able to do HTTPS (so need SSL)</li>
<li>Have to have a webserver on the device (for configuration etc)</li>
</ul>
<p>SSL is going to be the biggest challenge if we choose to go down this route. Once we have SSL the rest should be pretty easy. The concern with the SSL is the size of the stack and whether one can be implemented and fitted on an XMOS core.</p>
<p>Thankfully Google provide some <a title="Google power meter libraries" href="http://code.google.com/apis/powermeter/docs/powermeter_libraries.html" target="_blank">libraries for the power meter implementation</a> of their API which might go a long way to providing an initial solution &#8211; again this is going to need to be ported to whichever TCP/IP stack is used and what SSL stack is used. The current C implementation is specifically tailored for Microchip PIC libraries&#8230; so to work I guess!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/03/05/google-powermeter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Energy Monitor &#8211; part 2</title>
		<link>http://www.silly-science.co.uk/2010/03/05/energy-monitor-part-2/</link>
		<comments>http://www.silly-science.co.uk/2010/03/05/energy-monitor-part-2/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 00:04:41 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Energy Monitoring]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[energy monitoring]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[uart]]></category>
		<category><![CDATA[xc-3]]></category>
		<category><![CDATA[xmos]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=47</guid>
		<description><![CDATA[So, now I hopefully(!) have my cable which will give me access to the UART RX of the CC128 energy monitor. Time to try it out and begin processing some data with it! Firstly, I go to the XMOS website and get the UART code and play around with it to create the UART code [...]]]></description>
			<content:encoded><![CDATA[<p>So, now I hopefully(!) have my cable which will give me access to the UART RX of the CC128 energy monitor. Time to try it out and begin processing some data with it!</p>
<p>Firstly, I go to the <a title="XMOS 2 thread UART code" href="http://www.xmos.com/applications/comms/uart-two-threads" target="_blank">XMOS website and get the UART code</a> and play around with it to create the UART code I want (RX only at the moment), compile it and give it a run.</p>
<p>But it&#8217;s never that simple! All I get are null characters. Odd I think &#8211; so I recheck the wiring, recheck the code. All seems to be ok.<br />
<span id="more-47"></span><br />
So I strip down the code to a really simple function- one that just receives a character and prints it out (see the <a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/super_simple_uart_rx.xc">Super Simple UART receive function</a> source file)</p>
<p>I still get null characters &#8211; maybe I got the wrong pins? Check again&#8230; nope, seems fine. So I decide its time to void the warranty (follow these <a title="Current Cost 'Envi' CC128 teardown" href="http://www.silly-science.co.uk/2010/03/04/current-cost-envi-cc128-teardown/" target="_blank">CC128 teardown instructions</a> at your own risk!).</p>
<p>Turns out there is a bit of solder between a via into the ground plane and the UART TX pin on the RJ45 connector (pin 8). After removing this I connected the XC-3 back up to the device and wah lah- it gives me the first character (a &#8216;&lt;&#8217;) of the XML data string.</p>
<p>Now to get the whole string out &#8211; so off I go to re-implement the more complex UART code.</p>
<p>After some battling I got it running!</p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/uart_working.jpg"><img class="aligncenter size-medium wp-image-65" title="UART Data RX working" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/uart_working-300x187.jpg" alt="UART Data RX working" width="300" height="187" /></a>The output looks like the following is in line with the <a title="CC128 Energy Monitor XML Documentation" href="http://www.currentcost.com/cc128/xml.htm" target="_blank">CC128 XML documentation</a>.</p>
<p>Next time&#8230; parse the XML and output to somewhere a little more useful!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/03/05/energy-monitor-part-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Current Cost &#8216;Envi&#8217; CC128 Teardown</title>
		<link>http://www.silly-science.co.uk/2010/03/04/current-cost-envi-cc128-teardown/</link>
		<comments>http://www.silly-science.co.uk/2010/03/04/current-cost-envi-cc128-teardown/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 22:11:30 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Energy Monitoring]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Teardown]]></category>
		<category><![CDATA[cc128]]></category>
		<category><![CDATA[current cost]]></category>
		<category><![CDATA[energy monitor]]></category>
		<category><![CDATA[envi]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=56</guid>
		<description><![CDATA[The &#8220;Thats the warranty gone&#8230;&#8221; aka as a &#8216;teardown&#8217; post! With the UART TX not working properly I was forced to open it up&#8230; so here is a bit of analysis and some photos of what is inside for the curious! The device is pretty easy to open up &#8211; there are 3 clips down [...]]]></description>
			<content:encoded><![CDATA[<p>The &#8220;Thats the warranty gone&#8230;&#8221; aka as a &#8216;teardown&#8217; post!</p>
<p>With the UART TX not working properly I was forced to open it up&#8230; so here is a bit of analysis and some photos of what is inside for the curious!</p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04891_small.jpg"><img class="aligncenter size-medium wp-image-53" title="CC128 Board Back" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04891_small-300x200.jpg" alt="CC128 Board Back" width="300" height="200" /></a></p>
<p><span id="more-56"></span></p>
<p>The device is pretty easy to open up &#8211; there are 3 clips down each  side of the plastic case. Once those are popped out the front of the unit comes away with the board firmly attached to it. Above is the photo of the board after opening it initially.</p>
<p>This shows a PIC microcontroller (18F85J90) . There is also a receiver module on the board &#8211; most likely a ZigBee unit (Current Cost have a Zigbee logo on their website!) . Apart from that there is just the power regulator (a tiny thing on next to the power plug).</p>
<p>It is also interesting to  note that there is a set of footprints that are unpopulated that look like they should be for a transmitter (the big clue is the ANT pad!). This might be the same zigbee configuration, but made up of discrete components as the circuit layout (particularly the LC filter arrangement connected to the antenna!) are remarkably similar. Also, the box is marked RX1 as is the Zigbee module. Maybe this is done as a cost reduction option if the separate modules weren&#8217;t cheap enough or available?</p>
<p>The rest of the IC&#8217;s look like memory &#8211; so nothing too exciting there.</p>
<p>So to the other side of the board is basically componentless &#8211; apart from the LED and the contacts for the display (massive IO hog!) and the buttons.</p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04892_small.jpg"><img class="aligncenter size-medium wp-image-54" title="CC128 Board Front" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04892_small-300x200.jpg" alt="CC128 Board Front" width="300" height="200" /></a></p>
<p>What I did confirm is that the following pins are connected on the RJ45 (there are some others, but I couldn&#8217;t be bothered to put the effort in at this stage to get the data sheet out for the PIC and work out where they were going!):</p>
<ul>
<li>pin 1 is the unregulated +3V from the power unit</li>
<li>pin 4 goes into the GND plane</li>
<li>pins 7 and 8 are RX and TX</li>
</ul>
<p>What was particularly annoying was the solder bridge (blob really!) I located between pin 8 and the via near it. This explained the 0&#8242;s I was getting on my data line!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/03/04/current-cost-envi-cc128-teardown/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Energy Monitor &#8211; Part 1</title>
		<link>http://www.silly-science.co.uk/2010/03/03/energy-monitor-part-1/</link>
		<comments>http://www.silly-science.co.uk/2010/03/03/energy-monitor-part-1/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 23:20:59 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Energy Monitoring]]></category>
		<category><![CDATA[energy monitoring]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[soldering]]></category>
		<category><![CDATA[xc-3]]></category>
		<category><![CDATA[xmos]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=37</guid>
		<description><![CDATA[My energy monitor arrived today! It&#8217;s working well &#8211; I was slightly worried about how good the reception would be for the transmitter, but I am pleasantly surprised that even with the receiver 3 floors above the transmitter it seems to register a good signal. But that&#8217;s boring &#8211; time to start hacking! So, first thing [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04890_small.jpg"><img class="alignright size-medium wp-image-38" title="Energy Monitor Display" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04890_small-213x300.jpg" alt="Energy Monitor Display" width="149" height="210" /></a>My energy monitor arrived today! It&#8217;s working well &#8211; I was slightly worried about how good the reception would be for the transmitter, but I am pleasantly surprised that even with the receiver 3 floors above the transmitter it seems to register a good signal.</p>
<p>But that&#8217;s boring &#8211; time to start hacking!</p>
<p>So, first thing I need is the interface cable. The back of the unit has a handy RJ45 connector that has serial in it (see my <a title="Energy Monitoring Ideas post" href="http://www.silly-science.co.uk/2010/02/25/energy-monitoring/" target="_blank">initial energy monitoring post</a>). This needs connecting to my XC-3 kit so that I can begin to get the data out of it. So time to get the soldering iron out!</p>
<p><span id="more-37"></span>So, initially all I need are two wires from the RJ45 network cable (standard network wiring configuration)-</p>
<ul>
<li>Brown = the UART transmit (from the energy monitor)</li>
<li>Blue = ground</li>
</ul>
<p>I soldered the rest of them onto the strip board in case I wish to use them later and it keeps things neat and tidy.</p>
<p>For the moment I am using the the GPIO port on the XC-3, using pin 1 for a 1 bit port (XCore UART RX) and pin 16 is ground. This should give a good base from which to work. Eventually I would like to put it on the LED connectors to keep the GPIO free. The other bonus of using the LED connector is that the output side is buffered up to 5V which is what the UART on the energy monitor needs &#8211; though I think I will have a check of the Microchip PIC they use inside and see if it will take 3.3V logic levels.</p>
<p>Next time&#8230; getting data into the XC-3</p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04887_small.jpg"><img class="aligncenter size-medium wp-image-39" title="XC-3 and the connection strip board" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04887_small-300x200.jpg" alt="XC-3 and the connection board" width="300" height="200" /></a></p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04888_small.jpg"><img class="aligncenter size-medium wp-image-40" title="Stripboard &quot;Connector&quot;" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04888_small-300x200.jpg" alt="Stripboard &quot;Connector&quot;" width="300" height="200" /></a></p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04889_small.jpg"><img class="aligncenter size-medium wp-image-41" title="XC-3 Connection" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04889_small-300x200.jpg" alt="XC-3 Connection" width="300" height="200" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/03/03/energy-monitor-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Energy Monitoring</title>
		<link>http://www.silly-science.co.uk/2010/02/25/energy-monitoring/</link>
		<comments>http://www.silly-science.co.uk/2010/02/25/energy-monitoring/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 11:37:45 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Energy Monitoring]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[energy monitoring]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[xc-2]]></category>
		<category><![CDATA[xc-3]]></category>
		<category><![CDATA[xmos]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=30</guid>
		<description><![CDATA[Was at a friends today and he showed me an energy monitor that he had bought and was using to monitor his electricity supply. I was like &#8220;hmm&#8230; this could be something fun to attach to an XCore and get some graphs out of&#8221;. My thought is to use my XC-3 (or maybe get an [...]]]></description>
			<content:encoded><![CDATA[<p>Was at a friends today and he showed me an energy monitor that he had bought and was using to monitor his electricity supply. I was like &#8220;hmm&#8230; this could be something fun to attach to an XCore and get some graphs out of&#8221;.</p>
<p>My thought is to use my XC-3 (or maybe get an XC-2) to connect to an energy monitor receiver &#8211; or hack/make a receiver and then push the data somewhere useful via Ethernet. In fact I could combine it with my <a title="Silly Science Embedded Traffice Monitor" href="http://www.silly-science.co.uk/2009/12/21/embedded-traffic-monitor/" target="_blank">network monitor</a>, ditch the screen and have it push the all the different types of data out into some nice pretty graphs. Anyway, enough brain dump &#8211; onto the hardware!</p>
<p><span id="more-30"></span></p>
<p>My proposal is to use a <a title="Current Cost Envi 128" href="http://www.currentcost.com/product-cc128.html" target="_blank">Current Cost Envi (CC128)</a> device. There is a helpful <a title="dale lane CC128 Envi write up" href="http://dalelane.co.uk/blog/?p=389" target="_blank">CC128 write up from dale lane</a>. It has several nice features:</p>
<ol>
<li>The receiver has a RS232 output</li>
<li>The receiver outputs XML from the RS232</li>
<li>The system has support for up to 9 individual appliance monitoring (IAMs)</li>
</ol>
<p>Some thoughts on software/graphing features:</p>
<ul>
<li>Display a comprehensive history (device can output real-time, or 2hr block data)</li>
<li>Calculate some averages (particularly for time of day, month, season)</li>
<li>Plot electricity use vs. temperature? &#8211; the relationship should be pretty obvious&#8230; but I like pretty graphs</li>
<li>Plot the electricity generation stats and calculate my carbon footprint (ooh err!) &#8211; see <a title="Amee electricity generation stats" href="http://wiki.amee.com/index.php/Real_Time_Electricity#UK_National_Grid_Data_and_RealtimeCarbon.org" target="_blank">Amee</a></li>
</ul>
<p>Could even add some<a title="X10 PLC interface" href="http://www.uk-automation.co.uk/marmitek-x10-twoway-plc-interface-xm10-ttlcmos-interface-p-1349.html" target="_blank"> X10 stuff in there</a> to&#8230; the possibilities are endless &#8211; watch this space!</p>
<p>Update: <a title="CC128 Connector pinout" href="http://www.techtoniq.com/forum/viewtopic.php?f=5&amp;t=385" target="_blank">CC128 connector pinout</a>- looks like you might be able to reprogram the internal PIC as well!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/02/25/energy-monitoring/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Lasers and Submarines</title>
		<link>http://www.silly-science.co.uk/2010/02/20/lasers-and-submarines/</link>
		<comments>http://www.silly-science.co.uk/2010/02/20/lasers-and-submarines/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 16:45:22 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Other Peoples Projects]]></category>
		<category><![CDATA[lasers]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[underwater]]></category>
		<category><![CDATA[xk-1]]></category>
		<category><![CDATA[xmos]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=25</guid>
		<description><![CDATA[Over the last few weeks I have come across some nice XMOS based projects: 1) Laser Cutter Not massively complex in terms of software &#8211; but a pretty cool outcome. UART in &#8211; granite engravings out! Nice&#8230; Maybe an ethernet interface with a web client to upload images into it could come next&#8230; laser engraver [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last few weeks I have come across some nice XMOS based projects:</p>
<p>1) <a title="XMOS CNC Laser Cutter" href="http://www.buildlog.net/cnc_laser/xmos_controller.html" target="_blank">Laser Cutter</a></p>
<p>Not massively complex in terms of software &#8211; but a pretty cool outcome. UART in &#8211; granite engravings out! Nice&#8230; Maybe an ethernet interface with a web client to upload images into it could come next&#8230;<a title="XMOS laser engraver source code" href="http://github.com/bdring/XMOS_ctrl" target="_blank"> laser engraver source code here</a></p>
<p>2) <a title="Aquatic Bot Explorer" href="http://letsmakerobots.com/node/17222" target="_blank">Aquatic Bot Explorer (ABE)</a></p>
<blockquote><p>The main purpose of the project it&#8217;s to create an autonomus vehicle to explore lakes and reefs. Aquatic Bot Explorer (ABE) its based on a ROV (Remotely Operated underwater Vehicles ) and AUV (Autonomus Underwater Vehicles ) class robots.<br />
This bot it&#8217;s powered by an XK-1 processor by XMOS, several boards for sensing: pressure, temperature, depth, etc. Motor control, demux, ADC, etc. are developed.</p></blockquote>
<p>Looks pretty cool&#8230; can&#8217;t wait to see what it turns up from the depths!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/02/20/lasers-and-submarines/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
