Upload
ji-hun-kim
View
2.514
Download
10
Embed Size (px)
Citation preview
Arduino Overview and Demo
Overview Arduino, Overview and Demo
Feature
Multi-platform support Simple, clear programming environment
Open source and extensible software Open source and extensible hardware
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
IDE
Connectivity
USB
소프트웨어적인 시리얼 포트 사용
Digital I/O Pin 0~13 Analog Input Pin 0~5 Analog Output (Pin 3,5,6,9,10,11)
PWM, 펄스 폭 변조
I/O Pins
Blinking LED
Blinking LED
http://www.youtube.com/watch?v=dnPPoetX0uw#t=131s
What Would You Make? Arduino, Overview and Demo
Sensors
Moisture Monitor
습도 센서
Moisture Monitor
습도 센서
Sig, 습도값(0~950)
VCC, 전원
GND, Ground
Moisture Monitor
Serial class analogRead
Moisture Sensor + LCD
Moisture Sensor
9V Battery
16 * 2 LCD
Motor Control Arduino, Overview and Demo
아두이노를 구입했던 최초의 목적
RC Car 만들기!
LEGO 8070
Motorized Driving(Forward/Backward Only) No Remote Control 아두이노로 무선조종을 넣어보자!
Fully Motorized For Driving
For Steering
Requirements
HC-06 Bluetooth Module Motor Shield
모터는 전력을 많이 소모하므로 아두이노에 직접연결하지 않고 모터 드라이버를 통해 연결한다.
Bluestick Control App(Android)
블루투스 컨트롤용 스마트폰 앱
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”
Circuit
2
3
4
5 11 12
RX TX
GND
VCC(3V)
모터는 실제로는 M1, M2 포트에 연결하고 2,3과 4,5번 핀을 통해 모터를 제어해야 함. 여기선 편의상 핀에 직접 연결함
M1
M2
HC-06
Initialize Bluetooth
DEMO
http://www.youtube.com/watch?v=diV-lCdG3gw
Conclusion
소프트웨어 개발자에게 있어 아두이노의 의미? 생산적인 취미로 소프트웨어와 하드웨어 지식의 균형 가상세계를 넘어선 물리적인 상호작용
Reference
www.arduino.cc www.artrobot.co.kr 손에 잡히는 아두이노, 인사이트