STmicroelectronics-logo

STmicroelectronics STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors (FP-SNS-MOTENV1)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-product

规格

  • Product Name: STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors(FP-SNS-MOTENV1)
  • Version: 3.2 (September 16, 2025)

产品信息

硬件结束view
The product includes sample implementations for STM32 Nucleo development boards plugged on STM32 Nucleo expansion boards. Key components include motion MEMS and environmental sensors expansion board and Bluetooth Low Energy Expansion Board.

软体说明
The software overview includes key features of FP-SNS-MOTENV1 with an overall software architecture provided. Latest information can be found at www.st.com.

产品使用说明

硬件设置
The hardware setup includes connecting the STM32 Nucleo development boards with expansion boards. Follow the specific hardware connections as described in the manual.

软件设置
Ensure you have the necessary software prerequisites for setup and demo examples. Refer to the manual for details on software installation and configuration.

Bluetooth Low Energy Board Setup
For optimal performance of the SPBTLE-RF module on the X-NUCLEO-BNRG2A1 expansion board, follow the recommended sequence of board stacking.

快速入门指南
STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors (FP-SNS-MOTENV1)

硬件和软件超过view

硬件结束view

Sample 实现适用于插入 STM32 Nucleo 扩展板的 STM32 Nucleo 开发板:

  • NUCLEO-U575ZI-Q (or NUCLEO-F401RE or NUCLEO-L476RG or NUCLEO-LO53R8) + X-NUCLEO-BNRG2A1 + X-NUCLEO-IKS4A1

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-product

Motion MEMS and environmental sensors expansion board

硬件结束view (1/5)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (2)

X- NUCLEO-IKS4A1 Hardware Description (1/2)

  • The X-NUCLEO-IKS4A1 is a motion MEMS and environmental sensor evaluation board system.
  • This expansion board allows application development with features like Sensor HUB,camera module integration and QVAR touch/ swipe gestures.
  • It is compatible with the Arduino UNO R3 connector layout, and is designed around ST’s latest sensors.

船上主要产品

  • LMS6DSO16IS: MEMS 3D accelerometer (±2/±4/±8/±16 g) + 3D gyroscope (±125/±250/±500/±1000/±2000 dps) with ISPU (Intelligent Processing Unit)
  • LIS2MDL:MEMS 3D 磁力计(±50 高斯)
  • LIS2DUXS12: Ultra low-power MEMS 3D accelerometer (±2/±4/±8/±16 g) with Qvar, AI, & anti-aliasing
  • LPS22DF:低功耗高精度 MEMS 压力传感器,260-1260 hPa 绝对数字输出气压计
  • SHT40AD1B: humidity sensor from Sensirion
  • STTS22H:低音量tage, ultralow-power, 0.5 °C accuracy temperature sensor (–40 °C to +125 °C)
  • LSM6DSV16X:MEMS 3D 加速度计 (±2/±4/±8/±16 g) + 3D 陀螺仪 (±125/±250/±500/±1000/±2000/±4000 dps),具有嵌入式传感器融合、AI、Qvar

Motion MEMS and environmental sensors expansion board

X-NUCLEO-IKS4A1 Hardware Description (2/2)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (3)..

低功耗蓝牙扩展板

硬件描述

  • X-NUCLEO-BNRG2A1 是一款低功耗蓝牙 (BLE) 评估和开发板系统,围绕 ST 基于 BlueNRG-2 的 BLUENRG-M2SP 低功耗蓝牙模块设计。
  • BLUENRG-M2SP 模块中托管的 BlueNRG-2 处理器通过 Arduino UNO R3 连接器上的 SPI 链路与 Nucleo 开发板上托管的 STM32 微控制器进行通信。

船上主要产品

  • BLUENRG-M2SP 低功耗蓝牙,通过 FCC 和 IC 认证(FCC ID:S9NBNRGM2SP,IC:B976C-BNRGM2SP),基于低功耗蓝牙®无线网络处理器 BlueNRG-2 的模块,符合 BLE v5.0 标准。
  • BLUENRG-M2SP integrates a BALF-NRG-02D3 balun and a PCB antenna. It embeds 32 MHz crystal oscillator for the BlueNRG-2.
  • M95640-RMC6TG 64 Kbit 串行 SPI 总线 EEPROM,带高速时钟接口

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (4)

重要硬件附加信息

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (5)

BlueNRG-2 库不适用于 X-NUCLEO-BNRG2A1 扩展板的 BLE 模块中加载的库存固件。

为此原因:

  • first of all, it is needed to solder on X-NUCLEO-BNRG2A1, if it is not soldered, a 0 Ohm resistor at R117.
  • Then you can use a standard ST-Link V2-1 with 5 jumper wires female-female together with STSW-BNRGFLASHER software tool (currently available only for Windows PC) in order to update the firmware of the BLE module of X-NUCLEO-BNRG2A1.

您需要将 X-NUCLEO-BNRG12A2 的 J1 引脚连接到 ST-Link V2-1 的引脚,如图所示,然后按照下一张幻灯片中显示的步骤进行操作。

具体来说,我们有以下联系:

   

J12

 

ST-Link V2-1

别针 1 1
别针 2 9
别针 3 12
别针 4 7
别针 5 15

重要硬件附加信息

STM32 Nucleo with Expansion boards – Hardware Overview 

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (6)

  1. install the ST BlueNRG-1_2 Flasher Utility and open it, then select the SWD tab
  2. Erase the flash memory of the BlueNRG-2 chip
  3. Download the Link Layer Only firmware for the BLE module from the following link DTM_LLOnly.bin
  4. Load the Link Layer Only firmware in the ST BlueNRG-1_2 Flasher Utility and then press the “Flash” button
  5. If you need to restore the stock firmware of the BLE module of X-NUCLEO-BNRG2A1, you can repeat the procedure using this firmware image DTM_Full.bin
  6. 如果您在更新过程中发现一些问题,您可以尝试重复关闭 X-NUCLEO-BNRG2A1 扩展板上的 J15 跳线的过程。

软件结束view

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (7)Latest info available at www.st.com FP-SNS-MOTENV1

软体说明

  • FP-SNS-MOTENV1 is an STM32Cube function pack, which lets you connect your IoT node to a smartphone via BLE and uses a suitable Android or iOS application, such as the ST BLE Sensor app, to view real-time motion and environmental (such as temperature, relative humidity, pressure) and sensor data.
  • This package also enables advanced functions such as the sensor data fusion and accelerometer-based real-time activity recognition, carry position, gesture recognition, motion intensity recognition and real-time information about the number of steps and cadence which the user just performed with the device, i.e. cell phone.
  • Together with the suggested combination of STM32 and ST devices, it can be used to develop specific wearable and environmental monitoring applications, or smart things applications in general.
  • The software is available also on GitHub, where the users can signal bugs and propose new ideas through [Issues] and [Pull Requests] tabs.

主要特色

  • Complete firmware to develop an IoT node with BLE connectivity, environmental and motion sensors.
  • Middleware libraries for sensor data fusion and accelerometer-based real-time activity recognition, carry position, gesture recognition, motion intensity recognition and pedometer
  • Compatible with ST BLE Sensor applications for Android/iOS, to perform sensor data reading, motion algorithm features demo and firmware update (FOTA)
  • Compatible with STM32CubeMX, can be downloaded from st.com and installed directly into STM32CubeMX
  • Easy portability across different MCU families, thanks to the STM32Cube
  • 免费、用户友好的许可条款

设置和演示 Examp莱斯

软件和其他先决条件

  • STSW-LINK004
  • STM32 ST-LINK 实用程序 (STSW-LINK004) 是一个用于编程 STM32 微控制器的全功能软件接口
  • FP-SNS-MOTENV1
  • 复制 .zip file 将固件包的内容复制到 PC 上的文件夹中。
  • 该软件包包含源代码 example (Keil, IAR, STM32CubeIDE) compatible with NUCLEO-F401RE, NUCLEO-L476RG, NUCLEO-U575ZI-Q, NUCLEO-L053R8
  • ST BLE Sensor Application for Android/iOS to download from Google Play Store / iTunes

设置结束view:STM32 Nucleo 及扩展板 

硬件先决条件

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (8)..

  • 1x Bluetooth Low Energy Expansion Board (X-NUCLEO-BNRG2A1)
  • 1x Motion MEMS and Environmental Sensor Expansion Board (X-NUCLEO-IKS4A1)
  • 1x STM32 Nucleo Development Board (NUCLEO-U575ZI-Q, NUCLEO-F401RE or NUCLEO-L476RG or NUCLEO-L053R8)
  • 1 个 Android 或 iOS 设备
  • 1x PC with Windows 7 and above
  • 1x USB type A to Mini-B USB cable for NUCLEO-F401RE, NUCLEO-L476RG and NUCLEO-L053R8
  • 1 条适用于 NUCLEO-U575ZI-Q 的 USB A 型转 Micro-B USB 线缆

For optimizing the performances of the SPBTLE-RF module present on X-NUCLEO-BNRG2A1 expansion board, it is necessary to follow this sequence of boards stack

设置结束view

只需几分钟即可开始编码(1/3)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (9)..STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (10)

  • \Projects\NUCLEO-F401RE\Applications\IKS4A1\MOTENV1
  • \Projects\ NUCLEO-F401RE\Examples\BootLoader
  • \Projects\ NUCLEO-L053R8\Applications\IKS4A1 \MOTENV1
  • \Projects\ NUCLEO-L476RG\Applications\IKS4A1 \MOTENV1
  • \Projects\ NUCLEO-L476RG \Examples\BootLoader
  • \Projects\ NUCLEO-U575ZI-Q\Applications\IKS4A1 \MOTENV1

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (11)使用预编译的二进制文件注册您的设备,或者重新编译代码并添加您的设备证书

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (12)

 

只需几分钟即可开始编码(2/3)

  1. 如何安装预编译的二进制文件:
    • For each applications, there is inside the package one folder called “Binary”STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (13)
    • 对于 NUCLEO-F401RE 和 NUCLEO-L476RG:
      • pre-compiled FP-SNS-MOTENV1 FW that could be flashed to a supported STM32 Nucleo using the STM32CubeProgrammer at the right position (0x08004000)
    • Important Note: this pre-compiled binary is compatible with the FOTA update procedure
      • pre-compiled FP-SNS-MOTENV1 + BootLoader FW that could be directly flashed to a supported STM32 Nucleo using the STM32CubeProgrammer or by doing “Drag & Drop”
      • Important Note: this pre-compiled binary is not compatible with the FOTA update procedure
    • For NUCLEO-L053R8:
      • pre-compiled FP-SNS-MOTENV1 could be directly flashed to a supported STM32 Nucleo using the STM32CubeProgrammer or by doing “Drag & Drop”.
    • 对于 NUCLEO-U575ZI-Q:
      • pre-compiled FP-SNS-MOTENV1 could be directly flashed to a supported STM32 Nucleo using the STM32CubeProgrammer or by doing “Drag & Drop”.
      • For the first installation, after the full flash erase (suggest procedure), use the STM32CubeProgrammer to set STM32 MCU user byte settings to use the bank 1 for flash the firmware and starts the application

只需几分钟即可开始编码(3/3)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (14)

How Install the code after compiling the project for NUCLEO-F401RE and NUCLEO-L476RG:

  • 使用您喜欢的 IDE 编译项目STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- 24
    • In the folder Utilities there is a scripts *.sh that makes the following operations:
    • 完全闪存擦除
    • 在正确的位置(0x08000000)刷入正确的 BootLoader
    • Flash the MOTENV1 firmware at the right position (0x08004000)
  • 这是用IDE编译的固件
  • 此固件兼容FOTA更新程序
    • Save a complete Binary FW that includes both MOTENV1 and the BootLoader
  • 该二进制文件可以通过 ST-Link 或“拖放”方式直接刷入支持的 STM32 开发板
  • 重要提示:此附加预编译二进制文件与 FOTA 更新程序不兼容

在执行*.sh脚本之前,需要编辑它以设置STM32CubeProgrammer的安装路径。

  • BootLoaderPath/BootLoader.bin and BinaryPath as input are required when execute *.sh script

闪存管理和启动过程

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (15)

低功耗蓝牙和传感器软件

FP-SNS-MOTENV1 for NUCLEO-F401RE / NUCLEO-L476RG / NUCLEO-U575ZI-Q – Serial line monitor (e.g.Tera Term) 

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (16)

  • Pressing the RESET User button on STM32 Nucleo board. You could see the initialization phase
  • When the boards are connected to an Android or iOS device, you can see what is transmitted via BLE

演示版amples ST BLE 传感器应用结束view

适用于 Android/iOS 的 ST BLE 传感器应用程序 (1/6)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (17)

适用于 Android/iOS 的 ST BLE 传感器应用程序 (2/6)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (18)

适用于 Android/iOS 的 ST BLE 传感器应用程序 (3/6)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (19)FP-SNS-MOTENV1 for NUCLEO-F401RE NUCLEO-L476RG NUCLEO-U575ZI-Q

适用于 Android/iOS 的 ST BLE 传感器应用程序 (4/6)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (20)

适用于 Android/iOS 的 ST BLE 传感器应用程序 (5/6)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (21)

  • For NUCLEO-U575ZI-Q, after the boot the MOTENV1 firmware receives the new firmware from the STBLESensor application, saves it on one memory bank (either bank1 or bank2) and performs a reboot executing the new code saved on the other memory bank. A program related to a specific region can run in that region only. The MOTENV1 application, however, can swap among different flash banks and each program can run in any flash memory bank.

适用于 Android/iOS 的 ST BLE 传感器应用程序 (6/6)

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (22)

笔记: If the mems expansion board used is not compliant with the firmware or not mounted

文件及相关资源

所有文档都可以在相关产品的设计选项卡中找到 web页 

FP-SNS-MOTENV1

  • DB2852: STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors – data brief
  • UM2016: Getting started with the STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors – user manual
  • 软件设置 file

X-核-BNRG2A1

  • 格柏 files、BOM、原理图
  • DB4086:基于 STM32 Nucleo 的 BLUENRG-M2SP 模块的低功耗蓝牙扩展板 - 数据简介
  • UM2667:基于 STM32 Nucleo 的 BLUENRG-M2SP 模块的 X-NUCLEO-BNRG2A1 BLE 扩展板入门指南 - 用户手册

X-NUCLEO-IKS4A1

  • 格柏 files、BOM、原理图
  • DB5091: Motion MEMS and environmental sensor expansion board for STM32 Nucleo – data brief
  • UM3250: Getting started with motion MEMS and environmental sensor expansion board for STM32 Nucleo – user manual

咨询 www.st.com 完整列表

STM32开放开发环境:结束view

STM32 开放式开发环境快速、经济的原型设计和开发

  • STM32 开放式开发环境 (STM32 ODE) 是一种开放、灵活、简单且经济实惠的开发方式,可用于开发基于 STM32 32 位微控制器系列以及其他通过扩展板连接的先进 ST 组件的创新设备和应用。它支持使用尖端组件进行快速原型设计,并可快速转化为最终设计。

STmicroelectronics-STM32Cube-function-pack-for-IoT-node-with-BLE-connectivity-environmental-and-motion-sensors (FP-SNS-MOTENV1)-fig- (23)

如需了解更多信息,请访问 www.st.com/stm32ode

  • © STMicroelectronics – 保留所有权利。STMicroelectronics 公司徽标是 STMicroelectronics 集团公司的注册商标。所有其他名称均为其各自所有者的财产。

常见问题解答

Q: How do I update the firmware for the BLE module?

A: To update the firmware for the BLE module, follow the steps outlined in the manual, which include using the ST BlueNRG-1_2 Flasher Utility and downloading the appropriate firmware image.

文件/资源

STmicroelectronics STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors (FP-SNS-MOTENV1) [pdf] 用户指南
NUCLEO-U575ZI-Q, NUCLEO-F401RE, NUCLEO-L476RG, NUCLEO-LO53R8, X-NUCLEOBNRG2A1, X-NUCLEO-IKS4A1, STM32Cube Function Pack for IoT Node with BLE Connectivity, STM32Cube, Function Pack for IoT Node with BLE Connectivity, IoT Node with BLE Connectivity, with BLE Connectivity, BLE Connectivity

参考

发表评论

您的电子邮件地址不会被公开。 必填字段已标记 *