Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Geek Pic-Nic Master Class

1,021 views

Published on

Phil Handschin, technical consultant, MediaTek Labs, gives a master class on the MediaTek LinkIt ONE development board at the Russian Geek Picnics in Moscow and St Petersburg in June 2015. The board is powered by the world’s smallest commercial System-on-Chip (SOC) for wearables, the MediaTek MT2502. The LinkIt SDK for Arduino makes it very easy for developers to start creating their own wearable and IoT devices.
Phil gave an introduction to the board and the SDK and a walk through of some example code – everything you could need to go away and get started.
Find out more about the LinkIt ONE development platform: http://labs.mediatek.com/linkitone
Get the tools you need to build your own Wearables and IoT devices, register now: http://labs.mediatek.com/register

Published in: Devices & Hardware
  • Be the first to comment

  • Be the first to like this

Geek Pic-Nic Master Class

  1. 1. labs.mediatek.com PhilipHandschin MediaTekLabs GeekPic-Nic MasterClass MediaTekLinkIt™ONEDevelopment Platform
  2. 2. Topics 2 ▪ Intro to MediaTek ▪ What is MediaTek Labs ▪ LinkIt ONE HDK ▪ LinkIt ONE SDK ▪ MediaTek Cloud Sandbox ▪ Demo ▪ Other HDK’s ▪ Questions
  3. 3. USA UK Denmark Sweden Dubai India Singapore Mainland China Korea Japan Finland >12,000 employees worldwide* 27 offices located across 12 countries A global company Taiwan Hsinchu HQ 3 *includingemployees of MStar Semiconductor Inc.
  4. 4. MediaTek SOCsare all around us Wearables TVs Blu-ray disc players GPS Tablets Smartphones Game station 2015-08-11Copyright © MediaTek Inc. All rights reserved. 4
  5. 5. Source (rankingby revenue of 2014): Strategy Analytics, Gartner, IDC, IC Insight, iSuppli and MediaTek company data * Combined with MStar. Source (Rankings by volume): Strategy Analytics, Displaysearch,iSuppli , MediaTek company data Feature phone #1 Digital TV* #1 Optical disc drive #1 DVD/BD player #1 Smartphone #2 Tablets #2 Connectivity network #3 Global company with leading market position Copyright © MediaTek Inc. All rights reserved. 5
  6. 6. MediaTek powered products 6 ▪ Sony Android TV
  7. 7. MediaTek powered products 6 ▪ Amazon Kindle Fire Tablet
  8. 8. MediaTek powered products 6 Smartphone HTC M9+ / Google Android One
  9. 9. Topics 7 ▪ Intro to MediaTek ▪ What is MediaTek Labs ▪ LinkIt ONE HDK ▪ LinkIt ONE SDK ▪ MediaTek Cloud Sandbox ▪ Demo ▪ Other HDK’s ▪ Questions
  10. 10. MediaTek Labs™ ADeveloperCentricEcosystem ▪ Free global program ▪ Supporting developers: • Device creation • App development • Services ▪ labs.mediatek.com
  11. 11. Enabling Developer & Maker Success labs.mediatek.com SDKs Technical docs HDKs Discussion Forums, FAQ & Dev Support Newsletter Solutions Catalog Business Support and Matchmaking 9
  12. 12.  Optional help to find partners • Designers and developers • Manufacturers • MediaTek distributors • Component suppliers 10 Idea Platform Prototype Productize Launch MediaTek Labs Partner Connect labs.mediatek.com/partners
  13. 13. Teaming up with MediaTek allowed us to focus on industrial and mechanical designs as well as fashion rather than technology. OmateSmartWatch–PoweredbyMT2502 “ - Laurent Le Pen, CEO, Omate ”
  14. 14. Topics 12 ▪ Intro to MediaTek ▪ What is MediaTek Labs ▪ LinkIt ONE HDK ▪ LinkIt ONE SDK ▪ MediaTek Cloud Sandbox ▪ Demo ▪ Other HDK’s ▪ Questions
  15. 15. MediaTek LinkIt™ ONE platform 13 System-on-Chip Aster (MT2502) – the world’s smallest SoC for Wearables Companion chipsets for Wi-Fi and GPS LinkIt ONE HDK Hardware board based on reference design by MediaTek Co-design with: Rich APIs Feature rich OS to power Wearables and IoT devices + ++ LinkIt ONE SDK Plug-ins for Arduino, libraries for the LinkIt APIs, and board firmware update tool First offering: SDK for Arduino labs.mediatek.com/linkit
  16. 16. LinkIt ONE Hardware Dev Kit (HDK) (FrontView) Headphone Jack USB Jack Battery Jack Reset GPIO SPI Seeed “GROVE” system labs.mediatek.com/linkithdk A/D & GPIOPower Out SD / SPI Switch Mass Storage / Normal mode switch USB / Battery Power switch
  17. 17. LinkIt ONE HDK (BackView) GPS Antenna Wi-Fi / BT Antenna GSM Antenna
  18. 18. LinkIt ONE HDK (BackView) GPS Antenna Wi-Fi / BT Antenna GSM Antenna GPS+GLONASS Antenna Wi-Fi / BT Antenna GSM Antenna
  19. 19. LinkIt ONE HDK (BackView) GPS Antenna Wi-Fi / BT Antenna GSM Antenna SIM/SD Slot Main Processor BT GSM MT2502 Wi-Fi MT5931 GNSS MT3332 GPS/GLONASS/BEIDOU
  20. 20. Hardware Spec ▪ Microcontroller • MT2502A (Aster) ARM7 EJ-S 260MHz ▪ Memory • Flash 16MB RAM 4MB • SD card: up to 32GB (class 10) ▪ Power • 3.7V~4.2V Lithium battery jack recharge through USB ▪ Digital I/O • 16 pins (D0~D13 SDA SCL) 3.3V 0.3mA~3mA ▪ Analog Input • 3 pins (A0 A1 A2) 0~5V fixed reference voltage ▪ Pulse Width Modulation • 2 sets • Max Resolution: 13bit • Max Frequency@Resolution: 1.6kHz@13bit 50.8kHz@8bit 800kHz@4bit
  21. 21. Hardware Spec  External Interrupts • 2 pins D2 D3  I2C • 1 set Master only  SPI • 1 set Master only  UART • 1x UART on USB  mapped to “Serial” • 1x UART  D0 D1 3.3V  mapped to “Serial1”  GSM/GPRS • 850/900/1800/1900 MHz • GPRS Class 12  Bluetooth • EDR BLE (Dual Mode)  Wi-Fi • 802.11 b/g/n (150Mbit/s)  GPS • GPS/GLONASS/BEIDOU
  22. 22. Topics 19 ▪ Intro to MediaTek ▪ What is MediaTek Labs ▪ LinkIt ONE HDK ▪ LinkIt ONE SDK ▪ MediaTek Cloud Sandbox ▪ Demo ▪ Other HDK’s ▪ Questions
  23. 23. LinkItONESoftwareDevelopmentKit  An extension of Arduino IDE 20 +
  24. 24. Setup 21 Download Arduino Register With Labs Download SDK Install SDK Plug-in to Arduino IDE
  25. 25. Setup 21 Download Arduino Register With Labs Download SDK Install SDK Plug-in to Arduino IDE
  26. 26. Setup 21 Download Arduino Register With Labs Download SDK Install SDK Plug-in to Arduino IDE
  27. 27. Setup 21 Download Arduino Register With Labs Download SDK Install SDK Plug-in to Arduino IDE
  28. 28. Setup 21 Download Arduino Register With Labs Download SDK Install SDK Plug-in to Arduino IDE
  29. 29. Setup continued 22labs.mediatek.com/linkitsdk Plug-in to Arduino IDE Setup Board Create Sketches Load to LinkIt ONE Run
  30. 30. Setup continued 22labs.mediatek.com/linkitsdk Plug-in to Arduino IDE Setup Board Create Sketches Load to LinkIt ONE Run
  31. 31. Setup continued 22labs.mediatek.com/linkitsdk Plug-in to Arduino IDE Setup Board Create Sketches Load to LinkIt ONE Run
  32. 32. Setup continued 22labs.mediatek.com/linkitsdk Plug-in to Arduino IDE Setup Board Create Sketches Load to LinkIt ONE Run
  33. 33. Setup continued 22labs.mediatek.com/linkitsdk Plug-in to Arduino IDE Setup Board Create Sketches Load to LinkIt ONE Run
  34. 34. SDKFeatures Arduino Core Functions  Digital I/O  Pulse-Shift I/O  Analog Input  Serial  Time and delay  Interrupts  Math  Servo  Stepper  SPI  I2C LinkIt ONE Functions (prefixed with L, e.g. LGPS)  GSM  GPRS  Wi-Fi  Bluetooth  GPS  Audio  SD/Flash  EEPROM SMS & Telephony TCP and UDP socket TCP and UDP socket Serial Port Profile / GATT NMEA Format MP3 AAC AMR FAT32 labs.mediatek.com/linkitguide
  35. 35. SMS  Sending and receiving SMS  Classes prefixed with L  Waiting for module ready  Begin composing SMS to remote number  Finish and send the message while(!LSMS.ready()){ delay(100); } LSMS.beginSMS(“07701234123”); LSMS.print(“Hello world!”); LSMS.endSMS(); 24
  36. 36. GPS  Switch GPS on  Reports NMEA strings  A parsing example in SDK • Fix • # Satelites • Date stamp • Position void setup() { Serial.begin(115200); LGPS.powerOn(); } void loop() { LGPS.getData(&info); Serial.println(info.GPGGA); parseGPGGA(info.GPGGA); } 25
  37. 37. Audio  Play audio files  Stored on SD-Card  Set volume  Stop playback LAudio.begin(); LAudio.playFile(storageFl ash,”a.wav”); LAudio.setVolume(6); delay(10000); Laudio.stop(); 26
  38. 38. Topics 27 ▪ Intro to MediaTek ▪ What is MediaTek Labs ▪ LinkIt ONE HDK ▪ LinkIt ONE SDK ▪ MediaTek Cloud Sandbox ▪ Demo ▪ Other HDK’s ▪ Questions
  39. 39. MediaTekCloudSandbox  RESTful API’s  Visualize Data  FOTA  Data monitoring with notifications  Device remote control  Web or mobile app 28labs.mediatek.com/mcs
  40. 40. Controller VisualizeData  Data types • Controller • Display • Hybrid (coming soon) 29 Display Hybrid
  41. 41. VisualizeData  Visualize • GPS Position • Double values • String values • Control states • Etc... 30
  42. 42. Demo  Upload Temperature to Cloud via Wi-Fi 31
  43. 43. #include "DHT.h" #define DHTPIN 0 #define DHTTYPE DHT22 void setup() { Serial.begin(9600); Serial.println("Geek Pic Nic demo!"); dht.begin(); } 32
  44. 44. void loop() { float t = 0.0; float h = 0.0; if (dht.readHT(&t, &h)){ Serial.println("------------------------------"); Serial.print("temperature = "); Serial.println(t); Serial.print("humidity = "); Serial.println(h); } delay(2000); } 33
  45. 45. ConnectittotheCloud 34
  46. 46. #include "LGPRS.h" #include "LGPRSClient.h" #include "HttpClient.h" #define SITE_URL "api.mediatek.com" LGPRSClient content; HttpClient http(content); void setup() { … while (!LGPRS.attachGPRS("internet", "", "")) { delay(500); } } 35
  47. 47. 36
  48. 48. void upload(float t){ while (!content.connect(SITE_URL, 80)) { Serial.print("."); delay(500); } content.println("POST /mcs/v2/devices/Du0VaaVH/datapoints.csv HTT String data = "temp,," + String(t); int dataLength = data.length(); content.println("Host: api.mediatek.com"); content.println("deviceKey: ZzSJG9PGnNBeOxL6"); content.print("Content-Length: "); content.println(dataLength); content.println("Content-Type: text/csv"); content.println("Connection: close"); content.println(); content.println(data); } 37
  49. 49. Topics 38 ▪ Intro to MediaTek ▪ What is MediaTek Labs ▪ LinkIt ONE HDK ▪ LinkIt ONE SDK ▪ MediaTek Cloud Sandbox ▪ Demo ▪ Other HDK’s ▪ Questions
  50. 50. LinkIt Connect 7681 39 ▪ Wi-Fi station and access point (AP) modes ▪ TCP/IP stack ▪ 5 GPIO’s / 1 UART port
  51. 51. LinkIt Assist 2502  Based on modules  Capacitive touch screen  SDK for Eclipse • Compatible with LinkIt ONE 40
  52. 52. TechnicalQuestions? 41 Download Resources: labs.mediatek.com/linkit MediaTek Cloud Sandbox: labs.mediatek.com/mcs Check the Forum: labs.mediatek.com/forums Technical Consultant at booth: Phil Start by registering as member of MediaTek Labs – this allows you to download SDK and use Cloud Sandbox
  53. 53. Next Steps 42 ▪ Fill out feedback form ▪ Come to booth • See demos • Wearables • Win a board • Get a t-shirt • @MediaTekLabs ▪ Join labs – It’s free - labs.mediatek.com labs.mediatek.com
  54. 54. Copyright © MediaTek Inc. All rights reserved.

×