Introduction

IoT 세상에서 DIY Maker들은 자신이 만든 디바이스나 작품들이 어떻게든 외부와 연결되기를 바랄 것이다. 필자 또한 항상 프로젝트를 진행할 때 인터넷을 사용할 수 있게 즉, 연결성에 중점을 두곤 한다.

하지만 DIY Maker들에게 외부 연결성을 고려할 만큼 전문성이 없는 경우가 많을 것이다. 간단한 작업으로 이런 문제를 해결할 수 있다면 금상첨화가 아닐까 한다.

WIZ820io는 이런 문제를 해결하기 위한 여러 방편 중 하나이다. 손쉬운 Ethernet solution을 제공하니 한 번쯤 사용해 보기를 권장한다.

 

What is Ethernet?

Wikipedia의 정의로 보면, Ethernet is a family of computer networking technologies commonly used in local area networks (LANs) and metropolitan area networks (MANs).[1] It was commercially introduced in 1980 and first standardized in 1983 as IEEE 802.3,[2] and has since been refined to support higher bit rates and longer link distances. Over time, Ethernet has largely replaced competing wired LAN technologies such as token ring, FDDI and ARCNET.

Ethernet은 쉽게 얘기하면 인터넷에 연결할 수 있는 방편 중 하나로 보면 될 것이다.

집에 보면 컴퓨터나 AP를 연결하기 위한 LAN 케이블이 있으니 직접 눈으로 확인해 보는 것도 좋을 것이다.

 

What is WIZ820io?

WIZ820ioWIZnet 회사에서 만들어서 판매하고 있는 Ethernet solution 중 하나이다. MCUSPI Interface를 통해 TCP/IP를 이용하여 외부 인터넷에 연결할 수 있다.

WIZ820io is a compact size network module that includes a W5200 (TCP/IP hardwired chip and PHY embedded), a transformer and RJ45. It can be used as a component and no effort is required to interface W5200 and Transformer. The WIZ820io is an ideal option for users who want to develop their Internet enabling systems rapidly. WIZ820io is hardware compatible with WIZ850io.

http://www.shopwiznet.com/wiz820io

 

Curation on WIZnet Museum

누구나 쉽게 WIZ820io 활용해서 IoT 디바이스들에게 연결성을 제공하고 있는 사이트를 소개하고자 한다. 실제 구현에 필요한 SW, HW 내용들을 포함하고 있기에 관심이 있는 사람이라면 한 번쯤 따라 해 보는 것도 좋으리라 생각한다.

 

Tutorial: Controlling Servo / Webcam via webserver, Wiz820io and Garagino

This project is a server with Garagino and Wiznet Ethernet module, and thus an HTML page that displays the buttons that control the servos connected to the Pan / Tilt.

http://wiznetmuseum.com/portfolio-items/tutorial-controlling-servo-webcam-via-webserver-wiz820io-and-garagino/

Webcam의 방향을 제어해 볼 수 있는 프로젝트로 인터넷 연결을 위해서 WIZ820io를 사용하고 있다. Arduino Ethernet 보드를 사용할 수도 있는 점을 알려주고 있으며 비교적 프로젝트가 잘 정리 되어 있다.

 

Bascom project – Ethernet Shield & WIZ820io

BASCOM-AVR© is the original Windows BASIC COMPILER for the AVR family. It is designed to run on XP/VISTA/WIN7 and WIN8. This product description is updated in 2014. But we do not change it each time we update the software. In the on line help you can find a list of all statements and functions.

http://wiznetmuseum.com/portfolio-items/bascom-project-ethernet-shield-wiz820io/

아두이노에 WIZ820io를 연결하여 Ethernet 사용을 손쉽게 적용한 프로젝트로 하기 링크로 연결하면 보다 자세한 프로젝트 내용을 볼 수 있다. 아두이노의 AVR MCU 이외에도 다양한 MCU에 포팅이 가능하다.

http://wiki.mcselec.com/Getting_started_with_Arduino_and_WIZ820io

 

WIZ820io: Porting Guide about EmIDE and Nucleo Board

This is a simple project based on EmIDE(gcc) since commercial compiler is not free which shows how to port from EmIDE and Nucleo Board using WIZnet network module product, WIZ820io.

http://wiznetmuseum.com/portfolio-items/1-wiz820io-porting-guide-about-emide-and-nucleo-board/

상기 프로젝트에서 AVR MCU를 사용했듯이 Nucleo보드의 ST MCU를 사용하여 WIZ820io 프로젝트가 진행되었다. IoT 플랫폼으로 사용되고 있는 mbed Nucleo 보드를 사용하면 보다 쉽게 프로토타입을 구성하여 빠르게 Ethernet 제품을 구상할 수 있다.

'Curation Contents' 카테고리의 다른 글

To understand IoT through Blynk Platform easily  (2) 2017.01.10


Introduction

평범한 일상을 상상해 보자. 날씨가 화창한 주말 가족들은 근교로 피크닉을 가려고 준비하고 있다. 아빠는 정원에서 텐트를 점검 중이고 엄마는 점심으로 먹을 음식 장만에 한창이다. 아이들은 모처럼 만의 나들이에 들떠있다. 모든 준비가 끝나고 집을 떠나 한참을 달린 순간, 아빠는 현관문을 잠그지 못한 걸, 엄마는 가스밸브를 안 잠근 걸, 아이들은 애완용 앵무새에게 먹이를 주지 못한 걸 생각하고 차를 돌리게 된다. 만약 원격으로 현관문, 가스밸브의 상태를 확인한 후 잠글 수 있고 애완용 앵무새를 영상으로 확인 후 먹이까지 줄 수 있다면 편안한 피크닉을 보장할 수 있을 것이다.

 

What is IoT?

IoT(사물인터넷)은 이미 세간에 널리 알려진 network connectivity의 개념이라 할 수 있다. Wikipedia의 정의로 보면, The internet of things (IoT) is the network of physical devices, vehicles, buildings and other items—embedded with electronics, software, sensors, and network connectivity that enables these objects to collect and exchange data. 개인적인 이해도로 보면 말단 센서 등의 디바이스 데이터를 네트워크를 통해 교환할 수 있게 하고 이를 분석한다면 사용자에게 맞춤식 서비스를 제공할 수 있을 것으로 본다.

이런 서비스의 대표적인 예가 최근 통신사에서 제공하고 있는 홈IoT 서비스이다. 사용자들에게 어떤 서비스가 제공될 수 있을 지를 동영상을 통해 쉽게 이해할 수 있다.

https://www.youtube.com/watch?v=tTS8yJyFg-M

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

 

What is Blynk Platform?

IoT의 개념을 좀더 쉽게 이해하기 위해서 Blynk Platform을 이용해 볼 수 있다. IoT 서비스의 많은 부분이 스마트폰과의 연동으로 이루어지고 있기 때문에 무료로 사용할 수 있는 Blynk 스마트폰앱을 이용해 봄으로써 IoT의 이해도를 높일 수 있겠다. BlynkKickstarter에서 Cloud 펀딩에 성공한 대표적인 스마트폰앱으로 사용자가 앱 상의 Widget을 손쉽게 구성하여 아두이노 등의 임베디드 디바이스들을 원격으로 제어해 볼 수 있는 장점이 있다. 좀 더 자세한 내용은 동영상을 참조 바란다.

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

 

Curation on WIZnet Museum

누구나 쉽게 Blynk앱을 활용해서 IoT 디바이스들을 제어해 볼 수 있는 Tutorial이 제공되는 사이트를 소개하고자 한다. 실제 구현에 필요한 SW, HW 내용들을 포함하고 있기에 관심이 있는 사람이라면 한 번쯤 따라 해 보는 것도 좋으리라 생각한다.

 

Getting started with Blynk and Arduino. Switch the lights ON over the Internet

This project shows a simple home automation demo built with an Ethernet shield and relay module. A user can control lights with Arduino using Blynk on your iPhone.

http://wiznetmuseum.com/portfolio-items/getting-started-with-blynk-and-arduino-switch-the-lights-on-over-the-internet/

가장 보편적인 Blynk 예제로 Blynk앱의 GPIO핀을 제어해서 디바이스와 연결된 릴레이를 On/Off 시키는 예제이다. 보통은 LEDOn/Off 시키는데 한발 더 나아가서 릴레이를 제어함으로써 일반 가정의 조명도 관리할 수 있음을 보여주고 있다.

 

Rain Waring Display on Mobile for your Home Garden

A system that warns for unexpected rains to help out your garden. The system displays real time values on mobile.

http://wiznetmuseum.com/portfolio-items/2-rain-warning-display-on-mobile-for-your-home-garden/

IoT 디바이스에 센서를 연결시켜서 값을 확인할 수 있다. 원하는 센서를 연결시키고 데이터를 원격지에서 모니터링 할 수 있는 기본적인 구성을 보여주고 있다.

 

Smart Parking

A system that tells you about the parking slots of an area.

http://wiznetmuseum.com/portfolio-items/smart-parking/

현재도 이용되고 있는 주차 확인 서비스의 구성을 확인할 수 있도록 구성되어 있다. 센서의 값을 서버나 스마트폰에서 확인할 수 있게 함으로써 사용자들의 편의를 도울 수 있다.

'Curation Contents' 카테고리의 다른 글

How to use WIZ820io easily  (0) 2017.02.16

목차

-. 개발 환경 구축

-. WIZwiki-W7500 소개

-. ARM mbed 소개

-. mbed OS5 포팅 실습

-. WIZnetInterface library 포팅 실습


개발 환경 구축

Python, Git, Mercurial, GCC, mbed-cli 설치

참조링크


WIZwiki-W7500 소개

Features

참조링크


참조링크


WIZnet W7500

ARM® Cortex™-M0 Core 48MHz
128KB Flash memory
16KB to 48 KB SRAM (Min 16KB available if 32KB socket buffer is used, Max 48KB available if no socket buffer is used)
Hardwired TCP/IP Core (8 Sockets, MII: Medium-Independent Interface)
12-bit, 8ch ADC
53 I/Os
1ch Watchdog, 4ch Timers and 8ch PWM
3ch UART
2ch SPI
2ch I2C

Arduino form-factor

Compatible with a wide range of commercially available shields

CMSIS-DAP interface firmware

Built-in USB drag 'n' drop FLASH programmer
USB Virtual COM port for serial terminal
CMSIS-DAP interface for programming and debugging from offline tools

mbed.org Developer Website

Online Compiler
High level C/C++ SDK
Active developer community

WIZwiki-W7500 USB Driver 설치

참조링크

참조자료

mbedWinSerial_16466.exe 

mbedWinSerial_16466.exe


설치방법

mbedWinSerial_16466.exe 실행 및 설치.
WIZwiki-W7500 보드를 PCUSB케이블로 연결.
장치관리자에서 COM Port 확인.

ARM mbed 소개

Introduction

참조링크


mbed OS5 포팅 실습

예제실습

mbed-os-example-blinky 프로젝트 실습

Github 소스 import
파일 추가 및 파일 수정
소스 컴파일
바이너리 Fusing
LED 점등 확인

Github 소스 import

파일 추가 및 파일 수정

added.zip
mbed-os-example-blinky\mbed-os\targets\TARGET_WIZNET\mbed_rtx.h

modified.zip
mbed-os-example-blinky\mbed-os\targets\targets.json
mbed-os-example-blinky\mbed-os\targets\TARGET_WIZNET\TARGET_W7500x\TARGET_WIZwiki_W7500\device\TOOLCHAIN_GCC_ARM\startup_W7500.S

mbed-os-example-blinky\main.cpp

modified.zip


소스 컴파일

바이너리 Fusing

LED 점등 확인


WIZnetInterface library 포팅 실습

예제실습

mbed-os-example-blinky 프로젝트 실습

WIZnetInterface library 추가
netsocket 디렉토리 삭제 및 파일 수정
소스 컴파일
바이너리 Fusing
Echo back 확인

WIZnetInterface library 추가

netsocket 디렉토리 삭제 및 파일 수정

mbed-os-example-blinky\mbed-os\features\netsocket

modified2.zip

mbed-os-example-blinky\main.cpp

modified2.zip


소스 컴파일

바이너리 Fusing

Echo Back 확인

+ Recent posts