Change a LED via the web


Colorpicking
Ladyada writes -

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).

Ledcolorpickerhard T
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 | Bookmark and Share | Digg this!

Recent Entries

Comments

Oldest comments listed first.

Leave a comment


Subscribe to MAKE!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)

Subscribe now

How-to videos for Makers and Crafers!


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out... Welcome to the Make Blog!

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.


Advertise here with FM.

Why advertise on MAKE?
Read what folks are saying about us!

Click here to advertise on MAKE!

Subscribe to MAKE Magazine!


Phillip Torrone.Phillip Torrone
Senior Editor
Tel: 707-827-7311


Gareth BranwynGareth Branwyn
Robot Maker


Kip KayKip Kay
Video Maker


Jonah Brucker-Cohen Jonah Brucker-Cohen
Artist / Researcher

Suggest a Site!

Natalie Zee DrieuNatalie Zee Drieu
Senior Editor
CRAFT


Becky Stern Becky Stern
Culture jammer


Collin CunninghamCollin Cunningham
Sound Maker


Marc de Vinck Marc de Vinck
CNC Maker

Current Podcast

itunesdl.gif Weekend Project: Styrofoam Plate Speaker Get surprisingly good sound from disposable picnicware with this easy to make and inexpensive Styrofoam Plate Speaker. Thanks go to José Pino for the original article in Make Magazine.To download Styrofoam Plate Speaker MP4 click here or subscribe in... More...

Get the Make blog sent via email

Enter your email to receive the Make blog each day:



WOW! Thanks to everyone involved with Maker Faire Bay Area: attendees, makers, exhibitors, sponsors, volunteers, and crew...it was AMAZING! Over 400 Makers and 60,000+ attendees! Be sure to check out the photos @ Flickr, and our Maker Faire posts for all the action! The next scheduled Maker Faire is Austin: Oct. 18th & 19th, 2008 - Travis County Expo Center!

Make Categories

www.flickr.com
photos in MAKE More photos in MAKE Flickr Pool
www.flickr.com
photos in Craft More photos in Craft Flickr Pool

Advertise here.
Why advertise on MAKE?
Read what folks are saying about us!

Click here to advertise on MAKE!
Subscribe to MAKE Magazine!

Recent Posts from the Craft: Blog

Recent Posts from the Hackszine Blog