cancel
Showing results for 
Search instead for 
Did you mean: 

sensor in X-CUBE-MEMS1

ThienNguyen0301
Associate II

I am using kit board stm32f411vet6 discovery, it has L3gd20 sensor and LSM303DLHC sensor. I want to ask if i can use x-cube-mem1 for L3gd20 and LSM303DLHC because i didn't find one. If x-cube-mem1 is not used then what other library or support software should i use. 

 
3 REPLIES 3
MOBEJ
ST Employee

Hello @ThienNguyen0301 , 

Both of the L3GD20 and LSM303DLHC sensors are already supported in the BSP  examples within the STM32CubeF4 firmware. Specifically, you can refer to the  BSP example for the STM32F411E-Discovery Board by downloading STM32CubeF4 firmware V1.28.0  ( https://www.st.com/en/embedded-software/stm32cubef4.html) .

Please check the BSP example projects (Projects\STM32F411E-Discovery\Examples\BSP) for implementations involving the L3GD20 and LSM303DLHC sensors. This  example will provide you with the necessary code and configurations to use these sensors effectively.

NB : You can utilize these examples to work with your sensors without needing to use the X-CUBE-MEM1 package.

BR

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.

@MOBEJ wrote:

You can utilize these examples to work with your sensors without needing to use the X-CUBE-MEM1 package.


This is, of course, true - but doesn't answer the question:

 


@ThienNguyen0301 wrote:

I want to ask if i can use x-cube-mem1 for L3gd20 and LSM303DLHC  


I don't see either of those sensors mentioned in either the X-CUBE-MEM1 Poduct Page or the UM1859 User Manual:

https://www.st.com/en/embedded-software/x-cube-mems1.html#overview

https://www.st.com/resource/en/user_manual/um1859-getting-started-with-the-xcubemems1-motion-mems-and-environmental-sensor-software-expansion-for-stm32cube-stmicroelectronics.pdf

 

@MOBEJ so are you saying that X-CUBE-MEM1 does not support these sensors?

@ThienNguyen0301 what is it, exactly, from X-CUBE-MEM1 that you want to use?

 

hello @Andrew Neil  , 

yes  , the X-CUBE-MEM1 supports only this feature as described here (X-CUBE-MEMS1 - Sensor and motion algorithm software expansion for STM32Cube - STMicroelectronics) : 

  • motion sensors: A3G4250D, AIS2DW12, AIS2IH, AIS328DQ, AIS3624DQ, ASM330LHH, ASM330LHHX, H3LIS331DL, IIS2DLPC, IIS2ICLX, IIS2MDC, IIS3DWB, ISM303DAC, ISM330DHCX, ISM330DLC, LIS2DH12, LIS2DTW12, LIS2DU12, LIS2DW12, LIS2MDL, LIS3MDL, LSM303AGR, LSM6DSL, LSM6DSO, LSM6DSO32, LSM6DSO32X, LSM6DSOX, LSM6DSR, LSM6DSRX, LSM6DSV16BX, LSM6DSV16X, LSM6DSO16IS
  • pressure sensors: ILPS22QS, ILPS28QSW, LPS22CH, LPS22DF, LPS22HB, LPS22HH, LPS27HHTW, LPS28DFW, LPS33HW, LPS33K
  • infrared sensor: STHS34PF80
  • temperature and humidity sensors: HTS221, STTS22H, STTS751
  • audio sensor: IMP34DT05

BR

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.