<?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>Digit's Domotica Blog &#187; Domotica</title>
	<atom:link href="http://blog.hekkers.net/category/domotica/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hekkers.net</link>
	<description>My Weblog about Domotica and more</description>
	<lastBuildDate>Tue, 07 Sep 2010 17:23:15 +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>It all comes together</title>
		<link>http://blog.hekkers.net/2010/09/07/it-all-comes-together/</link>
		<comments>http://blog.hekkers.net/2010/09/07/it-all-comes-together/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 17:20:25 +0000</pubDate>
		<dc:creator>Robert Hekkers</dc:creator>
				<category><![CDATA[Domotica]]></category>

		<guid isPermaLink="false">http://blog.hekkers.net/?p=1292</guid>
		<description><![CDATA[Today we received the iRobot&#8217;s Roomba vacuuming robot. This robot will help us to keep the dust level on the floor at an acceptable level. Integrating this robot into my Domotica system is a good example of how easy it can be to integrate a new type of Device into a Domotica system that works [...]]]></description>
			<content:encoded><![CDATA[<p>Today we received the <a href="http://store.irobot.com/home/index.jsp" target="_blank">iRobot&#8217;s Roomba</a> vacuuming robot. This robot will help us to keep the dust level on the floor at an acceptable level.</p>
<div id="attachment_1294" class="wp-caption alignleft" style="width: 286px"><a href="http://blog.hekkers.net/wp-content/uploads/2010/09/irobot-pet.jpg"><img class="size-full wp-image-1294 " title="iRobot Roomba" src="http://blog.hekkers.net/wp-content/uploads/2010/09/irobot-pet.jpg" alt="" width="276" height="276" /></a><p class="wp-caption-text">iRobot Roomba</p></div>
<p>Integrating this robot into my Domotica system is a good example of how easy it can be to integrate a new type of Device into a Domotica system that works and is built like i think it should <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Do i want to use the iRobot remote control? No, of course not; those things can get lost and it doesn&#8217;t bring integration! I have an <a href="http://www.irtrans.de/" target="_blank">IRTrans</a> for Infrared controlled devices. So the first thing to do was finding the right IR codes for the Roomba. That wasn&#8217;t too hard. I created a .rem file for the IRTrans server and saw I could give the Roomba the CLEAN command.</p>
<p>Actually, that was the hardest part. Next thing I did was add a button on the <a href="http://blog.hekkers.net/2009/04/28/designing-my-own-home-automation-ui/" target="_self">touchscreen</a> in the livingroom to manually control the Roomba from there. Drag &amp; drop a button, a combobox and write 1 line of VB code:</p>
<p><a href="http://blog.hekkers.net/wp-content/uploads/2010/09/Capture7-9-2010-18.40.58.png"><img class="alignnone size-full wp-image-1293" title="XMLRPC command" src="http://blog.hekkers.net/wp-content/uploads/2010/09/Capture7-9-2010-18.40.58.png" alt="" width="477" height="95" /></a></p>
<p>Touchscreen finished; next! My Domotica system. This one needed a restart cause i had to add a new Device Class:</p>
<pre>unit Roomba563;

interface

uses
 IRControlledDevice;

type
 TRoomba563 = class(TIRControlledDevice)
   constructor Create(const AAddress,AphDeviceID,ALocation,ADescription:String); override;
 end;

implementation

uses
 Windows, Utils,
 DeviceTypes;

constructor TRoomba563.Create;
begin
  inherited Create(AAddress, APHDeviceID, ALocation, ADescription);
  SubDelay:=100; //msec
end;

initialization

 OutputDebugString('Init Unit Roomba563');
 gclDeviceClasses.Add(TRoomba563);

end.</pre>
<p>Copy, Paste, Replace All, Save, Compile, Done! Virtually no &#8220;real&#8221; additional code needed, no adjustments to existing code; it all works perfectly together. It&#8217;s just another type of device&#8230;</p>
<p>Now, this Roomba makes too much noise to have it driving around in  the same room as where you are, so there are 2 options: let the Roomba do  the cleaning at night or while everybody&#8217;s away.</p>
<p>So now I&#8217;ve got one thing left to do: create 2 new events so that a status change of the alarm system will trigger either a CLEAN or a DOCK command, so that the Roomba will start cleaning while we&#8217;re away but also obediently return to its base station when we get back home. That&#8217;s about 6 records (rows) that need to be added to the database.</p>
<p>Done!  I love it when a plan comes together <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hekkers.net/2010/09/07/it-all-comes-together/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Going down even more</title>
		<link>http://blog.hekkers.net/2010/09/06/going-down-even-more/</link>
		<comments>http://blog.hekkers.net/2010/09/06/going-down-even-more/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 20:32:09 +0000</pubDate>
		<dc:creator>Robert Hekkers</dc:creator>
				<category><![CDATA[Domotica]]></category>
		<category><![CDATA[JeeNodes]]></category>
		<category><![CDATA[motion sensor]]></category>
		<category><![CDATA[Sensors]]></category>

		<guid isPermaLink="false">http://blog.hekkers.net/?p=1285</guid>
		<description><![CDATA[Now that i have no more PIR sensors in stock, I had to find me an alternative. The requirements: low power of course, it should be able to fit in the PIR enclosure i already have in use and not too expensive, cause I&#8217;ll need a lot of them. The ELV PIR13 seems to be [...]]]></description>
			<content:encoded><![CDATA[<p>Now that i have no more PIR sensors in stock, I had to find me an alternative. The requirements: low power of course, it should be able to fit in the PIR enclosure i already have in use and not too expensive, cause I&#8217;ll need a lot of them. The <a href="http://www.elv.de/output/controller.aspx?cid=74&amp;detail=10&amp;detail2=403&amp;flv=1&amp;bereich=&amp;marke=" target="_blank">ELV PIR13</a> seems to be the right candidate for the job; this would bring down the PIR power usage from <strong>170</strong> µA to <strong>40</strong> µA. I don&#8217;t have to tell you what that will do to battery life <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div id="attachment_1286" class="wp-caption alignnone" style="width: 280px"><a href="http://blog.hekkers.net/wp-content/uploads/2010/09/pir13.jpg"><img class="size-full wp-image-1286 " title="ELV PIR13: PCB 25 x 37 mm, 13 mm PIR" src="http://blog.hekkers.net/wp-content/uploads/2010/09/pir13.jpg" alt="" width="270" height="270" /></a><p class="wp-caption-text">ELV PIR13: PCB 25 x 37 mm, 13 mm PIR</p></div>
<p>I&#8217;ve ordered a couple of these ELV PIR13&#8242;s and will build a 3rd motion sensor with one of these. In the meantime I also changed some things in the code to reduce the JeeNode power usage in power down mode even more: it went down from <strong>20</strong> µA to <strong>6.5</strong> µA. Calculations show a theoretical battery life of 200 weeks&#8230; well, i think the internal discharge will have screwed up the battery before that&#8230;</p>
<p>BTW, the 2 motion sensors that are currently being used, are still running fine on their first set of batteries.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hekkers.net/2010/09/06/going-down-even-more/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Full speed ahead!</title>
		<link>http://blog.hekkers.net/2010/09/04/full-speed-ahead/</link>
		<comments>http://blog.hekkers.net/2010/09/04/full-speed-ahead/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 13:20:45 +0000</pubDate>
		<dc:creator>Robert Hekkers</dc:creator>
				<category><![CDATA[Domotica]]></category>

		<guid isPermaLink="false">http://blog.hekkers.net/?p=1275</guid>
		<description><![CDATA[After a (much to short, as always) break it&#8217;s now time to pick up from where I paused a few weeks ago. Seen things during our holidays that really make you feel &#8216;small&#8217;, like the remains of volcanic eruptions or anything else created by nature, actually. Did I miss my daily tinkering with JeeNodes, XBees [...]]]></description>
			<content:encoded><![CDATA[<p>After a (much to short, as always) break it&#8217;s now time to pick up from where I paused a few weeks ago. Seen things during our holidays that really make you feel &#8216;small&#8217;, like the remains of volcanic eruptions or anything else created by nature, actually.</p>
<div id="attachment_1277" class="wp-caption alignnone" style="width: 410px"><a href="http://blog.hekkers.net/wp-content/uploads/2010/09/DSC_3671c_resize.jpg"><img class="size-full wp-image-1277" title="Volcano" src="http://blog.hekkers.net/wp-content/uploads/2010/09/DSC_3671c_resize.jpg" alt="Volcano" width="400" height="266" /></a><p class="wp-caption-text">Volcano</p></div>
<p>Did I miss my daily tinkering with JeeNodes, XBees and all other things i play with during my leisure time? Not really; it&#8217;s actually good to know this <em>&#8220;addiction&#8221; </em>is still curable, cause i had no withdrawal symptoms. On the other hand, I never forgot to take my iPod Touch with me for the daily email check when we went to the restaurant for breakfast&#8230; hmm, well how about that one <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>But nothing is what it seems, cause after 2 days at home, I&#8217;m itchy to start all those new things I thought about while I was away. Too much!</p>
<div id="attachment_1276" class="wp-caption alignnone" style="width: 410px"><a href="http://blog.hekkers.net/wp-content/uploads/2010/09/DSC_1187_resize.jpg"><img class="size-full wp-image-1276 " title="Nothing is what it seems" src="http://blog.hekkers.net/wp-content/uploads/2010/09/DSC_1187_resize.jpg" alt="" width="400" height="266" /></a><p class="wp-caption-text">Nothing is what it seems</p></div>
<p>And the list was already much too long before I left; OMG, where do I start??? Choices&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hekkers.net/2010/09/04/full-speed-ahead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The 3rd suitcase</title>
		<link>http://blog.hekkers.net/2010/08/18/the-3rd-suitcase/</link>
		<comments>http://blog.hekkers.net/2010/08/18/the-3rd-suitcase/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 07:01:39 +0000</pubDate>
		<dc:creator>Robert Hekkers</dc:creator>
				<category><![CDATA[Domotica]]></category>

		<guid isPermaLink="false">http://blog.hekkers.net/?p=1260</guid>
		<description><![CDATA[Yep, we&#8217;re leaving the country for a couple of weeks soon. Time to gather all the stuff i &#8216;need&#8217; over there. Two suitcases are almost packed and we&#8217;re ready to go; now what&#8217;s in that 3rd suitcase we will have to carry with us? Cameras, MP3 players, a laptop, clock radio, iPod, portable HDD, card [...]]]></description>
			<content:encoded><![CDATA[<p>Yep, we&#8217;re leaving the country for a couple of weeks soon. Time to gather all the stuff i &#8216;need&#8217; over there. Two suitcases are almost packed and we&#8217;re ready to go; now what&#8217;s in that 3rd suitcase we will have to carry with us?</p>
<div id="attachment_1261" class="wp-caption alignnone" style="width: 510px"><a href="http://blog.hekkers.net/wp-content/uploads/2010/08/DSC_0691c_resize.jpg"><img class="size-full wp-image-1261" title="Too heavy?" src="http://blog.hekkers.net/wp-content/uploads/2010/08/DSC_0691c_resize.jpg" alt="" width="500" height="370" /></a><p class="wp-caption-text">Too heavy?</p></div>
<p>Cameras, MP3 players, a laptop, clock radio, iPod, portable HDD, card reader and all the things you need to keep those things operational for 2 weeks, like cables, adapters and battery chargers. And there are still some things missing from this picture, like 2 game consoles (and their adapters) for our kids, the adapter for my cell phone, a few computer magazines, a power distribution box (cause we&#8217;re always short on wall sockets)&#8230; yes, that will be enough to fill that 3rd suitcase, which we call the &#8216;gadget suitcase&#8217;. It&#8217;s getting heavier every year&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hekkers.net/2010/08/18/the-3rd-suitcase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trying to get a date with Plugwise</title>
		<link>http://blog.hekkers.net/2010/08/12/trying-to-get-a-date-with-plugwise/</link>
		<comments>http://blog.hekkers.net/2010/08/12/trying-to-get-a-date-with-plugwise/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 20:46:52 +0000</pubDate>
		<dc:creator>Robert Hekkers</dc:creator>
				<category><![CDATA[Domotica]]></category>
		<category><![CDATA[Plugwise]]></category>
		<category><![CDATA[Xbee]]></category>
		<category><![CDATA[Zigbee]]></category>

		<guid isPermaLink="false">http://blog.hekkers.net/?p=1246</guid>
		<description><![CDATA[Having Plugwise in my house since December 2008, playing around with Digi Series 2 XBee modules for some time, knowing both are Ember EM250 based; nice ingredients for some fooling around with those two. I&#8217;ve already been asked a few times if I could &#8216;see&#8217; any Plugwise traffic or other signs of the Plugwise network. [...]]]></description>
			<content:encoded><![CDATA[<p>Having Plugwise in my house since December 2008, playing around with Digi Series 2 XBee modules for some time, knowing both are <a href="http://www.ember.com/products_zigbee_chips_e250.html" target="_blank">Ember EM250</a> based; nice ingredients for some fooling around with those two. I&#8217;ve already been asked a few times if I could &#8216;see&#8217; any Plugwise traffic or other signs of the Plugwise network. No, i did not. Cause that would be wrong, if those would interfere that easily. And to tell you the truth, i wasn&#8217;t really interested enough to spend much time on this.</p>
<p>But why not try it some time? It has been on the to-do list for some time, but never made it to the top-5. But when there was another question recently from someone for whom i gladly spend lots of time without any personal gain or interest, i decided to try some things to see if a first small step could be made. I put 1 of my spare XBee modules into a XBee adapter, loaded the firmware version 2864 (XB24-ZB End Device AT), set the preconfigured PAN id to 0 (which means the XBee will join any PAN it can find) and uploaded the new configuration.</p>
<p>Now there&#8217;s this small green LED on the adapter labeled as &#8216;ASC&#8217;, which tells you the associated state of the XBee. When it starts blinking rapidly, you know you&#8217;re going in the right direction &#8230; reading back the Operating PAN ID from the XBee showed me a value like D6F0000134567. Hey, where have i seen that value before? It looks like a Ember MAC address.. YES, it&#8217;s the MAC address of my Circle+ ! How odd&#8230; <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>OK, i know. This is just a very small step; i know the PAN ID of the Plugwise network now; duh. Next thing to figure out is the encryption key; it&#8217;s time to join forces on this project that is in the top-5 now and is there to stay!</p>
<p>Plugwise still sucks in <a href="http://blog.hekkers.net/2008/12/31/plugwise-makes-a-big-mistake/" target="_self">some perspectives</a>, but this is nice. And i have no idea if this will ever come to something useful. But that doesn&#8217;t matter, just as long as I&#8217;m having fun with what I&#8217;m doing <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hekkers.net/2010/08/12/trying-to-get-a-date-with-plugwise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Light and Temperature</title>
		<link>http://blog.hekkers.net/2010/08/07/adding-light-and-temperature/</link>
		<comments>http://blog.hekkers.net/2010/08/07/adding-light-and-temperature/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 21:56:09 +0000</pubDate>
		<dc:creator>Robert Hekkers</dc:creator>
				<category><![CDATA[Domotica]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[JeeNodes]]></category>
		<category><![CDATA[Sensors]]></category>

		<guid isPermaLink="false">http://blog.hekkers.net/?p=1235</guid>
		<description><![CDATA[Since i removed a bunch of MS13 sensors recently, i am missing some input on what is going on at several places in our home. So while i was making a list of things i need in the near future, i realized i should extend the motion sensors a bit more, or otherwise i would [...]]]></description>
			<content:encoded><![CDATA[<p>Since i removed a bunch of MS13 sensors <a href="http://blog.hekkers.net/2010/06/20/no-more/" target="_self">recently</a>, i am missing some input on what is going on at several places in our home. So while i was making a list of things i need in the near future, i realized i should extend the motion sensors a bit more, or otherwise i would lose the dark/light sensor the MS13 provided. And why not add temperature as well; cause that would mean i could do without the Oregon sensors also. I mean, why use 2 sensor devices (one only for temperature and another one for motion and light) when you can combine it all into one? Let&#8217;s have a look at temperature&#8230;</p>
<p>I still have 10 DS1820 1-Wire sensors somewhere from the days when i started with Domotica, but i never used them; maybe now i finally found a purpose for them? Let&#8217;s connect a few to an Arduino and see if  i can get a temperature reading:</p>
<div id="attachment_1236" class="wp-caption alignnone" style="width: 410px"><a href="http://blog.hekkers.net/wp-content/uploads/2010/08/DSC_3437_resize.jpg"><img class="size-full wp-image-1236" title="Arduino with 3 x DS1820" src="http://blog.hekkers.net/wp-content/uploads/2010/08/DSC_3437_resize.jpg" alt="Arduino with 3 x DS1820" width="400" height="266" /></a><p class="wp-caption-text">Arduino with 3 x DS1820</p></div>
<p>And of course, there&#8217;s a library to use 1-Wire devices with an Arduino.. so before i knew it, i was polling the temperature of 3 DS1820s <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<pre>Addr:10 6C 5 CA 0 8 0 C3  Temp=25.50 grC
Addr:10 33 EC 3 1 8 0 E1  Temp=25.50 grC
Addr:10 FB 90 C9 0 8 0 1A  Temp=25.50 grC

Addr:10 6C 5 CA 0 8 0 C3  Temp=25.50 grC
Addr:10 33 EC 3 1 8 0 E1  Temp=25.50 grC
Addr:10 FB 90 C9 0 8 0 1A  Temp=25.50 grC

Addr:10 6C 5 CA 0 8 0 C3  Temp=25.50 grC
Addr:10 33 EC 3 1 8 0 E1  Temp=25.50 grC
Addr:10 FB 90 C9 0 8 0 1A  Temp=25.50 grC
</pre>
<p>Add an additional LDR and I&#8217;m done; ready to replace a large part of all my sensors: all remaining MS13s and most of my Oregon Scientific Temperature &amp; Humidity sensors with my own <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hekkers.net/2010/08/07/adding-light-and-temperature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Battery life estimation</title>
		<link>http://blog.hekkers.net/2010/08/02/battery-life-estimation/</link>
		<comments>http://blog.hekkers.net/2010/08/02/battery-life-estimation/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 19:50:13 +0000</pubDate>
		<dc:creator>Robert Hekkers</dc:creator>
				<category><![CDATA[Domotica]]></category>
		<category><![CDATA[motion sensor]]></category>
		<category><![CDATA[Sensors]]></category>

		<guid isPermaLink="false">http://blog.hekkers.net/?p=1222</guid>
		<description><![CDATA[Exciting&#8230; what will be the outcome of the calculations based on monitoring 2 motion sensors during a period of 24 hours and extrapolating this calculated power usage? OK, let&#8217;s start with writing down some &#8216;facts&#8217;, taking the worst case of the 2 sensors for each individual measurement: The JeeNodes active time during a period of [...]]]></description>
			<content:encoded><![CDATA[<p>Exciting&#8230; what will be the outcome of the calculations based on monitoring 2 motion sensors during a period of 24 hours and extrapolating this calculated power usage? OK, let&#8217;s start with writing down some &#8216;facts&#8217;, taking the worst case of the 2 sensors for each individual measurement:</p>
<ul>
<li>The JeeNodes active time during a period of 24h is 102.4 seconds, with a current of 6.5 mA;</li>
<li>Power down current is 20 µA;</li>
<li>The XBee sends an average of 120 packets per hour, requiring the XBee to be on for a duration of 34 ms for each packet, using 40 mA current (from the datasheet);</li>
<li>XBee power down current is 1 µA (datasheet);</li>
<li>The PIR uses 170 µA (datasheet) while in standby mode and 270 µA (datasheet) during motion detection; motion detection duration is estimated at 400 seconds.</li>
</ul>
<p>With these numbers it should be possible to calculate the average power consumption of each component:</p>
<ul>
<li>JeeNode: 27,68 ﻿﻿µA;</li>
<li>XBee: 2,88 µA;</li>
<li>PIR: 170,46 µA.</li>
</ul>
<p>This adds up to a total of 201,02 µA. That&#8217;s the average current the motion sensor is using, based on a period of 24 hours.  With 2000 mAh batteries this results in 9950 hours = 414 days = 59 weeks&#8230; cool! That will do, for now, lol</p>
<p>However&#8230; how about the battery self-discharge?? How much will this influence the time this motion sensor will last on 1 set of batteries? I really don&#8217;t know; so, still, time will tell how well this sensor performs in terms of long lasting batteries.</p>
<p>Fortunately, I still have enough options to reduce power usage even more, like</p>
<ol>
<li>Using the energy saving version of the PIR;</li>
<li>Disabling stuff on the ATmega like brown out detection (<em>how do i change fuses?</em> As i mentioned before, where will this end? <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  );</li>
<li>Running the ATmega on a lower frequency.</li>
</ol>
<p>And now that i have it all in a spreadsheet, i can manually adjust some values and see how it effects battery life. The smartest thing would be to go for the 1st option, cause that would reduce the standby current of the PIR down to 46 µA instead of 170&#8230; meaning 3 years !!</p>
<p>I&#8217;m going to order some extra PIR&#8217;s now&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hekkers.net/2010/08/02/battery-life-estimation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote sensor programming</title>
		<link>http://blog.hekkers.net/2010/07/31/remote-sensor-programming/</link>
		<comments>http://blog.hekkers.net/2010/07/31/remote-sensor-programming/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 10:42:33 +0000</pubDate>
		<dc:creator>Robert Hekkers</dc:creator>
				<category><![CDATA[Domotica]]></category>

		<guid isPermaLink="false">http://blog.hekkers.net/?p=1204</guid>
		<description><![CDATA[Now that i&#8217;m very confident that my interrupt-driven motion sensor is finished, i was wondering what else there is to add; the first thing that comes to my mind is remotely adjusting the way the sketch works; no i don&#8217;t mean uploading a whole new sketch, but adjusting some parameters. For example, it should be [...]]]></description>
			<content:encoded><![CDATA[<p>Now that i&#8217;m very confident that my interrupt-driven motion sensor is finished, i was wondering what else there is to add; the first thing that comes to my mind is remotely adjusting the way the sketch works; no i don&#8217;t mean uploading a whole new sketch, but adjusting some parameters. For example, it should be relatively easy to adjust the heartbeat interval, or the motion report interval. Or disable sending the additional information in the packet that is being sent (packet size reduction = power reduction!); or disable motion reporting completely, e.g. disabling the sensor temporarily! What else can i think of?  <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  It <em>does</em> sound like something that&#8217;s nice to have&#8230;</p>
<p>The question is, do i really need it? Or shall i proceed with a door/window sensor? Or go on building these motion sensors until i have replaced all the MS13 sensors i removed from my house some time ago and the few that are still being used? Or first finish the LED strips&#8230; tough choices!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hekkers.net/2010/07/31/remote-sensor-programming/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Motion sensor v2 built and in use</title>
		<link>http://blog.hekkers.net/2010/07/29/motion-sensor-v2-built-and-in-use/</link>
		<comments>http://blog.hekkers.net/2010/07/29/motion-sensor-v2-built-and-in-use/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 20:18:43 +0000</pubDate>
		<dc:creator>Robert Hekkers</dc:creator>
				<category><![CDATA[Domotica]]></category>
		<category><![CDATA[JeeNodes]]></category>
		<category><![CDATA[motion sensor]]></category>
		<category><![CDATA[Sensors]]></category>
		<category><![CDATA[Zigbee]]></category>

		<guid isPermaLink="false">http://blog.hekkers.net/?p=1207</guid>
		<description><![CDATA[Two motion sensors v2 are in use right now, yippee! I upgraded an existing v1 sensor to a v2 and built a new one. The v2 sensor specs are very different from the v1 but much more promising, yet all i needed to do to was soldering the digital output of the PIR to another [...]]]></description>
			<content:encoded><![CDATA[<p>Two motion sensors v2 are in use right now, yippee!</p>
<p>I upgraded an <a href="http://blog.hekkers.net/2010/06/20/new-motion-sensor-in-use/" target="_self">existing v1 sensor</a> to a v2 and built a new one. The v2 sensor specs are very different from the v1 but much more  promising, yet all i needed to do to was soldering the digital output of  the PIR to another JeeNode port (namely ATmega INT1) and use a different digital port for serial I/O with the XBee. Oh, and upload a new  sketch of course. Now i have 2 identical v2 sensors:</p>
<div id="attachment_1215" class="wp-caption alignnone" style="width: 431px"><a href="http://blog.hekkers.net/wp-content/uploads/2010/07/DSC_3429_resize.jpg"><img class="size-full wp-image-1215" title="v1 upgraded to v2" src="http://blog.hekkers.net/wp-content/uploads/2010/07/DSC_3429_resize.jpg" alt="" width="421" height="280" /></a><p class="wp-caption-text">v1 upgraded to v2</p></div>
<p>Looking back at how this motion sensor evolved i am wondering, why didn&#8217;t i think of <a href="http://blog.hekkers.net/2010/07/25/really-powering-down-this-time/" target="_self">interrupts</a> in the first place&#8230; not very smart actually..</p>
<p>Or maybe i <em>did</em> think about interrupts but unconsciously thought it would be to hard for me to handle already, cause that&#8217;s what you read all the time: interrupts are a tough subject! Maybe it is, but i didn&#8217;t notice that yet! <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So now I&#8217;ve got 2 motion sensors with the following features:</p>
<ul>
<li>powered by 3 * 1.2V, 2000 mAh rechargeable batteries;</li>
<li>PIR with digital output, 100µA standby power usage and 5m detection range;</li>
<li>a JeeNode that&#8217;s effectively running only a total of about 180 seconds per day (0.2 %), even with 350-400 motion reports and lots of heartbeats. The rest of the time the JeeNode is in power down mode;</li>
<li>it&#8217;s ZigBee based which is better than 433 MHz in my opinion, especially when you&#8217;ve got a lot of sensors;</li>
<li>relatively small sensor housing compared to commercial (mostly big and ugly) products;</li>
<li>completely DIY so everything is how i want it to be;</li>
<li>interrupt-based, the best you can get I&#8217;d say;</li>
<li>need i go on?  <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ul>
<p>I&#8217;m gonna monitor this sensor very closely in the coming months and learn from it. Here you see one of the sensors being used in the kitchen:</p>
<div id="attachment_1214" class="wp-caption alignnone" style="width: 431px"><a href="http://blog.hekkers.net/wp-content/uploads/2010/07/DSC_3432_resize.jpg"><img class="size-full wp-image-1214" title="Motion v2 in the kitchen" src="http://blog.hekkers.net/wp-content/uploads/2010/07/DSC_3432_resize.jpg" alt="" width="421" height="280" /></a><p class="wp-caption-text">Motion v2 in the kitchen</p></div>
<p>The sketch that&#8217;s currently running on these sensors can be found <a href="http://www.hekkers.net/files/Motionv2_20100729.txt">here</a>.</p>
<p>Finished? Almost; some loose ends in the sketch. Maybe it can be made even smaller/faster/less energy consuming. But I&#8217;ll look into that when the 3rd sensor is built.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hekkers.net/2010/07/29/motion-sensor-v2-built-and-in-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Motion Sensor v2</title>
		<link>http://blog.hekkers.net/2010/07/27/motion-sensor-v2/</link>
		<comments>http://blog.hekkers.net/2010/07/27/motion-sensor-v2/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 22:08:34 +0000</pubDate>
		<dc:creator>Robert Hekkers</dc:creator>
				<category><![CDATA[Domotica]]></category>
		<category><![CDATA[JeeNodes]]></category>
		<category><![CDATA[motion sensor]]></category>
		<category><![CDATA[Sensors]]></category>

		<guid isPermaLink="false">http://blog.hekkers.net/?p=1192</guid>
		<description><![CDATA[Here it is, Motion Sensor v2. Not much different from v1 really, the only thing that has changed is that the PIR output has moved to an interrupt pin. And the sketch looks somewhat different here and there. Later this week i&#8217;ll build my 2nd motion sensor and start using it right away; i&#8217;m very [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.hekkers.net/wp-content/uploads/2010/07/DSC_3425_resize.jpg"><img class="alignnone size-full wp-image-1202" title="Motion Sensor v2" src="http://blog.hekkers.net/wp-content/uploads/2010/07/DSC_3425_resize.jpg" alt="" width="421" height="280" /></a></p>
<p>Here it is, Motion Sensor v2. Not much different from v1 really, the only thing that has changed is that the PIR output has moved to an interrupt pin. And the sketch looks somewhat different here and there. Later this week i&#8217;ll build my 2nd motion sensor and start using it right away; i&#8217;m very curious about the results! I&#8217;ll also change my 1st motion sensor that&#8217;s already in use, to an interrupt driven model. Don&#8217;t want to wait for what will happen with those batteries&#8230;</p>
<p>The <a href="http://cafe.jeelabs.net/lab/jn4/" target="_blank">JeeNode</a> is completely powered down most of the time. It only gets woken up by the Watchdog timer every 8 seconds or when motion is detected. But even when motion is detected, it&#8217;s powered down most of the time, cause a &#8216;blip&#8217; sent to my <a href="http://www.hekkers.net/domotica/" target="_blank">Domotica System</a> every 4 seconds during continuous motion is more than enough.</p>
<p>When the motion interrupt is triggered, the &#8216;blip&#8217; is sent to my system, followed by a power down for 4 seconds <em>without</em> interrupt trigger set. When those 4 seconds have passed (wake up is done by the watchdog timer) a power down is done <em>with</em> interrupt trigger and the whole loop starts all over again. Capice? It doesn&#8217;t get much easier than this <img src='http://blog.hekkers.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>And of course there&#8217;s a heartbeat sent every 64 (8 times 8 ) seconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hekkers.net/2010/07/27/motion-sensor-v2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
