In this free 30 minute live webinar, followed by Q&A, you'll learn all about the new MediaTek LinkIt Smart 7688 development platform, the open-source Wi-Fi platform for a more connected world.
The MediaTek LinkIt™ Smart 7688 development platform enables rapid development of Wi-Fi enabled products for the smart home and office, such as advanced IP cameras, surveillance devices, and smart appliances.
In this webinar you will learn about:
• The architecture and capabilities of the MediaTek LinkIt Smart 7688
• How to undertake rapidly develop of Wi-Fi enabled products using Arduino, Python, Node.js or C/C++
Presented by Ajith KP, technical consultant, MediaTek Labs.
Checkout LinkIt Smart 7688 at http://labs.mediatek.com/7688
15. LinkIt Smart 7688 SDTs
15
LinkIt Smart 7688 Platform runs OpenWrt
(Chaos Calmer) Linux OS & loaded with range
of packages to enable the development of IoT
device software
You can create applications using
Duo only
16. 16
▪ OpenWrt (Chaos Calmer)
• Built-in OPKG
▪ SSH
▪ Python
▪ Node.js
▪ Firmata
▪ Bridge (from Arduino Yun)
▪ Libmraa (also UPM)
▪ OpenSSL (w/ TLS 1.2)
▪ mDNS
▪ AVRdude (Arduino ICSP)
▪ UVC Webcam support
▪ git
▪ Samba
Software Specification
• BSP related
▪ Ethernet, USB, I2C, UART, GPIO, SPI driver verification
▪ Pin configuration based on HW definition
▪ GPIO control for bypass Bootstrap-pin (LinkIt Smart 7688)
▪ Reset Button Behavior
▪ Wi-Fi Status indicator
▪ Linux Console on UART2
▪ Firmware upgrade by USB (in boot loader)
▪ PWM, I2S driver
▪ Mac80211 Wi-Fi Open source driver (under development)
▪ Will use WCN binary Wi-Fi driver currently
• Setups
▪ Web UI for Initial Setup (Customized UI)
▪ AP Configure File
▪ Pre-defined MenuConfig for required features
▪ Arduino IDE SSH flashing
17. 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
17
18. Supported Programming Language
18
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
19. Demo
▪ Connect to LinkIt Smart 7688 AP
▪ Log in using WebUI
▪ Login using Putty
▪ Login & transfer file using SCP Tool
▪ Show Openwrt
▪ OPKG Packages
▪ Change to station mode to access Internet
19
23. 23
Basic concepts of MRAA
In MRAA, hardware modules such as GPIO, UART, SPI, and PWM are represented as objects
Libmraa is a C/C++ library to interface with the peripheral on LinkIt Smart 7688
import mraa
pin = mraa.Gpio(44)
pin.dir(mraa.DIR_OUT)
pin.write(1)
Import mraa
pin = mraa.Pwm(18)
pin.period_ms(2)
pin.enable(True)
pin.write(0.25) # set duty cycle
import mraa
i2c = mraa.I2c(0)
i2c.address(0x53)
if 0xE5 == i2c.readReg(0x00):
print "Grove - 3-Axis Digital Accelerometer found on I2C Bus"
else:
print "Grove - 3-Axis Digital Accelerometer not found"
GPIO PWM
I2C
24. Demo
▪ Login to 7688 using Putty
▪ Connect to LinkIt Smart 7688
▪ Code walk through mraa python examples
• Simple blink using mraa
• Accelerometer eg using UPM
▪ Code walk through Node.js
▪ Control LED from MCS
24
25. 25
Peripheral Connections in LinkIt
Smart 7688 Duo
MT7688
ATMega32U4
UART
USB Device/SD
Sensors
Wi-Fi
Hardware
OpenWrt
Arduino
LinkIt Smart 7688 Duo : Hardware Architecture
26. 26
How can I access sensors from LinkIt
Smart 7688 Duo ?
3 Programming Models
for LinkIt Smart Duo
Primitive UART
Connection
Firmata Protocol
Arduino Yun Bridge
Library
30. Summary:LinkItSmart7688VsDuo
Python Node.js
Sensors
Firmata
Python Node.js
Sensors
UART port
Sensor Drivers
UART Library
App Logic App Logic
Sensors
Bridge Library
Sensor Drivers
Bridge Library
App Logic
(MPU provides Wi-Fi & USB Host)
libmraa
Python
Node.j
s
upm
Sensors
App Logic
Sensors
USB Device/SD
LinkIt Smart 7688
Wi-Fi
MT7688 MT7688
ATMega32U4
UART
USB Device/SD
Sensors
LinkIt Smart 7688 Duo
OpenWrt OpenWrt OpenWrt
OpenWrt
Arduino Arduino Arduino
Hardware
Wi-Fi
Software
MPU (MT7688) with OpenWrt as Host MCU (ATmega32U4) with Arduino as Host
Linux Developers
Arduino Developers
(default)
C C C
Firmata
31. Demo
▪ Login to 7688 using Putty
▪ Start camera app
▪ Show 3 scenarios with Duo
▪ Upload Arduino Firmata Sketch
▪ Run python code in Linux side and communicate with Arduino
▪ Run Node.js and control lights using browser high/low
31
33. Target Audience
33
IoT Gateway Device Developers
OpenWRT Community
Python Developers
Node.Js Developers
Robotics Community
Arduino Yun Community
34. LinkIt Smart 7688 Testimonials
34
“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
35. How can I get it ?
35
Online Order : http://www.seeed.cc/linkit_smart_7688/
36. Needmoreinfo ?
Documentation
• Get Started Guides
• Developer’s Guides
• Tutorials & Forums
• HDK information
Datasheet
Schematic
Layout
Pin-out Diagram
Toolchains
Bootloader
• Source codes hosted on
Labs’ repository
Firmware
• Source codes hosted on
OpenWrt.org
36
labs.mediatek.com