This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Which configuration to use MPU6050 sensor for nrf5340pdk?

Hi,

I want to use my MPU6050 sensor for my nrf5340pdk board using I2C.

But I face some problems with including the sensor driver.

In my prj.conf file, I do the follwoing configurations:

CONFIG_I2C=y
CONFIG_I2C_1=y
CONFIG_SENSOR=y

If I try to add CONFIG_MPU6050=y and CONFIG_MPU6050_TRIGGER_NONE=y, I can not build the project.

If I delete the CONFIG_SENSOR=y and add CONFIG_MPU6050=y and CONFIG_MPU6050_TRIGGER_NONE=y, I can build my project, but I get a warning that says:

and I can not use the sensor...

Can you tell me which configuration to use in order to be able to use my sensor?

Thank you!

Parents Reply Children
Related