To use WIZ550io in Arduino platform : Arduino UNO

I know Arduino platform for IoT. So I implemented a firmware of Arduino by Ethernet SW modification because I can handle a source code easily. You can know the status of equipment even if it is so far. Please refer to the following step.

Reference : https://forum.wiznet.io/t/Wiz550io-Arduino-due-Mysqlconnector-arduino-ide/3348

Step 1: Prepare Materials

Please refer to the following.

1. Arduino UNO

2. WIZ550io or ioShield-A

3. LAN cable

4. USB cable

Step 2: Hardware Connection

Please connect an LAN cable and USB cable

You can get more HW info by the following site.

https://www.arduino.cc/en/Main/ArduinoBoardUno

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

First of all, prepare Arduino UNO and WIZ550io module.

Connect Arduino UNO and WIZ550io module like below.

Arduino UNO pin<->WIZ55io pin

3.3V<->3V3D

GND<->GND

13<->SCLK

12<->MISO

11<->MOSI

10<->SCSn

RESET<->RSTn

I recommand to use ioShield-A.

Step 3: Prepare Development Environment

https://www.arduino.cc/en/Guide/HomePage

Step 4: Software

I uploaded Arduino project. You can download this project file. And then import project into Arduino IDE.

After compile, you can execute a sample of WebServer.

WebServer.zip

Step 5: How to Run : Modification

Execute Arduino IDE.
Select Arduino IDE Menubar->Sketch->Include Library->Mange Libraries...
Search Ethernet2 library by string.
Install Ethernet2 library.

Find w5500.h, w5500.cpp
Windows OS
C:\Users\your username\Documents\Adruino\libraries\Ethernet2\utility\
Linux
/home/your username/Arduino/libraries/Ethernet2/src/utility/

Insert the following code in w5500.h

...
#define WIZ550ioWITH_MACADDRESS
...

Insert the following code in w5500.cpp

...
#if !defined(WIZ550ioWITH_MACADDRESS)
w5500.swReset();
#endif
...

For example, you can modify Ethernet.begin function of WebServer code without mac parameter.
Compile and upload by Arduino IDE.

Step 6: How to Run : Result


목차

-. W5100, W5500 chip inside Arduino

-. 전기/전자 기초

-. Arduino 소개

-. Arduino IDE 설치하기

-. 프로그래밍 기초

-. Peripheral 이론 및 실습

디지털 입출력, 아날로그 입력 및 아날로그 응용 실습


W5100, W5500 chip inside Arduino

Arduino Board

Arduino Ethernet Shield


전기/전자 기초

참고 자료

• 아두이노를 사용하기 전에 기초가 되는 지식들을 알아보겠습니다.

• 전기의 이해 - http://openstory.tistory.com/4 

• 옴의 법칙과 아날로그 & 디지털 설명 - http://openstory.tistory.com/5 

• 펄스폭변조(PWM) - http://openstory.tistory.com/6 

• 저항의 용도 - http://openstory.tistory.com/7 

• 브레드 보드(Bread board) - http://openstory.tistory.com/8

• 위 자료들은 인터넷 어디에서나 찾아볼 수 있는 기초 지식들입니다. 

• 기초를 확실하게 아시는 것이 아두이노를 시작하는데 많은 도움이 됩니다.


Arduino 소개

WHAT IS ARDUINO?

• Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects.

Arduino IDE 설치하기

개발 환경 구축

Arduino IDE Sketch 설치
 
– 아두이노에서 제공하는 IDE 환경 설치 하기
 


한글 editing이 잘 안 될 때

• 제공된 arduino-core.jar, pde.jar 파일로 대체하면 됩니다.

pde.jar

arduino-core.jar


프로그래밍 기초

아두이노 기본구조

함수/변수


자료형

연산자

조건문

반복문


Peripheral 이론 및 실습

Feature
ATSAMD21G18 MCU with a 32-bit ARM® Cortex™-M0+ 48MHz(Clock Speed), 256KB(Flash Memory), 32K(SRAM) W5500 TCP/IP Embedded Ethernet Controller
Peripheral 실습

제공된 예제파일을 참고 바랍니다.


• LED_control_example
 
• SW_control_example
 
• interrupt_example

* LED는 긴 쪽을 (+)단자로, 짧은 쪽을 (-) 단자로 방향을 주의해서 연결해주세요.


Quiz

• delay를 사용하지 않고 1초에 한번 LED Toggle 시키기

Quiz_LED_control_example.zip


Peripheral 실습(2)

• potentialmeter_example

* LED는 긴 쪽을 (+)단자로짧은 쪽을 (-) 단자로 방향을 주의해서 연결해주세요.



아두이노 컨트롤을 위한 스마트폰 앱 활용

강사 Blog : http://opensrclab.tistory.com

                http://www.instructables.com/howto/bingdo/

목차

1. 개발 환경 구축

   - Arduino IDE Sketch 활용

2. W5500 칩 주요 특징 소개

3. WizArduino 사용법 실습

   - Sketch Examples 프로젝트 활용

   - TCP/UDP 이용에 대한 기본 개념 이해

4. Blynk_ArduinoUNO_Sketch 프로젝트 데모

   - Blynk 스마트폰 앱 활용

   - Blynk 플랫폼 및 Arduino 제어에 대한 개념 이해

5.  Blynk_WizArduino 프로젝트 실습

   - Blynk 스마트폰 앱 활용

   - Blynk Server와 WizArduino 제어에 대한 개념 이해

개발 환경 구축

Arduino IDE Sketch 설치

   - 아두이노에서 제공하는 IDE 환경 설치하기

   - http://www.arduino.org/software

 

개발 환경 구축(2)

Blynk Library 설치

   - Blynk Github에서 제공하는 Library 설치하기

   - https://github.com/blynkkk/blynk-library/releases

개발 환경 구축(3)

Blynk Library 설치

   - C:\Users\Name\Documents\Arduino\libraries에 복사하기

W5500 칩 주요 특징 소개

Features

Fully Hardware TCP/IP 이더넷 솔루션 : WIZnet의 저렴하고 활용성이 좋은 이더넷 전용칩

   - W3100<W3100A(+)<W5100<W5300<W5200

   - TCP, UDP, ICMP, IPv4, ARP, IGMP, PPPoE

   - 8 Sockets

   - Integrated Ethernet PHY

   - SPI Mode 0/3 (Up to 80MHz)

   - 48LQFP

WizArduino 사용법 실습

Features

   - ATSAMD21G18 MCU with a 32-bit ARM Cortex-M0+ 48MHz(Clock Speed), 256KB(Flash Memory), 32KB(SRAM)

   - W5500 TCP/IP Embedded Ethernet Controller

http://wizwiki.net/wiki/doku.php?id=osh:wizarduino:start

ioLibrary 소개

Ethernet Example 실습

UDPSendReceiveString 예제 실습

   - 프로젝트 import

     Sketch File->Exmaples->Ethernet2->UDPSendReceiveString 선택

   - Mac address, IP address, Port 변경

   - Verify 및 Upload

   - Loopback UDP 활성화 및 Server 연동

Ethernet Example 실습(2)

   - 프로젝트 import

     Sketch File->Exmaples->Ethernet2->UDPSendReceiveString 선택

Ethernet Example 실습(3)

   - Mac address, IP address, Port 변경

* MAC address, IP 중복 피할 것

Ethernet Example 실습(4)

   - Verify 및 Upload

Ethernet Example 실습(5)

   - Loopback UDP 활성화 및 Server 연동

Blynk_ArduinoUNO_Sketch 프로젝트 데모

Blynk 스마트폰 앱

Instructables.com 참조

http://www.instructables.com/id/How-to-Transfer-Arduino-Sensor-Data-to-Blynk-Serve/

https://www.youtube.com/watch?v=FesLWXggzsY

BLYNK_WizArduino_Sketch 프로젝트 실습

Blynk Platform 소개

Blynk is a Platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet.

http://www.blynk.cc/

https://ksr-video.imgix.net/projects/657114/video-471034-h264_high.mp4

Blynk Platform 소개(2)

Blynk was designed for the Internet of Things. It can control hardware remotely, it can display sensor data,

it can store data, analyze and do many other cool things.

Blynk 예제 실습

참조 블로그

https://ericslabs.wordpress.com/tag/blynk/

   - 소스 다운로드

     http://www.instructables.com/id/How-to-Transfer-Arduino-Sensor-Data-to-Blynk-Serve/

   - 프로젝트 import

     Sketch File->Exmaples->Blynk->BoardsAndShields->Arduino_Ethernet_Manual 선택

   - Blynk 앱 다운로드 및 설치

   - Blynk Server 로그인

   - Create New Project 생성

   - E-mail에서 Auth Token 확인

   - Auth Token, Server IP, MAC 및 IP Address 변경

   - Verify 후 Upload

   - 디바이스 컨트롤 하기

Blynk 예제 실습(2)

   - 소스 다운로드

     http://www.instructables.com/id/How-to-Transfer-Arduino-Sensor-Data-to-Blynk-Serve/

Blynk 예제 실습(3)

   - 프로젝트 import

     Sketch File->Exmaples->Blynk->BoardsAndShields->Arduino_Ethernet_Manual 선택

Blynk 예제 실습(4)

   - Blynk 앱 다운로드 및 설치

Blynk 예제 실습(5)

   - Blynk Server 로그인

* 처음 로그인 시 Create New Account 사용

Blynk 예제 실습(6)

   - Create New Project 생성

Blynk 예제 실습(7)

   - E-mail에서 Auth Token 확인

 

Blynk 예제 실습(8)

   - Auth Token, Server IP, MAC 및 IP Address 변경

   - Verify 후 Upload

* MAC address, IP 중복 피할 것

Blynk 예제 실습(9)

   - 디바이스 컨트롤 하기

Blynk 예제 실습(10)

   - 디바이스 컨트롤 하기

* D10, D11, D12, D13 핀은 Ethernet SPI로 사용 중이므로 컨트롤 할 수 없음

Blynk 예제 실습(11)

   - 디바이스 컨트롤 하기

Blynk 예제 실습(12)

   - 디바이스 컨트롤 하기

 

+ Recent posts