<?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 &#187; energy monitoring</title>
	<atom:link href="http://www.silly-science.co.uk/tag/energy-monitoring/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silly-science.co.uk</link>
	<description>Electronics, Programming and Hacking About</description>
	<lastBuildDate>Tue, 10 Jan 2012 14:21:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Energy Monitor &#8211; part 2</title>
		<link>http://www.silly-science.co.uk/2010/03/05/energy-monitor-part-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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>The 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><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;count=none&amp;text=Energy%20Monitor%20%26%238211%3B%20part%202" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;count=none&amp;text=Energy%20Monitor%20%26%238211%3B%20part%202" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;title=Energy%20Monitor%20%26%238211%3B%20part%202" id="wpa2a_2">Share/Bookmark</a></p><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's never that simple! All I get are null characters. Odd I think - 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 - maybe I got the wrong pins? Check again... 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 '&lt;') of the XML data string.</p>
<p>Now to get the whole string out - 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... parse the XML and output to somewhere a little more useful!</p>
<p><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;count=none&amp;text=Energy%20Monitor%20%26%238211%3B%20part%202" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;count=none&amp;text=Energy%20Monitor%20%26%238211%3B%20part%202" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F05%2Fenergy-monitor-part-2%2F&amp;title=Energy%20Monitor%20%26%238211%3B%20part%202" id="wpa2a_4">Share/Bookmark</a></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>Energy Monitor &#8211; Part 1</title>
		<link>http://www.silly-science.co.uk/2010/03/03/energy-monitor-part-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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>The 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's working well - 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's boring - time to start hacking! So, first thing [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;count=none&amp;text=Energy%20Monitor%20%26%238211%3B%20Part%201" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;count=none&amp;text=Energy%20Monitor%20%26%238211%3B%20Part%201" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;title=Energy%20Monitor%20%26%238211%3B%20Part%201" id="wpa2a_6">Share/Bookmark</a></p><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's working well - 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's boring - 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 - 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... 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>
<p><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;count=none&amp;text=Energy%20Monitor%20%26%238211%3B%20Part%201" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;count=none&amp;text=Energy%20Monitor%20%26%238211%3B%20Part%201" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F03%2F03%2Fenergy-monitor-part-1%2F&amp;title=Energy%20Monitor%20%26%238211%3B%20Part%201" id="wpa2a_8">Share/Bookmark</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/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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>The 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 "hmm... this could be something fun to attach to an XCore and get some graphs out of". My thought is to use my XC-3 (or maybe get an [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;count=none&amp;text=Energy%20Monitoring" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;count=none&amp;text=Energy%20Monitoring" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;title=Energy%20Monitoring" id="wpa2a_10">Share/Bookmark</a></p><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 "hmm... this could be something fun to attach to an XCore and get some graphs out of".</p>
<p>My thought is to use my XC-3 (or maybe get an XC-2) to connect to an energy monitor receiver - 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 - 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? - the relationship should be pretty obvious... but I like pretty graphs</li>
<li>Plot the electricity generation stats and calculate my carbon footprint (ooh err!) - 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... the possibilities are endless - 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>
<p><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;count=none&amp;text=Energy%20Monitoring" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;counturl=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;count=none&amp;text=Energy%20Monitoring" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.silly-science.co.uk%2F2010%2F02%2F25%2Fenergy-monitoring%2F&amp;title=Energy%20Monitoring" id="wpa2a_12">Share/Bookmark</a></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>
	</channel>
</rss>

