Connect Arduino to the Web using Ethernet Shield W5100
Connect Arduino to the Web using Ethernet Shield W5100
0
Project description
Hardware
- Computer
- ArduinoUNO
- USB A Male/B Male
- Ethernet cable RJ45
- Ethernet Shield W5100
Operating principle of an Ethernet Shield W5100
The communication network uses the Ethernet which can be linked to local Wifi network. To access the Arduino board without having to connect to the Internet router, it is necessary to create a bridge between wifi and ethernet connection in your computer. For this, we must:- Go to the Network and Sharing Center.
- Go to “Change adapter settings”
- Select Ethernet and Wifi/(internet source) and right click.
- Click “Create Bridge”.
Schematics
The Ethernet Shield W5100 is compatible with the Arduino UNO and Mega microcontroller. The W5100 and SD card use the SPI bus to communicate with the Arduino board. The pin 10 is used to select the ethernet controller W5100, pin 9 as RESET to the W5100 and pin 4 to select the SD card module. In summary, the pins used are:- 4 to select the SD card (SD_CS)
- 9 for the reset of the W5100 microchip (W5100_RST)
- 10 to select the W5100 microchip (W5100_CS)
- SPI bus: 11,12,13 pins on an Arduino UNO board/Duelmilanove. The pins 50, 51 and 52 for the Mega
Code for an Ethernet Shield W5100
To communicate over the network, we need to use a particular protocol. This protocol is integrated in Arduino libraries dealing with WiFi communication.- You need to connect the WiFi module or Ethernet network
- set a?server
- define a?Customer