User Tools

Site Tools


osh:ioshield-a:singlepage

ioShield-A


Overview

ioShield-A allows an Arduino board to connect to the Internet.

It is based on the WIZ550io network module which uses WIZnet W5500 ethernet chip (W5500 Datasheet). The WIZnet W5500 provides a network (TCP/IP) stack capable of both TCP and UDP. It supports up to eight simultaneous socket connections. And, when Powered on and nRESET triggered, WIZ550io initializes itself with embedded real MAC and default IP address and can be pinged from user’s computer.

As ioShield uses W5500 chipset, instead of W5100 which was used before in the Arduino Ethernet Shield, users needs to use WIZnet Ethernet Library.

Available Board List


Although you have non-AVR Arduino-compatible board, you could use ioShield Hardware. But you should use adequate S/W libraries for each chipsets. please refer to each product's web site.

Available Resource

All design files and source codes for the ioShield can be found on GitHub:

2013/08/26 09:32 · bongbong

Hardware connection

Ethernet Shield connection

Very easy, just mount the two following board on top of an Arduino board.

  • WIZ550io Network Module : in detail, please refer WIZ550io page
  • Interface board for Arduino B/D
    • All design files and source codes for the ioShield can be found on GitHub:
    • Hardware: schematic(PDF file), schematic & PCB file(Eagle CAD), Part List(PDF file)

FIXME will add pic of product

Network Connections

Connect the shield to your computer or a network hub or router using a standard ethernet cable (CAT5 or CAT6 with RJ45 connectors). Connecting to a computer may require the use of a cross-over cable (although many computers, including all recent Macs can do the cross-over internally).

2013/08/12 16:49 · bongbong

Using WIZnet Ethernet Library for ioShield-A

Connecting to the Internet using the W5500 powered Ethernet Shield

Arduino Ethernet Library

from : http://arduino.cc/en/Reference/Ethernet

Arduino Ethernet Shield allows an Arduino board to connect to the internet. It can serve as either a server accepting incoming connections or a client making outgoing ones. The library supports up to four concurrent connection (incoming or outgoing or a combination).

For more details, please visit : Arduino Ethernet Library Page.

Before COMPILING THE SOFTWARE, Download and install Arduino 1.0.5 from the Arduino software page.

Update Ethernet Library

To use ioShiled-A(WIZ550io), you need to update new WIZnet Ethernet Library. Because ioShield-A use W5500 new chipset instead of W5100 which is used original Ethernet Shield.

The first step is to download the latest version of the Wiznet Ethernet Library from GitHub.


How to update the Ethernet library.

  1. Open the archive and extract the file “WIZ_Ether_Library.zip” to a convenient spot (I use the Desktop).
  2. Put(Overwrite) the “Ethernet” folder in this library to the libraries folder in the Arduino Installation Folder (for example, normaly you can find Arduino libraries folder as “C:\Program Files\Arduino\libraries\”.), or select “Sketch → Import Library… → Add Library…” in Aruino IDE, and select the folder loacation. and then, you can see the new directory in your “My Document/Arduino/libraries/”.

Change code depending WIZnet chip, W5100, W5200 or W5500

  1. Select the define variable in “Ethernet/utility/W5100.h”. When you use WIZ550io, ioShield-Series, you uncomment “#define W5500_ETHERNET_SHIELD”.
w5100.h
/*
 * Copyright (c) 2013 by WIZnet <support@wiznet.co.kr>
 *
 * This file is free software; you can redistribute it and/or modify
 * it under the terms of either the GNU General Public License version 2
 * or the GNU Lesser General Public License version 2.1, both as
 * published by the Free Software Foundation.
 */
 
#ifndef	W5100_H_INCLUDED
#define	W5100_H_INCLUDED
 
#include <avr/pgmspace.h>
#include <SPI.h>
 
typedef uint8_t SOCKET;
 
//#define W5100_ETHERNET_SHIELD // original ethernet shield from Arduino
//#define W5200_ETHERNET_SHIELD // Ethernet Shield version 2 from Seeed.
#define W5500_ETHERNET_SHIELD  // ioShield Series

Examples

Now you are ready to go to “File → Example → Ethernet”, and select examples what you want. There are many simple examples in Ethernet Library Folder as like


Basically, you can refer the usage for each examples in Arduino site.

2013/08/16 17:50 · bongbong

Twitter Test

Before Compile

  1. Before tweeting, get a token at http://arduino-tweet.appspot.com/ . This library send a tweet via the site to avoid using up the memory of Arduino by complex OAuth signature stuff.
  2. Then you can get the token-code.
  3. Update new “Ethernet” library for ioShield. please refer Update Ethernet Library
  4. You can see an example sketch from “File → Examples → Ethernet → Twitter_SimplePost”.
  5. Done~~.

Change code & Compile

You need to create an instance of Twitter class like below:

in Twitter_SimplePost.ino..

Twitter_SimplePost.ino
// If you don't specify the IP address, DHCP is used(only in Arduino 1.0 or later).
// fill in an available IP address on your network here,
IPAddress ip(1,1,1,1);
IPAddress gw(1,1,1,1);
IPAddress snip(1,1,1,1);
IPAddress dnsip(1,1,1,1);
 
// Your Token to Tweet (get it from http://arduino-tweet.appspot.com/)
Twitter twitter("YOUR-TOKEN-HERE"); // this was YourID:Password in 1.0.1

You need also to refer begin Ethernet library.

please refer the below image to change code.

and compile, upload code on your Arduino Board.

Result

During the run the program, You can see the log message via Serial Monitor as follow:


and, you can see the first message in your twitter timeline as follow:

2013/08/19 14:45 · bongbong

HTTP Client

Before Compile

  1. Download source file from https://github.com/amcewen/HttpClient.
  2. Extract and Copy all files into “Arduino/libraries/Ethernet/”.

Change code

Change “SimpleHttpExample.ino” file in the “Ethernet/example/SimpleHttpExample/” as follow :




Result

During the run the program, You can see the log message via Serial Monitor as follow:

2013/08/28 15:22 · bongbong

osh/ioshield-a/singlepage.txt · Last modified: 2015/03/16 10:33 (external edit)