Crowduino – W5200 Ethernet Shield
This posting shows how to use Ethernet shield introduced by WIZnet museum(http://wiznetmuseum.com/portfolio-items/w5200-ethernet-shield-from-elecrow/).
The Ethernet Shield connects your Arduino device to the internet in mere minutes. Just plug this module onto your Arduino board, connect it to your network with an RJ45 cable (not included) and follow a few simple instructions to start controlling your world through the internet.
The Ethernet controller of this Ethernet Shield is W5200. it is twice the buffer size of W5100 and support for up to eight simultaneous TCP/UDP connections. There is an onboard micro-SD card slot, which can be used to store files for serving over the network. Thanks to a lowered RJ45 pot, you can flexibly add most shields on top of this Ethernet Shield.
- Standard Shield that Arduino, Mega, Crowduino Compatible
- High speed Ethernet controller W5200 with internal 32K buffer
- With Micro SD card for storing large amounts of data.
- Connection with Arduino on SPI port
- Support up to eight simultaneous TCP/UDP connections
- Lowered RJ45 Ethernet jack
- long wire-wrap headers extend through the shield
Pins usage on Arduino
- D4: SD card chip select
- D10: W5200 Chip Select
- D11: SPI MOSI
- D12: SPI MISO
- D13: SPI SCK
In this code, we have defined pin 4 as SD card chip select port and pin 10 as W5200 chip select port.
First it will send a link to this client if there is a client request to access to this server and then send the value of each analog input pin to the network.
Finally, you can view each analog pin by opening SD Card file.
Author : Elecrow (http://www.elecrow.com)