Go Down

Topic: Full code for interactive Arduino web server (Read 417 times) previous topic - next topic

tkbyd

I've recently slightly adapted the standard "WebServer" demo to have it display a reading from a light sensor connected to the Arduino, and to accept commands when users click on buttons on the page served.

The buttons turn an LED attached to the Arduino on or off. It shines on the light sensor, thus you can "see" from across the world whether the LED actually DID come on or go off. (Someone in Berlin did that a few minutes ago. The ArduServer is near New York City.)

The light sensor/ LED setup is just by way of a demo. You can change the sensor, change what's connected to the output, add more buttons/ outputs/ sensors.

The full code for the ArduServer2 is at the end of....

http://sheepdogguides.com/arduino/art5serv1.htm

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy