Arduino Nano + wiz550io = Easy Internet access

Source: Internet
Author: User

I love Arduino nano–. This is a very small but fully functional Arduino Uno. However, when I went to connect it to the Internet, all the neat and small also disappeared under the large-size Ethernet shield.

However, I recently found a better, more compact way to connect my nano to the Internet – by using Wiznet Company's much smaller (and cheaper) Wiz550io module!

If you want to make it easy to connect, you can find an adapter board that can connect to the module and Arduino Uno, but I want to keep the small sub-board, and connect them directly with my nano. However, if you do not have an adapter board, you can use the same method to connect directly to a UNO board.

First step: Parts


For this tutorial, I used the following parts: 1 Arduino Nano (or other compatible) 1 Wiz550io modules (can be bought directly from Wiznet) 1 breadboard (I use 30 rows, it's big enough) 5 m-m jumper 4 f-m jumper
Step 2: ConnectNote: Before connecting, it is a good idea to first download the Webserver routine to the Arduino to make sure there are no firmware on it, otherwise it may cause other problems on your wiz550io. 1. Place the Arduino Nano and Wiz550io modules on the breadboard. I put them back and out (see picture) so that both the USB cable and the Ethernet cable are easy to connect. As I saw it, I had a row of bread sheets. 2. Connection 9 Pins: Arduino–wiz550io (5 m-m jumper)

3v3–j1.8

gnd–j1.1

d2–j2.5 (INT)

d7–j2.2 (RDY)

d10–j1.6 (SCS)

(SPI requires 4 f-m jumper)

spi.1–j1.4 (Miso)

spi.3–j1.5 (SCK aka SCLK)

spi.5–j2.3 (RST)

spi.4–j1.3 (MOSI)

Note: SPI.2 (VDD) – Do not connect! Because he is 5v, the Wiz board needs 3.3v refer to the SPI diagram to see the pin order on the Arduino Nano. At the same time, the board itself should be a 1th pin with a number 1. This should be the outermost pin on the VIN pin side.Step 3: Update the Ethernet libraryThe Wiznet module uses a new chip and needs to update the library. Don't worry, your old Ethernet board will work as well. 1. Download the Wiznet Ethernet Library:https://github.com/wiznet/wiz_ethernet_library  This has a button, labeled "Download ZIP" at the bottom, you can download the entire package file with one click. 2. Copy the Ethernet folder into the Arduino Library folder (Documents/arduino/libraries on Mac). This will rewrite the built-in Ethernet library, which is part of the Arduino app. If you also need to use other Ethernet boards and modules, see "Attention" in the content. Note that the Ethernet folder has two versions, depending on the version of your arduinoide. I use the Arduino IDE version is 1.0.6, so when I copy from the Wiznet folder to the Ethernet folder, it is marked as 1.0.x3. In the Libraries/ethernet/utility folder, open w5100.h and simply modify one   #define ROW (where 3 rows) to uncomment. My Wiz550io is this:
#define W5100_ethernet_shield//Arduino ETHERNET SHIELD and compatibles ...//#define W5200_ETHERNET_SHIELD//Wiz820io , W5200 Ethernet shield#define w5500_ethernet_shield   //Wiz550io, Ioshield series of wiznet</p>
4. In the same file, (optional) also uncomment, so that the board can use the pre-assigned hardware MAC Address:
#define WIZ550IO_WITH_MACADDRESS//Use assigned MAC address of Wiz550io
The picture shows my settings (I use Xcode to edit the file, so the format and color are beautiful!) )
Step 4: Run a webserver and test! All set up, it's best to test whether it's all tuned. Thankfully, the Ethernet library contains a very good set of routines. Let's just use the simple webserver routine. 1. Open the Arduino IDE and open a routine named Webserver in File/examples/ethernet. 2. If you use the Apple Network (via Apple's Airport wireless hubs), you will need to change the IP address to get the attention of other computers on your network. I use the:
IPAddress IP (10,0,1,177);  On an Apple WiFi network
Note that most networks are probably not required, as long as the first 3 numbers match your IP address. 3. Save and give it a new name 4. Connect the Wiz550io to network 5 with a cable. Connect Arduino to your computer and run webserver routine 6. Open a browser window and type the URL that matches the IP address you set in the Webserver routine. In my example, the http://10.0.1.177 browser window should display a string of numbers corresponding to each of the analog input one by one. Note that we are not connected to any of the analog inputs, and those numbers are a bit random. Of course if you are interested, you can add some sensors!
Step 5: Note and referenceNote: (a) If you have other Ethernet boards, you need to modify the w5100.h (and then change back when using Wiz550io) when working with a special board. For example, the WIZ5100 board based on the Ethernet board, I uncomment the first line:
#define W5100_ethernet_shield//Arduino ETHERNET SHIELD and compatibles ...//#define W5200_ETHERNET_SHIELD//Wiz820io, W 5200 Ethernet shield//#define W5500_ethernet_shield   //Wiz550io, Ioshield series of WIZnet
(b) No additional attention is paid to the reference: For more information, please refer to:

Https://github.com/Wiznet/WIZ_Ethernet_Library (see ReadMe file)
Http://arduino.cc/en/Reference/SPI

Http://wizwiki.net/wiki/doku.php?id=osh:ioshield-a:updatelib

http://www.wiznet.co.kr

Http://wizwiki.net/wiki/doku.php?id=products:wiz550io:start

Originally from: Instructables

Arduino Nano + wiz550io = Easy Internet access

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.