<?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>John&#039;s Ramblings &#187; XBee</title>
	<atom:link href="http://john.crouchley.com/blog/archives/tag/xbee/feed" rel="self" type="application/rss+xml" />
	<link>http://john.crouchley.com/blog</link>
	<description>Personal record for family and friends - contact me: john at crouchley.me.uk</description>
	<lastBuildDate>Fri, 03 Feb 2012 13:30:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>FIO (Arduino and XBEE) door, doorbell and others monitor</title>
		<link>http://john.crouchley.com/blog/archives/424</link>
		<comments>http://john.crouchley.com/blog/archives/424#comments</comments>
		<pubDate>Wed, 03 Feb 2010 11:01:28 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Home monitoring]]></category>
		<category><![CDATA[FIO]]></category>
		<category><![CDATA[HomeMonitoring]]></category>
		<category><![CDATA[XBee]]></category>

		<guid isPermaLink="false">http://john.crouchley.com/blog/?p=424</guid>
		<description><![CDATA[<p>I have been extending my range of inputs to the CurrentCost, Ardunio, Xport pachube logger. In order to do this I wanted a wireless sensor module. After looking round I chose the FIO, has an XBEE socket and ATMega168, very little else. Can be powered from a rechargeable LiPo battery. The next step was to [...]]]></description>
			<content:encoded><![CDATA[<p>I have been extending my range of inputs to the CurrentCost, Ardunio, Xport pachube logger.<br />
In order to do this I wanted a wireless sensor module.<br />
After looking round I chose the FIO, has an XBEE socket and ATMega168, very little else. Can be powered from a rechargeable LiPo battery.<br />
The next step was to look at the power requirements. I am using a 1000mAH battery and with the normal FIO consumption of 65mA this would last about 16 hours &#8211; not very long. After some experimentation I found that if I ran the XBEE in pin controlled sleep mode 2 (less power used than mode 1 at 3.3V) and the ATMega in full sleep I could get the consumption down to 270uA. Switching off the ADC and the analog comparator got this down further to 170uA. Assuming that we have 30 minutes active per day (I&#8217;m hoping for much less) this will run for just under 1 month. In practice (this has been in place for the last 6 months) it runs for about 4 months before it needs recharging.<br />
I am using a low value on digital inputs 2 or 3 to wake up the ATMega and then the ATMega wakes up the XBEE.<br />
<a href="http://www.flickr.com/photos/22788868@N02/4304008591/" class="tt-flickr tt-flickr-Medium" target="_blank"><img class="alignnone" src="http://farm5.static.flickr.com/4002/4304008591_051b01da5d.jpg" alt="" width="500" height="290" /></a><br />
To be continued &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://john.crouchley.com/blog/archives/424/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XBee wireless programming of Arduino</title>
		<link>http://john.crouchley.com/blog/archives/372</link>
		<comments>http://john.crouchley.com/blog/archives/372#comments</comments>
		<pubDate>Fri, 17 Jul 2009 18:47:06 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Wireless]]></category>
		<category><![CDATA[XBee]]></category>

		<guid isPermaLink="false">http://john.crouchley.com/blog/?p=372</guid>
		<description><![CDATA[<p>Succeeded today in remote wireless programming a Funnel IO Arduino clone.</p> <p>I had previously followed the instructions from LadyAda and got a very flaky program load &#8211; particularly with large files. Now following the Funnel IO route I have a reliable and solid way of remotely programming the board. I am using the Arduino IDE [...]]]></description>
			<content:encoded><![CDATA[<p>Succeeded today in remote wireless programming a Funnel IO Arduino clone.</p>
<p>I had previously followed the instructions from <a href="http://www.ladyada.net/make/xbee/arduino.html" target="_blank">LadyAda</a> and got a very flaky program load &#8211; particularly with large files. Now following the <a href="http://funnel.cc/Hardware/FIO" target="_blank">Funnel IO</a> route I have a reliable and solid way of remotely programming the board. I am using the Arduino IDE to upload the code. This also works well with direct use of <a href="http://winavr.sourceforge.net/" target="_blank">avrdude</a>.<br />
The secret lies in the XBee configuration &#8211; this works for me.</p>
<table border="1">
<tbody>
<tr>
<th>Command</th>
<th>Coordinator (i.e. a PC side)</th>
<th>End device (i.e. a FIO side)</th>
</tr>
<tr>
<td colspan="3">ATRE &#8211; Reset to defaults</td>
</tr>
<tr>
<td>ATBD</td>
<td>4</td>
<td>4</td>
</tr>
<tr>
<td>ATID</td>
<td>1234</td>
<td>1234</td>
</tr>
<tr>
<td>ATMY</td>
<td>0</td>
<td>1</td>
</tr>
<tr>
<td>ATDL</td>
<td>FFFF</td>
<td>0</td>
</tr>
<tr>
<td>ATD3</td>
<td>3</td>
<td>5</td>
</tr>
<tr>
<td>ATIC</td>
<td>8</td>
<td>-</td>
</tr>
<tr>
<td>ATIU</td>
<td>-</td>
<td>0</td>
</tr>
<tr>
<td>ATIA</td>
<td>-</td>
<td>FFFF</td>
</tr>
<tr>
<td>ATRR</td>
<td>3</td>
<td>-</td>
</tr>
<tr>
<td>ATRO</td>
<td>10</td>
<td>10</td>
</tr>
<tr>
<td colspan="3">ATWR &#8211; Write the changes</td>
</tr>
<tr>
<td colspan="3">ATCN &#8211; Exit command mode</td>
</tr>
</tbody>
</table>
<p>I think the main difference from my first attempts lies in the destination address (ATDL). I will test further to see what is needed &#8211; also how well this works for other Arduino types.</p>
]]></content:encoded>
			<wfw:commentRss>http://john.crouchley.com/blog/archives/372/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

