<?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>Ed&#039;s World &#187; Viglen MPC-L</title>
	<atom:link href="http://www.jellard.co.uk/tag/viglen-mpc-l/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jellard.co.uk</link>
	<description>Bringing data into real life in a meaningful way</description>
	<lastBuildDate>Thu, 26 Aug 2010 21:26:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Two-way communication via Nuelectronics ethernet shield&#8230;</title>
		<link>http://www.jellard.co.uk/2009/10/two-way-communication-via-nuelectronics-ethernet-shield/</link>
		<comments>http://www.jellard.co.uk/2009/10/two-way-communication-via-nuelectronics-ethernet-shield/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 17:47:16 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Home automation]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[central heating ctrl]]></category>
		<category><![CDATA[home easy]]></category>
		<category><![CDATA[Viglen MPC-L]]></category>

		<guid isPermaLink="false">http://www.jellard.co.uk/?p=47</guid>
		<description><![CDATA[Struggling to get two way ethernet communication working with the nuelectronics ethernet shield, so have ordered an official one.]]></description>
			<content:encoded><![CDATA[<p>&#8230;is possible, and does work &#8211; but only sometimes.</p>
<p>I struggled last night for several hours trying to get reliable two way communications.  The idea is that every time the arduino receives a home easy command from a remote or motion detector, it sends a message to the MPC-L.  Then, with some funky programming, the server will decide what events to fire off.</p>
<p>Unfortunately while I can reliably receive messages, and reliably send messages, I can&#8217;t do both &#8211; it just hangs.  I&#8217;m thinking it&#8217;s the nuelectronics ethernet shield, the software certainly isn&#8217;t very nice, so as I&#8217;ve only been playing with this for a few days, I&#8217;m splashing out on an official shield.  As a by-product of this, it is supported by <a href="http://knolleary.net/arduino-client-for-mqtt/">Nicholas O&#8217;Leary&#8217;s MQTT code</a>.  So, moving away from last night&#8217;s PHP start, I&#8217;ll write a small java program to receive these, process them, and fire off any events if need be.</p>
<p>The logic for the event firing will end up being more complicated, but initially, I want a bunch of events/desired actions, and each event has a sequence of signals required, each of which have to happen within a changable amount of time.  Only if a path through the sequence is achieved in the right time will the action be fired.</p>
<p>For example, a motion detector in the hall, and a door open/shut detector on my front door.  An event (i.e. turn off all lights) with a sequence of 1. Motion detector fired, 2. Door opened will detect when someone has just left the house, but obviously you only want it to happen if the time between 1 and 2 isn&#8217;t too much, otherwise the person could have walked upstairs and someone else came in through the front door!</p>
<p>I got this working in PHP, so will Java-it-up tonight.  Then will code the more complicated (and more useful) central heating logic (i.e. I want the house at 18 degrees at 7PM, it’s now 16 degrees, and takes 45mins to warm up to 18degrees, so turn on centreal heating at 6.15PM).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jellard.co.uk/2009/10/two-way-communication-via-nuelectronics-ethernet-shield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphing Current Cost</title>
		<link>http://www.jellard.co.uk/2009/10/graphing-current-cost/</link>
		<comments>http://www.jellard.co.uk/2009/10/graphing-current-cost/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 21:02:47 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[ambient light]]></category>
		<category><![CDATA[current cost]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[Viglen MPC-L]]></category>

		<guid isPermaLink="false">http://www.jellard.co.uk/?p=37</guid>
		<description><![CDATA[I've been graphing current cost readings for the last year, but now I'm actually planning on doing something with the data.  Ambient light and intelligent central heating control - especially useful as my house doesn't have a thermostat.]]></description>
			<content:encoded><![CDATA[<p>I bought a current cost and Viglen MPC-L (15W low powered computer running Ubuntu) last year, and have since been recording power and temperature.</p>
<p><img src="http://www.jellard.co.uk/wp-content/uploads/2009/10/power-6hrs-300x62.png" alt="Power consumption" /></p>
<p><img src="http://www.jellard.co.uk/wp-content/uploads/2009/10/temp-3mth-300x67.png" alt="Temperatures" /></p>
<p>Adapted from <a href="http://www.jibble.org/currentcost/">Jibble</a>, I have been recording data in &#8220;RRD&#8221;, a round-robin database in a single file.  Initially, I didn&#8217;t have a computer on 24&#215;7, so added some cheap and tacky code to pull the historical data from the current cost meter and log that.  A couple of weeks after buying the current cost, I realised I couldn&#8217;t live without live readings, so bought the Viglen MPC-L.</p>
<p><a href="http://www.jellard.co.uk/wp-content/uploads/update.pl">View code</a>.</p>
<p>Part of that code runs &#8220;colours.pl&#8221; with the current power consumption, which sends a message to the arduino telling it to change the ambient light&#8217;s colour to a colour that depends on how much power the house is eating up.  More about that shortly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jellard.co.uk/2009/10/graphing-current-cost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
