Changing the threshold values via webpage

Hello Everyone!

Instead of setting the sensor threshold values in the sketch, is it possible to change the sensor threshold values via webpage(form post)

With Regards, Raghav

is it possible to change the sensor threshold values via webpage(form post)

With an ethernet shield, and appropriate code, yes.

If you know HTML, you will know that it is possible to submit info from a webpage to a server with a simple form. The arduino can work as a server and present the HMTL page. You then need to process what the client asks for to decide if it is a request for HTML (http request) or some info. It is not too difficult, but still serves as an interesting project.
At the minute, I am doing something similar. I have the arduino serving up a login form. Then, you log in and can send emails through it! Or at least that is the idea… I can send an email or log in, but not do both. When a microcontrolller connects to the internet, things really get interesting!


Thank you both for the replies.

I am working on scheduling lights/events based on time and day. I want to view and change time/day schedules via webpage.

Can you guide me in the right direction. I thought of the following:

prog_char string_1 PROGMEM = “”;
char buffer[100];


The way I would start is by writing out the code for your HTML web page, then loading it onto a micro-sd card. There is a card slot on the new ethernet shields, which makes life easy. Next, you need to send this data out from the SD card to a web client. This is easy to do; just alter the web server example by adding in some code to read (and send) the data from the SD card. After that, you need to read what the website says when you click the submit button, then you can go about changing the variables.


Thanks a lot for guiding me in the right direction.


Iam letting the arduino act as a web server (wifly library)

I made a small routine that checks for ?COMMAND and then perform different actions depending on the commands I send to my arduino over HTTP. ex. other commands i use: ?SHOWMEM ?TEMP ?LIGHTON ?LIGHTOFF ?STROBExx (stobing a bright diod for xx sec) ?SCREAM (making ultra sonic noise)

But for sun raise and down I will import the total list of 366 days data into the Flash (about 7.5K data) as a backup if I loose the connection. Why do it simple when you can add some extra fun to it :) ( I could just let my linux server wget the time everyday instead)

If you need to find the sun up and down data for your location: