<?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; Oscilloscope</title>
	<atom:link href="http://dailyduino.com/archives/category/tools/oscilloscope-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>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>

