Serving changing images

Hi guys,

I want to know your opinion. I have this Arduino Uno+Ethernet Shield, and I have an input, kind like a switch.
So, i want the Arduino to transmit the status of the switch, either on or off. On the server side, it should be able to know the status of the switch and show it. For an example, I have on the website a LED picture, and if the switch is high on the Arduino, then the LED in the picture is glow. Otherwise, it doesn't glow.

What kind of medium and knowledge I need to use, so that I can create this kind of website? And what kind of picture format should be suitable in this case?

Thanks.

You might check the code at the below site.

One simple way to do this is to put the LED image in a frame. Have the Arduino serve up only the contents of that frame. That reduces the amount of data transferred over its relatively slow Ethernet link. And the image doesn't have to come from the Arduino: since it's serving HTML, it can provide only one of two URLs that point to the images stored on a full-powered server.

If you would be happy for the Arduino to serve up "LED On" or "LED Off", instead of a picture, then everything you need is at...

I don't know how to make it serve up a picture, though.

(To original poster: I didn't read your post several times, because I thought it was about communicating with a microprocessor called a "pic". You might get more responses if you change the subject of the thread to "Serving changing images")

I didn't read your post several times, because I thought it was about communicating with a microprocessor called a "pic"

I haven't read read this before for the same reason, I only read it now because there was bugger all new on the forum :slight_smile:


Rob

First of all, thanks for all of your reply, really appreciate it.

And I have already changed the subject, thanks! XD

Okay, I have another question.

If I have a complex HTML website, with some interesting stuff and bla3 on the website, but there is only one a small column of the website, which I want to display the result from the Arduino reading. So, how could I integrate the already made HTML website to read(polling?) data from Arduino Input reading and display it on the column?

Thanks.

So, how could I integrate the already made HTML website to read(polling?) data from Arduino Input reading and display it on the column?

The easiest would probably to include a previously suggested frame to display the arduino supplied info in the HTML web page.