Adafruit Ethernet FeatherWing Created by lady ada Last updated on 2018-11-27 06:35:22 AM UTC
Guide Contents Guide Contents Overview Pinouts Power Pins SPI Data Pins Other Breakouts Assembly 2 3 5 5 5 7 8 Prepare the header strip: Add the FeatherWing: And Solder! 8 9 9 Usage Install Ethernet2 Library Connect Cable Run Example Code Library Reference Power over Ethernet PoE Splitter with MicroUSB Plug - Isolated 12W - 5V 2.4 Amp Passive PoE 18 18 Passive PoE Injector Cable Set 5V 2A (2000mA) switching power supply - UL Listed MicroUSB Plug to 5.5/2.
Overview Wireless is wonderful, but sometimes you want the strong reliability of a wire. If your Feather board is going to be part of a permanent installation, this Ethernet FeatherWing will let you add quick and easy wired Internet. Just plug in a standard Ethernet cable, and run the Ethernet2 library for cross-platform networking. Ethernet is a tried-and-true networking standard.
works great with any of our Feathers, the WIZ5500 chip communicates over SPI plus a single CS pin. The Arduino Ethernet2 library works great, and within a few seconds after connecting, will do the DHCP setup for you. As a nice extra, the RJ-45 jack has both link and activity lights that will light/blink to let you know the current connection status. Each order comes with one assembled and tested FeatherWing, plus some header. You will need to solder in the header yourself but its a quick task.
Pinouts The Ethernet FeatherWing plugs into any Feather and adds hard-wired networking. To make it as cross-platform compatible as possible, we use only SPI plus one extra, configurable pin. It's not going to be gigabit (or even multimegabit) speeds but it will work! Power Pins The WIZ5500 Ethernet chip (and really any ethernet chip) are fairly high current devices, requring about 150mA whether or not actively transmitting. The chip is powered from the 3.
Configuration, setup, and data is received/transmitted over SPI. All Feathers have the default SPI port on the same pins, so we use MOSI/MISO/SCK in this location. They are 3.3V logic, 5V tolerant. A Chip Select pin is also required. By default we use this pin: Which is connected to pin #10 on Feather Teensy 3, 32u4, 328p, M4 and M0, pin #15 on ESP8266, and PB4 on WICED. You can also get to the CS pin from the left group of breakouts.
Other Breakouts You can also connect to and use the IRQ and WIZ ReSeT pins. These are not used in the library and are there for advanced usage. They are 3.3V logic, 5V tolerant. © Adafruit Industries https://learn.adafruit.
Assembly Prepare the header strip: Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard - long pins down © Adafruit Industries https://learn.adafruit.
Add the FeatherWing: Place the featherwing over the pins so that the short pins poke through the two rows of breakout pads And Solder! Be sure to solder all pins for reliable electrical contact. (For tips on soldering, be sure to check out ourGuide to Excellent Soldering (https://adafru.it/aTk)). Start by soldering the first row of header © Adafruit Industries https://learn.adafruit.
Now flip around and solder the other row completely © Adafruit Industries https://learn.adafruit.
© Adafruit Industries https://learn.adafruit.
You're done ! © Adafruit Industries https://learn.adafruit.
Attach an ethernet cable, & plug it into your feather of choice! © Adafruit Industries https://learn.adafruit.
Usage The Ethernet chipset we are using (Wiz5500) is well supported and works for all Feathers, all you need is a little library support and you will be sending packets in no time! Install Ethernet2 Library Start by installing the support library for the Wiz5500. We have the Adafruit fork of the Ethernet2 library repository on GitHub (https://adafru.it/plf) if you're interested in looking at the code. Start by downloading the library.
Run Example Code We have a basic demo that works with all Feathers, so restart the IDE and compile/upload this sketch /* Web client This sketch connects to a website (http://www.adafruit.com) using an Arduino Wiznet Ethernet shield/FeatherWing. created 18 Dec 2009 by David A. Mellis modified 9 Apr 2012 by Tom Igoe, based on work by Adrian McEwen */ #include #include // Enter a MAC address for your controller below.
// with the IP address and port of the server // that you want to connect to (port 80 is default for HTTP): EthernetClient client; unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds const unsigned long postingInterval = 10L * 1000L; // delay between updates, in milliseconds // the "L" is needed to use long type numbers //#define WIZ_RESET 9 #if defined(ESP8266) // default for ESPressif #define WIZ_CS 15 #elif defined(ESP32) #define WIZ_CS 33 #elif defined(ARDUINO
Serial.print("My IP address: "); Serial.println(Ethernet.localIP()); } void // // // if loop() { if there's incoming data from the net connection. send it out the serial port. This is for debugging purposes only: (client.available()) { char c = client.read(); Serial.
If you don't get an IP address, check you have a green link light, and that your Ethernet is going out to an internet connected router. You may also have to set up the MAC address to allow it access, check with your system admin if you're not sure. Library Reference Ethernet2 is fully compatible with the Client (https://adafru.it/lFj) interface and also back compatible with the Arduino Ethernet library so you can use that documentation (https://adafru.it/lGA) when coding. Just include Ethernet2.
Power over Ethernet To keep the FeatherWing small, simple and inexpensive, we do not include PoE support. However, it's a common request that some people want to simplify cabling when the device is far away. This all-in-one solution will let you plug an Ethernet cable to a PoE switch/hub then split into data and a Featherfriendly micro USB connector on the other PoE Splitter with MicroUSB Plug - Isolated 12W - 5V 2.4 Amp $10.
5V 2A (2000mA) switching power supply - UL Listed $7.95 IN STOCK ADD TO CART Then run any standard Ethernet cable to the other end where you will use a 2.1mm to microUSB adapter cable (http://adafru.it/2727) MicroUSB Plug to 5.5/2.1mm DC Barrel Jack Adapter $1.95 IN STOCK ADD TO CART And plug that directly into the Feather. For long power runs there might be a slight voltage droop but since the regulator on board will reduce the input voltage to 3.3V for the chip and peripherals (all Feathers are 3.
Downloads Files & Datasheets WIZ5500 Datasheet (https://adafru.it/plD) EagleCAD PCB files on GitHub (https://adafru.it/plE) Fritzing object in Adafruit Fritzing repo (https://adafru.