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

លក្ខណៈបច្ចេកទេស
- Product Name: STM32Cube function pack for IoT node with BLE connectivity, environmental and motion sensors(FP-SNS-MOTENV1)
- Version: 3.2 (September 16, 2025)
ព័ត៌មានអំពីផលិតផល
Hardware លើស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)
Hardware និង Software ចប់view
Hardware លើសview
Sampការអនុវត្តមានសម្រាប់ក្រុមប្រឹក្សាអភិវឌ្ឍន៍ STM32 Nucleo ដែលដោតនៅលើបន្ទះពង្រីក STM32 Nucleo៖
- NUCLEO-U575ZI-Q (or NUCLEO-F401RE or NUCLEO-L476RG or NUCLEO-LO53R8) + X-NUCLEO-BNRG2A1 + X-NUCLEO-IKS4A1

Motion MEMS and environmental sensors expansion board
Hardware លើសview (1/5)

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 magnetometer (±50 gauss)
- LIS2DUXS12: Ultra low-power MEMS 3D accelerometer (±2/±4/±8/±16 g) with Qvar, AI, & anti-aliasing
- LPS22DF៖ ឧបករណ៍ចាប់សញ្ញាសម្ពាធ MEMS ថាមពលទាប និងមានភាពជាក់លាក់ខ្ពស់, 260-1260 hPa absolute digital output barometer
- SHT40AD1B: humidity sensor from Sensirion
- STTS22H: វ៉ុលទាបtage, ultralow-power, 0.5 °C accuracy temperature sensor (–40 °C to +125 °C)
- LSM6DSV16X៖ MEMS 3D accelerometer (±2/±4/±8/±16 g) + 3D gyroscope (±125/±250/±500/±1000/±2000/±4000 dps) ជាមួយឧបករណ៍ចាប់សញ្ញាបង្កប់, AI, Qvar
Motion MEMS and environmental sensors expansion board
X-NUCLEO-IKS4A1 Hardware Description (2/2)

បន្ទះពង្រីកថាមពលទាបប៊្លូធូស
ការពិពណ៌នាផ្នែករឹង
- X-NUCLEO-BNRG2A1 គឺជាប្រព័ន្ធវាយតម្លៃ និងអភិវឌ្ឍន៍ Bluetooth Low Energy (BLE) ដែលត្រូវបានរចនាឡើងជុំវិញម៉ូឌុល BLUENRG-M2SP Bluetooth Low Energy របស់ ST ដែលមានមូលដ្ឋានលើ BlueNRG-2។
- ខួរក្បាល BlueNRG-2 ដែលរៀបចំនៅក្នុងម៉ូឌុល BLUENRG-M2SP ទំនាក់ទំនងជាមួយ microcontroller STM32 ដែលរៀបចំនៅលើក្រុមប្រឹក្សាអភិវឌ្ឍន៍ Nucleo តាមរយៈតំណភ្ជាប់ SPI ដែលមាននៅលើឧបករណ៍ភ្ជាប់ Arduino UNO R3 ។
ផលិតផលសំខាន់នៅលើយន្តហោះ
- BLUENRG-M2SP Bluetooth Low Energy, FCC និង IC បញ្ជាក់ (FCC ID: S9NBNRGM2SP, IC: B976C-BNRGM2SP) ម៉ូឌុលផ្អែកលើប្រព័ន្ធដំណើរការបណ្តាញឥតខ្សែ Bluetooth® Low Energy 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 serial SPI bus EEPROM ជាមួយនឹងចំណុចប្រទាក់នាឡិកាល្បឿនលឿន

ពត៌មានបន្ថែមផ្នែករឹងសំខាន់ៗ

បណ្ណាល័យ BlueNRG-2 មិនដំណើរការជាមួយកម្មវិធីបង្កប់ភាគហ៊ុនដែលត្រូវបានផ្ទុកនៅក្នុងម៉ូឌុល BLE នៃបន្ទះពង្រីក X-NUCLEO-BNRG2A1 ទេ។
សម្រាប់ហេតុផលនេះ៖
- 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.
អ្នកត្រូវភ្ជាប់ម្ជុល J12 នៃ X-NUCLEO-BNRG2A1 ទៅនឹងម្ជុលរបស់ 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

- install the ST BlueNRG-1_2 Flasher Utility and open it, then select the SWD tab
- Erase the flash memory of the BlueNRG-2 chip
- Download the Link Layer Only firmware for the BLE module from the following link DTM_LLOnly.bin
- Load the Link Layer Only firmware in the ST BlueNRG-1_2 Flasher Utility and then press the “Flash” button
- 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
- ប្រសិនបើអ្នកគួរតែស្វែងរកបញ្ហាមួយចំនួនក្នុងអំឡុងពេលដំណើរការអាប់ដេត អ្នកអាចព្យាយាមធ្វើបែបបទម្តងទៀតដោយបិទ J15 jumper នៅលើបន្ទះពង្រីក X-NUCLEO-BNRG2A1។
កម្មវិធីចប់view
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
- លក្ខខណ្ឌអាជ្ញាបណ្ណដែលងាយស្រួលប្រើ និងឥតគិតថ្លៃ
ដំឡើង និងសាកល្បង Examples
កម្មវិធី និងតម្រូវការជាមុនផ្សេងទៀត។
- STSW-LINK004
- STM32 ST-LINK Utility (STSW-LINK004) គឺជាចំណុចប្រទាក់កម្មវិធីដែលមានលក្ខណៈពិសេសពេញលេញសម្រាប់ការសរសេរកម្មវិធី STM32 microcontrollers
- FP-SNS-MOTENV1
- ចម្លង .zip file មាតិកានៃកញ្ចប់កម្មវិធីបង្កប់ទៅក្នុងថតឯកសារនៅលើកុំព្យូទ័ររបស់អ្នក។
- កញ្ចប់មានកូដប្រភព ឧample (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 ជាមួយនឹងបន្ទះពង្រីក
តម្រូវការជាមុនរបស់ HW

- 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)
- 1x ឧបករណ៍ 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
- ខ្សែ USB ប្រភេទ A ដល់ Micro-B 1x USB សម្រាប់ NUCLEO-U575ZI-Q
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)


- \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
ប្រើប្រព័ន្ធគោលពីរដែលបានចងក្រងជាមុនសម្រាប់ការចុះឈ្មោះឧបករណ៍របស់អ្នក ឬបញ្ចូលកូដឡើងវិញដោយបន្ថែមវិញ្ញាបនបត្រឧបករណ៍របស់អ្នក

ចាប់ផ្តើមសរសេរកូដក្នុងរយៈពេលតែប៉ុន្មាននាទីប៉ុណ្ណោះ (2/3)
- របៀបដំឡើងប្រព័ន្ធគោលពីរដែលបានចងក្រងជាមុន៖
- For each applications, there is inside the package one folder called “Binary”

- សម្រាប់ 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
- For each applications, there is inside the package one folder called “Binary”
ចាប់ផ្តើមសរសេរកូដក្នុងរយៈពេលតែប៉ុន្មាននាទីប៉ុណ្ណោះ (3/3)

How Install the code after compiling the project for NUCLEO-F401RE and NUCLEO-L476RG:
- ចងក្រងគម្រោងជាមួយ IDE ដែលអ្នកពេញចិត្ត
- In the folder Utilities there is a scripts *.sh that makes the following operations:
- ការលុប Flash ពេញលេញ
- បញ្ចេញពន្លឺ BootLoader ត្រឹមត្រូវនៅទីតាំងត្រឹមត្រូវ (0x08000000)
- Flash the MOTENV1 firmware at the right position (0x08004000)
- នេះគឺជាកម្មវិធីបង្កប់ដែលត្រូវបានចងក្រងជាមួយ IDE
- កម្មវិធីបង្កប់នេះគឺត្រូវគ្នាជាមួយនីតិវិធីធ្វើបច្ចុប្បន្នភាព FOTA
- Save a complete Binary FW that includes both MOTENV1 and the BootLoader
- ប្រព័ន្ធគោលពីរនេះអាចត្រូវបានបញ្ចេញដោយផ្ទាល់ទៅកាន់បន្ទះ STM32 ដែលគាំទ្រដោយប្រើ ST-Link ឬដោយធ្វើ "អូស & ទម្លាក់"
- ចំណាំសំខាន់៖ ប្រព័ន្ធគោលពីរដែលបានចងក្រងជាមុនបន្ថែមនេះគឺមិនត្រូវគ្នាជាមួយនីតិវិធីអាប់ដេត FOTA ទេ។
មុនពេលប្រតិបត្តិស្គ្រីប *.sh ចាំបាច់ត្រូវកែសម្រួលវាដើម្បីកំណត់ផ្លូវដំឡើងសម្រាប់ STM32CubeProgrammer ។
- BootLoaderPath/BootLoader.bin and BinaryPath as input are required when execute *.sh script
ការគ្រប់គ្រង Flash និងដំណើរការចាប់ផ្ដើម

ប៊្លូធូសថាមពលទាប និងកម្មវិធីឧបករណ៍ចាប់សញ្ញា
FP-SNS-MOTENV1 for NUCLEO-F401RE / NUCLEO-L476RG / NUCLEO-U575ZI-Q – Serial line monitor (e.g.Tera Term)

- 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
Demo Exampកម្មវិធីឧបករណ៍ចាប់សញ្ញា ST BLE ត្រូវបានបញ្ចប់view
កម្មវិធីឧបករណ៍ចាប់សញ្ញា ST BLE សម្រាប់ Android/iOS (1/6)

កម្មវិធីឧបករណ៍ចាប់សញ្ញា ST BLE សម្រាប់ Android/iOS (2/6)

កម្មវិធីឧបករណ៍ចាប់សញ្ញា ST BLE សម្រាប់ Android/iOS (3/6)
FP-SNS-MOTENV1 for NUCLEO-F401RE NUCLEO-L476RG NUCLEO-U575ZI-Q
កម្មវិធីឧបករណ៍ចាប់សញ្ញា ST BLE សម្រាប់ Android/iOS (4/6)

កម្មវិធីឧបករណ៍ចាប់សញ្ញា ST BLE សម្រាប់ Android/iOS (5/6)

- 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.
កម្មវិធីឧបករណ៍ចាប់សញ្ញា ST BLE សម្រាប់ Android/iOS (6/6)

ចំណាំ៖ If the mems expansion board used is not compliant with the firmware or not mounted
ឯកសារ និងធនធានពាក់ព័ន្ធ
ឯកសារទាំងអស់មាននៅក្នុងផ្ទាំង DESIGN នៃផលិតផលដែលពាក់ព័ន្ធ 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-NUCLEO-BNRG2A1
- Gerber files, BOM, គ្រោងការណ៍
- DB4086៖ បន្ទះពង្រីកថាមពលទាបប៊្លូធូសដោយផ្អែកលើម៉ូឌុល BLUENRG-M2SP សម្រាប់ STM32 Nucleo - ទិន្នន័យសង្ខេប
- UM2667៖ ការចាប់ផ្តើមជាមួយនឹងបន្ទះពង្រីក X-NUCLEO-BNRG2A1 BLE ដោយផ្អែកលើម៉ូឌុល BLUENRG-M2SP សម្រាប់ STM32 Nucleo - សៀវភៅណែនាំអ្នកប្រើប្រាស់
X-NUCLEO-IKS4A1
- Gerber 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 Open Development Environment លឿន តម្លៃសមរម្យ គំរូ និងការអភិវឌ្ឍន៍
- STM32 Open Development Environment (STM32 ODE) គឺជាវិធីបើកចំហ បត់បែន ងាយស្រួល និងតម្លៃសមរម្យ ដើម្បីអភិវឌ្ឍឧបករណ៍ និងកម្មវិធីប្រកបដោយភាពច្នៃប្រឌិតដោយផ្អែកលើគ្រួសារមីក្រូកុងទ័រ STM32 32-bit រួមបញ្ចូលគ្នាជាមួយសមាសធាតុ ST ទំនើបផ្សេងទៀតដែលភ្ជាប់តាមរយៈបន្ទះពង្រីក។ វាអនុញ្ញាតឱ្យការបង្កើតគំរូលឿនជាមួយនឹងសមាសធាតុឈានមុខគេដែលអាចបំប្លែងទៅជាការរចនាចុងក្រោយបានយ៉ាងឆាប់រហ័ស

សម្រាប់ព័ត៌មានបន្ថែម សូមចូលទៅកាន់ 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 |

