Wireless Internet is great, but it requires reliability just like its counterpart wired. But withEthernet FeatherWing, you can add wired Internet easily and quickly on a featherboard. Simply connect the board with a standard Ethernet cable and run Arduino’s Ethernet2 library for cross-platform networking.
Ethernet is a proven networking standard. All hubs and switches are supported and it does not require SSID, password, authentication or antennas because of the physical connection. The W5500 chip communicates over the SPI and single CS pin. Also, it is compatible with all Feather boards. When the Arduino Ethernet2 library is activated, it performs the DHCP setting within a few seconds after connection. The RJ-45, mac jack has a link and activity indicator to confirm the current connection.
The Ethernet chipset (W5500) for Ethernet Feather wing is compatible with all featherboards and works seamlessly. You can send and receive packets immediately once you add some libraries.
Install Ethernet2 Library
You must install the W5500 support library first. The source can be downloaded from Github.
You can download it directly from github or the link below.
Please unzip the file and make sure that it has src, keywords.txt and library.properties in the Ethernet2 directory when the download is complete.
Next step is to move the Ethernet2 library to the arduinosketchfolder/libraries/.
Please refer to the following tutorial if it’s your first time making a library.
Connect Ethernet FeatherWing to the featherboard then connect the Ethernet cable.
Run Example Code
This demo code is compatible with all featherboards. You should restart the IDE then compile sketch after upload.
You can download sketch by clicking ‘Download file’ button below.
- If you are using LoRa / RFM69 Feather, you must add the pin Mode (8, INPUT_PULLUP) setting to do not use LoRa or RFM69 radio.
Open the serial console window and check the log when compilation is complete.
Please check that the green light is on and the ethernet cable is connected to the router if no IP address is assigned.
Also, contact your system administrator if you can not confirm it.
Ethernet2 is compatible with the Client interface and the Arduino Ethernet library, so you can refer to the manual when you are coding. Include Ethernet2.h instead of Ethernet, and chip select pin to know which pin to use before init().
You can download related materials from the following links: