Skip to content

thingy52 lis2dh12 sensor values too large #34500

@pabigot

Description

@pabigot

Running samples/sensors/lis2dh on a thingy52_nrf52832 produces this:

*** Booting Zephyr OS build zephyr-v2.5.0-2446-g9693fc8fee68  ***
Polling at 0.5 Hz
#1 @ 337 ms: x 2.566368 , y 8.809920 , z 3.868704
#2 @ 2342 ms: x 2.451456 , y 8.656704 , z 3.983616
#3 @ 4347 ms: x 2.489760 , y 8.695008 , z 3.907008

I can guarantee the sensor is not experiencing 10 gravities of acceleration. Running an independent application based on https://github.com/STMicroelectronics/STMems_Standard_C_drivers on the same hardware confirms these calculations are 10x higher than the sensor is producing.

Metadata

Metadata

Assignees

Labels

area: SensorsSensorsbugThe issue is a bug, or the PR is fixing a bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions