News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
NewsForge:
Real world control from a Web page
May 23, 2006 @ 07:20:11

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 this new tutorial from NewsForge for a good start.

In "Acquiring data from the physical world" 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

The concept's pretty simple - the form they build 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).

0 comments voice your opinion now!
php real world control web page microcontroller led light php real world control web page microcontroller led light



Similar Posts

Zend Developer Zone: Sometimes It's Not the Post, It's the Conversation.

Utah PHP Users Group: March 2006 Meeting - 16th @ 7pm

David Hansson's Blog: The immediacy of PHP

PHPCult.com: PHP, Laziness and the consequences of bad habits

PHPKitchen: PHP 5 Objects, Patterns, and Practice


Community Events









Don't see your event here?
Let us know!


zend application releases developer job zendframework framework book example package database code cakephp PEAR ajax release conference mysql security PHP5

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework