SlideShare une entreprise Scribd logo
1  sur  31
Arduino Yun物聯網應用
Lesson 1
Arduino Yún
腳位配置比照Uno
http://arduino.cc/en/Main/Arduin
oBoardYun?from=Products.Arduin
oYUN
Arduino Yún 硬體正面
乙太網路
USB Host
電源輸出 類比輸入
數位輸入/輸出
Micro USB
程式用
Wifi &
AR9331Linux
Arduino Yún 硬體反面
Micro SD
Reset鈕,共三個
系統架構
AVR Arduino 微控制器規格
Microcontroller ATmega32u4
Operating Voltage 5V
Input Voltage 5V
Digital I/O Pins 20
PWM Channels 7
Analog Input Channels 12
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (of which 4 KB used by bootloader)
SRAM 2.5 KB
EEPROM 1 KB
Clock Speed 16 MHz
Microcontroller ATmega32u4
Operating Voltage 5V
Input Voltage 5V
Digital I/O Pins 20
PWM Channels 7
Analog Input Channels 12
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (of which 4 KB used by bootloader)
SRAM 2.5 KB
EEPROM 1 KB
Clock Speed 16 MHz
Linux AR9331微處理器規格
Processor Atheros AR9331
Architecture MIPS @400MHz
Operating Voltage 3.3V
Ethernet
IEEE 802.3
10/100Mbit/s
WiFi IEEE 802.11b/g/n
USB Type-A 2.0 Host
Card Reader Micro-SD only
RAM 64 MB DDR2
Flash Memory 16 MB
Arduino 軟體
http://arduino.cc
環境建置
– 至Arduino官網http://arduino.cc 可下載Arduino
1.5.8版軟體,解壓縮後無需進行安裝
安裝驅動程式
• 將Arduino接上電腦,會自動跳出硬體更新精靈
• 或直接進入裝置管理員也可以。
無法自動更新驅動程式
指定驅動程式路徑
安裝完成並指定COM port
Arduino 軟體
• 到裝置管理員(我的電腦右鍵內容)確認驅動程式
已安裝完成
Arduino 軟體
• 驅動程式安裝完成後,重新拔插一次USB線,並
確認Arduino上的指示燈亮起
請測試Blink範例程式
• Pin 13 LED 每秒亮暗一次
Arduino 軟體
• 程式開發環境介紹 New(新增檔案)
開啟一個空白頁面撰寫程式碼
Open(開啟舊檔案)
開啟副檔名為pde的專案檔
Save(儲存檔案)
儲存目前的專案
Verify/Compile(編譯目前專案)
驗證程式是否撰寫正確
Upload to I/O Board(載入開發板)
將已編譯的程式載入連接的硬體上
Serial Monitor(串列埠監看)
可查看輸入/輸出的資料
Arduino 軟體
• 點Tools>Board>
選取使用的控制板
Arduino 軟體
• 點 Tools > Serial Port
選擇正確的COM Port
Arduino 軟體
• 官方提供的範例程式
點File>Examples
Arduino 軟體
(1)這個函式只在程式啟動後執行一次
(2)一般用在初始化參數及相關功能
(1)這個函式是負責程式中需重複執行的部份
(2)程式直到電源關閉或按下重置時才會停止
將Yun接上電源,找到Yun的AP
• Arduino Yun-XXX…
• 這就是Yun的 MAC Address
• 請連上 Yun 所建立的網路
http://arduino.local
或192.168.240.1
• 預設密碼 arduino
Arduino Yun控制台
Configure-設定帳號:myYun
設定無線網路後,重開Yun
設定完成
• 請將電腦連回剛剛設定好的無線網路,再
於瀏覽器中輸入XXX.local 來連上您的 Yun
http://myyun.local
在Arduino IDE 中檢查
補充資料
• http://yehnan.blogspot.tw/2013/10/arduino-
yun.html

Contenu connexe

En vedette

Arduino Yun 物聯網 Lesson 3
Arduino Yun 物聯網 Lesson 3Arduino Yun 物聯網 Lesson 3
Arduino Yun 物聯網 Lesson 3CAVEDU Education
 
Arduino Yún使用網頁顯示監測資料
Arduino Yún使用網頁顯示監測資料Arduino Yún使用網頁顯示監測資料
Arduino Yún使用網頁顯示監測資料吳錫修 (ShyiShiou Wu)
 
IBM以雲端技術與物聯網創新產業應用@2016 New Taipei Maker Faire
IBM以雲端技術與物聯網創新產業應用@2016 New Taipei Maker FaireIBM以雲端技術與物聯網創新產業應用@2016 New Taipei Maker Faire
IBM以雲端技術與物聯網創新產業應用@2016 New Taipei Maker FaireCAVEDU Education
 
Video Analytics Encoder Overview
Video Analytics Encoder OverviewVideo Analytics Encoder Overview
Video Analytics Encoder OverviewNikolai Ptitsyn
 
Highly customizable video surveillance platform for manufactures and system ...
Highly customizable  video surveillance platform for manufactures and system ...Highly customizable  video surveillance platform for manufactures and system ...
Highly customizable video surveillance platform for manufactures and system ...Nikolai Ptitsyn
 
Intelligent Video Surveillance - Synesis integrated hardware and software sol...
Intelligent Video Surveillance - Synesis integrated hardware and software sol...Intelligent Video Surveillance - Synesis integrated hardware and software sol...
Intelligent Video Surveillance - Synesis integrated hardware and software sol...Nikolai Ptitsyn
 
Education RobotArm Introduction
Education RobotArm IntroductionEducation RobotArm Introduction
Education RobotArm IntroductionCAVEDU Education
 
Physical Security, IoT & The Role of Open Standards
Physical Security, IoT & The Role of Open StandardsPhysical Security, IoT & The Role of Open Standards
Physical Security, IoT & The Role of Open StandardsMemoori
 
Chapter 3 XBee無線遙控車
Chapter 3 XBee無線遙控車Chapter 3 XBee無線遙控車
Chapter 3 XBee無線遙控車CAVEDU Education
 
Arduino 習作工坊 - Lesson 2 動力之夜
Arduino 習作工坊 - Lesson 2 動力之夜Arduino 習作工坊 - Lesson 2 動力之夜
Arduino 習作工坊 - Lesson 2 動力之夜CAVEDU Education
 
LinkIt Smart 7688 Duo and MCS basics
LinkIt Smart 7688 Duo and MCS basicsLinkIt Smart 7688 Duo and MCS basics
LinkIt Smart 7688 Duo and MCS basicsCAVEDU Education
 
Arduino 底層原始碼解析心得
Arduino 底層原始碼解析心得Arduino 底層原始碼解析心得
Arduino 底層原始碼解析心得roboard
 

En vedette (20)

設定Arduino Yún WiFi連線
設定Arduino Yún WiFi連線設定Arduino Yún WiFi連線
設定Arduino Yún WiFi連線
 
使用Arduino Yún內建Web伺服器
使用Arduino Yún內建Web伺服器使用Arduino Yún內建Web伺服器
使用Arduino Yún內建Web伺服器
 
Arduino Yun 物聯網 Lesson 3
Arduino Yun 物聯網 Lesson 3Arduino Yun 物聯網 Lesson 3
Arduino Yun 物聯網 Lesson 3
 
Arduino Yún使用網頁顯示監測資料
Arduino Yún使用網頁顯示監測資料Arduino Yún使用網頁顯示監測資料
Arduino Yún使用網頁顯示監測資料
 
Arduino Yún使用Temboo服務
Arduino Yún使用Temboo服務Arduino Yún使用Temboo服務
Arduino Yún使用Temboo服務
 
IBM以雲端技術與物聯網創新產業應用@2016 New Taipei Maker Faire
IBM以雲端技術與物聯網創新產業應用@2016 New Taipei Maker FaireIBM以雲端技術與物聯網創新產業應用@2016 New Taipei Maker Faire
IBM以雲端技術與物聯網創新產業應用@2016 New Taipei Maker Faire
 
161123
161123161123
161123
 
更新Arduino Yún OS
更新Arduino Yún OS更新Arduino Yún OS
更新Arduino Yún OS
 
Video Analytics Encoder Overview
Video Analytics Encoder OverviewVideo Analytics Encoder Overview
Video Analytics Encoder Overview
 
Highly customizable video surveillance platform for manufactures and system ...
Highly customizable  video surveillance platform for manufactures and system ...Highly customizable  video surveillance platform for manufactures and system ...
Highly customizable video surveillance platform for manufactures and system ...
 
Intelligent Video Surveillance - Synesis integrated hardware and software sol...
Intelligent Video Surveillance - Synesis integrated hardware and software sol...Intelligent Video Surveillance - Synesis integrated hardware and software sol...
Intelligent Video Surveillance - Synesis integrated hardware and software sol...
 
Education RobotArm Introduction
Education RobotArm IntroductionEducation RobotArm Introduction
Education RobotArm Introduction
 
Physical Security, IoT & The Role of Open Standards
Physical Security, IoT & The Role of Open StandardsPhysical Security, IoT & The Role of Open Standards
Physical Security, IoT & The Role of Open Standards
 
Chapter 3 XBee無線遙控車
Chapter 3 XBee無線遙控車Chapter 3 XBee無線遙控車
Chapter 3 XBee無線遙控車
 
ONVIF IP Protocol
ONVIF IP ProtocolONVIF IP Protocol
ONVIF IP Protocol
 
Arduino Yún使用Http client
Arduino Yún使用Http clientArduino Yún使用Http client
Arduino Yún使用Http client
 
Arduino 習作工坊 - Lesson 2 動力之夜
Arduino 習作工坊 - Lesson 2 動力之夜Arduino 習作工坊 - Lesson 2 動力之夜
Arduino 習作工坊 - Lesson 2 動力之夜
 
LinkIt Smart 7688 Duo and MCS basics
LinkIt Smart 7688 Duo and MCS basicsLinkIt Smart 7688 Duo and MCS basics
LinkIt Smart 7688 Duo and MCS basics
 
Arduino 底層原始碼解析心得
Arduino 底層原始碼解析心得Arduino 底層原始碼解析心得
Arduino 底層原始碼解析心得
 
Mbot教學(1b) mBot初體驗
Mbot教學(1b) mBot初體驗Mbot教學(1b) mBot初體驗
Mbot教學(1b) mBot初體驗
 

Similaire à Arduino Yun 物聯網 Lesson 1 (20)

Arduino yún簡介
Arduino yún簡介Arduino yún簡介
Arduino yún簡介
 
Chapter 1 what is arduino
Chapter 1 what is arduinoChapter 1 what is arduino
Chapter 1 what is arduino
 
Arduino Basic
Arduino BasicArduino Basic
Arduino Basic
 
S4 a sensor board
S4 a sensor boardS4 a sensor board
S4 a sensor board
 
Arduino簡介
Arduino簡介Arduino簡介
Arduino簡介
 
AMA 中級術科實作II
AMA 中級術科實作IIAMA 中級術科實作II
AMA 中級術科實作II
 
Arduino應用系統設計 - 導論
Arduino應用系統設計 - 導論Arduino應用系統設計 - 導論
Arduino應用系統設計 - 導論
 
Arduino導論
Arduino導論Arduino導論
Arduino導論
 
2015 JSDC Build Anything with JavaScript
2015 JSDC Build Anything with JavaScript2015 JSDC Build Anything with JavaScript
2015 JSDC Build Anything with JavaScript
 
MS 7095 - P4MAM2-V2
MS 7095 - P4MAM2-V2MS 7095 - P4MAM2-V2
MS 7095 - P4MAM2-V2
 
Arduino overview
Arduino overviewArduino overview
Arduino overview
 
Arduino overview
Arduino overviewArduino overview
Arduino overview
 
Arduino 與 s4 a
Arduino 與 s4 aArduino 與 s4 a
Arduino 與 s4 a
 
Arduino導讀
Arduino導讀Arduino導讀
Arduino導讀
 
最终版
最终版最终版
最终版
 
nodeMCU IOT教學03 - NodeMCU導論
nodeMCU IOT教學03 - NodeMCU導論nodeMCU IOT教學03 - NodeMCU導論
nodeMCU IOT教學03 - NodeMCU導論
 
nodeMCU IOT教學03 - NodeMCU導論
nodeMCU IOT教學03 - NodeMCU導論nodeMCU IOT教學03 - NodeMCU導論
nodeMCU IOT教學03 - NodeMCU導論
 
Tiny6410um hw-20101026
Tiny6410um hw-20101026Tiny6410um hw-20101026
Tiny6410um hw-20101026
 
Translation
TranslationTranslation
Translation
 
程式人雜誌 -- 2013 年 2 月號
程式人雜誌 -- 2013 年 2 月號程式人雜誌 -- 2013 年 2 月號
程式人雜誌 -- 2013 年 2 月號
 

Plus de CAVEDU Education

Google TPU Edge SBC_190424
Google TPU Edge SBC_190424Google TPU Edge SBC_190424
Google TPU Edge SBC_190424CAVEDU Education
 
From computational Thinking to computational Action - Dr. Hal Abelson, MIT Ap...
From computational Thinking to computational Action - Dr. Hal Abelson, MIT Ap...From computational Thinking to computational Action - Dr. Hal Abelson, MIT Ap...
From computational Thinking to computational Action - Dr. Hal Abelson, MIT Ap...CAVEDU Education
 
BBC Micro:bit beginner project
BBC Micro:bit beginner projectBBC Micro:bit beginner project
BBC Micro:bit beginner projectCAVEDU Education
 
LINE Messaging API with LinkIt 7697
LINE Messaging API with LinkIt 7697 LINE Messaging API with LinkIt 7697
LINE Messaging API with LinkIt 7697 CAVEDU Education
 
Latte panda workshop_japan
Latte panda workshop_japanLatte panda workshop_japan
Latte panda workshop_japanCAVEDU Education
 
拿鐵熊貓外殼設計0707
拿鐵熊貓外殼設計0707拿鐵熊貓外殼設計0707
拿鐵熊貓外殼設計0707CAVEDU Education
 
LinkIt 7697 outer case - DesignSpark Mechanical / Onkscape
LinkIt 7697 outer case - DesignSpark Mechanical / OnkscapeLinkIt 7697 outer case - DesignSpark Mechanical / Onkscape
LinkIt 7697 outer case - DesignSpark Mechanical / OnkscapeCAVEDU Education
 
170615 國中小自造者教育師資培訓營
170615  國中小自造者教育師資培訓營170615  國中小自造者教育師資培訓營
170615 國中小自造者教育師資培訓營CAVEDU Education
 
170522_Raspberry Pi 相容開發板
170522_Raspberry Pi 相容開發板170522_Raspberry Pi 相容開發板
170522_Raspberry Pi 相容開發板CAVEDU Education
 
Maker Movement and Education in Taiwan
Maker Movement and Education in TaiwanMaker Movement and Education in Taiwan
Maker Movement and Education in TaiwanCAVEDU Education
 
AAEON 當創客碰上UP板 - Intel Cherry Trail 高效能maker開發者平台@2016 new taipei maker faire
AAEON 當創客碰上UP板 - Intel Cherry Trail 高效能maker開發者平台@2016 new taipei maker faireAAEON 當創客碰上UP板 - Intel Cherry Trail 高效能maker開發者平台@2016 new taipei maker faire
AAEON 當創客碰上UP板 - Intel Cherry Trail 高效能maker開發者平台@2016 new taipei maker faireCAVEDU Education
 
物聯網好棒棒 您專屬的IoT私有雲平台
物聯網好棒棒 您專屬的IoT私有雲平台物聯網好棒棒 您專屬的IoT私有雲平台
物聯網好棒棒 您專屬的IoT私有雲平台CAVEDU Education
 
絕地武士心靈控制家用雲端智慧型物聯網光劍搭載無線路由器光劍底座Final
絕地武士心靈控制家用雲端智慧型物聯網光劍搭載無線路由器光劍底座Final絕地武士心靈控制家用雲端智慧型物聯網光劍搭載無線路由器光劍底座Final
絕地武士心靈控制家用雲端智慧型物聯網光劍搭載無線路由器光劍底座FinalCAVEDU Education
 
LinkIt ONE tutorial #1- Basics
LinkIt ONE tutorial #1- BasicsLinkIt ONE tutorial #1- Basics
LinkIt ONE tutorial #1- BasicsCAVEDU Education
 
LinkIt ONE tutorial #2- Communication and cloud service
LinkIt ONE tutorial #2- Communication and cloud serviceLinkIt ONE tutorial #2- Communication and cloud service
LinkIt ONE tutorial #2- Communication and cloud serviceCAVEDU Education
 
160901 翻轉開發,活用雲端創新技術@IBM Cloud Innovation Day
160901  翻轉開發,活用雲端創新技術@IBM Cloud Innovation Day160901  翻轉開發,活用雲端創新技術@IBM Cloud Innovation Day
160901 翻轉開發,活用雲端創新技術@IBM Cloud Innovation DayCAVEDU Education
 
160603 T客邦7688物聯網實作坊
160603  T客邦7688物聯網實作坊160603  T客邦7688物聯網實作坊
160603 T客邦7688物聯網實作坊CAVEDU Education
 

Plus de CAVEDU Education (20)

Google TPU Edge SBC_190424
Google TPU Edge SBC_190424Google TPU Edge SBC_190424
Google TPU Edge SBC_190424
 
From computational Thinking to computational Action - Dr. Hal Abelson, MIT Ap...
From computational Thinking to computational Action - Dr. Hal Abelson, MIT Ap...From computational Thinking to computational Action - Dr. Hal Abelson, MIT Ap...
From computational Thinking to computational Action - Dr. Hal Abelson, MIT Ap...
 
180321 MIT見聞分享
180321   MIT見聞分享180321   MIT見聞分享
180321 MIT見聞分享
 
BBC Micro:bit beginner project
BBC Micro:bit beginner projectBBC Micro:bit beginner project
BBC Micro:bit beginner project
 
LINE Messaging API with LinkIt 7697
LINE Messaging API with LinkIt 7697 LINE Messaging API with LinkIt 7697
LINE Messaging API with LinkIt 7697
 
Latte panda workshop_japan
Latte panda workshop_japanLatte panda workshop_japan
Latte panda workshop_japan
 
拿鐵熊貓外殼設計0707
拿鐵熊貓外殼設計0707拿鐵熊貓外殼設計0707
拿鐵熊貓外殼設計0707
 
LinkIt 7697 outer case - DesignSpark Mechanical / Onkscape
LinkIt 7697 outer case - DesignSpark Mechanical / OnkscapeLinkIt 7697 outer case - DesignSpark Mechanical / Onkscape
LinkIt 7697 outer case - DesignSpark Mechanical / Onkscape
 
170615 國中小自造者教育師資培訓營
170615  國中小自造者教育師資培訓營170615  國中小自造者教育師資培訓營
170615 國中小自造者教育師資培訓營
 
170522_Raspberry Pi 相容開發板
170522_Raspberry Pi 相容開發板170522_Raspberry Pi 相容開發板
170522_Raspberry Pi 相容開發板
 
LinkIt 7697 IoT tutorial
LinkIt 7697 IoT tutorialLinkIt 7697 IoT tutorial
LinkIt 7697 IoT tutorial
 
Maker Movement and Education in Taiwan
Maker Movement and Education in TaiwanMaker Movement and Education in Taiwan
Maker Movement and Education in Taiwan
 
AAEON 當創客碰上UP板 - Intel Cherry Trail 高效能maker開發者平台@2016 new taipei maker faire
AAEON 當創客碰上UP板 - Intel Cherry Trail 高效能maker開發者平台@2016 new taipei maker faireAAEON 當創客碰上UP板 - Intel Cherry Trail 高效能maker開發者平台@2016 new taipei maker faire
AAEON 當創客碰上UP板 - Intel Cherry Trail 高效能maker開發者平台@2016 new taipei maker faire
 
物聯網好棒棒 您專屬的IoT私有雲平台
物聯網好棒棒 您專屬的IoT私有雲平台物聯網好棒棒 您專屬的IoT私有雲平台
物聯網好棒棒 您專屬的IoT私有雲平台
 
絕地武士心靈控制家用雲端智慧型物聯網光劍搭載無線路由器光劍底座Final
絕地武士心靈控制家用雲端智慧型物聯網光劍搭載無線路由器光劍底座Final絕地武士心靈控制家用雲端智慧型物聯網光劍搭載無線路由器光劍底座Final
絕地武士心靈控制家用雲端智慧型物聯網光劍搭載無線路由器光劍底座Final
 
LinkIt ONE tutorial #1- Basics
LinkIt ONE tutorial #1- BasicsLinkIt ONE tutorial #1- Basics
LinkIt ONE tutorial #1- Basics
 
LinkIt ONE tutorial #2- Communication and cloud service
LinkIt ONE tutorial #2- Communication and cloud serviceLinkIt ONE tutorial #2- Communication and cloud service
LinkIt ONE tutorial #2- Communication and cloud service
 
160901 翻轉開發,活用雲端創新技術@IBM Cloud Innovation Day
160901  翻轉開發,活用雲端創新技術@IBM Cloud Innovation Day160901  翻轉開發,活用雲端創新技術@IBM Cloud Innovation Day
160901 翻轉開發,活用雲端創新技術@IBM Cloud Innovation Day
 
160625 arduino101
160625 arduino101160625 arduino101
160625 arduino101
 
160603 T客邦7688物聯網實作坊
160603  T客邦7688物聯網實作坊160603  T客邦7688物聯網實作坊
160603 T客邦7688物聯網實作坊
 

Arduino Yun 物聯網 Lesson 1