<?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>UnOp &#187; Hardware</title>
	<atom:link href="http://unop.co.uk/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://unop.co.uk</link>
	<description>Code and stuff from James Singleton</description>
	<lastBuildDate>Mon, 22 Jul 2013 13:13:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6.1</generator>
		<item>
		<title>Raspberry Pi Electricity Monitor</title>
		<link>http://unop.co.uk/dev/raspberry-pi-electricity-monitor/</link>
		<comments>http://unop.co.uk/dev/raspberry-pi-electricity-monitor/#comments</comments>
		<pubDate>Sun, 03 Mar 2013 10:54:21 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://unop.co.uk/?p=289</guid>
		<description><![CDATA[FORTH UPDATE: I gave a talk on this project at HN London. Here is the video: THIRD UPDATE: I gave a talk on this project at HN London. Here are the slides: SECOND UPDATE: I won a competition with this project: http://www.raspberrypi.org/archives/3562 UPDATE: Interactive example graphs now at jpsingleton.github.com. I&#8217;ve built a system for monitoring [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>FORTH UPDATE:</strong> I gave a talk on this project at HN London. Here is the video:<br />
<iframe src="http://player.vimeo.com/video/70302483" width="591" height="335" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>
<p><strong>THIRD UPDATE:</strong> I gave a talk on this project at HN London. Here are the slides:<br />
<script class="speakerdeck-embed" type="text/javascript" src="//speakerdeck.com/assets/embed.js" async="" data-id="fab20690cc990130561a36533a989440" data-ratio="1.33507170795306"></script></p>
<p><strong>SECOND UPDATE</strong>: I won a competition with this project: <a href="http://www.raspberrypi.org/archives/3562">http://www.raspberrypi.org/archives/3562</a></p>
<p><strong>UPDATE</strong>: Interactive example graphs now at <a title="Example graphs" href="http://jpsingleton.github.com/" target="_blank">jpsingleton.github.com</a>.</p>
<p>I&#8217;ve built a system for monitoring the electricity consumption of my home with a Raspberry Pi.</p>
<p>I bought a wireless electricity monitor from Maplin. It&#8217;s one of the standard affairs which has a transmitter with a current clamp that you put around the main in-feed and a portable display unit. However, this unit has a serial connection (accessible via an RJ45 socket) which allows you to download live and historic data to a PC.</p>
<p>There are limitations though; the on-board memory only stores daily totals and the windows software that comes with it is awful. So I reverse engineered the communication protocol and built my own logger. A Raspberry Pi was a great choice for the host machine as it would be far too ironic to leave a power hungry PC on to monitor electricity consumption. I have a plug in power meter and have measured the draw of the whole system as negligible (barely a few watts). Here is the whole system (the Pi and receiver obviously don&#8217;t always have to be next to the transmitter). The cable was excessively long so I shortened it by crimping on a new plug.</p>
<div id="attachment_295" class="wp-caption aligncenter" style="width: 310px"><a href="http://unop.co.uk/wp-content/uploads/2013/01/7.jpg"><img class="size-medium wp-image-295" alt="Pi power" src="http://unop.co.uk/wp-content/uploads/2013/01/7-300x131.jpg" width="300" height="131" /></a><p class="wp-caption-text">The Pi power monitoring system</p></div>
<p>Parts list (hardware):</p>
<ul>
<li>Maplin wireless electricity monitor</li>
<li>Raspberry Pi</li>
<li>Micro USB power supply</li>
<li>SD card (mine is 32GB high speed but 2GB would be fine)</li>
<li>WiFi adapter (optional; you could just plug it into your router)</li>
<li>Case (optional; but it looks nice and stops shorts)</li>
</ul>
<p>Software:</p>
<ul>
<li>Raspbian “wheezy” OS (<a title="http://www.raspberrypi.org/downloads" href="http://www.raspberrypi.org/downloads" target="_blank">http://www.raspberrypi.org/downloads</a>)</li>
<li>Python (included in OS)</li>
<li>USB serial driver (included in OS)</li>
<li>Apache web server (<a title="http://httpd.apache.org/" href="http://httpd.apache.org/" target="_blank">http://httpd.apache.org/</a>)</li>
<li>pySerial (<a title="http://pyserial.sourceforge.net/" href="http://pyserial.sourceforge.net/" target="_blank">http://pyserial.sourceforge.net/</a>)</li>
<li>Logger and display code (<a title="https://github.com/jpsingleton/Raspberry-Pi-Electricity-Monitor" href="https://github.com/jpsingleton/Raspberry-Pi-Electricity-Monitor" target="_blank">https://github.com/jpsingleton/Raspberry-Pi-Electricity-Monitor</a>)</li>
</ul>
<p>How to get up and running:</p>
<ul>
<li>Install the Apache web server with apt  (sudo apt-get install apache2)</li>
<li>Install <a title="http://pyserial.sourceforge.net/" href="http://pyserial.sourceforge.net/" target="_blank">http://pyserial.sourceforge.net/</a> with apt (sudo apt-get install python-serial)</li>
<li>Download the repository from github (<a title="https://github.com/jpsingleton/Raspberry-Pi-Electricity-Monitor" href="https://github.com/jpsingleton/Raspberry-Pi-Electricity-Monitor" target="_blank">https://github.com/jpsingleton/Raspberry-Pi-Electricity-Monitor</a>)</li>
<li>Copy the www folder to /var/www</li>
<li>Copy the python file to anywhere you want (e.g. home folder)</li>
<li>Plug in the receiver (the USB serial driver should already be present)</li>
<li>Execute &#8220;sudo python raspberry-pi-electricity-monitor.py &amp;&#8221; (add this to /etc/rc.local to run at boot)</li>
<li>Visit your Pi in a browser to see the data (visit raw.html to see the noisy data)</li>
</ul>
<p>The system has a sample period of 7 seconds as the transmitter only broadcasts this often to save power. This still results in far too much data to render (after a few days) so the software filters out the noise to reduce the data points. Future plans include using the ADC and micro-controller on my self assembled Gertboard with my new Pi to achieve a much higher sample frequency.</p>
<div id="attachment_293" class="wp-caption aligncenter" style="width: 310px"><a href="http://unop.co.uk/wp-content/uploads/2013/01/8.jpg"><img class="size-medium wp-image-293" alt="Gertboard" src="http://unop.co.uk/wp-content/uploads/2013/01/8-300x211.jpg" width="300" height="211" /></a><p class="wp-caption-text">Gertboard with current clamp</p></div>
<p>FYI soldering zero ohm surface mount resistors is a real pain. Why Gert couldn&#8217;t have just used wire jumpers I don&#8217;t know.</p>
<p>Below are some screen-shots of the graphs that are produced by the system. This first image shows the filtered data over 5 days.</p>
<div id="attachment_300" class="wp-caption aligncenter" style="width: 310px"><a href="http://unop.co.uk/wp-content/uploads/2013/01/1.png"><img class="size-medium wp-image-300" alt="Filtered plot over 5 days" src="http://unop.co.uk/wp-content/uploads/2013/01/1-300x125.png" width="300" height="125" /></a><p class="wp-caption-text">Filtered plot over 5 days</p></div>
<p>This next image shows a zoomed in portion of the 1st plot. You can see the thermostat in the oven on the left, an electric heater in the centre and the washing machine just after.</p>
<div id="attachment_299" class="wp-caption aligncenter" style="width: 310px"><a href="http://unop.co.uk/wp-content/uploads/2013/01/2.png"><img class="size-medium wp-image-299" alt="Filtered plot" src="http://unop.co.uk/wp-content/uploads/2013/01/2-300x126.png" width="300" height="126" /></a><p class="wp-caption-text">Filtered plot over 2 days</p></div>
<p>This is a raw version of roughly the same region with the noise shown.</p>
<div id="attachment_298" class="wp-caption aligncenter" style="width: 310px"><a href="http://unop.co.uk/wp-content/uploads/2013/01/3.png"><img class="size-medium wp-image-298" alt="Raw plot over 2 days" src="http://unop.co.uk/wp-content/uploads/2013/01/3-300x127.png" width="300" height="127" /></a><p class="wp-caption-text">Raw plot over 2 days</p></div>
<p>Here it is zoomed in to a high usage region where the electric oven is in use.</p>
<div id="attachment_297" class="wp-caption aligncenter" style="width: 310px"><a href="http://unop.co.uk/wp-content/uploads/2013/01/4.png"><img class="size-medium wp-image-297" alt="High usage raw plot" src="http://unop.co.uk/wp-content/uploads/2013/01/4-300x125.png" width="300" height="125" /></a><p class="wp-caption-text">High usage raw plot</p></div>
<p>Here is a low usage region. You can clearly see the compressors of the fridge and freezer. Occasionally the inrush current of the motor shows up.</p>
<div id="attachment_294" class="wp-caption aligncenter" style="width: 310px"><a href="http://unop.co.uk/wp-content/uploads/2013/01/6.png"><img class="size-medium wp-image-294" alt="Low usage raw plot" src="http://unop.co.uk/wp-content/uploads/2013/01/6-300x126.png" width="300" height="126" /></a><p class="wp-caption-text">Low usage raw plot</p></div>
<p>Thanks to <a title="http://dygraphs.com/" href="http://dygraphs.com/" target="_blank">http://dygraphs.com/</a> for an awesome library and <a title="http://www.raspberrypi.org/" href="http://www.raspberrypi.org/" target="_blank">http://www.raspberrypi.org/</a> for the great hardware.</p>
<p>P.S. The dygraphs library is also used at <a title="Shutdown Scanner" href="http://shutdownscanner.com/" target="_blank">shutdownscanner.com</a> (which is a service for monitoring how many computers have been left on out of hours). If you want to play with the interactive features of the graphs or see some of the more advanced interface options then take a look at the <a title="Dashboard Graph" href="http://shutdownscanner.com/Home/Dashboard" target="_blank">example dashboard</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://unop.co.uk/dev/raspberry-pi-electricity-monitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Home-made Soldering Iron Holder</title>
		<link>http://unop.co.uk/hardware/home-made-soldering-iron-holder/</link>
		<comments>http://unop.co.uk/hardware/home-made-soldering-iron-holder/#comments</comments>
		<pubDate>Wed, 11 May 2011 20:52:38 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://unop.co.uk/?p=141</guid>
		<description><![CDATA[I made this soldering iron holder a while ago. Here&#8217;s how to make one yourself from things you probably have lying around. Much cheaper than a bought one and more fun: You will need: An old hard drive A wire coat hanger A kitchen sponge Assorted tools Steps: Gut the hard drive and keep the [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I made this soldering iron holder a while ago. Here&#8217;s how to make one yourself from things you probably have lying around. Much cheaper than a bought one and more fun:</p>
<p>You will need:</p>
<ul>
<li>An old hard drive</li>
<li>A wire coat hanger</li>
<li>A kitchen sponge</li>
<li>Assorted tools</li>
</ul>
<p>Steps:</p>
<ol>
<li>Gut the hard drive and keep the cast base</li>
<li>Cut and straighten the coat hanger</li>
<li>Wrap coat hanger around a shaft to form a coil</li>
<li>Attach hanger to base through existing holes</li>
<li>Solder end of hanger to form a closed loop</li>
<li>Cut sponge to size (smaller as it will swell when wet)</li>
</ol>
<p>Here are some pics:
<a href='http://unop.co.uk/hardware/home-made-soldering-iron-holder/attachment/imag0083/' title='SolderingIronHolderEmpty'><img width="150" height="150" src="http://unop.co.uk/wp-content/uploads/2011/05/IMAG0083-150x150.jpg" class="attachment-thumbnail" alt="Soldering Iron Holder - Empty" /></a>
<a href='http://unop.co.uk/hardware/home-made-soldering-iron-holder/attachment/imag0082/' title='SolderingIronHolderWithSponge'><img width="150" height="150" src="http://unop.co.uk/wp-content/uploads/2011/05/IMAG0082-150x150.jpg" class="attachment-thumbnail" alt="Soldering Iron Holder - With Sponge" /></a>
<a href='http://unop.co.uk/hardware/home-made-soldering-iron-holder/attachment/imag0084/' title='SolderingIronHolderWithIron'><img width="150" height="150" src="http://unop.co.uk/wp-content/uploads/2011/05/IMAG0084-150x150.jpg" class="attachment-thumbnail" alt="Soldering Iron Holder - With Iron" /></a>
<a href='http://unop.co.uk/hardware/home-made-soldering-iron-holder/attachment/imag0086/' title='SolderingIronHolderWithIronAndSponge'><img width="150" height="150" src="http://unop.co.uk/wp-content/uploads/2011/05/IMAG0086-150x150.jpg" class="attachment-thumbnail" alt="Soldering Iron Holder - With Iron And Sponge" /></a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://unop.co.uk/hardware/home-made-soldering-iron-holder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Object Caching 593/622 objects using disk

 Served from: unop.co.uk @ 2013-12-17 04:32:34 by W3 Total Cache -->