LinkIt ONE Workshop About This Workshop ▪ ▪ ▪ ▪ What LinkIt ONE is What can LinkIt ONE do Example Resources What is LinkIt? GPIO I2C SPI UART Wearable/IOT Device Bluetooth GSM GSM GPRS Wi-Fi Some images from icons8.com 3 Prototyping Wearable and IOT Devices Easily GPIO I2C SPI UART Wearable/IOT Device Bluetooth GSM GSM GPRS Wi-Fi Some images from icons8.com 4 ® LinkIt ONE ARM7 EJ-S GSM GPRS Bluetooth Wi-Fi GPS Audio microSD $79 USD 5 LinkIt ONE ▪ All-in-one connectivity ▪ Similar pin layout to Arduino Uno + = + + BLE Shield Wi-Fi Shield GSM/GPRS Shield Arduino Uno + GPS Shield MP3 Shield Some images from arduino.cc and seeedstudio.com LinkIt ONE LinkIt SDK for Arduino ▪ A Plug-in for Arduino IDE Sketch On Board LED MediaTek LinkIt Platform System-on-Chip LinkIt OS LinkIt HDK LinkIt SDK Aster (MT2502) – the world’s smallest SoC for Wearables Feature rich OS to power Wearables and IoT devices Hardware boards based on reference designs by MediaTek Plug-ins for Arduino, libraries for the LinkIt APIs, and board firmware update tool + Companion chipsets for WiFi and GPS + + First offering: LinkIt ONE from Seeed Studio labs.mediatek.com/linkit First offering: SDK for Arduino 10 LinkIt ONE Hardware Hardware (Front View) GPIO (3.3V) Seeed GROVE system Headset Jack SPI USB Jack Battery Jack Reset Key Power Out A/D & GPIO LinkIt ONE Hardware GROVE system ▪ Simplifies hardware setup Grove System Hardware (Back View) GNSS MT3332 GPS/GLONASS/BEIDOU GPS Antenna SIM/SD Slot Wi-Fi / BT Antenna GSM Antenna Wi-Fi MT5931 Main Processor BT GSM MT2502 Antenna GPS+GLONASS Antenna GPS Antenna SIM/SD Slot Wi-Fi / BT Antenna Wi-Fi / BT Antenna GSM Antenna GSM Wi-Fi Antenna MT5931 MT2502 Aster Photo with coffee bean here 18 Aster (MT2502) Size: 5.4x6.2x1.0mm ARM7EJ-S BT 3.0/4.0 PMU 4MB Memory 2G Modem 19 LinkIt ONE Schematics ▪ Open board schematics ▪ labs.mediatek.com (Dev Tools & Resources > MediaTek LinkIt > HDK Intro) 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 GSM/GPRS • 850/900/1800/1900 MHz • GPRS Class 12 Bluetooth • EDR BLE (Dual Mode) SPI • 1 set Master only UART • 1x UART on USB mapped to “Serial” • 1x UART D0 D1 3.3V mapped to “Serial1” Wi-Fi • 802.11 b/g/n (150Mbit/s) GPS • GPS/GLONASS/BEIDOU LinkIt SDK for Arduino LinkIt SDK for Arduino ▪ A Plug-in for Arduino IDE RTOS Inside Thread N Arduino Thread LinkIt Run-time Environment Arduino Sketch Framework Arduino Porting Layer (source code) LinkIt OS preemptive(binary) multi-threaded Hardware Middleware & Protocols (Multimedia Graphic Peripheral Modem etc) Thread A MT2502 (Aster) Driver Thread B MT3332 (GPS) Driver Embedded OS Thread C MT5931 (Wi-Fi) Driver SDK Features Arduino core functions LinkIt ONE functions Digital I/O Pulse-Shift I/O Analog Input Serial Time and delay Interrupts Math Servo Stepper SPI I2C GSM SMS GPRS TCP and UDP socket Wi-Fi TCP and UDP sockets Bluetooth Serial Port Profile GPS NMEA format Audio MP3 AAC SD/Flash FAT32 EEPRROM-like persistent store Resources ▪ labs.mediatek.com • API reference guide and sample code ▪ IDE • sample code SMS Sending and receiving SMS Classes prefixed with L Waiting for module ready Begin composing SMS to remote number Finish and send the message GPRS Client Socket TCP socket connection HTTPS will be support through SDK update The Demo Kit ▪ Search “IOT” and “LinkIt” on GitHub SMS Lamp Switch ▪ Send “on” and “off” to control the lamp • Receiving SMS messages • Turning lights on and off GPIO I2C SPI UART Bluetooth GSM(SMS) Receiving SMS Messages ▪ setup() • Initialize SMS module ▪ loop() • Checking SMS module • Parse it Turning Lights On and Off ▪ The driving current small (0.3mA~3mA). ▪ For signal processing only ▪ Switch circuits may be required for components with larger driving currents e.g. LEDs motors http://www.electronics-tutorials.ws/blog/relay-switch-circuit.html Sample Code Resource ▪ MediaTek Labs ▪ IDE Sample ▪ Seeed Studio Resource Portals ▪ labs.mediatek.com/linkit ▪ www.seeedstudio.com/linkitone Q&A Copyright © MediaTek Inc. All rights reserved.