7 September, 2014

Arduino Ethernet W5100 and Servo Motor

By Mauricio Hidalgo

Again we have a test of Arduino, this time we are conducting a test of the W5100 Ethernet module, which has the ability to connect our Arduino projects to the Internet and our local area networks (LAN).

What should you keep in mind to control a servo motor with an Arduino Ethernet W5100 ?

The next test is to connect a servo motor to the Arduino Mega 2560 board and control it through an Ethernet communication  with W5100 module, in this module we will set up a small web server and through it we will turn 90 degrees a servo motor from Local website hosted on that server.

For this test the following items are required:

1 Arduino Mega 2560 Card or Arduino Uno.

2 Ethernet Module w5100

3 Servo Motor

4 Direct UTP Patch cord to connect the module to the LAN

5. Adapter 6-9 VDC (Required in some cases for the servo current )

Here is the wiring diagram of the servo motor, Arduino Mega 2560 and W5100 module:

The control wire of servo motor (yellow wire) should be on pin 7 and the LED should be connected to pin 5, the servo motor is connected to the voltage source of the mega card 2560 with its red and black wires 5V and 0V (GND ) respectively.

The following LINK is the code to be loaded on the Mega 2560 development board, is in my GitHub repository.

Is important chech the IP address of your modem from the windows console and with this IP address asign an address to w5100 module into LAN range to communicate properly .

The following video describes how they should assign the IP address and the web server functionality of the W5100 card:

Hope you like this little test and if so please share this post.

Take advantage of the Arduino technology to develop hundreds of projects that in the past seemed impossible to do, I’m sure this information will be very useful.