<?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>Cloacina Development Blog &#187; moitoring</title>
	<atom:link href="http://www.cloacina.org/blog/tag/moitoring/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloacina.org/blog</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 17:41:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>New Monitoring System: easier, wireless, more reliable</title>
		<link>http://www.cloacina.org/blog/2010/06/new-monitoring-system-easier-wireless-more-reliable/</link>
		<comments>http://www.cloacina.org/blog/2010/06/new-monitoring-system-easier-wireless-more-reliable/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 23:40:18 +0000</pubDate>
		<dc:creator>Mathew</dc:creator>
				<category><![CDATA[composters]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[moitoring]]></category>

		<guid isPermaLink="false">http://www.cloacina.org/blog/?p=94</guid>
		<description><![CDATA[Now we’re getting somewhere!  My previous networked temperature monitoring systems were a little buggy.  My first temperature monitor had its cable chewed up by a rodent and needed to be reset frequently.  My second prototype failed on restart, making it problematic in low-power situations (a known issue for the Arduino’s Ethernet Shield), and eventually the [...]]]></description>
			<content:encoded><![CDATA[<p>Now we’re getting somewhere!  My previous networked temperature monitoring systems were a little buggy.  My <a href="http://www.cloacina.org/blog/2010/03/monitoring-compost-pt-1-what-weve-got/">first temperature monitor</a> had its cable chewed up by a rodent and needed to be reset frequently.  My <a href="http://www.cloacina.org/blog/2010/04/new-temperature-monitor/">second prototype</a> failed on restart, making it problematic in low-power situations (<a href="http://community.pachube.com/arduino/ethernet/watchdog">a known issue</a> for the Arduino’s Ethernet Shield), and eventually the probe itself succumbed to moisture because of a failed seal.<br />
My new system relies on <a href="http://code.google.com/p/sserial2mobile/">serial communication between an Arduino and a Motorola C168i cell phone</a>, bridging data to <a href="http://apps.pachube.com/tweet.html">Pachube through Twitter</a>, and sending an e-mail to my server as a backup.  I really like this setup because it is reliable, cheap, and deployable in far more locations than ethernet or WiFi would allow.  I picked up a C168i at Goodwill for 10 dollars (and another on E-bay for $12) and it costs me $5 a month to add to my T-Mobile plan.  The system runs off a single 6-volt source, and I&#8217;m currently piecing together a solar/battery system to go completely wireless.</p>
<p><strong><a href="http://www.cloacina.org/blog/wp-content/uploads/2010/06/inside-the-system.png"><img class="alignnone size-full wp-image-97" title="Arduino and C168i" src="http://www.cloacina.org/blog/wp-content/uploads/2010/06/inside-the-system.png" alt="" width="425" height="497" /></a><br />
</strong></p>
<p><strong>Weather-proof housings:</strong><br />
I picked up a $6 <a href="http://www.amazon.com/s/ref=nb_sb_noss?url=node%3D3375301&amp;field-keywords=dry+bag&amp;x=0&amp;y=0">5-quart dry bag</a> from my local sports store, and am using that to house my arduino and cell phone.  It rolls down on the cables, and is a great solution to the weather-proofing electrical connections. My sensors are connected through 1/8&#8243; mini stereo jacks, because they&#8217;re ubiquitous.  Tear them off of any broken set of headphones.</p>
<p><a href="http://www.cloacina.org/blog/wp-content/uploads/2010/06/little-bag.png"><img class="alignnone size-full wp-image-98" title="drybag for electronics" src="http://www.cloacina.org/blog/wp-content/uploads/2010/06/little-bag.png" alt="" width="388" height="694" /></a></p>
<p><a href="http://www.cloacina.org/blog/wp-content/uploads/2010/06/littlebag-2.png"><img class="alignnone size-medium wp-image-99" title="drybag inside" src="http://www.cloacina.org/blog/wp-content/uploads/2010/06/littlebag-2-300x168.png" alt="" width="300" height="168" /></a></p>
<p>Rather than crimping the PEX tubing housing my sensor string, I’ve switched to screwing in 1/2” pneumatic fittings with some teflon tape. The stabbing end is filled with epoxy, and the cable end is sealed with several layers of shrink-wrap tubing and high-temp hot glue.</p>
<p><a href="http://www.cloacina.org/blog/wp-content/uploads/2010/06/waterproofing.png"><img class="alignnone size-full wp-image-100" title="sealing the cable in" src="http://www.cloacina.org/blog/wp-content/uploads/2010/06/waterproofing.png" alt="" width="324" height="390" /></a></p>
<p>Code, and notes on communicating with a C168i:<br />
The C168i has a wonderful feature that <a href="http://forums.parallax.com/forums/default.aspx?f=15&amp;m=304418">aught to be on all cell phones</a>- you can talk TTL to the audio jack!  <a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1265259790/7">It is presumed that internally</a> the phone is a <a href="http://www.harvest.com/modules.htm">G-24 Lite GSM Module</a>, and <a href="http://harvestelectronics.com/harvest/pdf/g24-l_at_commands_final_091007.pdf">G-24 commands</a> work on the C168i.  On the forums there are some comments about sudden communication failures and dead phones.  I think I’ve pinpointed the problem- The G-24 operates between 3.3V and 4.2V, and most USB devices, (including the Arduino) run at 4.6-5V.  The phone is obviously running hot- when you plug a USB-mounted arduino directly into the C168i its screen brightness jumps and flickers. I knocked the voltage down to 3.7V by placing four 1N4007 rectifier diodes (two pairs of two , one facing each way) on each of the communication lines (RX &amp; TX).  I know it&#8217;s inefficient, but it&#8217;s quick, and only for when the system is being programmed/debugged.</p>
<p>Like this:</p>
<p>RX&#8211;&gt;|&#8211;&gt;|&#8211;RX</p>
<p>RX&#8211;|&lt;&#8211;|&lt;&#8211;RX</p>
<p>In the fielded system I removed the diodes and just run the power source at 6V, at which point the Arduino communicates at 4.1V.</p>
<p>Arduino code <a href="http://www.cloacina.org/blog/wp-content/uploads/2010/06/Multiple5twitpachubelong.zip">here</a><br />
You will need <a href="http://code.google.com/p/sserial2mobile/">SSerial2Mobile Library</a>, <a href="http://arduiniana.org/libraries/NewSoftSerial/">New Soft Serial Library</a>, <a href="http://milesburton.com/wiki/index.php?title=Dallas_Temperature_Control_Library#Download">Dallas Temp Library</a>, and <a href="http://www.pjrc.com/teensy/td_libs_OneWire.html">OneWire Library</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloacina.org/blog/2010/06/new-monitoring-system-easier-wireless-more-reliable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

