How to communicate with the Arduino Ethernet Shield W5100

Controlling sensors or sending information remotely is one of the great goals of those who work with Arduino. The Arduino Ethernet Shield W5100 is another device from this family, which in addition to providing access to information on your local network, can still be connected to the internet and allow you to monitor it from anywhere in the world.
ORIGINAL POST
By Adilson Thomsen
components
Hardware Components
Arduino Ethernetshield
X 1
W5100
Software Apps and online services
Ultrasonic Arduino Library
HC-SR04
details

IMG_3218-1.png

Original : https://www.filipeflop.com/blog/tutorial-ethernet-shield-w5100/

CONFIGURE ETHERNET SHIELD W5100

By attaching the Arduino Ethernet Shield W5100  to your Arduino, a simple network cable is enough so that, in a few minutes, you can start monitoring the status of sensors, switches and other devices from your computer or cell phone browser. This shield is based on the Wiznet W5100 ethernet chip ( datasheet ) and provides an IP address compatible with TCP and UDP protocols.

The first step in this tutorial to correctly set up your ethernet shield is to configure it with a valid IP address for your network. We are going to show you how to get the network information in Windows 7, but you can use the same principle for other operating systems.

Programming Arduino:

Change these parameters mentioned above according to your network configuration, save the program and load it on your Arduino. Remembering that the Ultrasonic library can be found at this link .

Sending Information Over the Network:

Attach the Arduino Ethernet Shield W5100 to your Arduino and connect it to a router or hub using a regular network cable. We are going to use the webserver built into the board to send the browser two information about the Arduino ports, one informing about the status (on/off) of a button connected to port 3, and another with information about the  Ultrasonic Sensor HC-SR04 , connected to ports 6 (sensor trigger pin) and 7 (sensor echo pin):

To test how it works, open the browser on your computer and type in the address bar the IP you configured in the program. In our case 192.168.1.88 :

IMG_3218-1.png

Original : https://www.filipeflop.com/blog/tutorial-ethernet-shield-w5100/

CONFIGURE ETHERNET SHIELD W5100

By attaching the Arduino Ethernet Shield W5100  to your Arduino, a simple network cable is enough so that, in a few minutes, you can start monitoring the status of sensors, switches and other devices from your computer or cell phone browser. This shield is based on the Wiznet W5100 ethernet chip ( datasheet ) and provides an IP address compatible with TCP and UDP protocols.

The first step in this tutorial to correctly set up your ethernet shield is to configure it with a valid IP address for your network. We are going to show you how to get the network information in Windows 7, but you can use the same principle for other operating systems.

Programming Arduino:

Change these parameters mentioned above according to your network configuration, save the program and load it on your Arduino. Remembering that the Ultrasonic library can be found at this link .

Sending Information Over the Network:

Attach the Arduino Ethernet Shield W5100 to your Arduino and connect it to a router or hub using a regular network cable. We are going to use the webserver built into the board to send the browser two information about the Arduino ports, one informing about the status (on/off) of a button connected to port 3, and another with information about the  Ultrasonic Sensor HC-SR04 , connected to ports 6 (sensor trigger pin) and 7 (sensor echo pin):

To test how it works, open the browser on your computer and type in the address bar the IP you configured in the program. In our case 192.168.1.88 :

COMMENTS

Please Login to comment
  Subscribe  
Notify of