Arduino Nano With WIZ550io = Easy Internet

28,169

52

18

Introduction: Arduino Nano With WIZ550io = Easy Internet

About: Hi There! I'm a mobile app developer (iPhone and Android) in British Columbia, Canada. I also write firmware, and enjoy dabbling with electronic circuits and micro controllers.

I love the Arduino Nano - it's a nice compact yet fully functional version of the Arduino Uno. However, when I went to connect it to the internet all of that neat and tidy smallness disappeared under the big full sized ethernet shield I had. (See my other instructable on how to do that).

However, I recently discovered a better, more compact way to connect my Nano to the internet - by using the much smaller (and more affordable) WIZ550io module from WIZnet!

You can get an adapter board to connect this module up to an Arduino Uno for easy connection, but I wanted to keep things compact by using my Nano and directly connecting them together. However, the same procedure can be used to connect it up directly to a Uno if you don't have the adapter board.

Step 1: Parts

For this Instructable, I used the following parts:

1 Arduino Nano (or compatible)

1 WIZ550io module (available direct from WIZnet)

1 breadboard (I'm using one with 30 rows, which is just barely big enough)

5 m-m jumper wires

4 f-m jumper wires

Step 2: Making the Connections

Note: before connecting all the wires, it’s a good idea to first load the WebServer example onto your Arduino, to make sure there is no existing firmware on it that might cause issues with your WIZ550io.

1. Pop the Arduino Nano and the WIZ550io module onto a breadboard. I put them back to back (see pictures) to allow the USB power cable and the Ethernet cable to both be easily hooked up. As you can see in the pictures, my breadboard would ideally have been 1 row longer!

2. Connect 9 pins:

Arduino - WIZ550io

(5 M-M jumper wires)

3v3 - J1.8

GND - J1.1

D2 - J2.5 (INT)

D7 - J2.2 (RDY)

D10 - J1.6 (SCS)

(SPI needs 4 F-M jumper wires)

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! this is 5v and the WIZ board needs 3.3v

Refer to the SPI picture above to see the ordering of the pins on the Arduino Nano. Also, the board itself should have a digit 1 by the number 1 pin. This should be the outermost pin on the side of the VIN pin.

Step 3: Update the Ethernet Library

The WIZnet module uses a newer chip and requires an updated library for it to work. Don't worry, your older ethernet boards will still work with it too.

1. Download the WIZnet Ethernet Library: https://github.com/Wiznet/WIZ_Ethernet_Library There is a button at the bottom right labelled "Download ZIP" which downloads everything in one neat little file.

2. Copy the Ethernet folder into the Arduino Libraries folder (on Mac it’s Documents/Arduino/Libraries) This will override the built-in Ethernet library that’s part of the Arduino app. See Note (a) in the Notes step if you need to also use other ethernet shields and modules. Note that there are 2 versions of the Ethernet folder, depending on the version of your Arduino IDE. I’m using Arduino IDE version 1.0.6, so I copied the Ethernet folder from the WIZnet folder marked as 1.0.x.

3. In the Libraries/Ethernet/utility folder, open w5100.h and verify that only the 1 correct #define line (out of 3) is uncommented. For my WIZ550io it looks like 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, (optionally) also uncomment the line that allows the board to use the pre-assigned hardware MAC address:

#define WIZ550io_WITH_MACADDRESS // Use assigned MAC address of WIZ550io

The picture shows what my settings look like (I used XCode to edit the file, thus the nice formatting and colours!)

Step 4: Run a Webserver to Test It!

Now that everything is all set up, it is a good idea to test it to make sure everything was done correctly. Thankfully, the Ethernet library includes a set of very nice examples. We will just use the easy WebServer example.

1. Open the Arduino IDE and open the included example from File/Examples/Ethernet named WebServer

2. If you are on an Apple network (through Apple’s Airport wireless hubs), you will need to change the IP address to be noticed by other computers on your network. I used this:

IPAddress ip(10,0,1,177);  // on an Apple wifi network

Note that this is probably not necessary for most networks, as long as the first 3 digits match your own IP address .

3. Save it and give it a new name

4. Connect your WIZ550io to your network with a network cable

5. Connect your Arduino to your computer and run the WebServer example.

6. Open up a browser window and load the url matching the IP address you set in the WebServer example. In my case that’s http://10.0.1.177

The browser window should just show a list of numbers, corresponding to each of the analog inputs. Note that as we did not hook up any of the analog inputs, those numbers will be somewhat random. You could of course start adding a bunch of sensors to them for more fun :)

Step 5: Notes and References

Notes:

(a) If you also have other ethernet shields, you will need to choose the correct line in w5100.h when working with that particular shield (and then change it back when using the WIZ550io again). For example, for my other Wiz5100 based ethernet shield, I uncomment the top line:

#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

(b) There are no other notes ;)

References:

For more information, please refer to:

https://github.com/Wiznet/WIZ_Ethernet_Library (see the 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

Be the First to Share

    Recommendations

    • Make It Bridge

      Make It Bridge
    • Game Design: Student Design Challenge

      Game Design: Student Design Challenge
    • For the Home Contest

      For the Home Contest

    18 Comments

    0
    Gertd4
    Gertd4

    4 years ago

    The nano ports are 5V and the W5500 is 3V3. Can this be a problem?

    0
    jfcusson67
    jfcusson67

    6 years ago

    Hi,

    The W5500 alone on the WIZ550io board typically sinks about 130 mA (from the datasheet), and the output of the 3.3V regulator on the Arduino Uno can safely supply 50mA. I do not know about the Nano, but I would expect similar. This would mean that connecting the WIZ550io directly to the 3.3V of the Arduino board is marginal, which would explain why sometimes it works, sometimes it does not.

    0
    jude154
    jude154

    6 years ago

    when i power everything up the wiz550io blinks orange as if its trying to tell me something is wrong and nothing works. i used an alternate 3.3v power supply instead of the normal 3.3v from the nano and it works fine. any reason you can think of that the nano will not power the wiz?

    0
    ntewinkel
    ntewinkel

    Reply 6 years ago

    I wonder if the power into the nano is not enough to supply both? For my Instructable I was using a 5v version of the nano. Not sure if that makes a difference.

    0
    jude154
    jude154

    Reply 6 years ago

    Hmm I'm using a usb connected to my computer. What did you use? Also here are the nanos I used:
    https://www.amazon.com/gp/aw/d/B00SGMEH7G/ref=mp_s_a_1_3?ie=UTF8&qid=1467903046&sr=8-3&pi=SY200_QL40&keywords=arduino+nano&dpPl=1&dpID=51FTYd5KG5L&ref=plSrch

    Anything glaring wrong or different in these vs what you used?

    0
    ntewinkel
    ntewinkel

    Reply 6 years ago

    Sounds like you did exactly what I did. I was using the USB from a Macbook (late 2009). And I realize now that all Nanos are 5v by design (I got confused with the Pro Mini options out there)... I suppose it's possible that some Nano clones might use 3.3v regulators with lower amp output, but that seems unlikely. Does it make a difference if you power the Nano directly with an alternate power supply?

    0
    jude154
    jude154

    Reply 6 years ago

    its weird its like it doesn't even matter what sketch i have loaded up. if i put on the simple blink sketch it still doesn't power the wiz. I tried alt power sources one USB into the computer and another wall wart. neither will power the project. I tried to power the wiz with a Uno, with the rest of the sketch running on the Nano, and the sketch ran perfectly but when i tried to power up the wiz again with the Nano...no love.

    0
    ntewinkel
    ntewinkel

    Reply 6 years ago

    One other thing to try might be to check if you're getting a proper 3.3v on the Nano 3.3v pin.

    Other than that I'm afraid I don't have the answer :( Maybe try Wiznet support?

    0
    TomHoag
    TomHoag

    6 years ago

    I tried your project and it works great! Thank you!

    For the next step, how is it possible to connect to the web server from outside the network using a forwarding port?

    0
    ntewinkel
    ntewinkel

    Reply 6 years ago

    Hi Tom,

    Great to hear it!
    Port forwarding is handled by your router, so you'd have to log in to your router to set that up. The how-to varies, depending on your router make and model - maybe do a search for your specific model to get the how-to details.

    Cheers,
    -Nico

    0
    ntewinkel
    ntewinkel

    Reply 7 years ago on Introduction

    That looks great! I haven't done much with enclosures, I really should - looks a lot better than open wires :)

    0
    jeanroccoj
    jeanroccoj

    8 years ago on Introduction

    Just to thank you for directions on setting up a Nano + WIZ550io. Adding
    a FireCracker CM17A computer interface and using
    "http://brohogan.blogspot.ca/2015/01/internet-control-of-x10.html?showComment=1425876120117#c335582800143686627"
    web server I can control my X10 lights and appliances modules, from any
    browser, on any portable devices. That is cool !!!

    IMG_20150311_022523.jpgIMG_20150311_022259.jpg
    0
    ntewinkel
    ntewinkel

    Reply 7 years ago on Introduction

    Great project! Glad my Instructable was able to help. Thanks for sharing the pictures too :)