ST FP-SNS-SMARTAG1 Quick Start Manual

Page 1
Version 1.2 (Nov 6, 2019)
Quick Start Guide
STM32Cube function pack for IoT node with dynamic NFC tag, environmental and motion sensors
(FP-SNS-SMARTAG1)
Page 2
Quick Start Guide Contents
2
Hardware and Software overview
Setup & Demo Examples Documents & Related Resources
STM32 Open Development Environment: Overview
Page 3
Hardware Overview
3
Sample implementations are available for:
1. STM32 Nucleo with expansion boards
NUCLEO-L053R8 + X-NUCLEO-NFC04A1 + X-NUCLEO-
IKS01A2 (or X-NUCLEO-IKS01A3)
2. STEVAL-SMARTAG1 evaluation boards
Page 4
Dynamic NFC/RFID tag IC expansion board
STM32 Nucleo with Expansion boards - Hardware overview (1/4)
4
X-NUCLEO-NFC04A1 Hardware Description
The X-NUCLEO-NFC04A1 dynamic NFC/RFID tag IC
expansion board is based on the ST25DV04K NFC Type V/RFID tag IC with a dual interface 4 Kbits EEPROM that also features an I²C interface. It can be powered by the pin of Arduino connector or directly by the received carrier electromagnetic field.
The X-NUCLEO-NFC04A1 expansion board is compatible
with the Arduino™ UNO R3 connector pin assignment and can easily be plugged onto any STM32 Nucleo board. Various expansion boards can also be stacked to evaluate different devices operating together with the dynamic NFC tag. The board also features an antenna with a 54 mm ISO
24.2 diameter, single layer, copper etched on PCB.
Arduino UNO R3 connector
Key products on board
ST25DV04KV
Dynamic NFC/RFID tag IC with 4-Kbit, 16-Kbit or 64-Kbit EEPROM, and Fast Transfer Mode capability
Latest info available at www.st.com
X-NUCLEO-NFC04A1
ST25DV04K
Printed Antenna
Page 5
LPS22HB
HTS221
Key Product 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 sensors expansion board
STM32 Nucleo with Expansion boards - Hardware overview (2/4)
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
LSM6DSL LSM303AGR
Latest info available at www.st.com
X-NUCLEO-IKS01A2
Page 6
Motion MEMS and environmental sensors expansion board
STM32 Nucleo with Expansion boards - Hardware overview (3/4)
6
Key products on board
LSM6DSO
MEMS 3D accelerometer (±2/±4/±8/±16 g) + 3D gyroscope (±125/±250/±500/±1000/±2000 dps)
LIS2DW12
MEMS 3D accelerometer (±2/±4/±8/±16 g)
LIS2MDL
MEMS 3D magnetometer (±50 gauss) +
LPS22HH
MEMS pressure sensor, 260-1260 hPa absolute digital output barometer
HTS221
Capacitive digital relative humidity and temperature
STTS751
Digital Temperature sensor
DIL 24-pin
Socket available for additional MEMS adapters and other sensors (UV index)
DIL 24-pin
X-NUCLEO-IKS01A3 Hardware description
The X-NUCLEO-IKS01A3 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
LPS22HH
LSM6DSO LIS2DW12
Latest info available at www.st.com
X-NUCLEO-IKS01A3
LIS2MDL
STTS751
Page 7
Modifications on the X-NUCLEO-NFC04A1 board
Important Hardware Additional Information
STM32 Nucleo with Expansion boards - Hardware overview (4/4)
7
Before connecting the X-NUCLEO-NFC04A1 to the X-NUCLEO-IKS01A2 (or X-NUCLEO-IKS01A3) expansion board through
the Arduino UNO R3 extension connector, remove the resistors R2, R3 and R4 on the X-NUCLEO-NFC04A1 board, as shown the Figure below.
Page 8
ST NFC SensorTag Platform
STEVAL-SMARTAG1 evaluation board - Hardware Overview
8
STEVAL-SMARTAG1 Hardware Description
STEVAL-SMARTAG1 is a flexible NFC Tracker evaluation board with sensors includes a comprehensive
software library and a sample application to monitor and log sensor data over NFC from an Android or iOS device. Ultra-low power sensor node evaluation board mounts an ST25DV NFC Tag, an STM32L0 ARM Cortex M0+, environment sensors (temperature, humidity and pressure) and motion (accelerometer) sensor.
The evaluation board features NFC harvesting to supply power and a battery cradle for a CR2032
battery.
STLQ15M18R
Low dropout linear
regulator
STM32L031K6U6
ARM Cortes-M0+ 32bit
Microcontroller
LIS2DW12
Ultra–low power 3-axis digital Accelerometer
LPS22HB
Low-power digital sensor for ambient Pressure
HTS221
Capacitive digital sensor for Relative Humidity and Temperature
ST25DV64K-JFR6D3
64Kbit dynamic
NFC/RFID tag
Page 9
FP-SNS-SMARTAG1
Software Overview
9
Software Description
FP-SNS-SMARTAG1 is an STM32Cube function pack which allows you to read the motion and environmental sensor data on your IoT node via an NFC enabled reader such as a mobile phone or a tablet. The package supports energy harvesting (enabled by NFC) and battery operated use cases.
This software, together with the suggested combination of STM32 and ST devices can be used, for example, to develop tracking, cold chain, medical, smart sensing, and smart home, city and building applications.
The software runs on an ultra-low power STM32L0 microcontroller and includes Product summary drivers for the Dynamic NFC tag and for the motion and environmental sensors.
Key features
Complete firmware to access data from an IoT node with dynamic
NFC tag, environmental and motion sensors
Ultra-low power operations, with support of both energy harvesting
and battery operated use cases
Compatible with the ST NFC Sensor application for Android/iOS, to
read and display sensor data
Sample implementation available for the STEVAL-SMARTAG1
evaluation board, and for the X-NUCLEO-IKS01A2 (or X-NUCLEO­IKS01A3) and X-NUCLEO-NFC04A1 expansion boards connected to a NUCLEO-L053R8 development board
Easy portability across different MCU families thanks to STM32Cube
Free user-friendly license term
Latest info available at www.st.com
FP-SNS-SMARTAG1
Overall Software Architecture
Page 10
Quick Start Guide Contents
10
Hardware and Software overview
Setup & Demo Examples Documents & Related Resources
STM32 Open Development Environment: Overview
Page 11
Mini USB
Setup & Demo Examples
HW prerequisites and setup with STM32 Nucleo board
1x Dynamic NFC/RFID tag IC expansion
board (X-NUCLEO-NFC04A1)
1x Motion MEMS and Environmental Sensor
Expansion Board (X-NUCLEO-IKS01A2 or X-NUCLEO-IKS01A3)
1x STM32 Nucleo Development Board
(NUCLEO-L053R8)
1x Android™ or iOS™ NFC device with ST
NFC Sensor app installed
1x PC with Windows 7 and above
1x USB type A to Mini-B USB cable
11
NUCLEO-L053R8
X-NUCLEO-IKS01A2
X-NUCLEO-NFC04A1
X-NUCLEO-IKS01A3
Page 12
Setup & Demo Examples
HW prerequisites and setup with ST NFC SensorTag (1/2)
12
1x ST NFC SensorTag kit (STEVAL-SMARTAG1)
It includes SWD connector with a 6pin flat
1x Android™ or iOS™ device with ST NFC Sensor app
installed
1x PC with Windows 7 and above
1x STM32-Nucleo or ST-Link programmer
1x USB type A to Mini-B USB cable for the ST-Link
Mini USB
ST NFC Dynamic Tag sensor node evaluation board
1 – RED (VDD) 2 – GREEN (SWCLK) 3 – BLACK (GND) 4 – YELLOW (SWIO) 5 – ORANGE (NRST) 6 – BLUE (USART2_TX)
6 5 4 3 2 1
Page 13
Setup & Demo Examples
HW prerequisites and setup with ST NFC SensorTag (2/2)
13
CN2
Remove
Jumpers
SWD
(Pin1)
In order to program the board you need to connect an
external ST-Link to the SWD connector on the cradles with a 6pin flat cable or directly.
The easiest way is to get an STM32-Nucleo board which
includes an ST-Link V2.1 programmer
Be sure that CN2 Jumpers are OFF and connect your STM32
Nucleo board to the ST NFC SensorTag through the provided cable paying attention to the polarity of the connectors. Pin 1 can be identified by a little circle on the PCB silkscreen (STM32 Nucleo and ST NFC SensorTag board).
NOTE
The battery must be present in order to use the ST-Link features (programming, debugging and serial communication)
SWD connections with 6-pin flat cable
Page 14
Setup & Demo Examples
SW prerequisites
14
STSW-LINK009
ST-LINK/V2-1 USB driver
STSW-LINK007
ST-LINK/V2-1 firmware upgrade
FP-SNS-SMARTAG1
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-L053R8 or STEVAL-SMARTAG1
ST NFC Sensor Application for Android/iOS available from Google Store / iTunes
Page 15
FP-SNS-SMARTAG1
Dynamic NFC tag, environmental and motion sensors (1/2)
15
Download & unpack
www.st.com/stm32ode-fp
www.st.com
1
Select FP-SNS-SMARTAG1
2
3
5
Compile/Flash and
Run the project
Android™/iOS™ smartphone and
ST NFC Sensor application
6
FP-SNS-SMARTAG1 package structure
4
Docs
BSP, HAL and drivers
Application example for Nucleo and STEVAL
.\Projects\STM32L053R8-Nucleo\Examples\SmarTag1
Page 16
FP-SNS-SMARTAG1
Dynamic NFC tag, environmental and motion sensors (2/2)
16
Download & unpack
www.st.com/stm32ode-fp
www.st.com
1
Select FP-SNS-SMARTAG1
2
3
5
Compile/Flash and
Run the project
Android™/iOS™ NFC device and
ST NFC Sensor application
6
FP-SNS-SMARTAG1 package structure
4
Docs
BSP, HAL and drivers
Application example for Nucleo and STEVAL
. \Projects\STM32L031K6-SmarTag1\Examples\SmarTag1
Page 17
FP-SNS-SMARTAG1
Using serial line monitor – e.g.Tera Term (1/2)
17
FP-SNS-SMARTAG1 for NUCLEO-LO53R8 with expansion boards
After the RESET you could
see the initialization phase
After autostartthe sensor
data are logged
These messages are written
when getting (before) and removing (after) the smartphone from the NFC tag. In particular, the new config is written if a new one it is set.
Serial line monitor for NUCLEO-L053R8 board
Page 18
FP-SNS-SMARTAG1
Using serial line monitor – e.g.Tera Term (2/2)
18
FP-SNS-SMARTAG1 for STEVAL-SMARTAG1
After the RESET you could
see the initialization phase
After autostartthe sensor
data are logged
These messages are written
when getting (before) and removing (after) the smartphone from the NFC tag. In particular, the new config is written if a new one it is set. After the sensor data are logged (Sync and Async events).
Serial line monitor for STEVAL-SMARTAG1 board
NOTE
UART is not available on STEVAL-SMARTAG1 using binary generated by System Workbench for STM32 (due to flash size constraints)
NOTE
For having the UART functionality on to STEVAL-SMARTAG1 board, it is necessary:
- To recompile the code uncommenting the line //#define SMARTAG_ENABLE_PRINTF on file: Projects\STM32L031K6­SmarTag1\Examples\SmarTag1\Inc\SMARTAG1_config.h
- To connect the BLUE (USART2_TX) cable to the RX pin on the STM32 Nucleo board
Page 19
FP-SNS-SMARTAG1
ST NFC Sensor Application for Android/iOS (1/3)
19
Settings: it is open when getting the smartphone near the NFC tag
the data to be logged can be selected (Pressure, Temperature, Humidity and Vibration) together the
time interval.
In addition to the default mode, there are two different logging mode that can be chosen:
Log only out of range [min, max] and accelerometer events:
the selected data will be logged only if a minimum or maximum threshold value will be matched (sync events).
logging only if a wake up or change of orientation events occurs if enabled (async events)
Force logging of one sample:
the current value of the selected data will be logged, after that the data logging re-starts with the previous
Settings
Enable/Disable the data to be logged
Writes the new settings
Enable/Disable the accelerometer events
Settings: log only out of range and accelerometer events
NOTE
With the “EXPORT DATA”, the data shown in the app page will be exported
Page 20
FP-SNS-SMARTAG1
ST NFC Sensor Application for Android/iOS (2/3)
20
Chart: Sensor plot
Chart:
Sensor Plot:
the plots of the selected data for the logging are shown.
• for any plot, with the “SHOW DETAILS” the values of the logged data are shown
Events:
if the "Log only out of range" has been selected, the accelerometer events are shown, if they
have been occurred.
Chart: Events
Chart: Sensor plot details
NOTE
With the “EXPORT DATA”, the data shown in the app page will be exported
Page 21
FP-SNS-SMARTAG1
ST NFC Sensor Application for Android/iOS (3/3)
21
Extremes
Extremes:
shows the maximum and minimum value obtained during the data logging of the selected
data.
Single Shot (only if the battery is not plugged):
the current values of the selected data are read from the tag and then displayed.
Single Shot
NOTE
With the “EXPORT DATA”, the data shown in the app page will be exported
Page 22
Documents & Related Resources
(1/2)
FP-SNS-SMARTAG1
DB3553: STM32Cube function pack for IoT node with dynamic NFC tag, environmental and motion sensors for STM32Cube – data
brief
UM2389: Getting started with the FP-SNS-SMARTAG1 dynamic NFC tag, environmental and motion sensors for STM32Cube – user
manual
Software setup file
X-NUCLEO-NFC04A1
Gerber files, BOM, Schematics
DB3301: Dynamic NFC/RFID tag IC expansion board based on ST25DV04K for STM32 Nucleo data brief
UM2235: Getting started with the X-NUCLEO-NFC04A1 NFC/RFID tag IC expansion board based on ST25DV04K for STM32 Nucleo
user manual
X-NUCLEO-IKS01A2
Gerber files, BOM, Schematic
DB3009: Motion MEMS and environmental sensor expansion board for STM32 Nucleo data brief
UM2121: Getting started with the X-NUCLEO-IKS01A2 motion MEMS and environmental sensor expansion board for STM32 Nucleo
user manual
22
All documents are available in the DESIGN tab of the related products webpage
Consult www.st.com for the complete list
Page 23
Documents & Related Resources
(2/2)
X-NUCLEO-IKS01A3
Gerber files, BOM, Schematic
DS3851: Motion MEMS and environmental sensor expansion board for STM32 Nucleo – data brief
UM2559: Getting started with motion MEMS and environmental sensor expansion board for STM32 Nucleo – user manual
STEVAL-SMARTAG1
Gerber files, BOM, Schematic
DB3533: NFC Dynamic Tag sensor node evaluation board– data brief
23
All documents are available in the DESIGN tab of the related products webpage
Consult www.st.com for the complete list
Page 24
Quick Start Guide Contents
24
Hardware and Software overview
Setup & Demo Examples Documents & Related Resources
STM32 Open Development Environment: Overview
Page 25
STM32 Open Development Environment
Fast, affordable Prototyping and Development
25
The STM32 Open Development Environment (STM32 ODE) is an open, flexible, easy and
affordable way to develop innovative devices and applications based on the STM32 32-bit microcontroller family combined with other state-of-the-art ST components connected via expansion boards. It enables fast prototyping with leading-edge components that can quickly be transformed into final designs
For further information, please visit 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)
Loading...