Skip to main content
Explorer
November 11, 2024
Solved

Gyroscope L3GD20 on STM32-F411E Discovery Board

  • November 11, 2024
  • 3 replies
  • 1536 views

Hey,
I'm trying to print the data from the gyroscope L3GD20 of the STM32-F411E Discovery board ( Board Ref:MB1115B) using stm32CubeIDE.
Is there a library I can use for the gyroscope, Or does any one can guide me through creating the project as it is the first time I'm doing this.
Thanks !

    This topic has been closed for replies.
    Best answer by waclawek.jan

    In CubeF4, you will find BSP to the 'F411 Disco board including for the gyroscope; that in turn uses the L3GD20 BSP.

    In my downloaded CubeF4 rev.1.24 package there's a BSP subdirectory in the Examples using among other things the gyro. I don't know why is it not present in the github version, maybe you can try to find it in your version which should be part of CubeIDE (I don't use CubeIDE), or in the downloadable zip.

    JW

    3 replies

    Super User
    November 12, 2024

    It seems the L3GD20  is obsolete:

    AndrewNeil_0-1731407719222.png

     

    But, on the 'Documentation' tab, you can still find the datasheet and some Application Notes:

    https://www.st.com/en/mems-and-sensors/l3gd20.html#documentation

     

    It seems there is still support in the C-Driver-MEMS package: 

    https://www.st.com/en/embedded-software/c-driver-mems.html

    https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/l3gd20h_STdC

     

    Super User
    November 12, 2024

    In CubeF4, you will find BSP to the 'F411 Disco board including for the gyroscope; that in turn uses the L3GD20 BSP.

    In my downloaded CubeF4 rev.1.24 package there's a BSP subdirectory in the Examples using among other things the gyro. I don't know why is it not present in the github version, maybe you can try to find it in your version which should be part of CubeIDE (I don't use CubeIDE), or in the downloadable zip.

    JW

    Super User
    November 12, 2024

     


    @gammmmmm wrote:

    Thanks for replying! @waclawek.jan @Andrew Neil 
    I have found the necessary libraries in the cubeF4 packages, 


    New question moved to new thread.

    Technical Moderator
    November 12, 2024

    Hello @gammmmmm ,

    As you solved the original issue, please accept as solution the comment that answered your question and open a new thread for the new question.