목차

-. 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는 긴 쪽을 (+)단자로짧은 쪽을 (-) 단자로 방향을 주의해서 연결해주세요.



Making Development Environment Using GNU ARM, Java JDK, Eclipse, Cygwin

Contents:

1.     Install Compiler

2.     Install JDK

3.     Install Eclipse 

4.     Eclipse Development Environment

5.     Install Cygwin or gnuwin32

1. Install Compiler

-. Install GNU Toolchain

 Contact  https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q1-update

 Download the installation file accoding to  PC OS version.

 I downloaded gcc-arm-none-eabi-4_8-2014q1-20140314-win32.exe file, because of 64 bit.

-. Please install like below screen.

 

-. After installing, please check the version with arm-none-eabi-gcc –v command at Dos command.

2. Installing JDK 

-. Please install Java JDK. (if you have already, then skip)

Contact at http://www.oracle.com/technetwork/java/javase/downloads/index.html

Download jdk file according to your PC OS version. 

I downloaded jdk-8u5-windows-x64.exe file, because of 64 bit.

-. Please install like below screen.

 

-. After complete the install, please check the java version with java -version command at DOS Command.

 

3. Installing  Eclipse 

-. Please install the Eclipse program.

Connect at http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/keplersr2 

Please download the installation file according to your PC OS version.

I downloaded eclipse-cpp-kepler-SR2-win32-x86_64.zip file, because of 64 bit.

-. Please use the files after decompress the downloaded zip file.

4. Setting Eclipse Environment

-. execute the eclipse.exe program.

-. Help->Select “Install New Software… ” menu

 

-. after select the “–All Available Sit–” , please insert the http://download.eclipse.org/tools/cdt/releases/helios web site.  

 

-. Please check the below 6 combo boxes.

C/C++ Development Tools

C/C++ Development Platform

C/C++ GCC Cross Compiler Support

C/C++ GDB Hardware Debugging

C/C++ GNU Toolchain Build Support

C/C++ GNU Toolchain Debug Support

 

 

 

 

-. Please restart, after install the Eclipse.

-. Help->Install New Software…-> Select the Add Menu.

-. Add the GNU ARM Plug-in.

http://sourceforge.net/projects/gnuarmeclipse/files/Eclipse/updates

http://gnuarmeclipse.sourceforge.net/updates-test

Recently I found a problem in v3.1.1-2016062110758. So you have to install v2.12.1-201604190915.zip file manually.

https://github.com/gnuarmeclipse/plug-ins/releases/tag/v2.12.1-201604190915

 

 

 

 

 

 

5. Install Cygwin or gnuwin32 Program.

-. Please install Cygwin using make.exe, rm.exe, echo.exe command.

contact https://www.cygwin.com/ and download the file, accordig the PC OS Version.

I downloaded setup-x86_64.exe file, because of 64 bit.

-. Please install like below screens.

 

-. I used “Install from Local Directory” to shorten the installing time.

You can use the “Install from Internet” option.

 

-. Please install the “Base package”

 

-. to use make command, install the “Devel package”

 

 -. Please add the “E:\cygwin64\bin” path to window system environment variables.

 

-. after adding, please check the version is right with “make –version” command.

 

 -. You can install gnuwin32 tools by the following site. After installing make.exe, rm.exe, echo.exe files, please add the path to window system environment variables.

http://gnuwin32.sourceforge.net/packages/make.htm

http://gnuwin32.sourceforge.net/packages/coreutils.htm

After adding, please check the version is right with “make –version” command.

-. If you are using Windows 64 bit, you can add path to the environment variable by unpacking the attachment below.

Apps.7z.001

Apps.7z.002


스마트폰으로 제어해 보는 IoT 보드

Content

-. 개발 환경 구축

-. W5500 칩 소개

-. W5500 Ethernet shield 및 Nucleo 보드 소개

-. Blynk_STM32F411_CoIDE 프로젝트 실습


개발 환경 구축

GNU Toolchain 설치

-. 참조 링크 https://launchpad.net/gcc-arm-embedded/5.0/5-2015-q4-major

CoIDE 설치

V1.7.8 다운로드 참조 링크 http://www.coocox.org/software/coide.php

메뉴->Project->Select Toolchain Path 선택

...\GNU Tools ARM Embedded\5.2 2015q4\bin 경로 추가

W5500 칩 소개

Features

참조 링크 http://wizwiki.net/wiki/doku.php?id=products:w5500:start

Fully Hardware TCP/IP 이더넷 솔루션

-. WIZnet의 저렴하고 활용성이 좋은 이더넷 전용칩

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

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

-. 8 Sockets

-. Integrated Ethernet PHY

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

-. 48LQFP

ioLibrary

Driver 소스 참조 링크 https://github.com/Wiznet/ioLibrary_Driver

W5500 Ethernet shield 및 Nucleo 보드 소개

W5500 Ethernet shield Features

참조 링크 http://wizwiki.net/wiki/doku.php?id=osh:w5500_ethernet_shield:start

Nucleo 보드 Features

참조 링크 https://developer.mbed.org/platforms/ST-Nucleo-F411RE/

Blynk_STM32F411_CoIDE 프로젝트 실습

Blynk Platform

참조 링크 http://docs.blynk.cc/ 또는 https://ksr-video.imgix.net/projects/657114/video-471034-h264_high.mp4

예제 실습

Blynk_STM32F411_CoIDE 프로젝트 실습

-. Github 소스 다운로드 후 Unzip

-. Open Project 선택

-. Blynk App 다운로드 및 설치

-. Blynk Server 로그인

-. Create New Project 생성

-. E-mail에서 Auth Token 확인

-. Auth Token 변경 후 소스 Build/Rebuild

-. Nucleo 보드, W5500 Ethernet shield, Easy shield 결합

-. Program Download

-. Nucleo 보드 컨트롤 하기

Github 소스 다운로드 참조 링크 https://github.com/bingdo/Blynk_STM32F411_CoIDE

Unzip

Open Project

메뉴->Project->Open Project->Blynk_STM32F411_CoIDE.coproj 선택

Blynk App 다운로드 및 설치

Android폰 : Play 스토어 이용

iPhon : App 스토어 이용

Blynk Server 로그인

처음 로그인 시 Create New Account 사용

Create New Project 생성

E-mail에서 Auth Token 확인

Auth Token, MAC 주소 변경 후 소스 Build/Rebuild

메뉴->Project->Build/Rebuild 선택

Nucleo 보드, W5500 Ethernet shield, Easy shield 결합


Program Download

메뉴->Flash->Program Download 선택

Nucleo 보드 컨트롤 하기

Button, Graph Widget 추가

D10, D11, D12, D13 핀은 Ethernet SPI로 사용 중이므로 컨트롤 불가


+ Recent posts