Skip to main content
Associate
November 11, 2024
Solved

Gyroscope L3GD20 on STM32-F411E Discovery Board

  • November 11, 2024
  • 3 replies
  • 1537 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 !

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

Andrew Neil
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

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
waclawek.jan
waclawek.janBest answer
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

Andrew Neil
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.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
mƎALLEm
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.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."