<?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>Nien Lam &#187; PComp</title>
	<atom:link href="http://blog.nienlam.com/category/itp/pcomp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nienlam.com</link>
	<description>║▌║█║▌║▌││║▌║█║▌│║▌║█</description>
	<lastBuildDate>Thu, 05 Aug 2010 21:02:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Elemental Stick</title>
		<link>http://blog.nienlam.com/2009/12/21/elemental-stick-2/</link>
		<comments>http://blog.nienlam.com/2009/12/21/elemental-stick-2/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 15:55:36 +0000</pubDate>
		<dc:creator>nien</dc:creator>
				<category><![CDATA[PComp]]></category>
		<category><![CDATA[PComp Final Project]]></category>

		<guid isPermaLink="false">http://www.nienlam.com/?p=1031</guid>
		<description><![CDATA[Completed 12/2009 Using your breath, you can remotely control the 3 elemental forces of nature (wind, fire and water) through a 6 foot bamboo cane. &#160; The idea is based on the Chilean rainsticks that recreate the sound of rain when they are flipped over. The Elemental Stick allows for control of the forces of [...]]]></description>
			<content:encoded><![CDATA[<p><em>Completed 12/2009 </em></p>
<p>Using your breath, you can remotely control the 3 elemental forces of nature (wind, fire and water) through a 6 foot bamboo cane.<br />
&nbsp;<br />
<img src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/12/IMG_0431-300x225.jpg" alt="IMG_0431" title="IMG_0431" width="300" height="225" class="alignnone size-medium wp-image-812" /><br />
The idea is based on the Chilean rainsticks that recreate the sound of rain when they are flipped over. The Elemental Stick allows for control of the forces of nature by the use of your breath. Mother Nature or God would perhaps use this type of interface to control the elemental forces.  As you blow into the remote (shorter bamboo cane) the sounds of wind, fire, or water coming from the long bamboo cane will grow louder and the lights will become brighter in addition to changing color based on the element selected. Twisting the remote, ie. altering the tilt, will change the control between the 3 different elemental forces.</p>
<p>&nbsp;<br />
<a href="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/12/IMG_0437.jpg"><img class="alignnone size-large wp-image-798" title="IMG_0437" src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/12/IMG_0437-1024x768.jpg" alt="IMG_0437" width="520" /></a></p>
<p><a href="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/12/IMG_0447.jpg"><img class="alignnone size-large wp-image-796" title="IMG_0447" src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/12/IMG_0447-1024x768.jpg" alt="IMG_0447" width="520"  /></a></p>
<p><a href="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/12/IMG_0424.jpg"><img class="alignnone size-medium wp-image-800" title="IMG_0424" src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/12/IMG_0424-300x225.jpg" alt="IMG_0424" width="520"  /></a></p>
<p>&nbsp;<br />
<strong>Elemental Stick and Remote Demo</strong><br />
<embed src="http://blip.tv/play/AYG1_xMA" type="application/x-shockwave-flash" width="520" height="305" allowscriptaccess="always" allowfullscreen="true"></embed></p>
<p>&nbsp;<br />
&nbsp;</p>
<p><strong> Construction and Testing</strong><br />
- Arduino Pro Mini&#8217;s are used for the microcontrollers<br />
- Wireless communication is done via the Xbee&#8217;s<br />
- A thermistor is used for the breath sensor<br />
- The BlinkM MaxM, available on Sparkfun, is used to light the fiber optics<br />
- The MP3 Trigger, also available on Sparkfun, is used for audio playback and storage<br />

<a href='http://blog.nienlam.com/2009/12/21/elemental-stick-2/img_0398/' title='IMG_0398'><img width="150" height="150" src="http://blog.nienlam.com/wp-content/uploads/2010/04/IMG_0398-150x150.jpg" class="attachment-thumbnail" alt="IMG_0398" title="IMG_0398" /></a>
<a href='http://blog.nienlam.com/2009/12/21/elemental-stick-2/img_0403/' title='IMG_0403'><img width="150" height="150" src="http://blog.nienlam.com/wp-content/uploads/2010/04/IMG_0403-150x150.jpg" class="attachment-thumbnail" alt="IMG_0403" title="IMG_0403" /></a>
<a href='http://blog.nienlam.com/2009/12/21/elemental-stick-2/img_0415/' title='IMG_0415'><img width="150" height="150" src="http://blog.nienlam.com/wp-content/uploads/2010/04/IMG_0415-150x150.jpg" class="attachment-thumbnail" alt="IMG_0415" title="IMG_0415" /></a>
<a href='http://blog.nienlam.com/2009/12/21/elemental-stick-2/img_0419/' title='IMG_0419'><img width="150" height="150" src="http://blog.nienlam.com/wp-content/uploads/2010/04/IMG_0419-150x150.jpg" class="attachment-thumbnail" alt="IMG_0419" title="IMG_0419" /></a>
<a href='http://blog.nienlam.com/2009/12/21/elemental-stick-2/img_0431-300x225/' title='IMG_0431-300x225'><img width="150" height="150" src="http://blog.nienlam.com/wp-content/uploads/2010/07/IMG_0431-300x225-150x150.jpg" class="attachment-thumbnail" alt="IMG_0431-300x225" title="IMG_0431-300x225" /></a>
<br />
&nbsp;<br />
<strong>Testing Electronics</strong><br />
<embed src="http://blip.tv/play/AYG05QMA" type="application/x-shockwave-flash" width="480" height="390"  allowscriptaccess="always" allowfullscreen="true"></embed><br />
&nbsp;<br />
&nbsp;</p>
<p><strong>Testing Elemental Stick</strong><br />
<embed src="http://blip.tv/play/AYG05F8A" type="application/x-shockwave-flash" width="480" height="390"  allowscriptaccess="always" allowfullscreen="true"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nienlam.com/2009/12/21/elemental-stick-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Final Project Idea (Update) &#8211; Elemental Stick</title>
		<link>http://blog.nienlam.com/2009/12/07/elemental-stick/</link>
		<comments>http://blog.nienlam.com/2009/12/07/elemental-stick/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 16:09:48 +0000</pubDate>
		<dc:creator>nien</dc:creator>
				<category><![CDATA[PComp]]></category>
		<category><![CDATA[PComp Final Project]]></category>

		<guid isPermaLink="false">http://www.nienlam.com/itp-blog/?p=771</guid>
		<description><![CDATA[After getting feedback from class, I&#8217;ve changed my idea a bit. So instead of a device that tells you the weather, I created a device where you can control the elemental forces of nature. Using your breath, you will remotely control wind, fire and water. Mother nature or God would perhaps use this type of [...]]]></description>
			<content:encoded><![CDATA[<p>After getting feedback from class, I&#8217;ve changed my idea a bit.  So instead of a device that tells you the weather, I created a device where you can control the elemental forces of nature.  Using your breath, you will remotely control wind, fire and water.  Mother nature or God would perhaps use this type of interface to control the elemental forces.  The project is made of a 6 foot bamboo cane that houses the electronics(w/ Xbee), a speaker and fiber optic cables.  The remote is a shorter bamboo cane you blow into.  It houses a Xbee, a thermistor and an accelerometer.  As you blow into the remote, the sounds from the long bamboo cane will become louder and the fiber optics will become brighter.  Twisting the remote will allow you to change between the 3 different elemental forces.<br />
&nbsp;<br />
<strong>Testing Electronics</strong><br />
<embed src="http://blip.tv/play/AYG05QMA" type="application/x-shockwave-flash" width="480" height="390"  allowscriptaccess="always" allowfullscreen="true"></embed><br />
&nbsp;<br />
<strong>Testing Elemental Stick</strong><br />
<embed src="http://blip.tv/play/AYG05F8A" type="application/x-shockwave-flash" width="480" height="390"  allowscriptaccess="always" allowfullscreen="true"></embed></p>
<p>&nbsp;<br />
<strong>Elemental Stick and Remote Demo</strong><br />
<embed src="http://blip.tv/play/AYG1_xMA" type="application/x-shockwave-flash" width="520" height="305" allowscriptaccess="always" allowfullscreen="true"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nienlam.com/2009/12/07/elemental-stick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Final Project Idea &#8211; The Weather Stick</title>
		<link>http://blog.nienlam.com/2009/11/24/final-project-idea-the-relaxation-stick/</link>
		<comments>http://blog.nienlam.com/2009/11/24/final-project-idea-the-relaxation-stick/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 06:37:43 +0000</pubDate>
		<dc:creator>nien</dc:creator>
				<category><![CDATA[PComp]]></category>
		<category><![CDATA[PComp Final Project]]></category>

		<guid isPermaLink="false">http://www.nienlam.com/itp-blog/?p=738</guid>
		<description><![CDATA[For my project I&#8217;m creating a device that tells you the weather forecast. Using sound, and possibly visuals, I plan to create a wireless device which will get the latest weather report. Based on the report, it will translate this into sounds.  For example, if it is sunny out it will play sounds of the [...]]]></description>
			<content:encoded><![CDATA[<p>For my project I&#8217;m creating a device that tells you the weather forecast.  Using sound, and possibly visuals, I plan to create a wireless device which will get the latest weather report.  Based on the report, it will translate this into sounds.  For example, if it is sunny out it will play sounds of the beach, or if it is cold it would play the sounds of wind blowing.  My idea and interface is based on the rainsticks that come from Chile or Peru.  These sticks are normally made from cactus filled with pebbles.  When flipped over, the pebbles bouncing to the bottom generate what sounds like rain.  Instead of cactus I will be using bamboo, which is easier to find and work with then cactus, and embed it with speakers to create sounds of different types of weather.  An accelerometer inside the stick will detect the motion and play the tracks when the stick is flipped over.  I may also add a visual element using fiber optic cables that change colors/brightness in correspondence with the weather/temperature.  The general goal of my project is to create something that tells you the weather in a more interesting and visceral way.</p>
<p><img class="alignnone size-full wp-image-740" title="Rainstick_01" src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/Rainstick_01.png" alt="Rainstick_01" width="520"  /></p>
<p><img class="alignnone size-full wp-image-750" title="WeatherStick" src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/WeatherStick.jpg" alt="WeatherStick" width="520"  /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nienlam.com/2009/11/24/final-project-idea-the-relaxation-stick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Media Controller &#8211; Double Agent</title>
		<link>http://blog.nienlam.com/2009/11/22/media-controller-midterm-project-double-agent/</link>
		<comments>http://blog.nienlam.com/2009/11/22/media-controller-midterm-project-double-agent/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 23:30:23 +0000</pubDate>
		<dc:creator>nien</dc:creator>
				<category><![CDATA[PComp]]></category>

		<guid isPermaLink="false">http://www.nienlam.com/itp-blog/?p=696</guid>
		<description><![CDATA[For our media controller, Patrick Hebron, Don Miller and I built a video game using Processing and the Arduino micro-controller. The game allows up to six players. Players work together to control a tank&#8217;s x-movement, y-movement, turret rotation, firing rate and force-field. We designed the game to work as a platform. Any media controller that [...]]]></description>
			<content:encoded><![CDATA[<p>For our media controller, Patrick Hebron, Don Miller and I built a video game using Processing and the Arduino micro-controller.  The game allows up to six players.  Players work together to control a tank&#8217;s x-movement, y-movement, turret rotation, firing rate and force-field.  We designed the game to work as a platform.  Any media controller that sends out 2 digital bits (00, 01, 10) can plug in and control one of the tanks attributes.  The game is called <em>Double Agent</em> cause when a tank is struck by a projectile, one of the players from the side which got hit will swap to the other side giving that side an increased advantage.  When a side has no players, the game is over.</p>
<p><a href="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/DoubleAgentGrab.jpg"><img class="alignleft size-large wp-image-698" title="DoubleAgentGrab" src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/DoubleAgentGrab-1024x616.jpg" alt="DoubleAgentGrab" width="520"  /></a></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="520" height="390" 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=7600807&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="520" height="390" src="http://vimeo.com/moogaloop.swf?clip_id=7600807&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><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="520" height="390" 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=7600777&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="520" height="390" src="http://vimeo.com/moogaloop.swf?clip_id=7600777&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>&nbsp;<br />
The controller hub and controllers.</p>
<p><a href="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/IMG_2084.jpg"><img class="alignnone size-thumbnail wp-image-706" title="IMG_2084" src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/IMG_2084-150x150.jpg" alt="IMG_2084" width="150" height="150" /></a><a href="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/IMG_2085.jpg"><img class="alignnone size-thumbnail wp-image-705" title="IMG_2085" src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/IMG_2085-150x150.jpg" alt="IMG_2085" width="150" height="150" /></a><a href="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/IMG_2086.jpg"><img class="alignnone size-thumbnail wp-image-704" title="IMG_2086" src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/IMG_2086-150x150.jpg" alt="IMG_2086" width="150" height="150" /></a><a href="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/IMG_2087.jpg"><img class="alignnone size-thumbnail wp-image-703" title="IMG_2087" src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/IMG_2087-150x150.jpg" alt="IMG_2087" width="150" height="150" /></a></p>
<ul>
<li> <a href="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/DoubleAgent.zip"> Download the Processing/Arduino Code </a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.nienlam.com/2009/11/22/media-controller-midterm-project-double-agent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Motor with H-Bridge Lab</title>
		<link>http://blog.nienlam.com/2009/11/03/motor-with-h-bridge-lab/</link>
		<comments>http://blog.nienlam.com/2009/11/03/motor-with-h-bridge-lab/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:46:28 +0000</pubDate>
		<dc:creator>nien</dc:creator>
				<category><![CDATA[PComp]]></category>

		<guid isPermaLink="false">http://www.nienlam.com/itp-blog/?p=618</guid>
		<description><![CDATA[Using an H-bridge you can control a DC motor&#8217;s direction. Here I&#8217;m using the Texas Instruments L293NE. Setup and code can be found here.]]></description>
			<content:encoded><![CDATA[<p><embed src="http://blip.tv/play/AYGtrgEA" type="application/x-shockwave-flash" width="480" height="390" allowscriptaccess="always" allowfullscreen="true"></embed></p>
<p>Using an H-bridge you can control a DC motor&#8217;s direction.  Here I&#8217;m using the Texas Instruments L293NE.  Setup and code can be found <a href="http://itp.nyu.edu/physcomp/Labs/DCMotorControl"  target= _blank > here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nienlam.com/2009/11/03/motor-with-h-bridge-lab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transistor Lab</title>
		<link>http://blog.nienlam.com/2009/11/03/transistor-lab/</link>
		<comments>http://blog.nienlam.com/2009/11/03/transistor-lab/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:40:07 +0000</pubDate>
		<dc:creator>nien</dc:creator>
				<category><![CDATA[PComp]]></category>

		<guid isPermaLink="false">http://www.nienlam.com/itp-blog/?p=609</guid>
		<description><![CDATA[Using a TIP120 transistor, we can control high-current DC loads. Here I&#8217;m using potentiometer to change the brightness of a incandescent light bulb that is powered by a 9V power supply. Setup and code can be found here.]]></description>
			<content:encoded><![CDATA[<p><embed src="http://blip.tv/play/AYGtrXkA" type="application/x-shockwave-flash" width="480" height="390" allowscriptaccess="always" allowfullscreen="true"></embed></p>
<p>Using a TIP120 transistor, we can control high-current DC loads.  Here I&#8217;m using potentiometer to change the brightness of a incandescent light bulb that is powered by a 9V power supply.  Setup and code can be found <a href="http://itp.nyu.edu/physcomp/Tutorials/HighCurrentLoads"  target= _blank > here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nienlam.com/2009/11/03/transistor-lab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serial Duplex Lab</title>
		<link>http://blog.nienlam.com/2009/10/27/serial-duplex-lab/</link>
		<comments>http://blog.nienlam.com/2009/10/27/serial-duplex-lab/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 21:13:29 +0000</pubDate>
		<dc:creator>nien</dc:creator>
				<category><![CDATA[PComp]]></category>

		<guid isPermaLink="false">http://www.nienlam.com/itp-blog/?p=623</guid>
		<description><![CDATA[Using 2 potentiometers and a switch, I&#8217;m sending 3 sensor values over to Processing to control the display of a circle on a black background. The 2 potentiometers control the x/y position while the switch controls the circle visibility. Setup and code can be found here. I had to change the value mapping to account [...]]]></description>
			<content:encoded><![CDATA[<p>Using 2 potentiometers and a switch, I&#8217;m sending 3 sensor values over to Processing to control the display of a circle on a black background.  The 2 potentiometers control the x/y position while the switch controls the circle visibility.  Setup and code can be found <a href="http://itp.nyu.edu/physcomp/Labs/SerialDuplex" target=_blank> here</a>.  I had to change the value mapping to account for using potentiometers vs the accelerometer used in the example.<br />
&nbsp;<br />
<img src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/IMG_2089.jpg" alt="IMG_2089" title="IMG_2089" width="480" height="640" class="alignnone size-full wp-image-641" /></p>
<p><img src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/11/IMG_2090.jpg" alt="IMG_2090" title="IMG_2090" width="480" height="360" class="alignnone size-full wp-image-642" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nienlam.com/2009/10/27/serial-duplex-lab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serial Out Lab using Arduino and Processing</title>
		<link>http://blog.nienlam.com/2009/10/20/serial-out-lab/</link>
		<comments>http://blog.nienlam.com/2009/10/20/serial-out-lab/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 16:34:54 +0000</pubDate>
		<dc:creator>nien</dc:creator>
				<category><![CDATA[PComp]]></category>

		<guid isPermaLink="false">http://www.nienlam.com/itp-blog/?p=540</guid>
		<description><![CDATA[Using a potentiometer with Arduino, we can send serial data to Processing. The readings are graphed over time. Setup and code can be found here. &#160;]]></description>
			<content:encoded><![CDATA[<p>Using a potentiometer with Arduino, we can send serial data to Processing.  The readings are graphed over time.  Setup and code can be found <a href="http://itp.nyu.edu/physcomp/Labs/SerialOut" target=_blank> here</a>.<br />
&nbsp;<br />
<img src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/10/IMG_2053.jpg" alt="IMG_2053" title="IMG_2053" width="480" height="360" class="alignnone size-large wp-image-542" /></p>
<p><img src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/10/IMG_2052.jpg" alt="IMG_2052" title="IMG_2052" width="480" height="360" class="alignnone size-large wp-image-541" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nienlam.com/2009/10/20/serial-out-lab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stupid Pet Trick (Revisited) –  Photo Sensor Tone Generator the Digital Way</title>
		<link>http://blog.nienlam.com/2009/10/06/stupid-pet-trick-revisited-%e2%80%93-photo-sensor-tone-generator-the-digital-way/</link>
		<comments>http://blog.nienlam.com/2009/10/06/stupid-pet-trick-revisited-%e2%80%93-photo-sensor-tone-generator-the-digital-way/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 15:22:29 +0000</pubDate>
		<dc:creator>nien</dc:creator>
				<category><![CDATA[PComp]]></category>

		<guid isPermaLink="false">http://www.nienlam.com/itp-blog/?p=414</guid>
		<description><![CDATA[After trying to calibrate the analog sensor to play a tune, I was unsuccessful in getting particular shades to consistently play the tones I want. I instead tried to use the photocell to detect white or black, representing 0 or 1. Using 4 photocells, I can create 16 combinations which is enough for a 2 [...]]]></description>
			<content:encoded><![CDATA[<p>After trying to calibrate the analog sensor to play a tune, I was unsuccessful in getting particular shades to consistently play the tones I want.  I instead tried to use the photocell to detect white or black, representing 0 or 1.  Using 4 photocells, I can create 16 combinations which is enough for a 2 octave scale.  Below is the printed chart I used to map the tones and a clip playing the 2 octave scale .</p>
<p>&nbsp;<br />
<img src="http://www.nienlam.com/itp-blog/wp-content/uploads/2009/10/DigitalScale.jpg" alt="DigitalScale" title="DigitalScale" width="372" height="500" class="alignleft size-full wp-image-416" /><br />
&nbsp;<br />
&nbsp;<br />
<embed src="http://blip.tv/play/AYGlnmoA" type="application/x-shockwave-flash" align="middle" width="480" height="390" allowscriptaccess="always" allowfullscreen="true" ></embed></p>
<div class="link">
<ul>
<li>
<a class = "linkanchor" href='http://www.nienlam.com/itp-blog/wp-content/uploads/2009/10/DigitalSensorToneGen.txt'>Arduino Code (DigitalSensorToneGen)</a> </li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.nienlam.com/2009/10/06/stupid-pet-trick-revisited-%e2%80%93-photo-sensor-tone-generator-the-digital-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stupid Pet Trick &#8211; Photo Sensor Tone Generator</title>
		<link>http://blog.nienlam.com/2009/10/06/photo-sensor-tone-generator/</link>
		<comments>http://blog.nienlam.com/2009/10/06/photo-sensor-tone-generator/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 15:08:58 +0000</pubDate>
		<dc:creator>nien</dc:creator>
				<category><![CDATA[PComp]]></category>

		<guid isPermaLink="false">http://www.nienlam.com/itp-blog/?p=428</guid>
		<description><![CDATA[Using a photocell, I can play 2 octaves of the C major scale. The next objective is to try to play a tune. Arduino Code (PhotoSensorToneGen)]]></description>
			<content:encoded><![CDATA[<p><embed src="http://blip.tv/play/AYGlny4A" type="application/x-shockwave-flash" width="480" height="390" allowscriptaccess="always" allowfullscreen="true"></embed><br />
Using a photocell, I can play 2 octaves of the C major scale.  The next objective is to try to play a tune.</p>
<div class="link">
<ul>
<li>
<a class="linkanchor" href='http://www.nienlam.com/itp-blog/wp-content/uploads/2009/10/PhotoSensorToneGen.txt'>Arduino Code (PhotoSensorToneGen)</a>
</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.nienlam.com/2009/10/06/photo-sensor-tone-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
