Top Banner
labs.mediatek.com Philip Handschin MediaTek Labs Getting started with LinkIt™ ONE The ultimate development board for Wearables and IoT
41
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MediaTek Labs Webinar: Getting Started with LinkIt ONE

labs.mediatek.com

Philip HandschinMediaTek Labs

Getting started with LinkIt™ ONE The ultimate development board for Wearables and IoT

Page 2: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Topics

2

▪ Intro to MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox ▪ Other HDKs▪ Questions

Page 3: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Enabling Developer & Maker Success

labs.mediatek.com SDKs Technical docs HDKs

Discussion Forums, FAQ & Dev Support

Newsletter Solutions Catalog

PartnerConnect

3

Page 4: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Topics

4

▪ Intro to MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox ▪ Other HDKs▪ Questions

Page 5: MediaTek Labs Webinar: Getting Started with LinkIt ONE

MediaTek LinkIt™ ONE platform

5

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 API to power Wearables and IoT devices

+ ++

LinkIt ONE SDK

Plug-ins for Arduino, libraries for the LinkIt APIs, and board firmware update tool

labs.mediatek.com/linkit

Page 6: MediaTek Labs Webinar: Getting Started with LinkIt ONE

LinkIt ONE Hardware Dev Kit (HDK)(Front View)

Headphone Jack

USB Jack

Battery Jack

Reset

GPIO

SPI

Seeed “GROVE” system

labs.mediatek.com/linkithdkA/D & GPIOPower Out

SD / SPI Switch

Mass Storage / Normal mode

switch

USB / Battery Power switch

Page 7: MediaTek Labs Webinar: Getting Started with LinkIt ONE

LinkIt ONE HDK (Back View)

GPS Antenna

Wi-Fi / BTAntenna

GSM Antenna

Page 8: MediaTek Labs Webinar: Getting Started with LinkIt ONE

LinkIt ONE HDK (Back View)

GPS Antenna

Wi-Fi / BTAntenna

GSM Antenna

GPS+GLONASS Antenna

Wi-Fi / BTAntenna

GSM Antenna

Page 9: MediaTek Labs Webinar: Getting Started with LinkIt ONE

LinkIt ONE HDK (Back View)

GPS Antenna

Wi-Fi / BTAntenna

GSM Antenna

SIM/SD Slot

Main ProcessorBT GSMMT2502

Wi-FiMT5931

GNSS MT3332

GPS/GLONASS/BEIDOU

Page 10: MediaTek Labs Webinar: Getting Started with LinkIt ONE

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

Page 11: MediaTek Labs Webinar: Getting Started with LinkIt ONE

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)

GNSS• GPS/GLONASS/BEIDOU

Page 12: MediaTek Labs Webinar: Getting Started with LinkIt ONE
Page 13: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Off the Shelf Sensors – Seeed GROVE

- Temperature & Humidity- Sound- UV- Barometer- Light- 3- Axis Accelerometer- LED Bar- Touch - Servo- Many more!

13

Page 14: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Topics

14

▪ Intro to MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox ▪ Other HDKs▪ Questions

Page 15: MediaTek Labs Webinar: Getting Started with LinkIt ONE

LinkIt ONE Software Development Kit

An extension of Arduino IDE

15

+

Page 16: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Setup

16

Download Arduino

RegisterWith Labs

DownloadSDK

Install SDK

Plug in to Arduino IDE

Page 17: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Setup

17

Download Arduino

RegisterWith Labs

DownloadSDK

Install SDK

Plug in to Arduino IDE

Page 18: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Setup

18

Download Arduino

RegisterWith Labs

DownloadSDK

Install SDK

Plug in to Arduino IDE

Page 19: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Setup

19

Download Arduino

RegisterWith Labs

DownloadSDK

Install SDK

Plug in to Arduino IDE

Page 20: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Setup

20

Download Arduino

RegisterWith Labs

DownloadSDK

Install SDK

Plug in to Arduino IDE

Page 21: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Setup continued

21labs.mediatek.com/linkitsdk

Plug in to Arduino IDE

Setup Board

Create Sketches

Load to LinkIt ONE Run

Page 22: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Setup continued

22labs.mediatek.com/linkitsdk

Plug in to Arduino IDE

Setup Board

Create Sketches

Load to LinkIt ONE Run

Page 23: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Setup continued

23labs.mediatek.com/linkitsdk

Plug in to Arduino IDE

Setup Board

Create Sketches

Load to LinkIt ONE Run

Page 24: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Setup continued

24labs.mediatek.com/linkitsdk

Plug in to Arduino IDE

Setup Board

Create Sketches

Load to LinkIt ONE Run

Page 25: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Setup continued

25labs.mediatek.com/linkitsdk

Plug in to Arduino IDE

Setup Board

Create Sketches

Load to LinkIt ONE Run

Page 26: MediaTek Labs Webinar: Getting Started with LinkIt ONE

SDK Features

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

Page 27: MediaTek Labs Webinar: Getting Started with LinkIt ONE

SMS

Send and receive 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();

27

Page 28: MediaTek Labs Webinar: Getting Started with LinkIt ONE

GPS

Switch GPS on Reports NMEA strings A parsing example in SDK

• Fix• # Satellites• Date stamp• Position

void setup() {Serial.begin(115200);LGPS.powerOn();

}

void loop() {LGPS.getData(&info);Serial.println(info.GPGGA); parseGPGGA(info.GPGGA);

}

28

Page 29: MediaTek Labs Webinar: Getting Started with LinkIt ONE

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();

29

Page 30: MediaTek Labs Webinar: Getting Started with LinkIt ONE

GPRS

Attach GPRSto network

Use LGPRS Clientto create HTTP GETrequest

Read response

LGPRSClient client;void setup(){while (!LGPRS.attachGPRS())

delay(500);

if (client.connect(server, port)){client.print("GET ");client.print(path);… }

}void loop(){if (client.available()){char c = client.read();Serial.print(c);

} …30

Page 31: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Topics

31

▪ Intro to MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox ▪ Other HDKs▪ Questions

Page 32: MediaTek Labs Webinar: Getting Started with LinkIt ONE

MediaTek Cloud Sandbox

RESTful APIs Visualize Data FOTA

Data monitoring with notifications

Device remote control Web or mobile app

32labs.mediatek.com/mcs

Page 33: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Controller

Visualize Data

Data types• Controller• Display• Hybrid (coming soon)

33

Display

Hybrid

Page 34: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Visualize Data

Visualize• GPS Position• Double values• String values• Control states• Etc...

34

Page 35: MediaTek Labs Webinar: Getting Started with LinkIt ONE

API Hints

Very easy to use Copy & Paste

35

Page 36: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Topics

36

▪ Intro to MediaTek Labs▪ LinkIt ONE HDK▪ LinkIt ONE SDK▪ MediaTek Cloud Sandbox ▪ Other HDKs▪ Questions

Page 37: MediaTek Labs Webinar: Getting Started with LinkIt ONE

LinkIt Connect 7681

37

▪ Wi-Fi station and access point (AP) modes

▪ TCP/IP stack▪ 5 GPIOs / 1 UART port

Page 38: MediaTek Labs Webinar: Getting Started with LinkIt ONE

LinkIt Assist 2502

Based on modules Capacitive touch screen SDK for Eclipse

• Compatible with LinkIt ONE

• Libraries for handling graphics

38

Page 39: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Next Steps

Join Labs Download SDK Get HDK

labs.mediatek.com/registerlabs.mediatek.com/linkitonesdkwww.seeedstudio.com/LinkItOne

39

Page 40: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Questions?

40

Download Resources:labs.mediatek.com/linkit

MediaTek Cloud Sandbox:labs.mediatek.com/mcs

Check the Forum:labs.mediatek.com/forums

Page 41: MediaTek Labs Webinar: Getting Started with LinkIt ONE

Copyright © MediaTek Inc. All rights reserved.