
<?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>The Lucas Eckels Blog &#187; xbee</title>
	<atom:link href="http://blog.lucaseckels.com/category/xbee/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lucaseckels.com</link>
	<description></description>
	<lastBuildDate>Fri, 07 Oct 2011 23:16:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Quasar, yet another DIY ambient orb (with wireless!)</title>
		<link>http://blog.lucaseckels.com/2009/10/09/quasar-yet-another-diy-ambient-orb-with-wireless/</link>
		<comments>http://blog.lucaseckels.com/2009/10/09/quasar-yet-another-diy-ambient-orb-with-wireless/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 03:59:44 +0000</pubDate>
		<dc:creator>Lucas</dc:creator>
				<category><![CDATA[arduino]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[xbee]]></category>

		<guid isPermaLink="false">http://blog.lucaseckels.com/?p=242</guid>
		<description><![CDATA[This project has been done many times, so I won&#8217;t go into much detail. I wanted a general purpose notifier, especially once I built Laundrymon. I figured a box with a high powered RGB LED and an XBee would fit the bill. The enclosure is just a project box with a sheet of cheap copy [...]]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="264"><param name="movie" value="http://www.youtube.com/v/X9RkHgmDgDA&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/X9RkHgmDgDA&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="264"></embed></object></p>
<p>This project has been done many times, so I won&#8217;t go into much detail.  I wanted a general purpose notifier, especially once I built <a href="http://blog.lucaseckels.com/2009/10/01/laundrymon-the-wireless-noninvasive-arduino-based-laundry-monitor/">Laundrymon</a>.  I figured a box with a <a href="http://www.seeedstudio.com/depot/luxeon-iii-star-compatible-1wchannel-rgb-p-146.html">high powered RGB LED</a> and an XBee would fit the bill.  The enclosure is just a project box with a sheet of cheap copy paper shaped with some wire and hot glue.  I added a <a href="http://en.wikipedia.org/wiki/Photoresistor">photoresistor</a> to dim the light in the bedroom at night.</p>
<p>I&#8217;m building a couple of these to scatter throughout the house so I always know when the laundry&#8217;s done, an email arrives, or whatever else I might want to be notified about.</p>
<p>Important note:  I misplaced one of the capacitors when designing the board.  It seems to be running well enough with a wire in its place.  It&#8217;s the one on the right in the lower left corner, above the power connector.</p>
<p><a href="http://lucaseckels.com/files/quasar.zip">Downloads the source and Eagle files</a><br />
<a href="http://www.batchpcb.com/index.php/Products/23182">Buy the PCB from BatchPCB</a></p>
<p><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/quasar-going.jpg" rel="lightbox-quasar" title="Quasar in action"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/quasar-going-150x150.jpg" alt="Quasar in action" title="Quasar in action" width="150" height="150" class="alignnone size-thumbnail wp-image-244" /></a><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/quasar-populated.jpg" rel="lightbox-quasar" title="Quasar populated board"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/quasar-populated-150x150.jpg" alt="Quasar populated board" title="Quasar populated board" width="150" height="150" class="alignnone size-thumbnail wp-image-246" /></a></p>
<p><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/quasar-prototype.jpg" rel="lightbox-quasar" title="Quasar breadboard prototype"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/quasar-prototype-150x150.jpg" alt="Quasar breadboard prototype" title="Quasar breadboard prototype" width="150" height="150" class="alignnone size-thumbnail wp-image-247" /></a><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/quasar-pcb.png" rel="lightbox-quasar" title="Quasar PCB design"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/quasar-pcb-150x150.png" alt="Quasar PCB design" title="Quasar PCB design" width="150" height="150" class="alignnone size-thumbnail wp-image-245" /></a></p>
<p><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/quasar-schematic.png" rel="lightbox-quasar" title="Quasar schematic"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/quasar-schematic-150x150.png" alt="Quasar schematic" title="Quasar schematic" width="150" height="150" class="alignnone size-thumbnail wp-image-248" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lucaseckels.com/2009/10/09/quasar-yet-another-diy-ambient-orb-with-wireless/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Laundrymon, the wireless, noninvasive, Arduino-based, laundry monitor</title>
		<link>http://blog.lucaseckels.com/2009/10/01/laundrymon-the-wireless-noninvasive-arduino-based-laundry-monitor/</link>
		<comments>http://blog.lucaseckels.com/2009/10/01/laundrymon-the-wireless-noninvasive-arduino-based-laundry-monitor/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 05:57:52 +0000</pubDate>
		<dc:creator>Lucas</dc:creator>
				<category><![CDATA[arduino]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[xbee]]></category>

		<guid isPermaLink="false">http://blog.lucaseckels.com/?p=198</guid>
		<description><![CDATA[I always forget to set a timer when doing laundry, and the machines are in the garage so they&#8217;re hard to hear. I&#8217;ve seen a couple of approaches to remotely monitor laundry machines. Unfortunately, I am not a commerical laundromat, and the since machines belong to the landlady I can&#8217;t really open them up to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/populated-board.jpg" rel="lightbox-laundrymon" title="Laundrymon populated circuit board"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/populated-board-300x195.jpg" alt="Laundrymon populated circuit board" title="Laundrymon populated circuit board" width="300" height="195" class="aligncenter size-medium wp-image-209" /></a><br />
I always forget to set a timer when doing laundry, and the machines are in the garage so they&#8217;re hard to hear.  I&#8217;ve seen a <a href="http://www.youtube.com/watch?v=wkMXpKmRXvU&amp;feature=player_embedded#">couple</a> of <a href="http://www.laundryview.com/lvs.php">approaches</a> to remotely monitor laundry machines.  Unfortunately, I am not a commerical laundromat, and the since machines belong to the landlady I can&#8217;t really open them up to hack on.  I needed a non-invasive solution.</p>
<p>The ideal approach would be something that I could put next to the washer and dryer that would passively detect whether the machine was running.  Laundry machines generally vibrate pretty much, so I decided to try to use an accelerometer to detect vibration.  The <a href="http://en.wikipedia.org/wiki/Wii_Nunchuk#Nunchuk">Wii Nunchuk</a> is a handy accelerometer with an I2C interface with Arduino <a href="http://todbot.com/blog/2008/02/18/wiichuck-wii-nunchuck-adapter-available/">code available</a>.  So I bought an <a href="http://store.fungizmos.com/index.php?main_page=product_info&amp;cPath=69&amp;products_id=212">adapter</a>, wrote a basic logging sketch, and taped a Nunchuk to the side of the washer to see what would happen.</p>
<p><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/graph.png" rel="lightbox-laundrymon" title="One run of the washer"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/graph-300x152.png" alt="Laundrymon graph" title="One run of the washer" width="300" height="152" class="size-medium wp-image-207" /></a></p>
<p>Hey, looks like this might actually work!</p>
<p>It turns out that even if you pay the full retail price of $20, the Nunchuk is still pretty much the cheapest accelerometer you can buy once it&#8217;s <a href="http://www.sparkfun.com/commerce/categories.php?c=80">broken out</a> from a tiny surface mount package.  I needed two Nunchuks &mdash; one for the washer and one for the dryer.  Normally, it&#8217;s easy to have multiple I2C devices connected together, but the Nunchuk has the slave address hard coded.  That&#8217;s easily solved with a <a href="http://www.wiimoteproject.com/tech-chat/2-nunchuck-with-arduino-help/">few transistors</a>.</p>
<p>Time to put it all together.  While the Nunchuk adapters are great for prototyping, they don&#8217;t really give a solid connection, so I swapped the cable for some network cable I had lying around.  I started with a basic <a href="http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard">breadboard Arduino</a> tutorial, and added an XBee for wireless and the nunchuk circuitry.  I used the excellent <a href="http://www.batchpcb.com">BatchPCB</a> for fabrication.  Even though the final board doesn&#8217;t looks much like an Arduino, it&#8217;s based on at Atmega168, so I can still use the Arduino IDE to develop the firmware.</p>
<p>Right now, all it does it play a sound on my home theater PC.  My next project is to make a bunch of blinkie notifiers to scatter throughout the house.</p>
<p><a href="http://lucaseckels.com/files/laundrymon.zip">Download the source and Eagle files</a><br />
<a href="http://www.batchpcb.com/index.php/Products/23181">Buy the PCB from BatchPCB</a></p>
<p><a title="Full Laundrymon setup" rel="lightbox-laundrymon" href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/full.jpg"><img class="size-thumbnail wp-image-206" title="Full Laundrymon setup" src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/full-150x150.jpg" alt="Full Laundrymon setup" width="150" height="150" /></a><a title="Nunchuk hang off of the dryer" rel="lightbox-laundrymon" href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/nunchuk-hanging.jpg"><img class="size-thumbnail wp-image-208" title="Nunchuk hang off of the dryer" src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/nunchuk-hanging-150x150.jpg" alt="Nunchuk hang off of the dryer" width="150" height="150" /></a></p>
<p><a title="Laundrymon schematic" rel="lightbox-laundrymon" href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/schematic.png"><img class="size-thumbnail wp-image-210" title="Laundrymon schematic" src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/schematic-150x150.png" alt="Laundrymon schematic" width="150" height="150" /></a><a title="Laundrymon circuitboard design" rel="lightbox-laundrymon" href="http://blog.lucaseckels.com/wp-content/uploads/2009/10/circuitboard.png"><img class="size-thumbnail wp-image-205" title="Laundrymon circuitboard design" src="http://blog.lucaseckels.com/wp-content/uploads/2009/10/circuitboard-150x150.png" alt="Laundrymon circuitboard design" width="150" height="150" alt="foo"/></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lucaseckels.com/2009/10/01/laundrymon-the-wireless-noninvasive-arduino-based-laundry-monitor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XBee Roomba problems</title>
		<link>http://blog.lucaseckels.com/2009/04/10/xbee-roomba-problems/</link>
		<comments>http://blog.lucaseckels.com/2009/04/10/xbee-roomba-problems/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 03:17:54 +0000</pubDate>
		<dc:creator>Lucas</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[roomba]]></category>
		<category><![CDATA[xbee]]></category>

		<guid isPermaLink="false">http://blog.lucaseckels.com/?p=155</guid>
		<description><![CDATA[While developing the software to use the XBee Roomba adapter I previously described, I discovered the Roomba was spewing data. My first guess was a bad solder joint, specifically the wire soldered to the mini-DIN connector. If that went open, the voltage divider would pull the data input to the XBee to ground. That joint [...]]]></description>
			<content:encoded><![CDATA[<p>While developing the software to use the XBee Roomba adapter I <a href="http://blog.lucaseckels.com/2009/04/01/xbee-adapter-for-roomba/">previously described</a>, I discovered the Roomba was spewing data.</p>
<p/>
My first guess was a bad solder joint, specifically the wire soldered to the mini-DIN connector.  If that went open, the voltage divider would pull the data input to the XBee to ground.  That joint wasn&#8217;t particularly great to begin with, and got pushed around when finishing assembly and using the board..  Unfortunately, I had covered the mini-DIN solder joints in hot glue in an attempt to prevent physical stress, so I couldn&#8217;t just heat up the joint and toss on a bit more solder.  I replaced the connector with a spare, but the problem was still there.</p>
<p/>
That&#8217;s when I noticed that the amount of bad data didn&#8217;t seem to be change when poking at the board and wires, so it probably wasn&#8217;t a physical problem.  I measured the voltage on the data input pin, and discovered it was only about 1.6V.  That puts it in the undefined area of whether the XBee will consider it high or low.  So I found the problem.</p>
<p/>
Different families of logic devices have different ranges of voltages that it will consider high or low, or output as high or low.  Unfortunately, the Roomba doesn&#8217;t document it&#8217;s thresholds, just that it&#8217;s a 5V device.  It turns out mine seems to output at about 3.4V, at least under the conditions I tested it.</p>
<p/>
I clipped off the bottom half of the voltage divider (R4), leaving a 1 k&Omega; resistor between the Roomba&#8217;s output and the XBee&#8217;s input, and the noise went away.  So it works, but is it safe?</p>
<p/>
In short, no.  But there isn&#8217;t enough documentation to design a safe divider.  The XBee doesn&#8217;t give a maximum safe voltage, but the EM250 that it&#8217;s based on says Vcc + 0.3V.  I&#8217;m supplying 3.3V to the XBee, so that means up to 3.6V.  The Roomba doesn&#8217;t document it&#8217;s maximum output.  If I divide enough to keep safe at 5V input, it wouldn&#8217;t work at the measured 3.4V.</p>
<p/>
For now, I&#8217;m living dangerously.  The remaining resistor (R3) should protect against high current, which tends to be more damaging.  If I damage the XBee, I&#8217;ll have to design a new board.  And then come up with a use for an XBee without a working serial input.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lucaseckels.com/2009/04/10/xbee-roomba-problems/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>XBee adapter for Roomba</title>
		<link>http://blog.lucaseckels.com/2009/04/01/xbee-adapter-for-roomba/</link>
		<comments>http://blog.lucaseckels.com/2009/04/01/xbee-adapter-for-roomba/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 06:12:02 +0000</pubDate>
		<dc:creator>Lucas</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[roomba]]></category>
		<category><![CDATA[xbee]]></category>

		<guid isPermaLink="false">http://blog.lucaseckels.com/?p=137</guid>
		<description><![CDATA[A few months ago, I decided on Digi&#8217;s XBee modules for my wireless projects. Today I&#8217;m showing off the first completed project &#8212; a wireless Roomba adapter. This project represents a number of firsts for me. First semi-practical use of XBee First time designing a PCB, using Eagle First custom PCB order, from BatchPCB The [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago, I decided on <a href="http://www.digi.com">Digi&#8217;s</a> <a href="http://www.digi.com/products/wireless/zigbee-mesh/xbee-zb-module.jsp">XBee</a> modules for my wireless projects.  Today I&#8217;m showing off the first completed project &mdash; a wireless Roomba adapter.  This project represents a number of firsts for me.</p>
<ul>
<li>First semi-practical use of XBee</li>
<li>First time designing a PCB, using <a href="http://www.cadsoft.de/">Eagle</a></li>
<li>First custom PCB order, from <a href="http://batchpcb.com/">BatchPCB</a></li>
</ul>
<p/>
The board is pretty simple.  It has a voltage regulator and a very simple voltage divider to connect between the Roomba&#8217;s 5V and the XBee&#8217;s 3.3V serial interface. [edit: See my <a href="http://blog.lucaseckels.com/2009/04/10/xbee-roomba-problems/">post</a> on the problem with this design]  The XBee is more than just a radio, it has a couple of analog/digital converters, and a couple of general purpose I/O pins.  I connected the baud select/wake pin on the Roomba to one of the XBee&#8217;s outputs, so I can wake up the Roomba remotely.</p>
<p/>
There&#8217;s no microcontroller on the board.  The idea is that all processing will be done remotely, and controller via the Roomba&#8217;s <a href="http://www.lucaseckels.com/files/iRobot_Roomba_500_Open_Interface_Spec.pdf">serial interface</a> over the XBee link.</p>
<p/>
The software isn&#8217;t far enough along to share, but in the meantime, <a href="http://hackingroomba.com/code/roombacomm/">RoombaComm</a> works if you configure the XBees appropriately.</p>
<p/>
<ul>
<li><a href="http://www.lucaseckels.com/files/Roomba-xbee_1.2.zip">Download the Eagle and Gerber files</a></li>
<li><a href="http://www.batchpcb.com/index.php/Products/20393">Buy the board from BatchPCB</a></li>
</ul>
<p/>
<a href="http://blog.lucaseckels.com/wp-content/uploads/2009/03/schematic.png" title="XBee-Roomba Circuit schematic" rel="lightbox-xbeeroomba"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/03/schematic-150x150.png" alt="XBee-Roomba Circuit schematic" title="XBee-Roomba Circuit schematic" width="150" height="150" class="size-thumbnail wp-image-117" /></a><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/03/breadboard.jpg" title="XBee-Roomba Breadboard prototype" rel="lightbox-xbeeroomba"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/03/breadboard-150x150.jpg" alt="XBee-Roomba Breadboard prototype" title="XBee-Roomba Breadboard prototype" width="150" height="150" class="size-thumbnail wp-image-120" /></a></p>
<p><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/03/pcb-design.png" title="XBee-Roomba PCB design" rel="lightbox-xbeeroomba"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/03/pcb-design-150x150.png" alt="XBee-Roomba PCB design" title="XBee-Roomba PCB design" width="150" height="150" class="size-thumbnail wp-image-126" /></a><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/03/barepcb.jpg" title="XBee-Roomba Bare PCB" rel="lightbox-xbeeroomba"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/03/barepcb-150x150.jpg" alt="XBee-Roomba Bare PCB" title="XBee-Roomba Bare PCB" width="150" height="150" class="size-thumbnail wp-image-125" /></a></p>
<p><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/03/assembled-top.jpg" itle="Assembled adapter, top view" rel="lightbox-xbeeroomba"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/03/assembled-top-150x150.jpg" alt="Assembled adapter, top view" title="Assembled adapter, top view" width="150" height="150" class="size-thumbnail wp-image-123" /></a><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/03/assembled-bottom.jpg" title="Assembled adapter, bottom" rel="lightbox-xbeeroomba"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/03/assembled-bottom-150x150.jpg" alt="Assembled adapter, bottom" title="Assembled adapter, bottom" width="150" height="150" class="size-thumbnail wp-image-122" /></a></p>
<p><a href="http://blog.lucaseckels.com/wp-content/uploads/2009/03/attached.jpg" title="Roomba with adapter" rel="lightbox-xbeeroomba"><img src="http://blog.lucaseckels.com/wp-content/uploads/2009/03/attached-150x150.jpg" alt="Roomba with adapter" title="Roomba with adapter" width="150" height="150" class="size-thumbnail wp-image-124" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lucaseckels.com/2009/04/01/xbee-adapter-for-roomba/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

