<?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; Tools</title>
	<atom:link href="http://dailyduino.com/archives/category/tools/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>Getting Started with Pachube &amp; Arduino</title>
		<link>http://dailyduino.com/archives/616</link>
		<comments>http://dailyduino.com/archives/616#comments</comments>
		<pubDate>Thu, 25 Jun 2009 13:18:50 +0000</pubDate>
		<dc:creator>Morgellon</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Communication]]></category>
		<category><![CDATA[Optical]]></category>
		<category><![CDATA[Pachube]]></category>
		<category><![CDATA[Phone]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Sensors]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Based]]></category>

		<guid isPermaLink="false">http://dailyduino.com/?p=616</guid>
		<description><![CDATA[Another post on Pachube and how easy it is to get setup and going. This post will cover the basic steps on how to get some sensors online!  I will be using my project of two light sensors as an example.  The status of my light sensors are viewable at http://www.pachube.com/feeds/2145 Pachube + Arduino from [...]]]></description>
			<content:encoded><![CDATA[<p>Another post on Pachube and how easy it is to get setup and going. This post will cover the basic steps on how to get some sensors online!  I will be using my project of two light sensors as an example.  The status of my light sensors are viewable at <a title="http://www.pachube.com/feeds/2145" href="http://www.pachube.com/feeds/2145" target="_blank">http://www.pachube.com/feeds/2145</a></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=5320339&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=5320339&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></p>
<p><a href="http://vimeo.com/5320339">Pachube + Arduino</a> from <a href="http://vimeo.com/morgellon">Morgellon</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p><strong>STEP ONE: </strong><em>GET A PACHUBE ACCOUNT!</em></p>
<p>Head over to the <a title="http://www.pachube.com/" href="http://www.pachube.com/" target="_blank">Pachube</a> website and see various sensors from all over the world and view their status.  Be sure to view the <a title="http://community.pachube.com/about" href="http://community.pachube.com/about" target="_blank">ABOUT</a> page, this describes INPUTs and OUTPUTs, along with ways to interface with Pachube and your sensors.  The <a title="http://community.pachube.com/quickstart" href="http://community.pachube.com/quickstart" target="_blank">QUICKSTART</a> page has the details to get started and how to use your API.  Pachube is still in beta, so you&#8217;ll need to get an invite code&#8230; but no worries, Pachube has an email address on the QUICKSTART page.  Just send them and email asking for an invite and what you would like to do.  If they let me in&#8230; they will let anyone in! <img src='http://dailyduino.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>STEP TWO: </strong><em>PREPARE ARDUINO! </em></p>
<p>The Arduino can be interfaced with Pachube <strong>two</strong> ways: 1. With an Ethernet shield <strong>OR</strong> 2. Via USB connected to a PC running Processing&#8230; which is the way used in this tutorial&#8230; as I feel it is an easy and inexpensive way.  You can learn more about each way at the <a title="http://community.pachube.com/arduino" href="http://community.pachube.com/arduino" target="_blank">Pachube Arduino</a> page.</p>
<p>To prep the Arduino, you need to connect the sensors you will be using and <em><strong>verify</strong></em> <strong>that they are working correctly!</strong> Once the sensors are good, then upload the &#8220;Standard Firmata&#8221; to the Arduino.  Now the Arduino is prepped for Pachube!  Leave the Arduino connected to the PC.</p>
<p><strong>STEP THREE: </strong><em>PREPARE PROCESSING!</em></p>
<p>To have Processing communicate easily with Pachube, you will need to add a few libraries.  They are the Pachuino, Arduino and EEML libraries, they are available and there is more info at the <a title="http://community.pachube.com/node/13" href="http://community.pachube.com/node/13" target="_blank">PACHUINO</a> page.  Download, unzip and move them to the <strong>libraries</strong> folder, in your <strong>sketchbook</strong> folder.  Now Processing is ready!</p>
<p><strong>STEP FOUR: </strong><em>PREPARE INPUT FEED!</em></p>
<p>Once you have a Pachube account and your API key, go ahead and set up a new feed for your sensors.  Since I have light sensors, I started a new <a title="http://www.pachube.com/feeds/new" href="http://www.pachube.com/feeds/new" target="_blank">INPUT FEED</a>.  I chose to make my feed &#8220;manual&#8221; (as this is easier for me) which means Pachube gets updates only when I send them.  Instead of Pachube connecting directly to my PC to pull the info.</p>
<p><strong>STEP FIVE: </strong><em>PREPARE CODE FOR PROCESSING!</em></p>
<p>Once you have the libraries in the folder, you are ready to start Processing and start coding.  Below is the code I used for my light sensor.  This was taken from the sample code and stripped to make it more simple. I added a LED on pin 11 to light up (to let me know when my Arduino was running) and a delay(1500).</p>
<p>Be sure to add you API Key, and the URL of your INPUT FEED!</p>
<p><em>import processing.serial.*;<br />
import cc.arduino.*;<br />
import eeml.*;<br />
import pachuino.*;</em></p>
<p><em>Pachuino p;<br />
Arduino arduino;<br />
int ledPin = 11;</em></p>
<p><em>void setup(){<br />
p = new Pachuino(this, Arduino.list()[0], 115200);<br />
p.manualUpdate(&#8220;http://www.pachube.com/api/2145.xml&#8221;); // change URL &#8212; this is the feed you want to update<br />
p.setKey(&#8220;&#8212;YOUR API KEY HERE&#8212;&#8221;);</em></p>
<p><em>// local sensors<br />
p.addLocalSensor(&#8220;analog&#8221;, 0,&#8221;Light Sensor Inside&#8221;);<br />
p.addLocalSensor(&#8220;analog&#8221;, 1,&#8221;Light Sensor Outside&#8221;);<br />
}</em></p>
<p><em>void draw(){<br />
//p.debug();<br />
p.digitalWrite(ledPin, Arduino.HIGH);<br />
delay(1500);<br />
}</em></p>
<p><em>// you don&#8217;t need to change any of these</em></p>
<p><em>void onReceiveEEML(DataIn d){<br />
p.updateRemoteSensors(d);<br />
}</em></p>
<p><strong>STEP SIX: </strong><em>LAUNCH CODE AND COLLECT DATA!</em></p>
<p>Make sure that:</p>
<ul>
<li>Sensors are <em>*working*</em> and connected to Arduino</li>
<li>Arduino is running &#8220;Standard Firmata&#8221; and connected to computer</li>
<li>Processing is collecting sensor data from Arduino</li>
<li>Computer has Internet connection</li>
</ul>
<p>Now run your program and begin collecting data and sharing it on the web!!  Check your feed to make sure you data is being transmitted.  Have fun and happy tinkering!</p>
<p>&#8211;Morgellon OUT!</p>
]]></content:encoded>
			<wfw:commentRss>http://dailyduino.com/archives/616/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Arduino + Pachube = Web Connected Sensors!</title>
		<link>http://dailyduino.com/archives/592</link>
		<comments>http://dailyduino.com/archives/592#comments</comments>
		<pubDate>Wed, 24 Jun 2009 12:37:13 +0000</pubDate>
		<dc:creator>Morgellon</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Communication]]></category>
		<category><![CDATA[Displays]]></category>
		<category><![CDATA[Optical]]></category>
		<category><![CDATA[Pachube]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Sensors]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Based]]></category>

		<guid isPermaLink="false">http://dailyduino.com/?p=592</guid>
		<description><![CDATA[Quick update before I zonk out&#8230;  Yesterday I setup an account for Pachube and spent all night getting familiar with how it works. Pachube describes itself as a service that enables you to connect, tag and share real time sensor data from objects, devices, buildings and environments around the world. The key aim is to [...]]]></description>
			<content:encoded><![CDATA[<p>Quick update before I zonk out&#8230;  Yesterday I setup an account for <a title="http://www.pachube.com/" href="http://www.pachube.com/" target="_blank">Pachube</a> and spent all night getting familiar with how it works. Pachube describes itself as a service that enables you to connect, tag and share real time sensor data from objects, devices, buildings and environments around the world. The key aim is to facilitate interaction between remote environments, both physical and virtual.</p>
<p>It also works with Arduino and Processing&#8230; hrmmmmm&#8230;..</p>
<div>As a &#8220;test&#8221; project, I set up two light sensors in my room.  One is mounted on the wall, the other is taped to the window facing outside.  The idea is to compare inside light levels to outside light levels and adjust for energy consumption.  If the light level outside is equal or greater than inside, then perhaps I should open the blinds to let in more light&#8230; or maybe even go outside&#8230; <em><strong>*gasp</strong></em>*</div>
<div>The two light sensors are connected to an Arduino running the Standard Firmata.  The Arduino is connected to a PC running a Processing sketch that sends the sensor data to Pachube.  Nice and easy!  I&#8217;ll post more details, code and a basic tutorial later&#8230; after I&#8217;ve slept&#8230; that way it <em><strong>*might*</strong></em> make sense.</div>
<div>Until then, here are some pictures and graphs. (yay graphs!) The two graphs are generated by Pachube and are fairly easy to customize.  The higher the number, the less light is present.  So, hopefully the Inside Light Sensor will stay a nice high number as I sleep&#8230; while the Outside Light Sensor should lower over the course of the day.</div>
<div>
<a href='http://dailyduino.com/archives/592/2009-06-24-065401' title='2009-06-24-065401'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/06/2009-06-24-065401-150x150.jpg" class="attachment-thumbnail" alt="Arduino Light Sensor Wiring" title="2009-06-24-065401" /></a>
<a href='http://dailyduino.com/archives/592/2009-06-24-065230' title='2009-06-24-065230'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/06/2009-06-24-065230-150x150.jpg" class="attachment-thumbnail" alt="Light Sensors in Room" title="2009-06-24-065230" /></a>
<a href='http://dailyduino.com/archives/592/2009-06-24-065118' title='2009-06-24-065118'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/06/2009-06-24-065118-150x150.jpg" class="attachment-thumbnail" alt="Inside Light Sensor" title="2009-06-24-065118" /></a>
<a href='http://dailyduino.com/archives/592/2009-06-24-065254' title='2009-06-24-065254'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/06/2009-06-24-065254-150x150.jpg" class="attachment-thumbnail" alt="Outside Light Sensor" title="2009-06-24-065254" /></a>
<a href='http://dailyduino.com/archives/592/2009-06-24-070307' title='2009-06-24-070307'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/06/2009-06-24-070307-150x150.jpg" class="attachment-thumbnail" alt="Outside Light Sensor" title="2009-06-24-070307" /></a>
<a href='http://dailyduino.com/archives/592/2009-06-24-070403' title='2009-06-24-070403'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/06/2009-06-24-070403-150x150.jpg" class="attachment-thumbnail" alt="Sunrise" title="2009-06-24-070403" /></a>
<a href='http://dailyduino.com/archives/592/2009-06-24-070102' title='2009-06-24-070102'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2009/06/2009-06-24-070102-150x150.jpg" class="attachment-thumbnail" alt="&quot;Screen Shot&quot;" title="2009-06-24-070102" /></a>
</div>
<p><img class="alignnone" title="INSIDE Light Sensor" src=" http://www.pachube.com/feeds/2145/datastreams/0/history.png?w=500&amp;h=200&amp;c=33cc66&amp;b=true&amp;g=true&amp;t=Inside%20Light%20Sensor&amp;l=Higher%20Numbers%20Equal%20Dark%20---%20Lower%20Numbers%20Equal%20Light&amp;s=2" alt="" width="500" height="200" /></p>
<p><img class="alignnone" title="Outside Light Sensor" src=" http://www.pachube.com/feeds/2145/datastreams/1/history.png?w=500&amp;h=200&amp;c=33cc66&amp;b=true&amp;g=true&amp;t=Outside%20Light%20Sensor&amp;l=Higher%20Numbers%20Equal%20Dark%20---%20Lower%20Numbers%20Equal%20Light&amp;s=2" alt="" width="500" height="200" /></p>
<p>The graphs will continue to update as they receive more data from the sensors.  It will be interesting to watch and compare the differences in the two graphs.  More to come soon!</p>
<p>&#8211;Morgellon OUT!!</p>
<p><code><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dailyduino.com/archives/592/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search Engine Power!</title>
		<link>http://dailyduino.com/archives/579</link>
		<comments>http://dailyduino.com/archives/579#comments</comments>
		<pubDate>Thu, 18 Jun 2009 17:39:33 +0000</pubDate>
		<dc:creator>Morgellon</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Based]]></category>

		<guid isPermaLink="false">http://dailyduino.com/?p=579</guid>
		<description><![CDATA[So, you have a *great* idea for an Arduino project&#8230; you&#8217;ve thought about what parts you will need and how they will work&#8230; but where will you find the parts?&#8230; and are you sure that&#8217;s the right resistor value?! Today I would like to share a few tools that I use to help me, when [...]]]></description>
			<content:encoded><![CDATA[<p>So, you have a <strong><em>*great*</em></strong> idea for an Arduino project&#8230; you&#8217;ve thought about what parts you will need and how they will work&#8230; but where will you find the parts?&#8230; and are you sure that&#8217;s the right resistor value?!</p>
<p>Today I would like to share a few tools that I use to help me, when I am in the design phase of a project.  Both are relatively new and you may already be aware of them&#8230; but I thought it was worth a post&#8230; just in case <img src='http://dailyduino.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Octopart </strong><a title="http://octopart.com/" href="http://octopart.com/" target="_blank">octopart.com/</a></p>
<p>Octopart is a search engine for electronic parts.  This is a great resource for many reasons!  Octoparts allows you to filter your search by relevance, price, or quantity.  You can also search by manufacturer or supplier, along with package type, size and many other options.  I can see this being quite helpful for when your favorite parts supplier is out of stock&#8230; or perhaps you&#8217;re looking for an alternative to an existing part&#8230; maybe you&#8217;re building hundreds of bots for a robotics swarm and you need lots of parts and you want them from the same supplier&#8230; or&#8230; (it goes on and on&#8230;)</p>
<p><strong>Wolfram Alpha</strong> <a title="http://www.wolframalpha.com/examples/ElectricCircuits.html" href="http://www.wolframalpha.com/examples/ElectricCircuits.html">www.wolframalpha.com</a></p>
<p>Wolfram Aplha is a &#8220;Computation Knowledge Engine&#8221;. What does that mean? I have <em><strong>no</strong></em> clue&#8230; but what I do know, is that it&#8217;s a wonderful tool for doing equations. It&#8217;s like having your own ship&#8217;s computer from the Star Trek!  For those who like it, it&#8217;s a very nice reference tool and a great way for doing math or double checking equations.</p>
<p>I highly recommend that you spend time with these two sites!! See if they have a spot in <em><strong>your</strong></em> toolkit!</p>
]]></content:encoded>
			<wfw:commentRss>http://dailyduino.com/archives/579/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts on Solder</title>
		<link>http://dailyduino.com/archives/391</link>
		<comments>http://dailyduino.com/archives/391#comments</comments>
		<pubDate>Wed, 04 Feb 2009 01:46:01 +0000</pubDate>
		<dc:creator>Morgellon</dc:creator>
				<category><![CDATA[Solder]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://dailyduino.com/?p=391</guid>
		<description><![CDATA[Wow, ice storms pack quite a wrath! Having no power for almost a week made me really consider doing some &#8220;alternative energy powered&#8221; Arduino projects. Perhaps using a solar panel, dynamo or other method&#8230; but first a week worth of Internet to catch up on!! While I catch up, here&#8217;s a neat video to tide [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><em>Wow, ice storms pack quite a wrath! Having no power for almost a week made me really consider doing some &#8220;alternative energy powered&#8221; Arduino projects. Perhaps using a solar panel, dynamo or other method&#8230; but first a week worth of Internet to catch up on!! While I catch up, here&#8217;s a neat video to tide you over until the next post!</em></p></blockquote>
<p>Did you know there are different types of Solder? Solder comes in many different forms, with various melting points and properties!</p>
<p>Here&#8217;s a great video detailing some of the differences and possible myths between lead/lead-free solder<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="486" height="412" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="flashObj" /><param name="bgcolor" value="#000066" /><param name="flashvars" value="videoId=1182721269&amp;playerId=959009706&amp;viewerSecureGatewayURL=https://console.brightcove.com/services/amfgateway&amp;servicesURL=http://services.brightcove.com/services&amp;cdnURL=http://admin.brightcove.com&amp;domain=embed&amp;autoStart=false&amp;" /><param name="src" value="http://services.brightcove.com/services/viewer/federated_f8/959009706" /><embed type="application/x-shockwave-flash" width="486" height="412" src="http://services.brightcove.com/services/viewer/federated_f8/959009706" flashvars="videoId=1182721269&amp;playerId=959009706&amp;viewerSecureGatewayURL=https://console.brightcove.com/services/amfgateway&amp;servicesURL=http://services.brightcove.com/services&amp;cdnURL=http://admin.brightcove.com&amp;domain=embed&amp;autoStart=false&amp;" bgcolor="#000066" name="flashObj"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://dailyduino.com/archives/391/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time to Solder! (Soldering 101)</title>
		<link>http://dailyduino.com/archives/474</link>
		<comments>http://dailyduino.com/archives/474#comments</comments>
		<pubDate>Tue, 20 Jan 2009 11:14:55 +0000</pubDate>
		<dc:creator>Morgellon</dc:creator>
				<category><![CDATA[Solder]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://dailyduino.com/?p=474</guid>
		<description><![CDATA[There are many reasons to learn the art of soldering, if you don&#8217;t already solder.  Whether to take a project from breadboard prototype to a completed project&#8230; saving money by buying a kit instead of a pre-assembled&#8230; harvesting parts from old/broken electronics&#8230; modifying existing consumer electronics&#8230; the reasons go on and on! BUT learning to [...]]]></description>
			<content:encoded><![CDATA[<p>There are many reasons to learn the art of soldering, if you don&#8217;t already solder.  Whether to take a project from breadboard prototype to a completed project&#8230; saving money by buying a kit instead of a pre-assembled&#8230; harvesting parts from old/broken electronics&#8230; modifying existing consumer electronics&#8230; the reasons go on and on!</p>
<p><strong>BUT</strong> learning to solder can be intimidating&#8230; especially if you&#8217;re learning on your own or don&#8217;t have someone to consult with.</p>
<p>Luckily, the fine people at <a href="http://www.curiousinventor.com/" target="_blank">Curious Inventor</a> have put together a great resource for soldering and solder reference. They also have a <em><strong>great</strong></em> video tutorial, which you can view below.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="410" height="341" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="bgcolor" value="#FFFFFF" /><param name="src" value="http://www.veoh.com/veohplayer.swf?permalinkId=v856147aJkKFNGA&amp;id=&amp;player=videodetailsembedded" /><embed type="application/x-shockwave-flash" width="410" height="341" src="http://www.veoh.com/veohplayer.swf?permalinkId=v856147aJkKFNGA&amp;id=&amp;player=videodetailsembedded" bgcolor="#FFFFFF"></embed></object><span style="font-size: xx-small;"><a href="http://www.veoh.com/"><br />
</a></span></p>
<p style="text-align: center;"><strong>Be sure to check out the Curious Inventor Solder Guide for pics, reference and hints!</strong></p>
<ul>
<li style="text-align: center;"><a href="http://www.curiousinventor.com/guides/How_To_Solder" target="_blank">http://www.curiousinventor.com/guides/How_To_Solder</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dailyduino.com/archives/474/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Signal Analysis: Analog V.S. Digital PWM!!</title>
		<link>http://dailyduino.com/archives/343</link>
		<comments>http://dailyduino.com/archives/343#comments</comments>
		<pubDate>Wed, 19 Nov 2008 03:17:53 +0000</pubDate>
		<dc:creator>Morgellon</dc:creator>
				<category><![CDATA[Communication]]></category>
		<category><![CDATA[Oscilloscope]]></category>
		<category><![CDATA[PWM]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://dailyduino.com/?p=343</guid>
		<description><![CDATA[Signals come in two basic types &#8211; Analog and Digital. Analog signals are capable of being any value, where Digital signals are called &#8220;discrete&#8221;, meaning they capable of being in only one of two states! The terms for these two states of a Digital signal are varied but include; ON/OFF, TRUE/FALSE, 1/0, HIGH/LOW, etc. So [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Signals come in two basic types &#8211; <em>Analog</em> and <em>Digital</em>.</strong> Analog signals are capable of being any value, where Digital signals are called &#8220;discrete&#8221;, meaning they capable of being in <em><strong>only</strong></em> one of two states!  The terms for these two states of a Digital signal are varied but include; ON/OFF, TRUE/FALSE, 1/0, HIGH/LOW, etc.</p>
<p><strong>So what&#8217;s that mean? </strong>A good example of a Digital signal is a light switch in your house. You can either flip the light switch ON, or flip the light switch OFF. To follow this line of thought, an example of an Analog signal would be a light with a dimmer switch.  With a dimmer switch you can adjust how bright or dim the light is, anywhere from completely OFF, to completely ON.</p>
<p><strong>Okay&#8230;</strong> The Arduino is capable of analog <em>and</em> digital INPUT, but <em><strong>only</strong></em> capable of digital OUTPUT. When working with the Arduino we see that there are 6 analog pins and 14 digital pins. (It should be noted that if you have no need of analog INPUT; you may use the analog pins as extra digital OUTPUT pins &#8212; declaring them as digital pins 14 &#8211; 19)</p>
<p>So, if we are only capable of digital OUTPUT on the Arduino, how are we able to dim a LED?</p>
<div id="attachment_349" class="wp-caption aligncenter" style="width: 310px"><a href="http://dailyduino.com/wp-content/uploads/2008/11/file-arduino-dimmer.jpg"><img class="size-medium wp-image-349" title="file-arduino-dimmer" src="http://dailyduino.com/wp-content/uploads/2008/11/file-arduino-dimmer-300x165.jpg" alt="Dimming LED's with digital PWM" width="300" height="165" /></a><p class="wp-caption-text">dimming LED with digital PWM</p></div>
<p><strong>ENTER PWM!! (Pulse Width Modulation)</strong> Some, but not all pins on the Arduino are capable of Digital PWM OUTPUT. Basically, PWM is the digital way of mimicking an analog OUTPUT.</p>
<p>To better show the difference between Analog and Digital PWM, I put together a simple LED dimmer circuit and hooked up an oscilloscope to view the Analog and Digital PWM signals.  I took some video of everything in action to better serve as an example.</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=2272891&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=2272891&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/2272891">Analog Signal VS PWM Signal</a> from <a href="http://vimeo.com/morgellon">Morgellon</a> on <a href="http://vimeo.com">Vimeo</a></p>
<p>The sketch I used in this video is available here: <a href="http://serverwillprovide.com/icuubi/examples/analog_vs_PWM.pde" target="_self">http://serverwillprovide.com/icuubi/examples/analog_vs_PWM.pde</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dailyduino.com/archives/343/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

