Arduino Nano + wiz550io = Easy Internet access

Source: Internet
Author: User

I love Arduino nano–. This is a very nice 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.

Just, 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!

Assuming you want to connect easily, you can find an adapter board that can connect to the module and Arduino Uno, but I want to keep the small sub-board. Connect them directly through my nano. However. Assuming you don't have an adapter board, you can use the same method to connect directly to a UNO board.

First step: Parts


This tutorial, I used for example the following parts: 1 Arduino Nano (or other compatible) 1 Wiz550io modules (can be bought directly from Wiznet) 1 breadboard (I use 30 rows, is 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 the USB power cable and 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!

Since he is 5v, the Wiz board requires a 3.3v reference 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 side of the VIN pin. Step 3: Update the Ethernet library The Wiznet module uses a new chip and needs to update the library. Don't worry about it. Your old Ethernet board will work as well.

1. Download Wiznet Ethernet Library: Https://github.com/Wiznet/WIZ_Ethernet_Library This has a button, labeled "Download ZIP" at the bottom, to download the entire package file with one click. 2. Copy the Ethernet directory into the Arduino Library directory (documents/arduino/libraries on Mac). This will rewrite the built-in Ethernet library, which is part of the Arduino app. Suppose you also need to use other Ethernet boards and modules, see "Attention" in the content. Note that the Ethernet directory has two version numbers, depending on the version number of your arduinoide. I use the Arduino IDE version number is 1.0.6, so I was tagged as 1.0.x3 when I copied from the Wiznet directory to the Ethernet directory. In the Libraries/ethernet/utility directory, open w5100.h and simply change one of the #define rows (3 rows) to remove the gaze. 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, the (optional) also cancels the gaze, 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 very beautiful!)


Step 4: Perform a webserver and test! are set up well after. It's best to test if it's all tuned.

Thankfully, the Ethernet library includes a great set of routines. We'll 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
Attention. Most networks are probably not required, just the first 3 numbers to 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 form and type the URL that matches the IP address that you set in the Webserver routine.

In my example, the http://10.0.1.177 browser form should display a string of numbers corresponding to each analog input one by one. Note that we don't have any analog inputs connected, and those numbers are a bit random. Of course, if you're interested, you can add some sensors!
Step 5: Note and reference Note: (a) Suppose you have other Ethernet boards that work with special boards. Need to change w5100.h (and then change back with Wiz550io). For example, the WIZ5100 board based on the Ethernet board, I remove the first line of gaze:

#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 other attention has been paid to the reference: many other 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.