Change a LED via the web
Here is an example of how to make a cool Internet application using the XPort shield I recently released. This is very simple, but its a good example of getting and outputting data. Basically the Arduino serves up a webpage with a bunch of nice javascript code that allows you to select a color. It also displays a "current color" (in this case a light green).
When you click "Submit" on the page, another request is made to the XPort/Arduino, this time with a GET command ?color=#xxxxxx with the color information. The Arduino looks for this command, parses the color requested and calls analogWrite() on the three LEDs to change them into that color.
Posted by Phillip Torrone |
Apr 3, 2008 10:00 AM
Arduino, Electronics, Online, Open source hardware |
Permalink
| Comments (0)
| Email This |
| Digg this!
Recent Entries
- TCHO chocolate, part two
- Make at The Last HOPE
- Excercise bike Arduino
- Make Projects - Volume 07
- Delft ceramic style cross-stitch mantle clock
- Video software keeps an eye on the sky
- Free sample pages from Dover Publications
- AVR demo platform rocks the color VGA +audio
- Send GPS data to your computer without a microcontroller
- Gloves warn you of the outside temperature
Comments
Oldest comments listed first.
Subscribe to MAKE Magazine!
Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.
$34.95 / 1 year
(4 Quarterly Issues)
Features and more @ MAKE!
Get MAKE 14 - Subscribe or on newsstands!
Add MAKE to iGoogle - GoogleGoogle.
Add MAKE to your RSS reader - Real simple.
Add MAKE on Twitter.
Add MAKE on FriendFeed & the MAKE room.

Why advertise on MAKE?
Read what folks are saying about us!
Click here to advertise on MAKE!
Phillip Torrone
Senior Editor
Tel: 707-827-7311
Gareth Branwyn
Robot Maker
Kip Kay
Video Maker
Jonah Brucker-Cohen
Artist / Researcher
Natalie Zee Drieu
Senior Editor
CRAFT
Becky Stern
Culture jammer
Collin Cunningham
Sound Maker
Marc de Vinck
CNC Maker




Leave a comment