Tutorial1: mbed開發快速上手
- 1. Getting Started with ARM mbed OSJoseph Chen2016/6/24
- 2. OutlineIoT 技術架構簡介開源硬體物聯網平台介紹ARM mbed開發框架介紹mbed開發快速上手ARM mbed SDK & API說明 - GPIO + Sensormbed開發資源指引Q&A
- 3. 3M2M 通訊協定IoT 技術架構簡介
- 4. open hardware platform for IoTIntel Edison moduleARM mbed PlatformNXP LPC1768 (ARM Cortex M3)LinkIT Smart 7688/7688 DuoRaspberry PiArduino YunAmeba RTL8195AM
- 5. ARM mbed EcosystemTools + mbed OS + mbed Device Server
- 6. mbed Partners
- 7. mbed Goal
- 8. ARM mbed IoT Device Platform
- 9. mbed ElementsmDS is limited to 100 devices, 10,000 eventsper hours .
- 10. ARM mbed IoT Device Platformmbed Device Connector Servicehttps://connector.mbed.com/https://developer.mbed.org
- 11. mbed Enabled Platformhttps://developer.mbed.org/platforms/
- 12. mbed Device ConnectorWhen the device is powered off, you cannot query the last known state.
- 13. mbed IoT Device Platform
- 14. IoT 應用若沒有Business Intelligence就如同人沒有了靈魂
- 15. Cloud Fleet www.cloud-tracker.com
- 16. Tutorial 1:Getting Started with ARM mbed OSJoseph Chen
- 17. What is mbed OS?
- 18. mbed OS
- 19. Nucleo F401RE
- 20. Nucleo F401RE Board features
- 21. Nucleo F401RE PinOutArduino-compatible headers
- 22. Morpho pinoutAccess to all STM32 pins
- 23. mbed Getting Startedmbed SDK - All about the mbed C/C++ SDK and peripheral librariesmbed HDK - All about the mbed Hardware Development Kitmbed Compiler - All about the mbed Online Compilermbed Developer Website - All about the mbed Developer Website Tools
- 24. HDK (Hardware Development Kit)Hardware design schematics (Eagle format)Interface binary for the CMSIS-DAP interface
- 25. CMSIS-DAPDrag and Drop programming, CMSIS-DAP debugger and USB serialinterface to a range of Cortex-M based microcontrollers.1) USB Disk “drag and drop”2) Debug interface using the CMSIS-DAP - Provides full debugcapability with tools like Keil MDK3) USB Serial interface between the host computer and the target
- 26. The mbed Toolsmbed Online CompilerImporting codeCollaboration• Version control basics• Pull requests• Multiple authorsPublishing codeAPI DocumentationDebug
- 27. mbed Online Compiler先申請帳號,然後登入 https://developer.mbed.org
- 28. API Document for SDKFor all the mbed C/C++ SDK APIs, see the mbed Handbook
- 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. Source Version ControlLocal RevisionsRemote Revisions :update publish
- 31. Source Version Control• Commit a version of your project, and viewthe revision history• View changes a version made,and compare changes between versions• Switch and revert to a different version• Branch and merge version
- 32. mbed Peripheral LibraryJoseph Chen
- 33. GPIO (General purpose Input/Output)LED: PA_5User button: PC_13• Interrupt by falling edge triggerPC_13PA_5
- 34. PWMPulse Width Modulation
- 35. RC Servo180度伺服馬達SG90 訊號定義50Hz (20ms) period, pulse width range 1.0ms~2.0ms橘 訊號紅 5V棕 GND
- 36. 1.0ms 角度0度, 1.5ms角度是90度, 2.0ms角度是180度
- 37. Lab : Servo Motor
- 38. ADC for Photo Resistor (光敏電阻)
- 39. ADC Lab: Photo Resistorprintf is send to UART(CMSIS-DAP)
- 40. I2CThis interface can be used for communication with a I2Cdevices, such as serial memories, sensors and othermodules or integrated circuitsRemember, you will need a pull-up resistor on SDA and SCL
- 41. 它是一種半雙工的串列式 bus它是一種廣播式的 bus三種通訊速度1) Standard is 100 Kbps2) Fast-mode is 400 Kbps3) high-speed mode supports speeds up to 3.4 Mbpssupports 7-bit and 10-bit addressMaster-slave communication43What is I2C (Inter-IC) ?
- 42. 44硬體接線
- 43. 45硬體訊號
- 44. 46Start and Stop conditions•
- 45. 47Data format• Every byte put on the SDA line must be 8-bits long.• Each byte has to be followed by an acknowledge bit.
- 46. 48Link level protocol
- 47. I2C Lab : OLEDhttps://developer.mbed.org/users ... o_i2c_OLED/SSD1306Z, 128x64, 0.94"
- 48. mbed RTOSmulti-task programming
- 49. 更多參考資源ARM mbed Developer Site• https://developer.mbed.org/ARM mbed Device Connector• https://docs.mbed.com/docs/mbed- ... aces/en/latest/mbed Device Connector Web API• https://docs.mbed.com/docs/mbed- ... t/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
sourece from:https://www.slideshare.net/itembedded/tutorial1-mbed
|