SlideShare uma empresa Scribd logo
1 de 51
Getting Started with ARM mbed OS
Joseph Chen
2016/6/24
Outline
IoT 技術架構簡介
開源硬體物聯網平台介紹
ARM mbed開發框架介紹
mbed開發快速上手
ARM mbed SDK & API說明 - GPIO + Sensor
mbed開發資源指引
Q&A
3
M2M 通訊協定
IoT 技術架構簡介
open hardware platform for IoT
Intel Edison module
ARM mbed Platform
NXP LPC1768 (ARM Cortex M3)
LinkIT Smart 7688/7688 Duo
Raspberry PiArduino Yun
Ameba RTL8195AM
ARM mbed Ecosystem
Tools + mbed OS + mbed Device Server
mbed Partners
mbed Goal
ARM mbed IoT Device Platform
mbed Elements
mDS is limited to 100 devices, 10,000 events
per hours .
ARM mbed IoT Device Platform
mbed Device Connector Service
https://connector.mbed.com/
https://developer.mbed.org
mbed Enabled Platform
https://developer.mbed.org/platforms/
mbed Device Connector
When the device is powered off, you cannot query the last known state.
mbed IoT Device Platform
IoT 應用若沒有Business Intelligence
就如同人沒有了靈魂
Cloud Fleet www.cloud-tracker.com
Tutorial 1:
Getting Started with ARM mbed OS
Joseph Chen
What is mbed OS?
mbed OS
Nucleo F401RE
Nucleo F401RE Board features
Nucleo F401RE PinOut
Arduino-compatible headers
Morpho pinout
Access to all STM32 pins
mbed Getting Started
mbed SDK - All about the mbed C/C++ SDK and peripheral libraries
mbed HDK - All about the mbed Hardware Development Kit
mbed Compiler - All about the mbed Online Compiler
mbed Developer Website - All about the mbed Developer Website Tools
HDK (Hardware Development Kit)
Hardware design schematics (Eagle format)
Interface binary for the CMSIS-DAP interface
CMSIS-DAP
Drag and Drop programming, CMSIS-DAP debugger and USB serial
interface to a range of Cortex-M based microcontrollers.
1) USB Disk “drag and drop”
2) Debug interface using the CMSIS-DAP - Provides full debug
capability with tools like Keil MDK
3) USB Serial interface between the host computer and the target
The mbed Tools
mbed Online Compiler
Importing code
Collaboration
• Version control basics
• Pull requests
• Multiple authors
Publishing code
API Documentation
Debug
mbed Online Compiler
先申請帳號,然後登入 https://developer.mbed.org
API Document for SDK
For all the mbed C/C++ SDK APIs, see the mbed Handbook
Debug
• Flash LEDs - Turn LEDs on and off, also to indicate where the program is.
• Debug messages - printf () over the serial port
• Hardware debug: you may use Logical Analyzer or Oscilloscope
Source Version Control
Local Revisions
Remote Revisions :
update publish
Source Version Control
• Commit a version of your project, and view
the revision history
• View changes a version made,
and compare changes between versions
• Switch and revert to a different version
• Branch and merge version
mbed Peripheral Library
Joseph Chen
GPIO (General purpose Input/Output)
LED: PA_5
User button: PC_13
• Interrupt by falling edge trigger
PC_13
PA_5
PWM
Pulse Width Modulation
RC Servo
180度伺服馬達
SG90 訊號定義
50Hz (20ms) period, pulse width range 1.0ms~2.0ms
橘 訊號
紅 5V
棕 GND
1.0ms 角度0度, 1.5ms角度是90度, 2.0ms角度是180度
Lab : Servo Motor
ADC for Photo Resistor (光敏電阻)
ADC Lab: Photo Resistor
printf is send to UART
(CMSIS-DAP)
I2C
This interface can be used for communication with a I2C
devices, such as serial memories, sensors and other
modules or integrated circuits
Remember, you will need a pull-up resistor on SDA and SCL
它是一種半雙工的串列式 bus
它是一種廣播式的 bus
三種通訊速度
1) Standard is 100 Kbps
2) Fast-mode is 400 Kbps
3) high-speed mode supports speeds up to 3.4 Mbps
supports 7-bit and 10-bit address
Master-slave communication
43
What is I2C (Inter-IC) ?
44
硬體接線
45
硬體訊號
46
Start and Stop conditions
•
47
Data format
• Every byte put on the SDA line must be 8-bits long.
• Each byte has to be followed by an acknowledge bit.
48
Link level protocol
I2C Lab : OLED
https://developer.mbed.org/users/ittraining/code/Nucleo_i2c_OLED/
SSD1306Z, 128x64, 0.94"
mbed RTOS
multi-task programming
更多參考資源
ARM mbed Developer Site
• https://developer.mbed.org/
ARM mbed Device Connector
• https://docs.mbed.com/docs/mbed-device-connector-web-interfaces/en/latest/
mbed Device Connector Web API
• https://docs.mbed.com/docs/mbed-device-connector-web-interfaces/en/latest/api-reference/
ARM mbed Client Guide
• https://docs.mbed.com/docs/mbed-client-guide/en/latest/
• Yotta tutorial
• http://yottadocs.mbed.com/tutorial/tutorial.html

Mais conteúdo relacionado

Mais procurados

APFeatures_BuyersGuide
APFeatures_BuyersGuideAPFeatures_BuyersGuide
APFeatures_BuyersGuide
Eugene Yu
 
Project poster: SDR universal platform
Project poster: SDR universal platformProject poster: SDR universal platform
Project poster: SDR universal platform
Bertalan EGED
 
Trf7960 and trf7970 a comparison
Trf7960 and trf7970 a comparisonTrf7960 and trf7970 a comparison
Trf7960 and trf7970 a comparison
Hà Thanh
 

Mais procurados (20)

Republic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Republic of IoT 2018 - ESPectro32 and NB-IoT WorkshopRepublic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Republic of IoT 2018 - ESPectro32 and NB-IoT Workshop
 
Xbee manual
Xbee manualXbee manual
Xbee manual
 
Icnd210 s07l02
Icnd210 s07l02Icnd210 s07l02
Icnd210 s07l02
 
Adsl lab
Adsl labAdsl lab
Adsl lab
 
Wireless 5--bluetooth-beacon
Wireless 5--bluetooth-beaconWireless 5--bluetooth-beacon
Wireless 5--bluetooth-beacon
 
The flexible cisco aironet 1530 series access points
The flexible cisco aironet 1530 series access pointsThe flexible cisco aironet 1530 series access points
The flexible cisco aironet 1530 series access points
 
APFeatures_BuyersGuide
APFeatures_BuyersGuideAPFeatures_BuyersGuide
APFeatures_BuyersGuide
 
Icnd210 s08l01
Icnd210 s08l01Icnd210 s08l01
Icnd210 s08l01
 
Icnd210 s07l01
Icnd210 s07l01Icnd210 s07l01
Icnd210 s07l01
 
Project poster: SDR universal platform
Project poster: SDR universal platformProject poster: SDR universal platform
Project poster: SDR universal platform
 
Icnd210 s06l01
Icnd210 s06l01Icnd210 s06l01
Icnd210 s06l01
 
RFID based Smart Voting System
RFID based Smart Voting System RFID based Smart Voting System
RFID based Smart Voting System
 
Linkmeup v23-compass-eos
Linkmeup v23-compass-eosLinkmeup v23-compass-eos
Linkmeup v23-compass-eos
 
MYC-C7Z015 CPU Module
MYC-C7Z015 CPU ModuleMYC-C7Z015 CPU Module
MYC-C7Z015 CPU Module
 
Trf7960 and trf7970 a comparison
Trf7960 and trf7970 a comparisonTrf7960 and trf7970 a comparison
Trf7960 and trf7970 a comparison
 
Icnd210 s04l01
Icnd210 s04l01Icnd210 s04l01
Icnd210 s04l01
 
Icnd210 s03l03
Icnd210 s03l03Icnd210 s03l03
Icnd210 s03l03
 
Icnd210 s08l02
Icnd210 s08l02Icnd210 s08l02
Icnd210 s08l02
 
UHF RFID Reader
UHF RFID ReaderUHF RFID Reader
UHF RFID Reader
 
Icnd210 s04l02
Icnd210 s04l02Icnd210 s04l02
Icnd210 s04l02
 

Semelhante a Tutorial1: mbed開發快速上手

FRDM-KL46Z_Hands-On_Presentation_v02
FRDM-KL46Z_Hands-On_Presentation_v02FRDM-KL46Z_Hands-On_Presentation_v02
FRDM-KL46Z_Hands-On_Presentation_v02
Libor GECNUK
 
AXONIM Devices presentation
AXONIM Devices presentationAXONIM Devices presentation
AXONIM Devices presentation
Vitaliy Bozhkov ✔
 
Embedded system design process
Embedded system design processEmbedded system design process
Embedded system design process
Rayees CK
 
Report (Auto Capture Camera Sensing System)
Report (Auto Capture Camera Sensing System)Report (Auto Capture Camera Sensing System)
Report (Auto Capture Camera Sensing System)
Siang Wei Lee
 
CAST BA22 32-bit Processor - SoCIP Design Seminar, 2/1/12
CAST BA22 32-bit Processor - SoCIP Design Seminar, 2/1/12CAST BA22 32-bit Processor - SoCIP Design Seminar, 2/1/12
CAST BA22 32-bit Processor - SoCIP Design Seminar, 2/1/12
ndzervas
 

Semelhante a Tutorial1: mbed開發快速上手 (20)

T2M Corporate Presentation.pptx
T2M Corporate Presentation.pptxT2M Corporate Presentation.pptx
T2M Corporate Presentation.pptx
 
Linxu conj2016 96boards
Linxu conj2016 96boardsLinxu conj2016 96boards
Linxu conj2016 96boards
 
CV_Arshad_21June16
CV_Arshad_21June16CV_Arshad_21June16
CV_Arshad_21June16
 
Android Things in action
Android Things in actionAndroid Things in action
Android Things in action
 
Multipilot pres-ufficiale alpago 2011
Multipilot pres-ufficiale alpago 2011Multipilot pres-ufficiale alpago 2011
Multipilot pres-ufficiale alpago 2011
 
FRDM-KL46Z_Hands-On_Presentation_v02
FRDM-KL46Z_Hands-On_Presentation_v02FRDM-KL46Z_Hands-On_Presentation_v02
FRDM-KL46Z_Hands-On_Presentation_v02
 
AXONIM Devices presentation
AXONIM Devices presentationAXONIM Devices presentation
AXONIM Devices presentation
 
Jorjin Technologies - AR Partnerships with Smart Glasses - 10012020
Jorjin Technologies -  AR Partnerships with Smart Glasses - 10012020Jorjin Technologies -  AR Partnerships with Smart Glasses - 10012020
Jorjin Technologies - AR Partnerships with Smart Glasses - 10012020
 
CAST BA22 32-bit Processor Design Seminar, 2/1/12
CAST BA22 32-bit Processor Design Seminar, 2/1/12CAST BA22 32-bit Processor Design Seminar, 2/1/12
CAST BA22 32-bit Processor Design Seminar, 2/1/12
 
Aftek services overview
Aftek services overview Aftek services overview
Aftek services overview
 
Multipilot pres-ufficiale last 2
Multipilot pres-ufficiale last 2Multipilot pres-ufficiale last 2
Multipilot pres-ufficiale last 2
 
IT Solution through IoT Development
IT Solution through IoT DevelopmentIT Solution through IoT Development
IT Solution through IoT Development
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Anand_Agrawal_CV.pdf
Anand_Agrawal_CV.pdfAnand_Agrawal_CV.pdf
Anand_Agrawal_CV.pdf
 
Embedded system design process
Embedded system design processEmbedded system design process
Embedded system design process
 
FPGA_prototyping proccesing with conclusion
FPGA_prototyping proccesing with conclusionFPGA_prototyping proccesing with conclusion
FPGA_prototyping proccesing with conclusion
 
Report (Auto Capture Camera Sensing System)
Report (Auto Capture Camera Sensing System)Report (Auto Capture Camera Sensing System)
Report (Auto Capture Camera Sensing System)
 
CAST BA22 32-bit Processor - SoCIP Design Seminar, 2/1/12
CAST BA22 32-bit Processor - SoCIP Design Seminar, 2/1/12CAST BA22 32-bit Processor - SoCIP Design Seminar, 2/1/12
CAST BA22 32-bit Processor - SoCIP Design Seminar, 2/1/12
 
Advanced robotics
Advanced roboticsAdvanced robotics
Advanced robotics
 
Le company presentation
Le company presentationLe company presentation
Le company presentation
 

Mais de 艾鍗科技

Mais de 艾鍗科技 (20)

TinyML - 4 speech recognition
TinyML - 4 speech recognition TinyML - 4 speech recognition
TinyML - 4 speech recognition
 
Appendix 1 Goolge colab
Appendix 1 Goolge colabAppendix 1 Goolge colab
Appendix 1 Goolge colab
 
Project-IOT於餐館系統的應用
Project-IOT於餐館系統的應用Project-IOT於餐館系統的應用
Project-IOT於餐館系統的應用
 
02 IoT implementation
02 IoT implementation02 IoT implementation
02 IoT implementation
 
Tiny ML for spark Fun Edge
Tiny ML for spark Fun EdgeTiny ML for spark Fun Edge
Tiny ML for spark Fun Edge
 
Openvino ncs2
Openvino ncs2Openvino ncs2
Openvino ncs2
 
Step motor
Step motorStep motor
Step motor
 
2. 機器學習簡介
2. 機器學習簡介2. 機器學習簡介
2. 機器學習簡介
 
5.MLP(Multi-Layer Perceptron)
5.MLP(Multi-Layer Perceptron) 5.MLP(Multi-Layer Perceptron)
5.MLP(Multi-Layer Perceptron)
 
3. data features
3. data features3. data features
3. data features
 
心率血氧檢測與運動促進
心率血氧檢測與運動促進心率血氧檢測與運動促進
心率血氧檢測與運動促進
 
利用音樂&情境燈幫助放鬆
利用音樂&情境燈幫助放鬆利用音樂&情境燈幫助放鬆
利用音樂&情境燈幫助放鬆
 
IoT感測器驅動程式 在樹莓派上實作
IoT感測器驅動程式在樹莓派上實作IoT感測器驅動程式在樹莓派上實作
IoT感測器驅動程式 在樹莓派上實作
 
無線聲控遙控車
無線聲控遙控車無線聲控遙控車
無線聲控遙控車
 
最佳光源的研究和實作
最佳光源的研究和實作最佳光源的研究和實作
最佳光源的研究和實作
 
無線監控網路攝影機與控制自走車
無線監控網路攝影機與控制自走車無線監控網路攝影機與控制自走車
無線監控網路攝影機與控制自走車
 
Reinforcement Learning
Reinforcement LearningReinforcement Learning
Reinforcement Learning
 
Linux Device Tree
Linux Device TreeLinux Device Tree
Linux Device Tree
 
人臉辨識考勤系統
人臉辨識考勤系統人臉辨識考勤系統
人臉辨識考勤系統
 
智慧家庭Smart Home
智慧家庭Smart Home智慧家庭Smart Home
智慧家庭Smart Home
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Último (20)

ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Tutorial1: mbed開發快速上手