connecting to the cloud with msp432 mcu - ti. · pdf fileconnecting to the cloud with msp432...
TRANSCRIPT
TI Information – Selective Disclosure TI Information – Selective Disclosure
Connecting to the Cloud with MSP432 MCU Enabling IoT with MSP432 MCU & CC3100 WiFi
Dung Dang
Adrian Fernandez
MSP Applications
Texas Instruments
1
TI Information – Selective Disclosure
What is IoT?
2
A diverse collection of technologies and devices designed to connect everyday objects
to the Cloud to keep track of people, assets and events effortlessly and in real-time,
providing enhanced personal and societal awareness and control.
TI Information – Selective Disclosure
The Evolution of the IoT
Time
To
tal n
um
ber
of
thin
gs
Things
Connected
Things
Things
on the Internet
Internet
of Things
50 billion
connected
devices by 2020
No direct
connection to
the Internet
Things talk
directly to the
Internet
Things talk to
each other and
the Internet
TI Information – Selective Disclosure
IoT – The United Nations of connectivity
C H AL L E N G E W H AT I S N E E D E D
Connectivity:
One size doesn’t fit all
Broad variety of wired or
wireless standards
T I D E L I V E R S
• Low power & long range
• Proprietary & open protocols
• Metering, security systems
• Low power mesh network
• Smart metering & lighting
• Moving into home automation
• Fast, low latency Ethernet
• Real-time industrial control
• Information technology
• Fast – 10Mbps++
• Direct Internet connection
• Home & enterprise apps
• Data over power lines (OFDM)
• Developed for smart grid
• Lighting, solar, appliances
• Lowest power
• Connect to tablet/phone
• Moving to industrial, automotive
2.4GHz IEEE 802.15.4
IEEE P1901.2
TI Information – Selective Disclosure
Only TI has all the IoT building blocks
Processors MCUs
Wired &
Wireless
Connectivity
Sensors
Analog
Signal
Chain
Power
Management
Nodes
MCUs
Processors Wired &
Wireless
Connectivity
Multicore
Processors
Analog
Signal
Chain
Power
Management
Analog
Signal
Chain
Power
Management
Gateway,
Bridge or
Router
TI Information – Selective Disclosure
MCU & Wireless: Essential IoT components
6
MCU and RF
SOC
MCU as Host MCU as Host and
running Network
Stack
MCU as Sensor Hub
or Power
management to
Host MPU
Architecture
Example CC3200
CC2640
CC1300
CC430
MSP432 + CC3100
MSP430 + CC3100
MSP432 + CC2640
MSP + CC2560
MSP + TRF79xx
WL18xx + AM335x
+ MSP
MCU Memory
needs Max Min Max Task-dependent
MCU
Flexibility/
Scalability
Min Max Middle Max
MCU Cost $$$ $ $$ Task-dependent
MCU +
RF
Appl
Stack
MCU
Appl
Stack
RF
MPU
MSP430
ULP
task
Appl
RF
Stack
MSP432 + CC3100
MCU
Appl
RF
Stack
TI Information – Selective Disclosure
Developers are
challenged to pack
more performance into
devices
INDUSTRY DILEMMA:
DESIGNING PRODUCTS WITH MORE FEATURES AND LESS POWER
7
TI Information – Selective Disclosure
MORE PERFORMANCE FOR MSP430™ DEVELOPERS
LOWER POWER FOR ARM® DEVELOPERS
NO COMPROMISES
Advance to higher levels of computing
and analog performance, while
maximizing your ultra-low-power
MSP430 MCU investment and expertise
Slash power consumption and boost
performance with the world’s lowest
power Cortex®-M4F microcontroller
INTRODUCING MSP432™ MCUs:
LOW-POWER AT ITS BEST; PERFORMANCE AT ITS CORE
8
Get low-power and performance with a
scalable portfolio of 16-bit and 32-bit MSP
microcontrollers in a variety of applications
TI Information – Selective Disclosure
MSP432™ MCUs: PERFORMANCE AT ITS CORE
Selecting the high-
performance ARM®
Cortex®-M4F core
Highest Coremark
score: 3.41/MHz Incorporating
high-performance
peripherals and
features
• Simultaneously read
and erase from flash
• Execute up to 200%
faster with DriverLib
in ROM vs. Flash
• 14-bit 1MSPS ADC
with 13.2ENOB,
differential mode & 2
window comparators
48MHz ARM®
Cortex®-M4F
• Full ARM instruction set
• DSP extensions
• FPU engine
Industry-leading
ultra-low-power
• Active power:
95 μA per MHz
• Sleep mode:
850 nA (with RTC)
• ULPBench score:
167.4
DriverLib in-ROM
14-bit ADC
8-channel DMA
NVIC with tail-chaining
Peripheral & SRAM memory bit-band
Independent flash banks
Selectable RAM retention
Integrated LDO & DC/DC
128-bit Flash buffer
& pre-fetch
9
MSP432 MCU Wide voltage range:
1.62-3.7V
TI Information – Selective Disclosure
MSP432™ MCUs: LOW-POWER AT ITS BEST
Optimizing the
architecture for
ultra-low power
Industry’s lowest
power ARM
Cortex-M4F MCU
48MHz ARM®
Cortex®-M4F
• Full ARM instruction set
• DSP extensions
• FPU engine
Industry-leading
ultra-low-power
• Active power:
95 μA per MHz
• Sleep mode:
850 nA (with RTC)
• ULPBench score:
167.4
Driver Lib in-ROM
128-bit Flash buffer
& pre-fetch
14-bit ADC
8 channel DMA
NVIC with tail-chaining
Peripheral & SRAM
memory bit-band
Independent flash banks
Selectable RAM retention
Integrated LDO & DC/DC
MSP432 MCU
10
Optimizing
peripherals for
ultra-low power
• Save 40% more
power with the
integrated DC/DC
vs. LDO
• Save 30nA per RAM
bank with selectable
RAM retention
• Consume minimal
power (375uA) when
sampling sensors at
1MSPS with 14-bit
ADC
• DriverLib in ROM
consumes up to 35%
less power than
Flash
Wide voltage range:
1.62-3.7V
TI Information – Selective Disclosure
MORE ECOSYSTEM WITH EASY-TO-USE TOOLS AND SOFTWARE
MSPWare™: • Driver library
• App notes &
user’s guides
• Example code
• Tutorials
Optimization
tools: • ULP Advisor
• EnergyTrace+™
Choose
from your
favorite
IDEs
Develop or
access code
and collateral
online,
instantly
Ease code
development
with easy to
use APIs and
examples
Optimize your
code and
system for
ultra-low-
power
operation
MSP432™
LaunchPad
1 Get started here
2 Connect to your computer
3
4
5
6
• CCS
• IAR
• Keil
Software optimized
for low-power
Easy to use,
low-cost
evaluation kit
with integrated
emulator and
EnergyTrace+
technology
11
TI Cloud IDE: • Resource Explorer
• Code Composer
Studio™
• PinMux
CONNECTIVITY | DISPLAY | SENSORS
BoosterPacks
Expand MSP432 LaunchPad evaluation
with easy to use, low-cost BoosterPack
add-on daughter boards
TI Information – Selective Disclosure
DEVELOPMENT ENVIRONMENTS FOR MSP432 MCUs MAKING IT EASIER & PROVIDING MULTIPLE POINTS OF ENTRY
12
Energia Light-weight, Community-driven,
Wiring-based IDE for quick evaluation
Intuitive coding environment
• Simplified interface provides an
easy-to-use code editor, serial
monitor & compiler
Highly-abstracted API framework
• Functional APIs make it easy for
developers to start controlling
hardware
Community-driven
• Completely open source & driven by
the community
CCS & Pro IDEs Fully-capable dev environments
from TI & third parties
Full debug capability & more
• Set breakpoints, watch variables,
step through code & more
Import Energia projects
• Need more features from your
development environment?
Seemlessly import your Energia
sketches into Code Composer
Studio!
Rapid Prototyping Advanced
TI Cloud Tools with CCS Browser-based code editor and
Resource Explorer
Fast start & no installation
• Browser based code editing tool
to get you started quickly (MSP430
and MSP432 supported at this time)
Use Energia, TI-RTOS & more
• Cross Platform and allows you
to upload firmware using TI
Cloud Agent
Resource Explorer integration
• Access Resource Explorer to get
the latest code examples, design
files, and more.
Evaluation
TI Information – Selective Disclosure
TI CLOUD TOOLS @ dev.ti.com
Code Composer Studio Cloud
• Browser based code editing tool
to get your started quickly
• Cross Platform and allows you
to upload firmware using TI
Cloud Agent
• Supports MSP430 & MSP432
LaunchPads
TI Cloud Resource Explorer
• Entire MSPWare available online:
complete one-stop shop for MSP MCU
developers
• Access latest software, examples,
documentation, training, application
notes, and more collateral
TI Information – Selective Disclosure
CODE COMPOSER STUDIO 6
• Eclipse-based IDE for professional
firmware developers that supports
all TI processors
• CCS App Center allows you to stay
current with the latest plugins and
updates
• Use tools such as EnergyTrace, ULP
Advisor, and more to optimize your
workflow and application
• Resource Explorer exposes
thousands of code examples
and technical materials
ti.com/ccstudio
TI Information – Selective Disclosure TI Confidential – Maximum Restrictions
TI’S INDUSTRY-LEADING LOW-POWER MCU PORTFOLIO: SCALABILITY FROM 16-BIT TO 32-BIT, PLUS WIRELESS MCUs
15
16-bit MSP430 MCUs
• The industry leader in ultra-
low-power, rich peripherals
and analog integration.
• World’s only portfolio of ultra-
low-power embedded FRAM
MCUs.
• Growing portfolio of more than
500 ultra-low-power MCUs
across 13,000+ customers.
32-bit MSP432 MCUs
• Industry’s lowest power
ARM® Cortex®-M4F MCUs.
Period.
• High performance MCUs
without sacrificing power
consumption.
• Pin-for-pin platform scalability
up to 2MB; sampling 256KB
today.
SimpleLink Wireless MCUs
• Focus on ease of use and
low power.
• Support for more than 14
wireless protocols including
Bluetooth Smart, Sub-1 GHz,
6LoWPAN, ZigBee and more.
• Portfolio includes SimpleLink
Wi-Fi and new ultra-low
power platform.
MSP430™
MCUs
MSP432™
MCUs
SimpleLink™
Wireless MCUs
TI Information – Selective Disclosure TI Confidential – Maximum Restrictions
CC3100 SimpleLink™ Wi-Fi
16
Simple
Quick HW design with QFN
package or TI module
Slick SW design with
SimpleLink™ APIs
No Wi-Fi expertise needed
Easy Wi-Fi provisioning
with SmartConfig™
Secure
Best in class Wi-Fi and
Internet security protocols
On chip accelerators
enable secure connection
easy and fast
Secure MCU protects
customers IP and prevents
cloning
Low Power
Low power radio &
low power sleep
Fast wake up & connect
Run over 1 year with 2xAA
batteries
Next generation embedded Wi-Fi® network processor
connecting new classes of devices to the IOT
TI Information – Selective Disclosure TI Confidential – Maximum Restrictions
IoT with SimpleLink Wi-Fi
17
• CC3100 reference design
• Works stand alone with SimpleLinkTM
Studio or attached to TI MCU LaunchPads
• Embedded IPv4 TCP/IP stack
• IEEE 802.11 b/g/n
CC3100 BoosterPack
• CC3200 SW development platform
• Compatible with multiple BoosterPacks
• On board temp. sensor accelerometer
17
• Use your PC as a host processor
for application development
• Short development cycle
• Easy debug
• Accelerate development
on any MCU
+
Any MCU CC3100
CC3200 LaunchPad
SimpleLink Studio
TI Information – Selective Disclosure
Application Value Proposition Block Diagram
Home Automation
Home control over the internet using the
existing Wi-Fi network using a smart phone
MSP432 & CC3100 enable easy and cost
effective application designs with built in
Internet connectivity
Home Appliance
Remote diagnostics and service promotion
(e.g. filter replacement reminder)
CC3100 offloads all communication from the
appliance MCU and enables easy integration
with legacy systems
Access control
Easily deploy wireless remote access control
systems over the Internet or the Enterprise
network
MSP432 & CC3100 enable secured
communication for authentication and delivers
low power for battery operation
IoT End Applications
18
SimpleLinkTM
CC3100
Appliance
MSP432
Sensor
LCD
Push
Button
Sim
ple
Lin
kT
M
CC
3100
MS
P432 M
CU
Camera
NFC
Radio
BT/BLE
Sim
ple
Lin
kT
M
CC
3100
MS
P432 M
CU
TI Information – Selective Disclosure
Application Value Proposition Block Diagram
Security systems
Add wireless cameras to security systems.
Control and monitor the system over the
internet
CC3xxx supports best in class internet
security protocols for personal and enterprise
applications
Smart Energy
Use exiting home Wi-Fi network to read the
smart meter, thermostat control and smart
energy in home display
CC3100 enables secure Wi-Fi communication
on battery operated devices
Internet Gateway
Wi-Fi gateway or remote-control hub for low
power RF devices provides ubiquitous access
MSP432 & CC3100 can be easily integrated
with all TI wireless connectivity solutions
IoT End Applications
19
SimpleLinkTM
CC3100 MSP432TM
UI Metrology
BT/BLE
6LoWPAN
Zigbee
Sim
ple
Lin
kT
M
CC
3100
MS
P432 M
CU
Camera
LCD
Keypad
SimpleLinkTM
CC3200
MSP432 MCU
TI Information – Selective Disclosure
Application Value Proposition Block Diagram
Industrial Control
Add high speed wireless service access using
a phone or a tablet
CC3100 has on-chip secure HTTP server with
user configurable web page
for easy to use service interface
Smart plug / metering
Control lights and electric devices remotely,
and measure power consumption to save
energy
Leverage metrology & LCD features onMSP
devices and Wi-Fi on CC3100
Wireless Audio
Cost effective audio streaming from a
phone, a local network or the Internet
CC3200 has a I2S/PCM audio interface and
enables audio streaming protocols
IoT End Applications
20
SimpleLinkTM
CC31xx Application
MCU
Relay
Metrology
LCD
Sim
ple
Lin
kT
M
CC
3100
MS
P432 M
CU
CODEC
Push
Buttons
LCD
Sim
ple
Lin
kT
M
CC
3200
MS
P432
MC
U
TI Information – Selective Disclosure
WHY MSP432 MCUs?
Intelligent, fast sensing • Motion sensing, proximity,
fingerprint scan
• Signature analysis
• Fast processing from
multiple serial interfaces
Touch capability • High-performance, low-power
analog enables touch capability
Large amount of flash • Runs a large variety of wireless
connectivity stacks
Ultra-low power • Keeps system power low while
collecting / processing sensor data
IP (code) Protection • Preserves and secures customer’s
unique code and algorithms
21
Customers want to increase product capability with more
sensors, and display data in real time, without sacrificing
the portability enabled by ultra-low-power operation
MSP432™ MCUs: OPTIMIZED FOR INTERNET OF THINGS
WI-FI ENABLED SECURITY PANEL
INDUSTRIAL | PERSONAL ELECTRONICS | INTERNET OF THINGS
TI Information – Selective Disclosure
QVGA Display
ADC14 for
touch capability
SPI
ADC14 Microphone
Glass Breakage
Sensor
Signal
Conditioning ADC14
Temp
Sensor
(TMP006/7)
I2C
ADC14
Wi-Fi
(CC3100)
Speaker PWM
Signal
Conditioning
MSP432
MCUs
Intelligent, fast sensing • Motion sensing, proximity,
fingerprint scan
• Signature analysis
• Fast processing from
multiple serial interfaces
Touch capability • High-performance, low-power
analog enables touch capability
Large amount of flash • Runs a large variety of wireless
connectivity stacks
Ultra-low power • Keeps system power low while
collecting / processing sensor data
IP (code) Protection • Preserves and secures customer’s
unique code and algorithms
22
..
Motion
Sensor
WHY MSP432 MCUs?
WI-FI ENABLED SECURITY PANEL
MSP432™ MCUs: OPTIMIZED FOR INTERNET OF THINGS
INDUSTRIAL | PERSONAL ELECTRONICS | INTERNET OF THINGS
TI Information – Selective Disclosure
MSP432 IoT & Cloud Services
23
TI IoT solutions offer support for various cloud partners &
protocols via WiFi or Ethernet.
TI Information – Selective Disclosure TI Information – Selective Disclosure
Prototyping an IoT solution with modular open source hardware.
24
TI Information – Selective Disclosure
The LaunchPad Ecosystem
25
Everything you need to start microcontroller development
Hardware + Software + Community
Intuitive Software Teach your LaunchPad new tricks using easy-to-use software tools.
LaunchPad is supported by a wide range of software tools ranging from
beginner-level software to full-featured professional development
environments.
Engaged Community Share projects and ask questions with LaunchPad community
members and TI engineers located all over the world using online
forums and communications tools.
LaunchPads & BoosterPacks Development tools based on TI microcontrollers, including MSP430,
C2000, TM4C, & Hercules. They are affordable & include everything
you need to start microcontroller development! Plug-in modules for
the LaunchPad add new functionality including capacitive touch,
wireless, motor control, dynamic lighting, sensors & more.
TI Information – Selective Disclosure
• Low-cost LaunchPad kits from MSP430, TM4C, C2000,
Hercules & Connectivity starting at $9.99
• Open designs & modular hardware enables developers to
create complete TI-enabled system solutions
• Add power management, wireless capabilities, sensors,
displays & more to your TI MCU-based LaunchPad by
stacking multiple BoosterPacks. Ranging from $10-$60
• Hundreds of code examples to get up and running quickly
using intuitive software tools 26 www.ti.com/launchpad
TI Information – Selective Disclosure
LaunchPad is TI’s Common Denominator
27
MSP430 (Ultra-Low Power)
TM4C (ARM Cortex M4F)
C2000 (Real-time Control)
Hercules (Safety)
LaunchPad kits featuring TI MCUs & standardized BoosterPack
interface
Sub-1GHz NFC/RFID WiFi ZigBee BLE (CC110L) (TRF7970A) (CC3100) (CC2530) (CC2541)
Bluetooth (CC2564)
Wireless BoosterPacks enabled by TI transceivers
Thermocouple
BoosterPack
(ADS1118)
MEMS Temp Sensor
BoosterPack
(TMP006)
ePaper Display
BoosterPack
(RePaper)
LiPo Battery
BoosterPack
(BQ fuel gauge)
SensorHub
BoosterPack
(various sensors)
Additional BoosterPacks for analog, sensors, displays & more
from TI, Third Parties & Maker community.
Modular hardware enables developers to explore new ideas quickly
CC3200 (MCU + WiFi)
TI Information – Selective Disclosure
Quick demo recipes Enable customers to experience TI differentiation in minutes
WiFi
CC3100
BoosterPack
Thermocouple
BoosterPack
(ADS1118) WiFi-enabled Meat Probe
“iGrill”. Send a tweet when
temp exceeds threshold.
MSP430F5529
LaunchPad
= + +
NFC/RFID
(TRF7970A)
LiPo Battery
BoosterPack
(BQ fuel gauge) Create a battery-powered
WiFi-connected NFC/RFID
tag reader
CC3200 Wi-Fi
LaunchPad
= + +
Sub-1GHz
(CC110L)
MEMS Temp Sense
BoosterPack
(TMP006) Create a multi-point SubGHz
RF wireless temperature
sensor network
MSP430G2553
LaunchPad
= + +
TI Microcontroller TI Wireless TI Analog
TI Information – Selective Disclosure
BoosterPack pinout standard (ti.com/byob)
29
TI Information – Selective Disclosure
Grove Starter Kit for LaunchPad
32
• Access the Seeedstudio Grove ecosystem to create projects and
prototypes Features:
• Grove Base BoosterPack
• Relay
• Buzzer
• 4 Digit Seven Segment Display
• PIR Sensor
• Ultrasonic Range Finder
• Light Sensor
• Rotary Angle Sensor (Potentiometer)
• Sound Sensor
• Moisture Sensor
• Temperature/Humidity Sensor
• Grove Cables
• Grove Starter Guide/Manual
• Learn more from Seeed
• Available for $59USD
TI Information – Selective Disclosure
Energia IDE
• Fork of the Arduino/Wiring IDE & framework
• Flexible development options
– Use instantly from a browser @ dev.ti.com
– Download @ www.energia.nu
• Mac / Windows / Linux support
• Supports various TI LaunchPad dev kits
• Free & open source (git) // Support forum
• Many libraries have been ported:
– Wi-Fi & Ethernet (HTTP client, MQTT, JSON,
etc) + various cloud services
– Sensors, displays & more
• Import Energia projects to TI’s CCS IDE for
debug capability (set breakpoints, step
through Energia sketches, etc)
33
TI Information – Selective Disclosure
Energia Import in CCSv6
34
• Import an Energia sketch into Code Composer Studio v6 & pick up right where you left off.
• CCS introduces full debug capability & other professional features to further optimize your design.
• Modularize your code & leverage Energia APIs & libraries within CCS
• Enable “hybrid” projects that leverage low-level C, assembly & even abstracted Energia APIs
enabling a developer maximum flexibility during code development.
TI Information – Selective Disclosure
Develop with Energia on the Cloud
35
TI Cloud Resource Explorer
• Access all Energia code examples
• Instantly import Energia code into Code
Composer Studio Cloud
Code Composer Studio Cloud
• Create new, import, and export Energia
projects
• Compile & download Energia code to
MSP430 & MSP432 LaunchPads
• Terminal Monitor provides “printf-”level
of debug
• Identical experience to desktop
energia.nu
TI Information – Selective Disclosure
The Community Get support from TI & the online community!
36
• http://e2e.ti.com
• Supported 24/7 by TI engineers!
• Over 1 million Q&As available on-demand
• Get support on TI’s complete portfolio from
microcontrollers to analog to connectivity
• www.43oh.com
• Active & friendly online community & blog for the
LaunchPad ecosystem!
• ~20,000 active members
• ~60 forum users online at any given time!
• Home to much of the Energia community
TI Information – Selective Disclosure
Today, we’ll focus on Temboo
37
www.temboo.com/hardware/ti
TI Information – Selective Disclosure TI Information – Selective Disclosure
Demo #1 Creating a cloud-connected moisture sensor.
38
TI Information – Selective Disclosure
Creating a cloud-connected sensor.
39
MSP432 LaunchPad CC3100 Wi-Fi
BoosterPack
Grove Base BoosterPack
from Seeed Studio
Grove analog
moisture sensor
{REST API}
{REST API}
TI Information – Selective Disclosure TI Information – Selective Disclosure
Demo #2 Publishing sensor data to the cloud via MQTT.
40
TI Information – Selective Disclosure
Publishing data to the cloud with MQTT.
41
MSP432 LaunchPad CC3100 Wi-Fi
BoosterPack
Grove Base BoosterPack
from Seeed Studio
Grove analog
moisture sensor
MQTT Publish
TI Information – Selective Disclosure
What can you innovate in IOT
42
MSP432 + CC3100 provides
• Low-power & performance
• Integration
• Secure & Cost-effective
• Low power Wi-Fi
for next generation IOT application
What will you design next?
TI Information – Selective Disclosure
CC3100BOOST-MSP-EXP432P BUNDLE Order and develop your IoT application today
43
MSP432 LAUNCHPAD
$12.99
= $31.00 +
$19.99
CC3100 BOOSTERPACK
https://store.ti.com/cc3100boost-msp-exp432p.aspx
• Get started with MSP432 MCU: ti.com/msp432
• Official LaunchPad Portal: ti.com/launchpad
• Official SimpleLink site: ti.com/simplelink
Where to go next
TI Information – Selective Disclosure
How Get A Cloud Bundle For Free…
There are 2 ways for you to get a free Cloud Bundle:
CC3100BOOST + MSP-EXP432P LaunchPad
https://store.ti.com/cc3100boost-msp-exp432p.aspx
1. Cloud Bundle Quiz prize draw
- Answer all 5 questions in this quiz correctly and get the opportunity to
win one of five Coupon Codes valid for a Cloud Bundle. MyTI registration required.
www.ti.com/cloudbundlequiz
2. Farnell Roadtest
- Describe what you would do if you had the bundle. The highest 2 quality
applications will get the opportunity of trying one Cloud Bundle each!
Apply at: http://www.element14.com/community/roadTests/1425