<?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 Daily Duino &#187; Temperature</title>
	<atom:link href="http://dailyduino.com/archives/category/sensors/temperature/feed" rel="self" type="application/rss+xml" />
	<link>http://dailyduino.com</link>
	<description>mostly daily arduino projects and news</description>
	<lastBuildDate>Fri, 04 Dec 2009 19:46:14 +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>DS18B20 Temperature Sensors and Arduino</title>
		<link>http://dailyduino.com/archives/552</link>
		<comments>http://dailyduino.com/archives/552#comments</comments>
		<pubDate>Tue, 28 Apr 2009 07:32:55 +0000</pubDate>
		<dc:creator>Morgellon</dc:creator>
				<category><![CDATA[Sensors]]></category>
		<category><![CDATA[Temperature]]></category>

		<guid isPermaLink="false">http://dailyduino.com/?p=552</guid>
		<description><![CDATA[Spent the day working with DS18B20 temperature sensors and getting an Arduino to read the data they spit out.  Lucky for me and you, we have the shoulders of giants to stand upon as we copy and paste some magical code to get us started! DS18B20 Temperature Sensors + Arduino from Morgellon on Vimeo. The [...]]]></description>
			<content:encoded><![CDATA[<p>Spent the day working with DS18B20 temperature sensors and getting an Arduino to read the data they spit out.  Lucky for me and you, we have the shoulders of giants to stand upon as we copy and paste some magical code to get us started!</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=4370075&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://vimeo.com/moogaloop.swf?clip_id=4370075&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
<a href="http://vimeo.com/4370075">DS18B20 Temperature Sensors + Arduino</a> from <a href="http://vimeo.com/morgellon">Morgellon</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>The DS18B20 is a small 3 pin temperature sensor that closely resembles a transistor.  Each one has a &#8220;unique&#8221; 64bit serial code and can communicate over a &#8220;1 Wire&#8221; protocol.   With a bit of code, we can have multiple temperature sensors all communicating and sending data over just <strong>one</strong> pin!</p>
<p>I&#8217;ve taken some pictures of my project today.  I have three DS18B20 all communicating over pin 10 on an Arduino.</p>

<a href='http://dailyduino.com/archives/552/attachment/1240890896474' title='1240890896474'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/04/1240890896474-150x150.jpg" class="attachment-thumbnail" alt="DS18B20 Temperature Sensor and Arduino" title="1240890896474" /></a>
<a href='http://dailyduino.com/archives/552/attachment/1240890912331' title='1240890912331'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/04/1240890912331-150x150.jpg" class="attachment-thumbnail" alt="DS18B20 Temperature Sensor and Arduino" title="1240890912331" /></a>
<a href='http://dailyduino.com/archives/552/attachment/1240890955890' title='1240890955890'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/04/1240890955890-150x150.jpg" class="attachment-thumbnail" alt="DS18B20 Temperature Sensors and Arduino" title="1240890955890" /></a>
<a href='http://dailyduino.com/archives/552/attachment/1240891013416' title='1240891013416'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/04/1240891013416-150x150.jpg" class="attachment-thumbnail" alt="DS18B20 Temperature Sensors and Arduino" title="1240891013416" /></a>
<a href='http://dailyduino.com/archives/552/attachment/1240891036353' title='1240891036353'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/04/1240891036353-150x150.jpg" class="attachment-thumbnail" alt="DS18B20 Temperature Sensors" title="1240891036353" /></a>
<a href='http://dailyduino.com/archives/552/attachment/1240892195639' title='1240892195639'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/04/1240892195639-150x150.jpg" class="attachment-thumbnail" alt="&quot;Screen Shot&quot;" title="1240892195639" /></a>

<p>The first, or closest to the Arduino, is wired in &#8220;Normal&#8221; or &#8220;Master&#8221; mode.</p>
<ul>
<li>GND(pin1) to Arduino GND</li>
<li>DQ(pin2) to Arduino Pin 10</li>
<li>VDD(pin3) to Arduino 5V</li>
<li>a 4.7K Resistor between DQ(pin2) and VDD(pin3)</li>
</ul>
<p>The last two, or middle and furthest away from the Arduino are wired in &#8220;Parasitic&#8221; or &#8220;Slave&#8221; mode.  These two require no power (as their name sake implies).</p>
<ul>
<li>GND(pin1) and VDD(pin3) to Arduino GND</li>
<li>DQ(pin2) to Arduino Pin 10</li>
</ul>
<p>The bit of sample code scans through the DS18B20 64bit serial codes until it finds no more unique codes.  It displays the information in HEX, followed by Celsius, then Fahrenheit of each sensor before moving to the next.</p>
<p>Download the code used in the example here:  <a title="DS18B20 code!  here we go!!" href="http://serverwillprovide.com/icuubi/examples/multiDS18B20.pde" target="_blank">http://serverwillprovide.com/icuubi/examples/multiDS18B20.pde</a></p>
<p style="text-align: center;">Read more about the DS18B20 Temperature Sensors and the Arduino!</p>
<ul>
<li style="text-align: center;"><a title="This will get us started with the things we need to know!" href="# http://www.arduino.cc/playground/Learning/OneWire" target="_self">http://www.arduino.cc/playground/Learning/OneWire</a></li>
<li style="text-align: center;"><a title="The nitty gritty details... DS18B20 datasheet" href="# http://datasheets.maxim-ic.com/en/ds/DS18S20.pdf" target="_blank">http://datasheets.maxim-ic.com/en/ds/DS18S20.pdf</a></li>
<li style="text-align: center;"><a title="Arduinoforum post about DS18B20... good stuff!" href="# http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1161557194/75" target="_blank">http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1161557194/75</a></li>
<li style="text-align: center;"><a title="Arduinoforum post about DS18B20... good stuff!" href="# http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1199313338/0" target="_blank">http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1199313338/0</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dailyduino.com/archives/552/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

