Quick Start Guide - Home - STMicroelectronics · Quick Start Guide Contents 2 FP-CLD-WATSON1: ......

72
Version 2.2 (March 22, 2018) Quick Start Guide STM32 ODE function pack for IoT node with Wi-Fi, NFC and sensors for vibration analysis, connected to IBM Watson IoT cloud (FP-CLD-WATSON1)

Transcript of Quick Start Guide - Home - STMicroelectronics · Quick Start Guide Contents 2 FP-CLD-WATSON1: ......

Version 2.2 (March 22, 2018)

Quick Start GuideSTM32 ODE function pack for IoT node with Wi-Fi, NFC and sensors for

vibration analysis, connected to IBM Watson IoT cloud

(FP-CLD-WATSON1)

Quick Start Guide Contents2

FP-CLD-WATSON1: STM32 ODE function pack for IoT node with Wi-Fi,

NFC and sensors for vibration analysis, connected to IBM Watson IoT

cloud

Setup & Demo Examples

Documents & Related Resources

STM32 Open Development Environment: Overview

Wi-Fi expansion board (X-NUCLEO-IDW01M1)

Hardware Overview (1/5) 3

X-NUCLEO-IDW01M1 Hardware Description

• The X-NUCLEO-IDW01M1 is a Wi-Fi evaluation board based

on the SPWF01SA module, which expands the STM32 Nucleo

boards.

• The CE, IC and FCC certified SPWF01SA module has an

embedded STM32 MCU, a low-power Wi-Fi b/g/n SoC with

integrated power amplifier and power management and an

SMD antenna

• The SPWF01SA module communicates with the STM32 Nucleo

developer board host microcontroller though an USART link

available on the Arduino UNO R3 connector.

• For a correct working operation of X-NUCLEO-IDW01M1

board, please verify that JP3 and JP4 are in position 1-2, and

that resistor R21 is not mounted.

Key Products on board

SPWF01SA: Wi-Fi module has an embedded STM32

MCU, a low-power Wi-Fi b/g/n SoC with integrated

power amplifier and power management and an SMD

antenna.

Latest info available at www.st.com

X-NUCLEO-IDW01M1

Printed Antenna

Arduino UNO R3 connector

ST morpho connector

STM32 Wi-Fi Frontend

Key Product on board

LSM6DS0: MEMS 3D accelerometer (±2/±4/±8 g) + 3D

gyroscope (±245/±500/±2000 dps)

LIS3MDL: MEMS 3D magnetometer (±4/ ±8/ ±12/ 16

gauss)

LPS25HB: 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)DIL 24-pin

Motion MEMS and environmental sensors expansion board

(X-NUCLEO-IKS01A1)

Hardware Overview (2/5)4

X-NUCLEO-IKS01A1 Hardware Description

• The X-NUCLEO-IKS01A1 is a motion MEMS and

environmental sensor evaluation board system.

• It is compatible with the Arduino UNO R3 connector

layout, and is designed around ST’s latest sensors.

Arduino UNO R3 connector

ST morpho connector**HTS221

LPS25HB

LSM6DS0

LIS3MDL

Latest info available at www.st.com

X-NUCLEO-IKS01A1

** Connector for the STM32 Nucleo Board

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)

DIL 24-pin

Motion MEMS and environmental sensor expansion board

(X-NUCLEO-IKS01A2)

Hardware overview (3/5)5

X-NUCLEO-IKS01A2 Hardware description

• The X-NUCLEO-IKS01A2 is a motion MEMS and

environmental sensor evaluation board system.

• It is compatible with the Arduino UNO R3 connector

layout, and is designed around ST’s latest sensors.

Arduino UNO R3 connector

ST morpho connector**

** Connector for the STM32 Nucleo Board

HTS221

LPS22HB

LSM6DSL

LSM303AGR

Latest info available at www.st.com

X-NUCLEO-IKS01A2

Industrial accelerometer adapter board (STEVAL-MKI168V1)

Hardware overview (4/5) 6Hardware Description

• The STEVAL-MKI168V1 is an adapter board in standard

DIL24 socket including IIS2DH accelerometer. This board

should be inserted in the DIL24 socket of the X-NUCLEO-

IKS01A1 sensor board. SW is also compatible with

STEVAL-MKI151V1 including LIS2DH12 accelerometer.

• The IIS2DH is high 12-bit accuracy and low power

consumption accelerometer especially for industrial

applications. It is included in ST 10-year longevity

commitment for the availability.

Key Product on board

IIS2DH

• Wide supply voltage from 1.71 to 3.6V

• Ultra low power consumption to 2 uA

• ±2g/±4g/±8g/±16g selectable full scales

• 3 operating modes: low-power, normal, high-

resolution mode

• 2 independent programmable interrupt generators

for free-fall and motion detection

• Embedded FIFO

Latest info available at www.st.com

STEVAL-MKI168V1

Dynamic NFC tag expansion board (X-NUCLEO-NFC01A1) (Optional)

Hardware Overview (5/5)7

X-NUCLEO-NFC01A1 Hardware Description

• The X-NUCLEO-NFC01A1 is a Dynamic NFC tag

evaluation board to allow expansion of the STM32 Nucleo

boards. It is compatible with the Arduino UNO R3 connector

layout and it is designed around the M24SR64-Y.

• The M24SR64-Y device is a dynamic NFC/RFID tag IC with

a dual interface. It embeds a 64 Kbit EEPROM memory. It

can be operated from an I2C interface or by a 13.56 MHz

RFID reader or a NFC phone

Key Product on board

M24SR64-Y

• M24SR64-Y Dynamic NFC/RFID tag IC

• NFC antenna: 31 mm x 30 mm 13.56 MHz double

layer inductive antenna etched on the PCB (ANT14)

• Compatible with STM32 Nucleo boards

• Equipped with Arduino UNO R3 connector

• Powered through the Arduino UNO R3 connectors

3 color LEDs for general purpose

Latest info available at www.st.com

X-NUCLEO-NFC01A1

FP-CLD-WATSON1

Software Overview 8

FP-CLD-WATSON1 Software Description

FP-CLD-WATSON1 is an STM32 ODE function pack. It can

connect an IoT node based on STM32 Nucleo to IBM Watson

IoT cloud, transmit sensor data and receive commands from

remote applications. The package is further extended with pre-

integrated algorithms for the processing of accelerometers data

which can be used to detect vibration from devices such as

motors, fans and pumps.

Key features

• Complete middleware to build applications based on Wi-Fi

connectivity, inertial and environmental sensors, and to connect

STM32 Nucleo to IBM Watson IoT Cloud

• Provide software interface to access temperature and humidity

sensor (HTS221), pressure sensor (LPS25HB), motion sensors

(LIS3MDL, LSM303AGR, LSM6DS0, LSM6DSL, IIS2DH) and to

write and read the RFID/NFC tag (M24SR64-Y)

• Integrated MQTT protocol middleware

• Integrated Fast Fourier Transform (FFT) algorithm for vibration

analysis

• Sample implementation available on board X-NUCLEO-

IKS01A1 or X-NUCLEO-IKS01A2, X-NUCLEO-IDW01M1, and

X-NUCLEO-NFC01A1 (optional), when both connected to

NUCLEO-F401RE

• Vibration analysis using accelerometer data (LMS303AGR or

IIS2DH) and time to frequency domain (FFT) software running

on STM32

• Easy access to IBM Watson IoT Cloud services for sensors

data visualization and processing.

Overall Software Architecture

FP-CLD-WATSON1

Latest SW available at www.st.com

Quick Start Guide Contents9

FP-CLD-WATSON1: STM32 ODE function pack for IoT node with Wi-Fi,

NFC and sensors for vibration analysis, connected to IBM Watson IoT

cloud

Setup & Demo Examples

Documents & Related Resources

STM32 Open Development Environment: Overview

Setup & Demo Examples

HW prerequisites (1/2) 10

• 1x Wi-Fi expansion board based on SPWF01SA module for STM32 Nucleo (X-NUCLEO-

IDW01M1)

• 1x Motion MEMS and environmental sensor expansion board for STM32 Nucleo (X-NUCLEO-

IKS01A1 or X-NUCLEO-IKS01A2)

• Note: the vibration analysis application is available only when using the X-NUCLEO-

IKS01A2 board, with or without the optional STEVAL-MKI168V1 board

• 1 x IIS2DH accelerometer adapter (STEVAL-MKI168V1) (optional)

• 1x Dynamic NFC tag expansion board expansion board for STM32 Nucleo (X-NUCLEO-

NFC01A1) (optional)

• 1x STM32 Nucleo development board (NUCLEO-F401RE)

• NFC-enabled Android™ device (optional)

• Windows 8/7 - Laptop/PC

• Wi-Fi Router or access to a Wi-Fi network

• 1 x mini USB cable

X-NUCLEO-NFC01A1

(optional)

NUCLEO-F401RE

Mini USB Cable X-NUCLEO-

IKS01A1/IKS01A2

X-NUCLEO-IDW01M1STEVAL-MKI168V1

(optional)

Setup & Demo Examples

HW prerequisites (2/2) 11

X-NUCLEO-IKS01A1

or X-NUCLEO-IKS01A2

X-NUCLEO-IDW01M1

X-NUCLEO-NFC01A1

NUCLEO-F401RE

STM32Nucleo

(ARM M4 core)

Sensors

Wi-Fi

Dynamic NFC

+

+

+

Setup & Demo Examples

SW prerequisites 12

• STSW-LINK009

• ST-LINK/V2-1 USB driver

• STSW-LINK007:

• ST-LINK/V2-1 firmware upgrade

• FP-CLD-WATSON1

• Copy the .zip file content into a folder on your PC. The package will contain source code example (Keil, IAR, System Workbench) based only on NUCLEO-F401RE

• Serial line terminal (e.g. TeraTerm, https://ttssh2.osdn.jp/ )

• A mobile application for Android/iOS capable to read/write NFC tag (i.e. ST25 NFC

https://play.google.com/store/apps/details?id=com.st.demo)

FP-CLD-WATSON1

Wi-Fi, NFC and sensors software for Cloud connectivity 13

Download & unpack

www.st.com

1

FP-CLD-WATSON1

Select Function Pack:

23

FP-CLD-WATSON1 package structure

Docs

BSP, HAL and drivers

FFT, NDEF, MQTT, Wi-Fi lib.

IBM Quickstart sample

application

4

5

Compile/Flash and

Run the project

6

www.st.com/stm32ode-fp

.\Projects\Multi\Applications\MQTT_IBM

NFC-enabled

smartphone

Visualize sensors data

Chrome

Web browser

Quickstart mode configuration

14

FP-CLD-WATSON1

Configure Wi-Fi Access Point Parameters via serial interface15

1. Configure a serial terminal with the following parameters to view log messages and write AP

parameters

• BaudRate : 460800

• Data : 8 bit

• Parity : none

• Stop : 1 bit

2. Press RESET button on STM32 Nucleo to trigger initialization phase. Keep pressed USER

button on the STM32 Nucleo to force read of Access Point parameters from serial interface

(if no parameters were written to NFC).

3. Access Point parameters are copied to FLASH memory; configuration is kept in memory

after each RESET of the board.

• Flow Control : none

• NewLine RX : CR

• NewLine TX : CR

• Local echo: Disabled

FP-CLD-WATSON1

Configure Wi-Fi Access Point Parameters via NFC (1/3)

(Optional)16

1. Write Wi-Fi Access Point parameters to X-NUCLEO-NFC01A1 using a mobile

application. E.g. with ST25 NFC mobile application:

Bring Android phone near

NFC tag

FP-CLD-WATSON1

Configure Wi-Fi Access Point Parameters via NFC (2/3)

(Optional)

2. Format of configuration string passed in step #5 above (please note

the trailing comma):

• ssid=YOUR_SSID, seckey=YOUR_WIFI_SECURITY_KEY, authtype=WPA2,

• In the example shown above:

• YOUR_SSID = STAST

• Seckey = 12345678

• Authtype = 2

• So configuration string is: ssid=STAST, seckey=12345678, authtype=2,

17

FP-CLD-WATSON1

Configure Wi-Fi Access Point Parameters via NFC (3/3)

(Optional)18

1. Press RESET button on STM32 Nucleo to trigger initialization phase

2. Keep pressed USER button on the STM32 Nucleo to force read of Access Point

parameters from NFC

3. Access Point parameters are copied to FLASH memory, and this configuration is kept in

memory

FP-CLD-WATSON1

Quickstart URL to visualize sensors data (1/3) 19

• IBM Quickstart URL to visualize sensors data is printed in serial terminal

FP-CLD-WATSON1

Quickstart URL to visualize sensors data (2/3) 20

• Paste Quickstart URL in Chrome web browser Paste the URL in

the web browser

One set of sensors

data are visualized at

a time, selected from

the list below i.e.

FFT_max_f

List of sensors

Data received

FP-CLD-WATSON1

Quickstart URL to visualize sensors data (3/3) 21

• Paste Quickstart URL in Chrome web browser

FFT max frequency data

visualized at time,

selected from list below

FFT max frequency,

its amplitude and Motor status

are sent to the Watson IoT

Cloud

Note: done only when the

X-NUCLEO-IKS01A2 board

is used

22

FP-CLD-WATSON1

LED2 indication

LED2 (Green Light) turned on

when connection with IBM

Watson IoT is established

LED2 blinking when sensors data

is being transmitted to IBM

Watson IoT

23

• IBM Quickstart web page can be opened automatically by nearing an NFC-enabled

mobile device

FP-CLD-WATSON1Use NFC to open automatically IBM Quickstart

(optional)

• FP-CLD-WATSON1 firmware can function properly if X-NUCLEO-NFC01A1

board is not present. In this case the user parameters (e.g. SSID and

password) need to be provided by using the serial terminal

• Both Quickstart and Registered modes can be used

24

FP-CLD-WATSON1

Usage without NFC board

NFC board

not present

User parameters

are provided

using the terminal

Registered mode configuration

Create dashboard in IBM Cloud

25

• “Registered mode” enables to connect your STM32 Nucleo and expansion

boards to IBM Bluemix Cloud and build scalable IoT applications based

IBM Watson IoT platform

• Create a free account at IBM Bluemix cloud by following instructions at

https://console.bluemix.net/registration/

• Once you have an IBM Bluemix user account, use your credentials to create

Internet of Things Platform Starter cloud foundry app

FP-CLD-WATSON1. Registered mode

Create Watson IoT Platform IBM Cloud

• Click on the xxxx-iotf-service link in your IBM Bluemix dashboard

27

FP-CLD-WATSON1. Registered mode

Launch Watson IoT Platform (1/3)

• Click on Launch to open IBM Watson IoT platform service

28

FP-CLD-WATSON1. Registered mode

Launch Watson IoT Platform (2/3)

FP-CLD-WATSON1. Registered mode

Create a device type (1/2)

• Click on Device then Device Types

FP-CLD-WATSON1. Registered mode

Create a device type (2/2)

• Select Device as Device Type, enter Device Type name then click on

Next

• Select BroweDevices in left side bar, then add your device by clicking

on Add Device

• Please note that you might have to create a device type first

31

FP-CLD-WATSON1. Registered mode

Add a device (1/4)

FP-CLD-WATSON1. Registered mode

Add a device (2/4)

• Select Auto-generated authentication token, then click on Next

FP-CLD-WATSON1. Registered mode

Add a device (3/4)

• Select Device Type, enter your Device ID, then click on Next

FP-CLD-WATSON1. Registered mode

Add a device (4/4)

• Take note of device credentials generated for your device

FP-CLD-WATSON1. Registered mode

Provision credentials to STM32 Nucleo

• Reboot the STM32 Nucleo board. When requested select Registered

mode. Enter device credentials as shown below

36

• Note: NFC Usage for device credential provisioning is optional. And it requires

usage of X-NUCLEO-NFC01A1 expansion board.

• Device credentials can be written to device together with Wi-Fi AP parameters via NFC by

using a mobile application. E.g. with ST25 NFC app:

Bring Android phone near

NFC tag

FP-CLD-WATSON1. Registered mode

Provision of device credentials using NFC (optional)(1/2)

• Format of configuration string passed in step #5 above (please note

the trailing comma):

• ssid=aplus, seckey=12345678, authtype=2, qos=0, username=use-token-

auth,password=astdevice, hostname=4zpjqk.messaging.internetofthings.ibmcloud.com,

devicetype= astdevice, orgid= 4zpjqk, deviceid=d1,ibmmode=registered,

• In the example shown above:

• YOUR_SSID = aplus

• Seckey = 12345678

• Authtype = 2

• Qos = 0

• Devicetype = astdevice

• Organization id = 4zpjqk

• Hostname = 4zpjqk.messaging.internetofthings.ibmcloud.com

• Device id = d1

• Ibm Watson mode = registered

37

IBM Watson IoT platform

service parameters

FP-CLD-WATSON1. Registered mode

Provision of device credentials using NFC (optional) (2/2)

• Press RESET button on STM32 Nucleo to trigger initialization phase

• Keep pressed USER button on the STM32 Nucleo to force read of

IBM Watson credentials from NFC

38

FP-CLD-WATSON1. Registered mode

Provision of device credentials using NFC (optional)

FP-CLD-WATSON1. Registered mode

Visualize messages received from STM32 Nucleo

• Browse devices, select your device ID, then click on Recent Events

tab

FP-CLD-WATSON1. Registered mode

Create dashboard to visualize data (1/4)

• Click on Boards in left bar, then Create New Board

FP-CLD-WATSON1. Registered mode

Create dashboard to visualize data (2/4)

• Name your board, then click on Add New Card

FP-CLD-WATSON1. Registered mode

Create dashboard to visualize data (3/4)

• Select Card Type, click on your device ID, then click on Connect data set.

• Select status as Event; select one among data set available in the

messages received, select type and unit of the data set, then click Next

FP-CLD-WATSON1. Registered mode

Create dashboard to visualize data (4/4)

• For each data set contained in the messages generated by STM32

Nucleo (Temperature, Humidity, etc.), a different card can be added

Registered mode configuration

Connect device to a NodeRED

application

44

FP-CLD-WATSON1. Registered mode

Connect device to Node-RED application

• Node-RED is a flow-based development tool for wiring together

hardware devices, APIs and online services (nodered.org)

• Node-RED is pre-integrated in Watson IoT Platform

FP-CLD-WATSON1. Registered mode

Connect device to Node-RED application

• Before connecting your devices to Node-RED, you have to generate

API keys in IBM Watson IoT dashboard

FP-CLD-WATSON1. Registered mode

Connect device to Node-RED application

• Select Standard Application, then click on Generate Key

• Note down API Key and Authentication token

FP-CLD-WATSON1. Registered mode

Connect device to Node-RED application

• Go back to your IBM Cloud dashboard and click on your app URL to

open Node-RED flow editor. It is optional to secure it using a

username/password

49

FP-CLD-WATSON1. Registered mode

Connect device to Node-RED application

• In Node-RED flow editor, select Manage Palette from menu option and install node-red-

dashboard in your Node-RED palette

• Select Import to import the flow described in file FFTSensorFlow.json that can be found

inside folder STM32CubeFunctionPack_WATSON1_F4_V2.1.1/Utilities/NodeRED

• Copy and paste the content of the JSON file to clipboard

50

FP-CLD-WATSON1. Registered mode

Connect device to Node-RED application

• Configure the Watson IoT platform node using following parameters:

• API key and authentication token

• Device Type

• Device ID

51

FP-CLD-WATSON1. Registered mode

Connect device to Node-RED application

FP-CLD-WATSON1. Registered mode

Connect device to Node-RED application

• In order to visualize the sensor data received from STM32 Nucleo in

Node-RED dashboard:

• Click on the Deploy button on top-right of the Node-RED application page

• Click launch icon in dashboard tab

FP-CLD-WATSON1. Registered mode

Connect device to Node-RED application

• A web based dashboard will appear. Sensor data from STM32

Nucleo is visualized in real time

FP-CLD-WATSON1. Registered mode

Connect device to Node-RED application

Application scenario

FP-CLD-WATSON1 - Condition monitoring data Wi-Fi to Cloud

Condition Monitoring Sensor to CloudPre-Integrated Application Packages 56

Vibration data pushed to IBM cloud over WIFI.

Condition levels for motor: “OK, Warning, Failure”Demo kit mounted on top of Motor/Pump/Fan

• Condition monitoring and preventive maintenance

• Vibration monitoring of motors, fans and pumps

• Identification of load unbalance and misalignment

• Alarming of equipment failures

Typical Use Case of Monitoring Industrial Motor57

Imbalance Looseness Output shaftGear Mesh

(or Gearbox)

t

• Displacement

• Speed

• Acceleration

• Acoustic noise

• Angular speed

• Torque

Mechanical vibration

Vibration

Capture

Connectivity

Processing

Secure

Connections

Functionality

Appendix

Offline Vibration Analysis

FP-CLD-WATSON1

Vibration Analysis Feature

• Vibration Analysis (VA), applied in an industrial or maintenance environment

aims to reduce maintenance costs and equipment downtime by detecting

equipment faults

• To analyze vibrations, accelerometer time domain signal is transferred to

frequency domain for more effective analysis. This is achieved with FFT

• Output of the FFT library

• Maximum frequency of detected vibration

• Amplitude for the frequency

• Motor Status (OK, warning, failure)

• Please consult the User Manual for detailed information about the usage of

FFT and the vibration analysis feature

59

FP-CLD-WATSON1

Usage of the FFT Library in Offline mode (1/5)

Actual settings bar

Selectable options

Status bar

60

Vibrations present in DUT can also be analyzed in Offline mode using the PC serial terminal without Wi-Fi Cloud Connection, by clicking the “F” or “f” button after pressing the RESET button on STM32 Nucleo board. See example of Main Menu hereafter

FP-CLD-WATSON1

Usage of the FFT Library in Offline mode (2/5)

• User can select option in the menu just by pressing its number on

PCs keyboard.

• options with number [1] to [7] – Status message in Status bar is displayed

• options with number [8], [9] – Program execution and results display

• Whenever user presses ‘m’ or ‘M’ key on the keyboard or blue ‘User

button’ on STM32Nucleo board during FFT graph plot or FFT table

plot, Main menu is displayed.

• Menu item [7]

• pressing ‘h’ or ‘H’ on the keyboard switch these two options in main menu:

• Enable HP filter / Disable HP filter (allows to enable or disable internal high

pass filter of AXL in iis2dh)

• Enable DC nulling / Disable DC nulling (allows to enable or disable nulling of 0

Hz part in the calculated frequency spectrum – earth gravity)

61

FP-CLD-WATSON1

Usage of the FFT Library in Offline mode (3/5) 62

FFT Graph

Max frequency in

spectrum and its value

Max f bin number

FFT spectrum example:

Electrodynamics shaker

vibration: f = 98 Hz, 1 g

Input signal

max-min value

DC nulling is on

FP-CLD-WATSON1

Usage of the FFT Library in Offline mode (4/5)

• Result of amplitude calculation using Flat Top window function is

displayed when HP Filter is enabled

63

Max frequency in

spectrum and its value

Max frequency value

calculated using

Flat Top window

function

Electrodynamics

shaker vibration:

f = 103 Hz,

0,9 g

• FFT table displays:

• Input signal data

• e.g. 256 values

• Calculated FFT data

• 128 values

• FFT graph data

• 51 values

• Measured AXL’s ODR

• Number of samples for FFT

• Values in the table are showing the complete information of input data

used for the FFT calculation and also the complete frequency

spectrum.

• The table can be used, for example, for detailed FFT result check /

analysis, FFT graph plot in external program (e.g. MS Excel) or for

input signal plot / verification

64

FP-CLD-WATSON1

Usage of the FFT Library in Offline mode (5/5)

Documents & Related Resources

FP-CLD-WATSON1:

• DB2819: – STM32 ODE Function Pack for IoT node with WiFi, NFC and sensors connected to IBM Bluemix® - data brief

• UM2007: Getting started with the software package for Wi-Fi, NFC and sensors for connectivity with IBM Bluemix® Cloud in FP-

CLD-BLUEMIX1 – user manual

• Software setup file

X-NUCLEO-NFC01A1:

• Gerber files, BOM, Schematic

• DB2353: Dynamic NFC tag expansion board based on M24SR for STM32 Nucleo – data brief

• AN4624: Getting started with the STM32 Nucleo and the M24SR expansion board X-NUCLEO-NFC01A1 – application note

• UM1793: Dynamic NFC tag expansion board based on M24SR for STM32 Nucleo – user manual

X-NUCLEO-IDW01M1:

• Gerber files, BOM, Schematic

• DB2726: Wi-Fi expansion board based on SPWF01SA module for STM32 Nucleo – data brief

• UM1973: Getting started with the X-CUBE-WIFI1 Wi-Fi functions and applications software expansion for STM32Cube – user

manual

• UM1765: Getting started with X-NUCLEO-IDW01M1 Wi-Fi expansion board based on SPWF01SA module for STM32 Nucleo –

user manual

65

All documents are available in the DESIGN tab of the related products webpage

Consult www.st.com for the complete list

Documents & Related Resources

X-NUCLEO-IKS01A1:

• Gerber files, BOM, Schematic

• DS10619: Motion MEMS and environmental sensor expansion board for STM32 Nucleo – product specification

• UM1820: Getting started with motion MEMS and environmental sensor expansion board for STM32 Nucleo – user manual

X-NUCLEO-IKS01A2:

• Gerber files, BOM, Schematic

• DB3003: Motion MEMS and environmental sensor expansion board for STM32 Nucleo – product specification

• UM2121: Getting started with the X-NUCLEO-IKS01A2 motion MEMS and environmental sensor expansion board for STM32

Nucleo – user manual

66

All documents are available in the DESIGN tab of the related products webpage

Consult www.st.com for the complete list

Quick Start Guide Contents67

FP-CLD-WATSON1: STM32 ODE function pack for IoT node with Wi-Fi,

NFC and sensors for vibration analysis, connected to IBM Watson IoT

cloud

Setup & Demo Examples

Documents & Related Resources

STM32 Open Development Environment: Overview

STM32 Open Development Environment

Fast, affordable Prototyping and Development 68

• The STM32 Open Development Environment (ODE) consists of a set of stackable boards

and a modular open SW environment designed around the STM32 microcontroller family.

www.st.com/stm32ode

Function Packs

(FP)

STM32Cube

development software

STM32 Nucleo

expansion boards

(X-NUCLEO)

STM32 Nucleo

development boards

STM32Cube

expansion software

(X-CUBE)

Power supply

through USB or

external source

Integrated debugging

and programming

ST-LINK probe

STM32 microcontroller

Complete product range

from ultra-low power to high-performance

ST morpho extension header

STM32 Nucleo

Development Boards (NUCLEO)

• A comprehensive range of affordable development boards for all the STM32

microcontroller series, with unlimited unified expansion capabilities and integrated

debugger/programmer functionality.

69

www.st.com/stm32nucleo

Arduino™ UNO R3 extension headers

Move/ActuatePower InteractConnect

Sense

STM32 Nucleo

Expansion Boards (X-NUCLEO)

• Boards with additional functionality that can be plugged directly on top of the STM32

Nucleo development board directly or stacked on another expansion board.

70

DIL24 support for

new devices

Motion MEMS sensors

Environmental sensors

www.st.com/x-nucleo

Example of STM32 expansion board (X-NUCLEO-IKS01A1)

STM32 Open Development Environment

Software components

• STM32Cube software (CUBE) - A set

of free tools and embedded software bricks

to enable fast and easy development on

the STM32, including a Hardware

Abstraction Layer and middleware bricks.

• STM32Cube expansion software

(X-CUBE) - Expansion software provided

free for use with the STM32 Nucleo

expansion board and fully compatible with

the STM32Cube software framework. It

provides abstracted access to expansion

board functionality through high-level APIs

and sample applications.

71

www.st.com/x-cube

• Compatibility with multiple Development Environments - The STM32 Open Development

Environment is compatible with a number of IDEs including IAR EWARM, Keil MDK, and GCC-based

environments. Users can choose from three IDEs from leading vendors, which are free of charge and

deployed in close cooperation with ST. These include Eclipse-based IDEs such as Ac6 System

Workbench for STM32 and the MDK-ARM environment.

Tools& IDEs

Application examples(e.g. basedonSTOpenSoftwareX)

Hardware

SampleapplicationsApplications

IAREWARM,Keil MDK-ARM,GCC-basedIDEs(e.g. Ac6System Workbenchfor STM32)

STM32CubeHardware Abstraction Layer (HAL)

STM32Cubemiddleware

Upper level middleware(e.g. STOpenSoftwareX)

Middleware

HardwareAbstraction

STM32Cubeexpansion middleware

STM32 Nucleo expansion boards (X-NUCLEO)

STM32 Nucleo developer boards

OPEN LICENSE MODELS: STM32Cube software and sample applications are covered by a

mix of fully open source BSD license and ST licenses with very permissive terms.

www.st.com/stm32cube

STM32 Open Development Environment

Building block approach 72

The building blocks Your need Our answer

Move /

Actuate

Connect

Power

Sense

Process

Inertial modules, magnetometer

Proximity, microphone

Pressure, temperature, humidity

Bluetooth LE, Sub-GHz radio

NFC, Wi-Fi, GNSS

Energy management & battery

General-purpose microcontrollers

Stepper motor driver

DC & BLDC motor driver

Audio amplifier

COLLECT

TRANSMIT

ACCESS

CREATE

POWER

PROCESS

Software

Secure microcontrollers

Touch controller

Operation Amplifier

Accelerometer, gyroscope

Translate

Industrial input / output

www.st.com/stm32ode