An embedded web page with image (not using SD)

While working on another project (http://arduino.cc/forum/index.php/topic,55044.0.html, I’ve been looking for a way to get an image and HTML code into the Arduino sketch (NOT on a SD-card) with the minimal use of SRAM and I pulled it off.

You can read about this project on my website: http://www.jo3ri.be/arduino/arduino-projects/an-integrated-webpage-with-image and the blog I wrote about it: http://www.jo3ri.be/arduino/blogduino/usinglesssramonthearduino

This is the result:

The original GIF image with 32 colours is about 7884 bytes, but we are using a buffer of only 250 bytes. The image has been divided in 8 smaller images of approximately 1K. Those smaller images are being put next to each other when the client request the page. Now each image has been put in an array of 8 (again). The buffer has to be as big as the longest prog_char + 1, but I have put about 10 bytes more in the buffer (250 bytes).

Now If you’re smart, you can even reduce Flash memory, when you have a picture with repeating parts in it.

I hope this is helpful for al those people using a webpage for there Adduino projects with buttons and other small images.

The sketch is on my project page, but I have attached here too.

webimage.pde (21.1 KB)

Awesome. I didn't know you were storing images in the FLASH until now. Neat! Although for me, I don't know how to so I might provide a link to my blog image, just to cheat :grin:

It would be nice to provide a graphic display of remaining memory, much like a cell phone battery level display :)

Yes, true, but I'm thinking on something different. Actualy all of my projects so far have been for learning on the parts I'll need for my real project: measuring the level of our diesel tanks. It will have an LCD screen showing the level in percentage, but also a webpage showing the 2 tanks with an image and the actual percentage shown in the picture. So that will look like your battery. :D