Embedded webserver using microcontroller

Hi everybody.

I am planning to implement a webserver for online control using microcontroller. I will implement my own TCP/IP stack.
I am very confused about it.
Some members have given me really good advices on others forums but still cant get my head around it.

The problem is that I want to use very compact hardware for it and dont know which microcontroller to use. :frowning:

My idea is that I will connect a copule of LEDs with the microcontroller and will check/change their status using webpaage from a remote location. I will use the wired connection for it i-e Microcontroller will be connected to the internet by ethernet cable(RJ45).

So my microcontroller shoud have a support for ethernet as well.

Any suggestions or idea will be appreciated.


One of these http://arduino.cc/en/Main/ArduinoBoardEthernet will do what you want. No need to write your own TCP/IP stack - the W5100 chip takes care of that.

The Arduino IDE even comes with a demo of a rudimentary web server. The 32K of program memory will get pretty full, especially if you add extra niceties such as DHCP and NTP. The example webserver is fairly slow, but can be sped-up dramatically by increasing the size of the output buffer - although you'll soon run into the 2K RAM limit.

If the memory limitations of the ATmega328-based boards are too severe, there are alternatives such as the "Mega 2560" board http://arduino.cc/en/Main/ArduinoBoardMega2560. This board doesn't have built-in ethernet, so you'll need to add one of these http://arduino.cc/en/Main/ArduinoEthernetShield. The same code should still work.

Thanks you very much for the information Tim.

Actually I am doing it for my Final year project so I will have to write the TCP/IP stack myself.