41
labs.mediatek.com Philip Handschin MediaTek Labs Getting started with LinkIt™ ONE The ultimate development board for Wearables and IoT

MediaTek Labs Webinar: Getting Started with LinkIt ONE

Embed Size (px)

Citation preview

labs.mediatek.com

Philip HandschinMediaTek Labs

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

Topics

2

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

Enabling Developer & Maker Success

labs.mediatek.com SDKs Technical docs HDKs

Discussion Forums, FAQ & Dev Support

Newsletter Solutions Catalog

PartnerConnect

3

Topics

4

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

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

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

LinkIt ONE HDK (Back View)

GPS Antenna

Wi-Fi / BTAntenna

GSM Antenna

LinkIt ONE HDK (Back View)

GPS Antenna

Wi-Fi / BTAntenna

GSM Antenna

GPS+GLONASS Antenna

Wi-Fi / BTAntenna

GSM Antenna

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

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

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

Off the Shelf Sensors – Seeed GROVE

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

13

Topics

14

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

LinkIt ONE Software Development Kit

An extension of Arduino IDE

15

+

Setup

16

Download Arduino

RegisterWith Labs

DownloadSDK

Install SDK

Plug in to Arduino IDE

Setup

17

Download Arduino

RegisterWith Labs

DownloadSDK

Install SDK

Plug in to Arduino IDE

Setup

18

Download Arduino

RegisterWith Labs

DownloadSDK

Install SDK

Plug in to Arduino IDE

Setup

19

Download Arduino

RegisterWith Labs

DownloadSDK

Install SDK

Plug in to Arduino IDE

Setup

20

Download Arduino

RegisterWith Labs

DownloadSDK

Install SDK

Plug in to Arduino IDE

Setup continued

21labs.mediatek.com/linkitsdk

Plug in to Arduino IDE

Setup Board

Create Sketches

Load to LinkIt ONE Run

Setup continued

22labs.mediatek.com/linkitsdk

Plug in to Arduino IDE

Setup Board

Create Sketches

Load to LinkIt ONE Run

Setup continued

23labs.mediatek.com/linkitsdk

Plug in to Arduino IDE

Setup Board

Create Sketches

Load to LinkIt ONE Run

Setup continued

24labs.mediatek.com/linkitsdk

Plug in to Arduino IDE

Setup Board

Create Sketches

Load to LinkIt ONE Run

Setup continued

25labs.mediatek.com/linkitsdk

Plug in to Arduino IDE

Setup Board

Create Sketches

Load to LinkIt ONE Run

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

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

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

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

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

Topics

31

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

MediaTek Cloud Sandbox

RESTful APIs Visualize Data FOTA

Data monitoring with notifications

Device remote control Web or mobile app

32labs.mediatek.com/mcs

Controller

Visualize Data

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

33

Display

Hybrid

Visualize Data

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

34

API Hints

Very easy to use Copy & Paste

35

Topics

36

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

LinkIt Connect 7681

37

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

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

LinkIt Assist 2502

Based on modules Capacitive touch screen SDK for Eclipse

• Compatible with LinkIt ONE

• Libraries for handling graphics

38

Next Steps

Join Labs Download SDK Get HDK

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

39

Questions?

40

Download Resources:labs.mediatek.com/linkit

MediaTek Cloud Sandbox:labs.mediatek.com/mcs

Check the Forum:labs.mediatek.com/forums

Copyright © MediaTek Inc. All rights reserved.