Want to add Wi-Fi to your IoT project? This 30 minute webinar, presented by technical consultant Ajith KP, demonstrated how to program (using Arduino and Python) for peripheral sensors connected to the MediaTek LinkIt Smart 7688 Duo’s microcontroller and how to communicate between the microcontroller and the MT7688 SOC.
Three ways to undertake the peripheral programming for the MediaTek LinkIt Smart 7688 Duo were covered:
1) Using a primitive UART connection
2) Using the Firmata protocol
3) Using the Arduino Yun Bridge Library
A recording of the live event can be found at http://home.labs.mediatek.com/technical-mediatek-linkit-smart-7688-webinar-recording-available/
18. Topics
18
Who is Mediatek
What is MediaTek Labs
LinkIt Smart 7688 HDK’s
LINKIT SMART 7688 SOFTWARE TOOLS
Peripheral Programming
Challenge
Questions
19. LinkIt Smart 7688 SDTs
19
Running OpenWrt Linux (Chaos Calmer) OS
Loaded with a range of packages to enable
the development of IoT device software
Multiple programming options
Duo only
20. OpenWrt
▪ Linux distribution focus on embedded devices
• Started from 2004
• Typically wireless router
• Full-featured, easily modifiable OS for routers
▪ A framework to build network applications
• Free from the restriction and configuration
provided by the vendor
20
21. OpenWrtPackages
Dropbear
• A light-weight SSH server
cURL
• Command line tool for transferring
data with URL syntax
stty
UVC USB camera support
• Kernel drivers for USB camera
support
Python
pySerial
• Library providing serial port access
functions in Python
OpenSSL
Node.js
node-serialport
• Library providing serial port access
functions in JavaScript
Bridge library
• Arduino Yun Bridge library
libmraa
• C/C++ library with bindings to
JavaScript and Python for I/O
interface in Linux
UPM
• A set of sensor drivers written in
libmraa
AVAHI
• Facilitates service discovery on a
local network using the
mDNS/DNS-SD protocol suite
21
22. Supported Programming Languages
22
Language Tools &
Libraries
Applications Host Platform
C/C++ • Cross
Compilation
Tool Chain
• System
Programming
• OS X
• Linux
Python • Python
runtime on
Linkit Smart
7688
• Prototyping
• Network
• IoT application
• OS X
• Linux
• Windows
Node.js • Node.js
runtime on
LinkIt Smart
7688
• Prototyping
• Network
• IoT application
• OS X
• Linux
• Windows
23. Topics
23
Who is Mediatek
What is MediaTek Labs
LinkIt Smart 7688 HDK’s
LinkIt Smart 7688 Software tools
PERIPHERAL PROGRAMMING
Challenge
Questions
24. Peripheral Connections in
LinkIt™ Smart 7688 Duo
24
Hardware
MT7688
ATMega32U4
UART
USB Device/SD
Sensors
Wi-Fi
OpenWrt
Arduino
LinkIt Smart 7688 Duo : Hardware Architecture
33. Everything is
controlled
through Arduino
Activate Bridge
Library
# uci set
yunbridge.config.
disabled=’0’
# uci commit
# reboot
33
Arduino Bridge Library : https://www.arduino.cc/en/Reference/YunBridgeLibrary
34. BridgeLibrary
Process
• Process is used to launch
processes on the Linux
processor, and other things like
shell scripts.
Console
• Console can be used to
communicate with the network
monitor in the Arduino IDE,
through a shell. Functionally, it
is very similar to Serial.
FileIO
• An interface to the Linux file
system. Can be used to
read/write files on the SD card.
HttpClient
• Creates a HTTP client on Linux.
Acts as a wrapper for common
CURL commands, by extending
Process.
Mailbox
• An asynchronous, session-less
interface for communicating
between Linux and Arduino.
And more...
34
35. MediaTek Cloud Sandbox
RESTful API’s
Visualize Data
FOTA
Data channels
• Float
• GPS location
• Video
• Pictures
• Controllers 35
37. LinkIt Smart 7688 Duo Testimonials
37
“I have recently decided to learn embedded Linux, and have bought
over 14 different development kits. Though they all run Linux, they all
have their pros and cons. So far out of all of them I have liked the
MediaTek LinkIt Smart 7688 the best,”
Mike Moy, Sr. Design Engineer, Versamodule.com
38. What’s Next ?
38
▪ March 8th, 2016 - Bluetooth Low Energy
communication with MediaTek LinkIt ONE
▪ March 17th, 2016 - From concept to
consumer – make your IoT idea a commercial
reality
More Info : http://home.labs.mediatek.com/march-
webinars-make-the-most-out-of-your-iot-project/