Skip to main content
Visitor II
November 18, 2022
Question

Not able to get any data from ISM330DHCX sensor on STM32 Nucleo F401RE

  • November 18, 2022
  • 3 replies
  • 869 views

Hello,

I set up on STM32CubeX my F401RE to realize the motion FX algorithm (find rotation euler angles, quaternion) with my ISM330DHCX dil 24 socket (Steval mkv207v1) sensor (AccGyr).

But can't get any data on Unicleo. May be that some configurations are bad. If you have some experience in this type of project mith this sensor I am a taker.

I share my project with you.

Have a good day.

    This topic has been closed for replies.

    3 replies

    ST Employee
    December 8, 2022

    Hello, I tried your code and it works perfectly with only one minor but important change - if you have in your HW setup SA0 pin of the ISM330DHCX connected to VDD (like I do), you need to change the I2C address to high. See attached picture of the file/function/fixed value highlighted.

    0693W00000WKY6LQAX.png

    ST Employee
    December 8, 2022

    The comment

    /* SA0 = GND */

    is not valid anymore when I changed it from L to H, now it should be

    /* SA0 = VDD */

    but it's not important, just wanted to mention it to avoid misunderstanding. When you change it in in CubeMX and regenerate the code, the comment will change automatically to VDD.

    BDa S.1Author
    Visitor II
    December 12, 2022

    Thanks a lot for your answer Petr. I will change this immediatly.

    Have a good day.