Diese Präsentation wurde erfolgreich gemeldet.

Tutorial1: mbed開發快速上手

8

Teilen

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 技術架構簡介

YouTube-Videos werden auf SlideShare nicht mehr unterstützt.

Original auf YouTube ansehen

Wird geladen in …3
×
1 von 52
1 von 52

Tutorial1: mbed開發快速上手

8

Teilen

艾鍗教你從實作中認識物聯網!

https://bit.ly/3kLZhAq

課程使用Raspberry Pi結合ARM mbed Cloud來實現一個物聯網解決方案。你會了解M2M(Machine-to-Machine)網路協定,包含CoAP、MQTT、LWM2M等協定,並藉由Raspberry Pi連接 Cloud。 Raspberry Pi的部份教你連接一些感測器,包含GPIO、數位界面I2C的溫溼度感測器、類比感測器如光感應器等,並將這些感測器成為定義為不同的Resource Path並註冊在mbed cloud中。
本課程將採用Node.js撰寫WebAPP,使用HTTP/RESTful API存取Resource。在實作WebAPP中,除了後端Node.js,你也將會看到後端如何與前端瀏覽器之間要如何溝通的方式,如AJAX或WebSocket

艾鍗教你從實作中認識物聯網!

https://bit.ly/3kLZhAq

課程使用Raspberry Pi結合ARM mbed Cloud來實現一個物聯網解決方案。你會了解M2M(Machine-to-Machine)網路協定,包含CoAP、MQTT、LWM2M等協定,並藉由Raspberry Pi連接 Cloud。 Raspberry Pi的部份教你連接一些感測器,包含GPIO、數位界面I2C的溫溼度感測器、類比感測器如光感應器等,並將這些感測器成為定義為不同的Resource Path並註冊在mbed cloud中。
本課程將採用Node.js撰寫WebAPP,使用HTTP/RESTful API存取Resource。在實作WebAPP中,除了後端Node.js,你也將會看到後端如何與前端瀏覽器之間要如何溝通的方式,如AJAX或WebSocket

Weitere Verwandte Inhalte

Ähnliche Bücher

Kostenlos mit einer 14-tägigen Testversion von Scribd

Alle anzeigen

Ähnliche Hörbücher

Kostenlos mit einer 14-tägigen Testversion von Scribd

Alle anzeigen

Tutorial1: mbed開發快速上手

  1. 1. Getting Started with ARM mbed OS Joseph Chen 2016/6/24
  2. 2. Outline IoT 技術架構簡介 開源硬體物聯網平台介紹 ARM mbed開發框架介紹 mbed開發快速上手 ARM mbed SDK & API說明 - GPIO + Sensor mbed開發資源指引 Q&A
  3. 3. 3 M2M 通訊協定 IoT 技術架構簡介
  4. 4. 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
  5. 5. ARM mbed Ecosystem Tools + mbed OS + mbed Device Server
  6. 6. mbed Partners
  7. 7. mbed Goal
  8. 8. ARM mbed IoT Device Platform
  9. 9. mbed Elements mDS is limited to 100 devices, 10,000 events per hours .
  10. 10. ARM mbed IoT Device Platform mbed Device Connector Service https://connector.mbed.com/ https://developer.mbed.org
  11. 11. mbed Enabled Platform https://developer.mbed.org/platforms/
  12. 12. mbed Device Connector When the device is powered off, you cannot query the last known state.
  13. 13. mbed IoT Device Platform
  14. 14. IoT 應用若沒有Business Intelligence 就如同人沒有了靈魂
  15. 15. Cloud Fleet www.cloud-tracker.com
  16. 16. Tutorial 1: Getting Started with ARM mbed OS Joseph Chen
  17. 17. What is mbed OS?
  18. 18. mbed OS
  19. 19. Nucleo F401RE
  20. 20. Nucleo F401RE Board features
  21. 21. Nucleo F401RE PinOut Arduino-compatible headers
  22. 22. Morpho pinout Access to all STM32 pins
  23. 23. 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
  24. 24. HDK (Hardware Development Kit) Hardware design schematics (Eagle format) Interface binary for the CMSIS-DAP interface
  25. 25. 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
  26. 26. The mbed Tools mbed Online Compiler Importing code Collaboration • Version control basics • Pull requests • Multiple authors Publishing code API Documentation Debug
  27. 27. mbed Online Compiler 先申請帳號,然後登入 https://developer.mbed.org
  28. 28. API Document for SDK For all the mbed C/C++ SDK APIs, see the mbed Handbook
  29. 29. 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
  30. 30. Source Version Control Local Revisions Remote Revisions : update publish
  31. 31. 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
  32. 32. mbed Peripheral Library Joseph Chen
  33. 33. GPIO (General purpose Input/Output) LED: PA_5 User button: PC_13 • Interrupt by falling edge trigger PC_13 PA_5
  34. 34. PWM Pulse Width Modulation
  35. 35. RC Servo 180度伺服馬達 SG90 訊號定義 50Hz (20ms) period, pulse width range 1.0ms~2.0ms 橘 訊號 紅 5V 棕 GND
  36. 36. 1.0ms 角度0度, 1.5ms角度是90度, 2.0ms角度是180度
  37. 37. Lab : Servo Motor
  38. 38. ADC for Photo Resistor (光敏電阻)
  39. 39. ADC Lab: Photo Resistor printf is send to UART (CMSIS-DAP)
  40. 40. 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
  41. 41. 它是一種半雙工的串列式 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) ?
  42. 42. 44 硬體接線
  43. 43. 45 硬體訊號
  44. 44. 46 Start and Stop conditions •
  45. 45. 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.
  46. 46. 48 Link level protocol
  47. 47. I2C Lab : OLED https://developer.mbed.org/users/ittraining/code/Nucleo_i2c_OLED/ SSD1306Z, 128x64, 0.94"
  48. 48. mbed RTOS multi-task programming
  49. 49. 更多參考資源 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

×