STM32duino Workshop Carlo Parata 24 November 2017.

Slides:



Advertisements
Similar presentations
MM Player Supervised by: Dr. Luai Malhis. Prepared by: Mustafa Assaf & Mahmoud Musa.
Advertisements

Gateway Agent Product & Architecture
With the Wi-Fi LaunchPad
The Developer Summit at ARM® TechCon™ 2013 MBED Hello World Lab 1 mbed registration and hello world!
Intel Galileo Gen 2 & Grove Seeed Starter Kit Gen 1
Flatiron Mobile Device Security Monitor Thomas Horacek Lucas Greve.
ECE 4220 Real Time Embedded Systems Final Project Presentation Spring 2014 University of Missouri Columbia By: Michael Brauch Temperature Data Logger.
How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2014.
Intel ® Research mote Ralph Kling Intel Corporation Research Santa Clara, CA.
Introduction.
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Keil Products in a Single Slide
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. RX Family Overview Introduction A.
Embedded Bluetooth Stack Dean Camera Project Supervisor: John Devlin.
Daniel Pickem and Rowland O’Flaherty 12/04/2012 Mechatronics (ME 6405) Student Lecture On Arduinos *Some slides courtesy of Eoin Brazil
Typical Microcontroller Purposes
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
BBBK Programming Notes Rudra Dutta CSC , Fall, 2013.
Example title for notes and handouts
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
Jim Ng 15/1/2014 CENG4480 TUTORIAL 1. ABOUT ME Current MPhil Student supervised by Prof. Mak You can find me at Rm116 in SHB
Senior Design Weekly Update GROUP MAY1633 9/28/2015.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Introducing the Arduino Uno Presented by Dave Mawdsley, DACS Member, Linux SIG Member (wiring, programming and running a cute traffic light simulation)
SensiBLE Getting Started Your Idea - Worth come true.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
Tago Tago IoT DAY GRAIN BIN LEVEL? The epicenter of middleware
EDUSAFE FINAL CONFERENCE June, 2016
Introduction to the ARM mbed Platform– A Hands-on Course
The new Surface Pro The most versatile laptop
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Developing IoT endpoints with mbed Client
Prototyping with Microcontrollers and Sensors
Dr. Kyung Eun Park Summer 2017
Home automation using Arduino & ‘PIR sensor’
Lecture 1: Getting Ready
Atoll Solutions PVT LTD
cyBorg 1.0 Project by Team ROBOTECH The Green PAFIANS
Outline Introduction Standards Project General Idea
IzoT™ Device Stacks March 2014.
Monitoring Robot Prepared by: Hanin Mizyed ,Abdalla Melhem
Rapid Prototyping for Microcontrollers
Arduino Development for Beginners
CP220x The Industry’s Smallest Ethernet Controller
Lecture 1: Getting Ready
Fastdroid Produced by : Firas Abdalhaq Mohammad Amour Supervised by : Dr. Raed Alqadi.
Arduino and Design of Embedded Applications
Arduino and Grove LET’S START.
Roller Coaster Design Project
Understanding Wi-Fi Direct in Windows 8
Today’s Smart Sensors January 25, 2013 Randy Frank.
Phoenix Family Overview Test with Confidence.
Controlling Sensors Efficiently with MCUs
Arduino AWS Prototype Arduino based AWS John KW Chan
Introducing the Arduino Uno
Banyule Coding Club: Learn Arduino Richard Counsel Malcolm Macleod Watsonia Library - June 2018 Reference materials here ->
IzoT™ Routers and Network Interfaces
Controlling Sensors Efficiently with MCUs
Manual Robotics ..
Lecture 1: Getting Ready
Software Setup & Validation
Arduino Leonardo Setup
Introduction to Arduino
Lab #1: Getting Started.
Arduino and Grove LET’S START.
Introduction to arduino
Presentation transcript:

STM32duino Workshop Carlo Parata 24 November 2017

Agenda Meet STM32 Open Development Environment Meet Nucleo-F401RE STM32duino Examples Blinking LED Motion and Environmental Sensors Expansion Board Proximity and Light Sensors Expansion Board

ST’s solutions for IoT 3 131 27 35 INTEGRATION Common SW platform Cloud provider SDKs supported, enabling sensor-to-cloud platforms 131 SW packages from drivers to full application examples and mobile applications INTEGRATION 27 STM32 Nucleo development boards Covering the broad portfolio of STM32 MCU families ST & 3rd-party form-factor boards Cloud JAM SensiBLE Bluecoin 35 STM32 Nucleo expansion boards (X-NUCLEO) Offering peripheral functions Sensor Tile IoT Discovery Modular hardware Form factor boards

How to address developers’ needs Offer a large range of microcontrollers from low power to high performance to meet application needs Ensure that extra functions are covered in the main domains Sensing, connectivity, power management, motor control and audio Ease the Development Environment to allow fast development and production Support of multiple IDEs Free-of-charge tools and embedded software to enable fast and easy development Process Secure Move / Actuate Sense Translate Connect Power

The real IoT lifecycle Device Integrated Final prototype boards device Market Device prototype Integrated boards Final device Idea Application Test SW Field test Commercial SW Secure device decommissioning or physical replacement Secure device update Secure data streaming & actuation Secure provisioning Secure authentication Secure SW download & installation Networking protocols & Cloud API support Secure e2e link

Fast, affordable prototyping & development Developer community and support Compatibility with free and commercial Development Environments Safety & Security Sensing Cloud Connectivity Mobile app prototyping & cloud prototyping Sensors – motion, environment, light .. Ultra-low power connectivity Analog and mixed signal components Power and energy management Pre-integrated ST components and SW Motor drivers and actuators Function packs Set of function examples for some of the most common application use cases  STM32 Nucleo development boards STM32 Nucleo expansion boards STM32Cube expansion software STM32Cube development software

An application-oriented approach Your need The building blocks Our answer Processor boards (Nucleo 64) Expansion boards (X-Nucleo) Function Packs (FP) Sensors Motion Environmental Bluetooth LE Sub-GHz NFC Motor controller Power manager Microcontroller OpAmp Connectivity Translate Motor drivers Power Processing Application software and development tools Integrated Development Environment and middleware Ready-to-use application-oriented package

STM32 Nucleo development boards 27 development boards and growing… in two flavors (Processing & Security) STM32 complete product range from ultra-low power to high performance

STM32 Nucleo expansion boards 35 expansion boards and growing… covering all the key functions Sense 5 Connect Power Drive 3 Move Actuate Translate 4 11 12 Motion & environmental sensors Proximity sensor Microphone BLE Wi-Fi Sub-GHz NFC Power management LED boost Motor drive Actuator Audio amplifier OpAmp

Embedded Software offer STM32Snippets, Cube LL MicroPython, Espruino STM32Cube HAL Arduino and mbed Optimization vs portability High optimization Low portability Average optimization STM32 Portability Low optimization ARM Portability Low optimization Architecture Portability

STM32 Nucleo Flexible board power supply : through USB or external source Integrated ST-Link/V2-1: mass storage device flash programming 2 push buttons, 2 color Leds Morpho extension headers : direct access to all MCU I/Os Arduino extension connectors : easy access to add-ons One STM32 MCU flavor with 64 pins

STM32duino Freely available Arduino support for STM32 MCUs Run your sketches on STM32! Active online community

Arduino IDE Verify button: compile a sketch Upload button: flash a sketch New/ Open/ Save buttons: edit a sketch

Install STM32 support files (1) Copy https://raw.githubusercontent.com/stm32duino/Board ManagerFiles/master/STM32/package_stm_index.json inside “Additional Boards Manager URLs”

Install STM32 support files (2) Go to “Boards Manager” and install the “STM32 Cores”

STM32duino

Arduino sketch Setup routine: where all the initializations are done Loop routine: it represents the core of the application and it is called in an infinite loop

Nucleo-F401RE: Blinking the LED Compile the sketch Upload the binary on the Nucleo-F401RE See the led blinking

Motion MEMS and environmental sensors expansion board X-NUCLEO-IKS01A2 Hardware description The X-NUCLEO-IKS01A2 is a motion MEMS and environmental sensor expansion board for the STM32 Nucleo. It is compatible with the Arduino UNO R3 connector layout, and is designed around the LSM6DSL 3D accelerometer and 3D gyroscope, the LSM303AGR 3D accelerometer and 3D magnetometer, the HTS221 humidity and temperature sensor and the LPS22HB pressure sensor. The X-NUCLEO-IKS01A2 interfaces with the STM32 microcontroller via the I²C pin, and it is possible to change the default I²C port. Key products on board LSM6DSL MEMS 3D accelerometer (±2/±4/±8/±16 g) + 3D gyroscope (±125/±245/±500/±1000/±2000 dps) LSM303AGR MEMS 3D magnetometer (±50 gauss) + MEMS 3D accelerometer (±2/±4/±8/±16 g) LPS22HB MEMS pressure sensor, 260-1260 hPa absolute digital output barometer HTS221 Capacitive digital relative humidity and temperature DIL 24-pin Socket available for additional MEMS adapters and other sensors (UV index) HTS221 LSM6DSL ST morpho connector** LPS22HB LSM303AGR Arduino UNO R3 connector DIL 24-pin Latest info available at www.st.com X-NUCLEO-IKS01A2 ** Connector for the STM32 Nucleo Board

Combine Nucleo-F401RE with ST MEMS and environmental sensors shield (1) Plug ST MEMS and environmental sensor shield on Nucleo-F401RE board Compile and run the data logging demo Look at the source code to understand the usage of the sensor libraries

Combine Nucleo-F401RE with ST MEMS and environmental sensors shield (2) Plug ST MEMS and environmental sensors shield on Nucleo-F401RE board Compile and run the free fall detection demo Look at the source code to understand the usage of the sensor libraries for the hardware features of LSM6DSL

Proximity, gesture and ambient light sensor expansion board Hardware Description The X-NUCLEO-6180XA1 is proximity and ambient light sensor evaluation and development board system, designed around VL6180X, a device based on ST’s FlightSenseTM, Time-of- Flight technology. The VL6180X communicates with the Arduino board host microcontroller through an I2C link available on the Arduino UNO R3 connector. It was successfully tested on Arduino STAR OTTO and Arduino Due. Arduino UNO R3 connectors Key Products on board VL6180X proximity, gesture and Ambient Light sensor (ALS) Possibility to add 3x VL6180X external satellite boards (order code: VL6180X-SATEL – 2 satellites) VL6180X VL6180X satellites Latest info available at X-NUCLEO-6180XA1 Order Code: X-NUCLEO-6180XA1

Proximity and ambient light sensor shield Time of Flight proximity sensor 0-20cm range 1mm resolution Ambient Light Sensor I2C interface Possibility to add 3x VL6180X external satellite boards Utilizzo: robotica, velocità angolare pale

Combine Nucleo-F401RE with ST proximity and light sensor shield (1) Plug ST proximity and light sensor shield on Nucleo- F401RE board Compile and run the X_NUCLEO_6180XA1_HelloWorld sketch Look at the source code to understand the usage of the FlightSense libraries

Combine Nucleo-F401RE with ST proximity and light sensor shield (2) Plug ST proximity and light sensor shield on Nucleo- F401RE board Compile and run the X_NUCLEO_6180XA1_Gesture_Swipe1 sketch Look at the source code to understand the usage of the FlightSense libraries

Thank you!