A web server can be very useful in many applications to monitor statuses or to easily modify some parameters: whether stations, home automation systems, etc. Moreover, it is possible today to access it throw the Internet, using any computer or Smartphone.
This application note shows how to simply implement a web server on a very small microcontroller. It uses the W5100 Ethernet controller from Wiznet to establish the network connection and a simple SD-Card for files storage. Two DS18B20 temperature sensors will be used for demonstration.
1. Hardware
The shield chosen for this application note is the DFRduino Ethernet Shield, and comes from DFRobot.
On this shield, the SPI interface is connected using the ICSP header of the Arduino. It needs to be corrected to use the classical SPI pins as shown on the following photos.
Two DS18B20 temperature sensors will be used for demonstration purpose and will be connected according to the following schematic.
COMMENTS