99
1 Arduino 介介 Speaker: Cooper Maa Date: 2012/07/18 http://coopermaa2nd.blogspot.com

Arduino Introduction by coopermaa

  • Upload
    -

  • View
    16.607

  • Download
    6

Embed Size (px)

DESCRIPTION

An overview of Arduino.

Citation preview

Page 1: Arduino Introduction by coopermaa

1

Arduino 介紹

Speaker: Cooper MaaDate: 2012/07/18

http://coopermaa2nd.blogspot.com

Page 2: Arduino Introduction by coopermaa

2

Speaker

Cooper Maa PIC/AVR Firmware Programmer

Email: [email protected] Blog: http://coopermaa2nd.blogspot.com

Page 3: Arduino Introduction by coopermaa

3

大綱

1. What is Arduino?

2. Variety and Shields and Sensors

3. Applications

Page 4: Arduino Introduction by coopermaa

4

1. What Is Arduino?

Page 5: Arduino Introduction by coopermaa

5

Arduino is a board

USB Port

Power Supply

Digital In/Out Pins

Analog Input Pins

Power Pins

Atmega328p

USB to Serial

Page 6: Arduino Introduction by coopermaa

6

Analog and Digital signals

數位訊號: 1 和 0 兩種不連續的訊號,在 Arduino 裏,通常 1 代表高電壓 5V , 0 代表低電壓 0V ,通常用來表示資料 0 和 1 、「開」和「關」或「通電」和「不通電」的狀態

類比訊號:聲音、影像、光線、溫度都是連續的訊號,稱為類比訊號,大小 / 強度 / 高低可以轉換成電壓的變化

Arduino 有 ADC (Analog to Digital Converter) 會將類比訊號轉成數位資料 (0-1023)

+5V

+5V

0V

0V

Page 7: Arduino Introduction by coopermaa

7

You can connect Sensors and Actuators

Page 8: Arduino Introduction by coopermaa

8

You can make a Weather Station

http://bitly.com/xXJne

溫濕度感測器

Page 9: Arduino Introduction by coopermaa

9

Or make a Siri door lock

Door lock monitor Unlock/lock with Siri SMS Message

http://bitly.com/y8cVX8

Page 10: Arduino Introduction by coopermaa

10

Even construct an Arduino Robot

And lots of applications we will see later

Page 11: Arduino Introduction by coopermaa

11

實體互動程式設計

Page 12: Arduino Introduction by coopermaa

12

Hardware Features (Uno)

Microcontroller ATmega328p

Operating Voltage 5V

Digital I/O Pins 14 (of which 6 provide PWM output)

Analog Input Pins 6

DC current per I/O Pins

40mA

DC current for 3.3V Pin

50mA

Flash Memory 32KB

SRAM 2KB

EEPROM 1KB

Clock Speed 16MHz

ICSP Header In System Programming, used when you want to burn the bootloader, you'll need an AVR-ISP

Page 13: Arduino Introduction by coopermaa

13

Arduino IDE

Open Source Cross Platform

Windows Mac OS X Linux

Simple UI (Easy to Use)

Page 14: Arduino Introduction by coopermaa

14

Blink – Hello World

Programming is an easy

job too

Page 15: Arduino Introduction by coopermaa

15

連接電腦與 Arduino

Page 16: Arduino Introduction by coopermaa

16

按 Upload 鈕上傳程式Upload

上傳中

Page 17: Arduino Introduction by coopermaa

17

On board LED will start to blink

On board LED on Pin 13

Page 18: Arduino Introduction by coopermaa

18

Lots of built-in examples

Page 19: Arduino Introduction by coopermaa

19

Preinstalled common used libraries

Page 20: Arduino Introduction by coopermaa

20

What Is Arduino?

Open SourceOpen Source HardwareOpen Source Software

Easy To ProgramSimple IDESimplified C/C++ LanguageSimple Hardware Abstraction API

Electronics Prototyping PlatformA basis for other things or products

Page 21: Arduino Introduction by coopermaa

21

Who invents Arduino?

Massimo Banzi

Tom Igoe

David Cuartielles

Arduino : The Documentary (2010) 緣起與歷史記錄片

Page 22: Arduino Introduction by coopermaa

22

Arduino Community

Main Site, Blog, Wiki, Forum and Store

Page 23: Arduino Introduction by coopermaa

23

Arduino Community: OpenLab Taipei

Page 24: Arduino Introduction by coopermaa

24

Arduino Community: MOSUT

http://code.google.com/p/mosut/

Page 25: Arduino Introduction by coopermaa

25

Arduino 唸法

ARRRR, // DWEE, just say "do we" fast /

/ NO, as in no.

”ARRR-DWEE-NO”

Page 26: Arduino Introduction by coopermaa

26

總結

Open Source + Software IDE + CommunityHardware

Page 27: Arduino Introduction by coopermaa

27

2. Arduino Variety, Shields and Sensors

Page 28: Arduino Introduction by coopermaa

28

Arduino Variety

UNO

Duemilanove

Mega

Nano

Page 29: Arduino Introduction by coopermaa

29

Arduino Variety

LilyPad

Mini

Mega ADK

Page 30: Arduino Introduction by coopermaa

30

Coming soon

Arduino Leonardo

Arduino Due (Cortex-M3)

Page 31: Arduino Introduction by coopermaa

31

Arduino and Communication

Arduino BT(Bluetooth)

Arduino Ethernet

Page 32: Arduino Introduction by coopermaa

32

Compatible Arduinos

Freeduino Seeeduino ( 大陸 )

Boarduino(ladyada) Teensyduino

Page 33: Arduino Introduction by coopermaa

33

Compatible Arduinos

EtherTen USBDroid (USB host)

Zigduino (ZigBee) Ardupilot

Page 34: Arduino Introduction by coopermaa

34

Compatible Arduinos

Metaboard (V-USB) Japanino ( 大人的科學出版商 )

InduinoX (On board RTC, RGB LED, IR LED/Recvr, LDR)

Migon Game Kit (On boardLED Matrix, Speaker, Buttons)

Page 35: Arduino Introduction by coopermaa

35

Arduino Clones (Non-Atmega)

Digilent Chipkit (PIC32)

LeafLabs Maple (STM32)

Pinguino (PIC18/32)

Netduino (Atmel ARM7, use .NET)

Page 36: Arduino Introduction by coopermaa

36

Arduino Clones (Non-Atmega)

FEZ Panda (NXP ARM7, use .NET) Firebird32 (Freescale 32-bit RISC)

mbed (NXP ARM Cortex-M0/M3) LaunchPad (TI MSP430G2xxx)

Page 37: Arduino Introduction by coopermaa

37

What Is Arduino Shield?

Page 38: Arduino Introduction by coopermaa

38

Add-on module to extend arduino’s capabilities.

Also called:

1. daughterboard, or

2. cape

Arduino Shield is…

Page 39: Arduino Introduction by coopermaa

39

For example: An Ethernet Shield

Page 40: Arduino Introduction by coopermaa

40

Arduino and EtherShield stacked

Page 41: Arduino Introduction by coopermaa

41

Shields

Motor Shield microSD Shield Touch Shield

Input Shield Mp3 Shield SEMeter Shield(Smart Meter)

Page 42: Arduino Introduction by coopermaa

42

Shields

Buzzer

LCD OLED

VibratorRelay

LED Matrix

Page 43: Arduino Introduction by coopermaa

43

Communication Shields

RFIDEthernet WiFi

Bluetooth GPRS WiFly

Page 44: Arduino Introduction by coopermaa

44

Communication Shields

GPSXBee

RFM12B(Hope RF)

nRF24L01(Nordic)

Page 45: Arduino Introduction by coopermaa

45

Sensors

Photocell (light sensor) Color sensor Rotation sensor(potentiometer)

Joystick Sound Sensor Water Sensor

Page 46: Arduino Introduction by coopermaa

46

Sensors

PIRSharp IR SensorTemperature/Humidity

Ultrasonic Compass ( 電子羅盤 )Tri-Axis Accelerometer

( 三軸加速度計 )

Page 47: Arduino Introduction by coopermaa

47

Sensors

AC Current Sensor Hall Sensor ( 碰場感應 ) CO2 Sensor

Infrared Receiver Flex Sensor ( 彎曲傳感 ) Flame Sensor ( 火焰感測 )

Page 48: Arduino Introduction by coopermaa

48

Sensors

IR Thermometer Smoke Detector Pressure

Polar Heart Rate Sensor RTC pH Sensor

Page 49: Arduino Introduction by coopermaa

49

總結 Lots of Arduino Lots of Shields, and Lots of Sensors

Means lots of possibilities!

Page 50: Arduino Introduction by coopermaa

50

3. Applications

Page 51: Arduino Introduction by coopermaa

51

穿戴式科技http://bitly.com/y6kqVo

Page 52: Arduino Introduction by coopermaa

52

Heart Rate Monitor Interface

Page 53: Arduino Introduction by coopermaa

53

USB Business Cardhttp://bitly.com/A23qvt 

http://bitly.com/wkQYuB

Page 54: Arduino Introduction by coopermaa

54

Scratch for Arduinohttp://bitly.com/z1IsLz

Page 55: Arduino Introduction by coopermaa

55

Home power Monitor

Page 56: Arduino Introduction by coopermaa

56

OpenEnergyMonitor

Page 57: Arduino Introduction by coopermaa

57

OpenEnergyMonitor’s Dashboard

Page 58: Arduino Introduction by coopermaa

58

OpenEneryMonitor Solar PV Monitor

Page 59: Arduino Introduction by coopermaa

59

Arduino Electric Blinds

http://bitly.com/zfZT3H

Gear Motor

Page 60: Arduino Introduction by coopermaa

60

Piano Stairs

Page 61: Arduino Introduction by coopermaa

61

Electronic Drum

http://bitly.com/yFC1M6

Page 62: Arduino Introduction by coopermaa

62

Servo-electric Guitarhttp://bitly.com/x2ZTdH

Page 63: Arduino Introduction by coopermaa

63

Soundmachinehttp://bitly.com/ySt3vZ

Page 64: Arduino Introduction by coopermaa

64

Laser Harp ( 豎琴 )http://bitly.com/yW5ADU

http://bitly.com/xjrPtf

Page 65: Arduino Introduction by coopermaa

65

Arduino-Sprinklerhttp://bitly.com/wdrPee

Page 66: Arduino Introduction by coopermaa

66

DIY IRRemote

http://bitly.com/xjiWfv

( 一系列的教學 )

http://bitly.com/w9FCxa 

IRBubble = Relay + IR sensor

Page 67: Arduino Introduction by coopermaa

67

Thermal Printer

Page 68: Arduino Introduction by coopermaa

68

Adafruit IoT Printerhttp://vimeo.com/36799362

Page 69: Arduino Introduction by coopermaa

69

Barcode scanner

Page 70: Arduino Introduction by coopermaa

70

Pololu 3Pi Robot

http://bitly.com/wagr1H 

Page 71: Arduino Introduction by coopermaa

71

BoeBot 改裝

Original controller by BasicStamp

Page 72: Arduino Introduction by coopermaa

72

ArduSpiderhttp://bitly.com/zrjMg2

Page 73: Arduino Introduction by coopermaa

73

Lego and Arduino

NXShield

http://bitly.com/wLBvY0

Page 74: Arduino Introduction by coopermaa

74

Motoduino

http://bit.ly/NDtKwQ

Page 75: Arduino Introduction by coopermaa

75

Robots and Robots

Page 76: Arduino Introduction by coopermaa

76

ArduCopter

Simulation

http://bitly.com/yiboJM

http://bit.ly/LnU271

Page 77: Arduino Introduction by coopermaa

77

OpenLRS (Long Range System)

http://bitly.com/yUFJ69

長距離無線通訊模組 ( 最遠可達 4-5 KM)For RC (Radio Controlled) Robot/UAV

Page 78: Arduino Introduction by coopermaa

78

RepRap 3D Printerhttp://bitly.com/yFrJ5c

Page 79: Arduino Introduction by coopermaa

79

Items made by Reprap

Child’s shoe

Door handle

Coat hook

Water Filter

Page 80: Arduino Introduction by coopermaa

80

Reprap Motherboard

Generation 2 & 3: Sanguino (Arduino Compatible)

Generation 1: PIC16F648A

Page 81: Arduino Introduction by coopermaa

81

MakerBothttp://bitly.com/wBjdEj

Page 82: Arduino Introduction by coopermaa

82

Items made by MakerBot

資料來源 : 採智科技

Page 83: Arduino Introduction by coopermaa

83

MakerBot Motherboard

Arduino Mega 1280

Page 84: Arduino Introduction by coopermaa

84

Makey Makeyhttp://bit.ly/PZ5Vlq

Page 85: Arduino Introduction by coopermaa

85

Android ADKhttp://bitly.com/zIGouk 

Page 86: Arduino Introduction by coopermaa

86

ADK 2012http://bit.ly/M924Qz

Page 87: Arduino Introduction by coopermaa

87

Phone Hardware Interface

Light SensorG-Sensor

Compass – 電子羅盤

Vibrator – 震動馬達

And more:•Proximity Sensor•Temperature sensor•Multi-touch Screen•Trackball•Microphone•…

Camera

Page 88: Arduino Introduction by coopermaa

88

Android + Arduino

Page 89: Arduino Introduction by coopermaa

89

還有哪些應用?

Page 90: Arduino Introduction by coopermaa

90

Arduino Starter Kits

Page 91: Arduino Introduction by coopermaa

91

Adafruit Arduino 套件

Page 92: Arduino Introduction by coopermaa

92

Fritzing Starter Kit

Page 93: Arduino Introduction by coopermaa

93

Seeeduino Grove Starter Kit

Page 94: Arduino Introduction by coopermaa

94

Seeeduino ADK Dash Kit

Page 95: Arduino Introduction by coopermaa

95

Prototyping Lab 「邊做邊學」Arduino 的運用實例

作者:小林 茂出版日期: 2012 年 7 月 6日ISBN : 9789866076428語言:繁體中文裝訂:膠裝定價: 680 NTD

Page 96: Arduino Introduction by coopermaa

96

建置無線感測網路

作者: Robert Faludi譯者:林義翔、劉士達出版日期: 2012 年 3 月 8日ISBN : 9862762977語言:繁體中文裝訂:平裝定價: 580 NTD

Page 97: Arduino Introduction by coopermaa

97

最簡單的互動設計 Arduino 一試就上手

作者:孫駿榮、吳明展、盧聰勇出版日期: 2010 年 12 月10 日ISBN : 9789862760710語言:繁體中文裝訂:平裝定價: 450 NTD

Page 98: Arduino Introduction by coopermaa

98

Make 國際中文版

作者:歐萊禮出版社:馥林文化語言:繁體中文裝訂:平裝型態:季刊定價: 380 NTD

Page 99: Arduino Introduction by coopermaa

99

References

http://arduino.cc/ ITP Physical Computing http://www.ladyada.net http://www.sparkfun.com http://www.arobot.com/shop ( 藝科 ) http://www.openlabtaipei.org/ (Openlab Taipei) http://seeedstudio.com http://coopermaa2nd.blogspot.com