30
Arduino Overview and Demo [email protected]

Arduino 소개, RC카 만들기

Embed Size (px)

Citation preview

Page 1: Arduino 소개, RC카 만들기

Arduino Overview and Demo

[email protected]

Page 2: Arduino 소개, RC카 만들기
Page 3: Arduino 소개, RC카 만들기

Overview Arduino, Overview and Demo

Page 4: Arduino 소개, RC카 만들기

Feature

Multi-platform support Simple, clear programming environment

Open source and extensible software Open source and extensible hardware

Page 5: Arduino 소개, RC카 만들기

UNO R3 (Reference Model) Microcontroller ATmega328 Operating Voltage 5V Input Voltage (recommended) 7-12V Input Voltage (limits) 6-20V Digital I/O Pins 14 (of which 6 provide PWM output) Analog Input Pins 6 DC Current per I/O Pin 40 mA DC Current for 3.3V Pin 50 mA

Flash Memory 32 KB (ATmega328) of which 0.5 KB used by bootloader

SRAM 2 KB (ATmega328) EEPROM 1 KB (ATmega328) Clock Speed 16 MHz

Page 6: Arduino 소개, RC카 만들기
Page 7: Arduino 소개, RC카 만들기

IDE

Page 8: Arduino 소개, RC카 만들기

Connectivity

USB

소프트웨어적인 시리얼 포트 사용

Page 9: Arduino 소개, RC카 만들기

Digital I/O Pin 0~13 Analog Input Pin 0~5 Analog Output (Pin 3,5,6,9,10,11)

PWM, 펄스 폭 변조

I/O Pins

Page 10: Arduino 소개, RC카 만들기
Page 11: Arduino 소개, RC카 만들기

Blinking LED

Page 12: Arduino 소개, RC카 만들기

Blinking LED

http://www.youtube.com/watch?v=dnPPoetX0uw#t=131s

Page 13: Arduino 소개, RC카 만들기

What Would You Make? Arduino, Overview and Demo

Page 14: Arduino 소개, RC카 만들기

Sensors

Page 15: Arduino 소개, RC카 만들기

Moisture Monitor

습도 센서

Page 16: Arduino 소개, RC카 만들기

Moisture Monitor

습도 센서

Sig, 습도값(0~950)

VCC, 전원

GND, Ground

Page 17: Arduino 소개, RC카 만들기

Moisture Monitor

Serial class analogRead

Page 18: Arduino 소개, RC카 만들기

Moisture Sensor + LCD

Moisture Sensor

9V Battery

16 * 2 LCD

Page 19: Arduino 소개, RC카 만들기

Motor Control Arduino, Overview and Demo

Page 20: Arduino 소개, RC카 만들기

아두이노를 구입했던 최초의 목적

RC Car 만들기!

Page 21: Arduino 소개, RC카 만들기

LEGO 8070

Motorized Driving(Forward/Backward Only) No Remote Control 아두이노로 무선조종을 넣어보자!

Page 22: Arduino 소개, RC카 만들기

Fully Motorized For Driving

For Steering

Page 23: Arduino 소개, RC카 만들기

Requirements

HC-06 Bluetooth Module Motor Shield

모터는 전력을 많이 소모하므로 아두이노에 직접연결하지 않고 모터 드라이버를 통해 연결한다.

Bluestick Control App(Android)

블루투스 컨트롤용 스마트폰 앱

Page 24: Arduino 소개, RC카 만들기

Bluestick Control App

48 = Button Release 56 = Up 50 = Down 52 = Left 54 = Right 65 = Auto Grab 66 = Auto Release 67 = Grab 68 = Release 69 = Rotate Left 70 = Rotate Right

각 버튼을 누르면 할당된 코드가 블루투스를 통해 문자열로 전송됨 Packet Sending

56 56 56 48 54 54 48

Push “Up” Release Push “Right”

Page 25: Arduino 소개, RC카 만들기

Circuit

2

3

4

5 11 12

RX TX

GND

VCC(3V)

모터는 실제로는 M1, M2 포트에 연결하고 2,3과 4,5번 핀을 통해 모터를 제어해야 함. 여기선 편의상 핀에 직접 연결함

M1

M2

HC-06

Page 26: Arduino 소개, RC카 만들기

Initialize Bluetooth

Page 27: Arduino 소개, RC카 만들기
Page 28: Arduino 소개, RC카 만들기

DEMO

http://www.youtube.com/watch?v=diV-lCdG3gw

Page 29: Arduino 소개, RC카 만들기

Conclusion

소프트웨어 개발자에게 있어 아두이노의 의미? 생산적인 취미로 소프트웨어와 하드웨어 지식의 균형 가상세계를 넘어선 물리적인 상호작용

Page 30: Arduino 소개, RC카 만들기

Reference

www.arduino.cc www.artrobot.co.kr 손에 잡히는 아두이노, 인사이트