1 / 26

STM32duino Workshop

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.

eli
Download Presentation

STM32duino Workshop

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. STM32duino Workshop Carlo Parata 24 November 2017

  2. 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

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

  4. How to address developers’ needs Secure • 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 Move / Actuate Sense Translate Connect Power

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

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

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

  8. 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

  9. STM32 Nucleo expansion boards 35expansion boards and growing… covering all the key functions Translate Sense Connect Power Drive Move Actuate 5 3 4 11 12

  10. Embedded Software offer STM32Snippets, Cube LL MicroPython, Espruino Arduino and mbed STM32Cube HAL Averageoptimization STM32 Portability High optimization Lowportability Lowoptimization ARM Portability Lowoptimization Architecture Portability

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

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

  13. Arduino IDE Verifybutton: compile a sketch Uploadbutton: flash a sketch New/ Open/ Save buttons: edit a sketch

  14. Install STM32 support files (1) • Copyhttps://raw.githubusercontent.com/stm32duino/BoardManagerFiles/master/STM32/package_stm_index.jsoninside “Additional Boards Manager URLs”

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

  16. STM32duino

  17. Arduino sketch Setuproutine: where all the initializations are done Looproutine: it represents the core of the application and it is called in an infinite loop

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

  19. 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) ST morpho connector** HTS221 LSM6DSL Arduino UNO R3 connector LSM303AGR LPS22HB DIL 24-pin Latest info available at www.st.com X-NUCLEO-IKS01A2 ** Connector for the STM32 Nucleo Board

  20. 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

  21. 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

  22. 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 atX-NUCLEO-6180XA1 Order Code: X-NUCLEO-6180XA1

  23. 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

  24. 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

  25. 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

  26. Thank you!

More Related