<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Trick or Netduino... Pneumatic Popup Skeleton just in time for Halloween</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/coding4fun/blog/Trick-or-Netduino-Pneumatic-Popup-Skeleton-just-in-time-for-Halloween/RSS"></atom:link>
	<image>
		<url>http://files.channel9.msdn.com/thumbnail/c0108976-0d31-4afc-ba91-f07c7d20c96c.png</url>
		<title>Channel 9 - Trick or Netduino... Pneumatic Popup Skeleton just in time for Halloween</title>
		<link></link>
	</image>
	<description>Halloween is coming up. Scaring, as in safe Halloween type scaring, people is fun. C# and Netduino is fun. Lets put all three together... Halloween - Pneumatic Popup Skeleton This is my first Netduino project. I built a popup skeleton and was controlling it with some old X10 stuff. You can see this phase in action in this video. But I wanted to add LED eyes and maybe some sound. So I ordered the Netduino&amp;#43; a few weeks ago. So far I have the following features working: The Netduino is setup to act as a web server. Nothing special, the single page it serves has one button that, when clicked, runs the popup cycle. I&#39;m going to use my Android tablet on Halloween to scare people when they walk up. The popup cycle follows these stepsA. Signal the external relay board using digital I/O #2 for 2 seconds. The external relay board sends 24vac to the automatic sprinkler valve. The sprinkler value allows air to flow from a compressor into a modified screen-door closer. B. Flash the LED eyes using digital I/O #0 and #1 for 8 seconds. C. I plan on adding lights that will shine on the skeleton and some sort of audio laugh-track. Every minute, when the popup cycle isn&#39;t running, the LED eyes flash in a few different patterns. In this video you can see the flashing eyes.      And a little code snip; private static void PopupSkeletonThreadFunction()
  {
      DateTime beginTime = DateTime.Now;
      DateTime endAirActionTime = DateTime.Now;
      DateTime endTime = DateTime.Now;
      while (true)
      {
          if (m_BeginPopupSkeletonCycle)
          {
              m_PopupCycleRunning = true;
              m_BeginPopupSkeletonCycle = false;
              beginTime = DateTime.Now;
              endTime = beginTime.AddSeconds(8);
              endAirActionTime = beginTime.AddSeconds(2);
              airAction.Write(false);
          }

          if (DateTime.Now &amp;lt;= endTime)
          {
              EyesAlternateFlash(500);

              if (DateTime.Now &amp;gt;= endAirActionTime)
              {
                  airAction.Write(true);
              }
          }
          else
          {
              m_PopupCycleRunning = false;
              Thread.Sleep(500);
          }
      }
  }
 If you&#39;re looking for that fun Halloween project... (or maybe this will get you thinking, like it has me. What if we mixed in some Kinect for Windows SDK into a project like this... hum...) &amp;nbsp; Here’s a few more links you might find interesting: Netduino Netduino Helpers library Christoc’s Netduino Samples Netduino is opening up to an wider audience with the .Net Micro Framework v4.2 release .Net Micro Framework CodePlex Project </description>
	<link></link>
	<language>en</language>
	<pubDate>Tue, 21 May 2013 20:27:33 GMT</pubDate>
	<lastBuildDate>Tue, 21 May 2013 20:27:33 GMT</lastBuildDate>
	<generator>Rev9</generator>
</channel>
</rss>