레이블이 W5100인 게시물을 표시합니다. 모든 게시물 표시
레이블이 W5100인 게시물을 표시합니다. 모든 게시물 표시

2014년 11월 18일 화요일

Note4 - Ethernet shield

ArduinoNote List-page
PREVIOUS: Note3 - Hello world

Ethernet Shield



Ethernet Shield

Arduino Ethernet Shield는 Arduino Platform들을 Internet에 연결할 수 있는 Arduino Platform에 Plug-in하는 Module이다. Ethernet Shield에는 TCP/UDP Network stack을 처리할 수 있는 Ethernet Chip인 W5100 (WIZnet)가 onboard되어 있다. 이 칩과 제공되는 Ethernet Library를 통해 Arduino Platform이 Internet에 연결될수 있도록 합니다. 또한 이 Shield에서 RJ45 (Ethernet) Port를 통해 Ethernet Cable를 연결할 수 있으며, Micro-SD Slot을 지원하여 Network를 통한 File을 저장할 수 있도록 지원한다.

Serial Peripheral Interface



Arduino의 MCU와 Ethernet Shield의 W5100의 Connection을 위해 Serial Peripheral Interface(SPI)를 사용한다. SPI는 Synchronous Serial data protocol를 사용하며 Duplex를 지원하는 Bus Interface이다. 아래와 깉이 MISO, MOSI, SCK, SS 4개의 Line으로 구성돤다.


  • SPI Signals


    • MISO (Master In Slave Out) - The Slave line for sending data to the master

    • MOSI (Master Out Slave In) - The Master line for sending data to the peripherals

    • SCK (Serial Clock) - The clock pulses which synchronize data transmission generated by the master

    • SS (Slave Select) - the pin on each device that the master can use to enable and disable specific devices.


  • Connections
    아래 표와 같이 Arduino Board마다 SPI port가 각각 다르며 ICSP에는 SPI Interface가 공통으로 존재합니다.




































    Arduino Board MOSI MISO SCK
    Uno or Duemilanove 11 or ICSP-4 12 or ICSP-1 13 or ICSP-3
    Mega1280 or Mega2560 51 or ICSP-4 50 or ICSP-1 52 or ICSP-3
    Leonardo ICSP-4 ICSP-1 ICSP-3
    Due ICSP-4 ICSP-1 ICSP-3



    • ICSP Header
      ICSP Header


  • Ethernet shield compatible (W5100 base)


    • Seeedstudio
      Seeedstudio

    • DFROBOT
      DFROBOT

    • e-gizmo
      e-gizmo




NEXT : Note5 - isShield-A

2014년 7월 15일 화요일

WIZ Ethernet Library for Arduino IDE 1.5.7

WIZ_Ethernet_Lib_IDE1.5.7.git



The Ethernet library lets you connect to the Internet or a local network.

Supported devices




  • ioShield, WIZ550io (used in W5500)

  • W5200 Ethernet Shield, WIZ820io (used in W5200)

  • Ethernet Shield (used in W5100)



Hardware





Software



Install WIZ Ethernet library



Download all files and overwrite onto the"Arduino\libraries\Ethernet" folder in your project in sketch.
- Ethernet folder has two folers, examples and src folers.

Select device(shield)



Uncomment device(shiel) you want to use.

[code lang=cpp]
//ArduinolibrariesEthernetutilityw5100.h
#ifndef W5100_H_INCLUDED
#define W5100_H_INCLUDED

#include <avr/pgmspace.h>
#include

typedef uint8_t SOCKET;
//#define W5100_ETHERNET_SHIELD
//#define W5200_ETHERNET_SHIELD
#define W5500_ETHERNET_SHIELD
[/code]

Using the WIZ Ethernet library and evaluate existing Ethernet example.



All other steps are the same as the steps from the Arduino Ethernet Shield.
You can use examples in ./Ethernet/examples folder for the Arduino IDE 1.5.7, go to Files->Examples->Ethernet, open any example, then copy it to your sketch file and change configuration values properly.
After that, you can check if it is work well. For example, if you choose 'WebServer', you should change IP Address first and compile and download it. Then you can access web server page through your web browser of your PC or something.

Revision History



Initial Release : 15 Jul. 2014