Stm32f401 Nucleo Board with ISM330DHCX and BlueNRG-M2SA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-28 4:47 AM - last edited on ‎2025-02-28 5:17 AM by Andrew Neil
Hi
I am trying to send data from the ISM330DHCX sensor to BLE (BlueNRG-M2SA) on the STM32F401 Nucleo board. I have installed the XCUBES_MEMS1 software and successfully tested the LED example via BLE. Now, I want to transmit the ISM330DHCX sensor data through a BLE app. Can anyone guide me.
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-26 9:42 PM
How to send sensor data from the ISM330DHCX to a Bluetooth app using the X-NUCLEO-BNRG2A1 interface with an STM32F401RE?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-27 4:27 AM - edited ‎2025-02-27 4:28 AM
Divide & conquer!
You have 2 entirely separate tasks here:
- How to use the ISM330DHCX IMU:
https://www.st.com/en/mems-and-sensors/ism330dhcx.html - How to use the X-NUCLEO-BNRG2A1:
https://www.st.com/en/ecosystems/x-nucleo-bnrg2a1.html
Get them working separately first, then bring them together.
The above Product Pages will point you to the resources for each one.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-28 5:15 AM
As stated in this similar thread, the key is: don't try to do everything at once!
You've got the sensor part working, so set that aside for now.
Now concentrate on just the Bluetooth part - without the sensor.
Find documentation & support for the BlueNRG-M2SA here:
https://www.st.com/en/wireless-connectivity/bluenrg-m2.html
Get familiar with the ST-provided examples.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-28 5:16 AM - edited ‎2025-04-28 1:58 AM
Almost the same question here:
https://community.st.com/t5/stm32cubeide-mcus/stm32f401-nucleo-board/td-p/777690
threads merged.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-01 12:58 AM
Hi
I have checked both the BlueNRG-M2SA and ISM330DHCX, and they are working fine. Now, how can I integrate the two and send data via a BLE app? Please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-01 2:04 AM
The same way that you'd integrate any two functions.
What have you tried?
Where are you stuck?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-02 8:32 PM
Hi
I have attached two codes. I have checked them, but I'm not receiving values in the BLE app. Could you let me know if any code modifications are needed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-03 1:22 AM
You said you have BLE working already?
So compare & contrast what's different between your working and non-working code.
Use the debugger; if that doesn't work (as it will affect the real-time performance), Instrument the code so that you can see what's happening in real time.
A complex system designed from scratch never works and cannot be patched up to make it work.
