<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 20 Nov 2008 06:29:30 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[NewsForge: Real world control from a Web page]]></title>
      <guid>http://www.phpdeveloper.org/news/5426</guid>
      <link>http://www.phpdeveloper.org/news/5426</link>
      <description><![CDATA[<p>
If you've ever wanted yout scripts to do something more "outside the box" and out in the real world, you might want to check out <a href="http://hardware.newsforge.com/hardware/06/05/11/1517222.shtml?tid=123&tid=55&tid=48">this new tutorial</a> from NewsForge for a good start.
</p>
<quote>
<i>
In "<a href="http://hardware.newsforge.com/hardware/06/02/02/1647248.shtml?tid=87">Acquiring data from the physical world</a>" we examined how to use a microcontroller to turn physical events (such as reading a switch) into data and send that data to a Linux box via the serial line. With this capability you can do things like counting people passing through a gate or recording how the temperature changes over time in a factory process. You can then send the data to a Web page. In this article, we'll do it in reverse -- from a Web form, instruct a microcontroller to perform some actions
</i>
</quote>
<p>
The concept's pretty simple - the <a href="http://hardware.newsforge.com/hardware/06/05/11/1517222.shtml?tid=123&tid=55&tid=48">form they build</a> submits back to the page and writes the input out to a file. This file is then read by the controller for the LED they have connected and, with the proper input, will turn it on and off. The code for the PHP/web side of things is included, but it might take a little work to get the rest of the hardware interfaced (as the author saw as well).
</p>]]></description>
      <pubDate>Tue, 23 May 2006 07:20:11 -0500</pubDate>
    </item>
  </channel>
</rss>
