Getting started with the Arduino ETHERNETThis guide shows you how to use your Arduino ETHERNET and to upload a sketch.
First you must connect your Arduino board to your computer but the board hasn't an USB port then you need an USB 2 Serial Micro that it will provide power and allow you to program the board. Down the picture shows this device.
Connect the Arduino ETHERNET to the USB 2 Serial Micro and connect the Micro USB of the converter to the PC.
Now the green power LED on the Arduino ETHERNET (labelled ON) should turn on.
To upload a sketch, you must use Arduino IDE or the new Arduino Studio!
You can download it here.
Choose the correct version for your operating system, download and install it.
Open your Arduino IDE, choose Arduino ETHERNET from the Tools > Board menu in the IDE, and select the correct serial port from the Tools > Serial Port menu.
Now choose an example from File > Examples menu and upload it, clicking the relative button.
You can see other sketches or have more details on your Arduino ETHERNET, clicking here.
Differences from ATMEGA based boardsThe Arduino ETHERNET is a microcontroller board based on the ATmega328 (datasheet). It has 14 digital input/output pins, 6 analog inputs, a 16 MHz crystal oscillator, a RJ45 connection, a power jack, an ICSP header, and a reset button.
The ETHERNET differs from other boards in that it does not have an onboard USB-to-serial driver chip, but has a Wiznet ETHERNET interface. This is the same interface found on the ETHERNET shield.
Warning:The pins 10, 11, 12 and 13 are reserved for interfacing with the ETHERNET module. This reduces the number of available pins to 10, with 4 available as PWM outputs.
An onboard microSD card reader, which can be used to store files for serving over the network, is accessible through the SD Library. Pin 10 is reserved for the Wiznet interface, SS for the SD card is on Pin 4.
VoltageThe board can also be powered via an external power supply, an optional Power over ETHERNET (PoE) module, or by using a FTDI cable/USB Serial connector.
External power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd and Vin pin headers of the POWER connector.
The board can operate on an external supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts.
Installing Drivers for the ETHERNET
OSXThe first time you plug a Leonardo or Micro into a Mac, the "Keyboard Setup Assistant" will launch. There's nothing to configure with the ETHERNET, so you can close this dialogue by clicking the red button in the top left of the window.
WindowsIf you previously installed Arduino IDE, you already have drivers installed.
If you haven't yet installed Arduino IDE, download the Windows version of the the software from the official Arduino IDE download page.
When the download finishes, launch the file to install the software and the drivers.
If you downloaded the .zip version of the IDE, unzip the downloaded file. Make sure to preserve the folder structure.
Now your drivers will be downloaded and installed from Internet, directly from Windows.
If you have issues, you can find the "drivers" folder inside the unzipped file, for manual installation.
LinuxThere is no need to install drivers for Ubuntu 10.0.4
In some computers, you need to setup user permissions and some udev rules.
You can find detailed informations on how to achieve this at this page: Arduino IDE on Linux-based OS..
Uploading Code to the ETHERNETHere are shown the steps used to upload a sketch:
- Connect your board to the USB 2 Serial converter.
- Connect the USB 2 Serial converter to the PC.
- Connect the LAN cable to ETHERNET connector of your board.
- Mount SD-Card into reserved slot.
- Open the Arduino IDE.
- In the "Tools" menu choose "Serial Port" and select the serial port of the ETHERNET.
- Under the "Tools > Boards" menu select "Arduino ETHERNET".
- Choose a sketch from File > Examples menu or write your sketch.
- Click the upload button
- Wait the completion.