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.
Change a LED via the web
Recent Entries
- CRAFT Thanksgiving roundup
- 3D renderings of the Mandelbrot set
- New in the Maker Shed: Microbe Motel kit
- Science through graphic novels
- Tiny solar-powered brass engine in a wineglass
- Maker Shed kiosks at Fry's
- New hackerspace in Chicagoland: Workshop 88
- Mint tin electronics dev kit packs the essentials
- Olympus BioScapes competition winners
- Mac mailbox
Leave a comment
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)





































