<?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>Liz Arum&#039;s Blog &#187; Soft Circuits</title>
	<atom:link href="http://blog.lizarum.com/tag/soft-circuits/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lizarum.com</link>
	<description>I teach tech and share it</description>
	<lastBuildDate>Thu, 29 Sep 2011 16:29:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>A cute soft circuit project</title>
		<link>http://blog.lizarum.com/2009/10/a-cute-soft-circuit-project/</link>
		<comments>http://blog.lizarum.com/2009/10/a-cute-soft-circuit-project/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 18:55:59 +0000</pubDate>
		<dc:creator>Lizabeth Arum</dc:creator>
				<category><![CDATA[Circuits]]></category>
		<category><![CDATA[Teaching]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Physical Computing]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[Soft Circuits]]></category>

		<guid isPermaLink="false">http://blog.lizarum.com/?p=146</guid>
		<description><![CDATA[Here&#8217;s a soft circuit with 2 LEDs and a button. It is basically an electronic sock puppet. I used a sock covered in a knitted bag. The button is a sewing snap. When the mouth closes, the button returns a 1 and the LEDs flicker. Here&#8217;s the code #define btn 4 #define led1 3 #define [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a soft circuit with 2 LEDs and a button. It is basically an electronic sock puppet.</p>
<p>I used a sock covered in a knitted bag. The button is a sewing snap. When the mouth closes, the button returns a 1 and the LEDs flicker.</p>
<p><object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width="640"<br />
        height="850" codebase='http://www.apple.com/qtactivex/qtplugin.cab'><param name='src' value="../../images/keyframes/your_mov_name.MOV"><param name='autoplay' value="true"><param name='controller' value="true"><param name='loop' value="true"><embed src="http://blog.lizarum.com/wp-content/uploads/2009/10/puppet1.mov" width="320" height="255" autoplay="false"<br />
        controller="true" loop="false" pluginspage='http://www.apple.com/quicktime/download/'></embed></object></p>
<p>Here&#8217;s the code</p>
<p><code>#define btn 4<br />
#define led1 3<br />
#define led2 9<br />
int btnState;</p>
<p>void setup(){<br />
  pinMode(led1,OUTPUT);<br />
   pinMode(led2,OUTPUT);<br />
  pinMode(btn,INPUT);</p>
<p>}</p>
<p>void loop(){<br />
btnState=digitalRead(btn);<br />
if(btnState){<br />
      for(int i=50;i<255;i+=5){<br />
        analogWrite(led1,i);<br />
          analogWrite(led2,i);<br />
        delay(10);<br />
      }<br />
       for(int i=255;i>100;i-=5){<br />
        analogWrite(led1,i);<br />
          analogWrite(led2,i);<br />
        delay(10);<br />
      }<br />
}else{<br />
   digitalWrite(led1,LOW);<br />
   digitalWrite(led2,LOW);<br />
}<br />
      Serial.println(digitalRead(btn));<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lizarum.com/2009/10/a-cute-soft-circuit-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.lizarum.com/wp-content/uploads/2009/10/puppet1.mov" length="431587" type="video/quicktime" />
		</item>
	</channel>
</rss>

