<?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>David Phillips &#187; physical computing</title>
	<atom:link href="http://davidphillips.us/tag/physical-computing/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidphillips.us</link>
	<description>Hiya!  I&#039;m a recent ITP graduate student living in New York.  I am hybrid of both designer and front end developer.  I make a mean Keynote too.</description>
	<lastBuildDate>Thu, 19 Jan 2012 18:44:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Stupid Pet Trick: The Zombie Alarm Clock</title>
		<link>http://davidphillips.us/2009/10/stupid-pet-trick-the-zombie-alarm-clock/</link>
		<comments>http://davidphillips.us/2009/10/stupid-pet-trick-the-zombie-alarm-clock/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 02:42:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Physical Computing]]></category>
		<category><![CDATA[alarm]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[pet]]></category>
		<category><![CDATA[physical computing]]></category>
		<category><![CDATA[stupid]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[zombie]]></category>

		<guid isPermaLink="false">http://davidphillips.us/?p=94</guid>
		<description><![CDATA[www.youtube.com/watch?v=NsZ_cIv32Mg The events took many, many days to get it to work.  However, the end result was exactly what I wanted. Part Zero &#8211; Starting and then Starting Over The entire goal was for this to be an alarm clock, &#8230; <a href="http://davidphillips.us/2009/10/stupid-pet-trick-the-zombie-alarm-clock/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youtube.com/watch?v=NsZ_cIv32Mg&#038;fmt=18">www.youtube.com/watch?v=NsZ_cIv32Mg</a></p>
<p>The events took many, many days to get it to work.  However, the end result was exactly what I wanted.</p>
<p><strong>Part Zero &#8211; Starting and then Starting Over</strong></p>
<p>The entire goal was for this to be an alarm clock, so my assumption was that I needed to find Alarm Clock code for the Arduino.  I found code online and then tried to descipher it.  I understood the basic infrastructure, but the code was so far beyond me as far as transforming it, I decided to scrap it and start with a shorter milestones.</p>
<p><strong>Part One &#8211; Getting the Servo Motor &amp; LED to work with a switch.</strong></p>
<p><strong> </strong></p>
<div id="attachment_108" class="wp-caption alignnone" style="width: 560px"><img class="size-full wp-image-108" title="stupid-pet-trick-1" src="http://davidphillips.us/wp-content/uploads/2009/10/stupid-pet-trick-1.jpg" alt="Putting It Together" width="550" height="413" /><p class="wp-caption-text">Putting It Together</p></div>
<p>My initial work was going through the labs from our homework and trying to fit them to my needs.  The first lab had an LED that reacted to a switch.  I needed the Servo to react to the same switch, but reacted with an analog sensor.  First, I tried them both with the flex sensor, then after some finnagling, I got them to react to the same switch.</p>
<p><strong>Part Two &#8211; Using a clock</strong></p>
<p><strong><img class="alignnone size-full wp-image-109" title="stupid-pet-trick-2" src="http://davidphillips.us/wp-content/uploads/2009/10/stupid-pet-trick-2.jpg" alt="stupid-pet-trick-2" width="550" height="413" /></strong></p>
<p>The next hurdle was to get the Servo to move on a timer.  After several failed attempts of using online code, John The Badass Resident showed me how to use the a <em>startTime=millis();</em> in my void loop, the built-in timer on the Arduino, when you start your code up.  It worked like a charm.  I knew there would be a hurdle when creating the snooze button, but I figured there was a way to work around that.</p>
<p><strong>Part Three &#8211; Abandoning The Clock</strong></p>
<p>Well, after trying to get the timer to work with my Servo and LED, I couldn&#8217;t get it to restart and John was long gone, so I worked with a friend&#8217;s code, Zeven and used a time variable.  That gave me the ability to restart.  For whatever reason, the LED wasn&#8217;t lighting up as well, which made no sense at all.</p>
<p><strong>Part Four &#8211; The Final Arduino Code</strong></p>
<p><strong><img class="alignnone size-full wp-image-110" title="stupid-pet-trick-3" src="http://davidphillips.us/wp-content/uploads/2009/10/stupid-pet-trick-3.jpg" alt="stupid-pet-trick-3" width="550" height="401" /></strong></p>
<p>It&#8217;s the night before and I&#8217;m trying not to stress out.  I again ask for help, apparently getting people into trouble and all sorts of various fun.  I know it&#8217;s a coding issue, and I just don&#8217;t know enough about coding.  John The Awesome Resident puts me in contact with a certain 2nd Year, who will go by the codename &#8220;The Bicyclist.&#8221;  The Bicyclist sits down and wipes out all my void loop code.  We go through and add <strong>two more variables</strong> (timer and stepDelay) and clean up my void setup and, step by step, we go through and piece by piece, make sure the code is speaking to each piece of hardware and then place it on the timer, and then go through and clean it up again.  The trick was really to reset the <em>millis</em> to the current time by nesting it in the <em>long timer</em>.  He showed me firsthand what it was like to code correctly.  It was genius.  Honestly, it&#8217;s to a point where I don&#8217;t want to go code again, cuz I finally did it correctly, and I wanna just have that be my lasting memory.  This is a terrible idea, obviously, so I&#8217;ll be working on the tone library tomorrow.</p>
<p><strong>Part Five &#8211; Aesthetics, Aesthetics, Aesthetics</strong></p>
<p>Until this point in the operation, I didn&#8217;t have any of my visuals put together.  That was the easy part.  I quickly constructed a house front, a fence and put a construction truck on a nice pice of varnished rich wood that I found laying around.  I printed out several zombie pictures, including one from an artist depicting a scene from Pride, Prejudice &amp; Zombies.  I hid the switch behind the piece.</p>
<p><strong>Part 6 &#8211; The Future</strong></p>
<p>The real question is do I continue to pursue this or do I abandon this project?  Is there a market for this?  When the heck would I have time to work on it?  I&#8217;ve given it a bit of thought, and I know what the next phases are:</p>
<ul>
<li><em>Phase 2</em> &#8211; Brighten the LED, add Wave shield to play zombie themed music</li>
<li><em>Phase 3</em> &#8211; Set to clock.</li>
<li><em>Phase 4</em> &#8211; The zombies walking toward the farmhouse would dance to the music when it turns on via servo motors &amp; some clever gearing/pulleys.</li>
<li><em>Phase 5</em> &#8211; Add nightlight funciton. Press button and the Servo goes behind the farmhouse, setting off a transluscent moon graphic with blue LED.  Human in farmhouse turns switches out with one that is werewolf, possibly have zombies turn and look like they&#8217;re running.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://davidphillips.us/2009/10/stupid-pet-trick-the-zombie-alarm-clock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Week 3 Lab</title>
		<link>http://davidphillips.us/2009/09/week-3-lab/</link>
		<comments>http://davidphillips.us/2009/09/week-3-lab/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 16:32:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Physical Computing]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[physical computing]]></category>

		<guid isPermaLink="false">http://davidphillips.us/?p=79</guid>
		<description><![CDATA[Alright, well, I got all hte way through Part 3 of the Lab, but that&#8217;s as far as I got. Red&#8217;s class. I almost burned out my voltage regulator. Good lord. Honestly, I&#8217;m aiming to get my stupid pet trick &#8230; <a href="http://davidphillips.us/2009/09/week-3-lab/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Alright, well, I got all hte way through Part 3 of the Lab, but that&#8217;s as far as I got.  Red&#8217;s class.  I almost burned out my voltage regulator.  Good lord. Honestly, I&#8217;m aiming to get my stupid pet trick done today.  TBD.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidphillips.us/2009/09/week-3-lab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sensor Walk</title>
		<link>http://davidphillips.us/2009/09/sensor-walk/</link>
		<comments>http://davidphillips.us/2009/09/sensor-walk/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 05:07:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Physical Computing]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[physical]]></category>
		<category><![CDATA[physical computing]]></category>
		<category><![CDATA[sensor]]></category>
		<category><![CDATA[walk]]></category>

		<guid isPermaLink="false">http://davidphillips.us/?p=25</guid>
		<description><![CDATA[Alright, so I went through my neighborhood to try and find some interesting items.  Here are the top three: The callbox: The Landlord]]></description>
			<content:encoded><![CDATA[<p>Alright, so I went through my neighborhood to try and find some interesting items.  Here are the top three:</p>
<div id="attachment_45" class="wp-caption alignnone" style="width: 235px"><img class="size-medium wp-image-45" title="card reader" src="http://davidphillips.us/wp-content/uploads/2009/09/IMG_3071-225x300.jpg" alt="card reader" width="225" height="300" /> <p class="wp-caption-text">I think of it as low level, but one could argue that it&#39;s high level.  It listens/reads the information I give it, comprehends it to know I have paid my money, and then in turn lets me through the turnstile.  However, the conversation was rather boorish.</p></div>
<p>The callbox:</p>
<div id="attachment_50" class="wp-caption alignnone" style="width: 235px"><img class="size-medium wp-image-50" title="callbox &amp; separate buzzer" src="http://davidphillips.us/wp-content/uploads/2009/09/IMG_3078-225x300.jpg" alt="callbox &amp; separate buzzer" width="225" height="300" /><p class="wp-caption-text">I love this thing. It&#39;s another low level interactive piece.  You press a button and it supposedly dials out to the respective room.  However, if you notice above the callbox is a regular doorbell, presumably cuz the callbox has what I call FAIL.</p></div>
<p>The Landlord</p>
<div id="attachment_53" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-53" title="Bricks holding up my cabinetry" src="http://davidphillips.us/wp-content/uploads/2009/09/IMG_3081-300x225.jpg" alt="This is the result of my interactive experience with my super.  He is incredibly nice, but when I mentioned to him that a brick was holding up my cabinets, he promtply came in, leaned on it, rushed out and got ANOTHER brick with pieces of tile. After shoving the second set of textiles in, he said, &quot;There, shouldn't budge.&quot;" width="300" height="225" /><p class="wp-caption-text">This is the result of my interactive experience with my super.  He is incredibly nice, but when I mentioned to him that a brick was holding up my cabinets, he promtply came in, leaned on it, rushed out and got ANOTHER brick with pieces of tile. After shoving the second set of textiles in, he said, &quot;There, shouldn&#39;t budge.&quot;  The information was listened to, thought about, but the response was not at all in cooperation with my meaning.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://davidphillips.us/2009/09/sensor-walk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Week One &#8211; Arduino and the Switch</title>
		<link>http://davidphillips.us/2009/09/week-one-arduino-and-the-switch/</link>
		<comments>http://davidphillips.us/2009/09/week-one-arduino-and-the-switch/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 00:43:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Physical Computing]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[physical]]></category>
		<category><![CDATA[physical computing]]></category>

		<guid isPermaLink="false">http://davidphillips.us/?p=5</guid>
		<description><![CDATA[This assignment was for Week One of my Intro to Physical Computing course. I went in three passes in the hopes of understanding my arduino better. I ran into several issues, but since this is the first time I&#8217;m fully &#8230; <a href="http://davidphillips.us/2009/09/week-one-arduino-and-the-switch/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-17" title="Arduino" src="http://davidphillips.us/wp-content/uploads/2009/09/arduino_duemilanove_redo-300x216.jpg" alt="Arduino" width="300" height="216" />This assignment was for Week One of my Intro to Physical Computing course. I went in three passes in the hopes of understanding my arduino better. I ran into several issues, but since this is the first time I&#8217;m fully using electronics, I am not going to beat myself up.</p>
<p><strong>PASS ONE:</strong><br />
Components:<br />
Four Cables<br />
Arduino<br />
NO code.</p>
<p>I ran a simple through line from Arduino to red cable to green cable to LED to orange cable to yellow cable to ground.  I was just excited about getting the LED to light up!<br />
<img class="alignnone size-medium wp-image-12" title="IMG_3042-right-side" src="http://davidphillips.us/wp-content/uploads/2009/09/IMG_3042-right-side-300x225.jpg" alt="IMG_3042-right-side" width="300" height="225" /></p>
<p><em>Mistakes: forgot resistor</em></p>
<p><strong>PASS 2 &#8211; Using the Blinkie code.</strong></p>
<p>Added Components:<br />
220Ω Resistor<br />
Arduino code</p>
<p>I added the resistor, after feeling foolish.  I will be going back and writing in the code myself (as was suggested by the Resident Help).  I gave the Arduino power, gave it code and&#8230;nothing.</p>
<div id="attachment_14" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-14" title="Blinkie-arduino" src="http://davidphillips.us/wp-content/uploads/2009/09/IMG_3045-web-300x225.jpg" alt="Yay resistors!" width="300" height="225" /><p class="wp-caption-text">Yay resistors! Boo not working!</p></div>
<p>It refused to light up.  I showed it to a classmate, who had previous Arduino experience. &#8220;Why do you have so many cables?&#8221; he asked.  We pulled all of the wires out and started over with as little as possible.  This time, it worked.</p>
<p><img class="size-full wp-image-19 alignnone" title="IMG_3049" src="http://davidphillips.us/wp-content/uploads/2009/09/IMG_3049.gif" alt="IMG_3049" width="400" height="300" /></p>
<p><em>Mistakes: Not reading instructions, only use what you need.</em></p>
<p><strong>PASS 3</strong></p>
<p>Added Components:<br />
New Arduino Code &#8211; Switch<br />
Two 220Ω Resistors<br />
One 10kΩ Resistor<br />
(Note: I actually used Three 220 resistors, but the issues that arise will unfold in good time.)</p>
<p>For the sake of time, I just copied and pasted the code, at the behest of a friend.  That wasn&#8217;t so bright, so I&#8217;ll need to go back and do it again, and figure out how it correlates with the hardware.  I decided to go sans switch, in order to simplify the situation and then later I&#8217;ll experiment with switch.</p>
<p>The light wasn&#8217;t switching very easily.  As it turned out, I used the wrong level resistor, cuz I didn&#8217;t read the directions.</p>
<p><img class="alignnone size-medium wp-image-21" title="IMG_3056" src="http://davidphillips.us/wp-content/uploads/2009/09/IMG_3056-224x300.jpg" alt="IMG_3056" width="224" height="300" /></p>
<p>But after I continuously rubbed the switch wires together, I  got the 2nd light to turn on and take a picture.</p>
<p><img class="alignnone size-medium wp-image-22" title="IMG_3057" src="http://davidphillips.us/wp-content/uploads/2009/09/IMG_3057-224x300.jpg" alt="IMG_3057" width="224" height="300" /></p>
<p><em>Mistakes: Incorrect resistor.</em></p>
<p>If anyone would like has any suggestions for how to make this documentation less boring or more effective, please comment! Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://davidphillips.us/2009/09/week-one-arduino-and-the-switch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

