Skip to content

Add accelerometer self-test function to LIS2DW12 driver#4

Merged
jerrysxie merged 5 commits intoOpenDevicePartnership:mainfrom
Ctru14:connortruono/accel-self-test
May 14, 2025
Merged

Add accelerometer self-test function to LIS2DW12 driver#4
jerrysxie merged 5 commits intoOpenDevicePartnership:mainfrom
Ctru14:connortruono/accel-self-test

Conversation

@Ctru14
Copy link
Collaborator

@Ctru14 Ctru14 commented May 9, 2025

Add accelerometer self-test function to LIS2DW12 driver.

Run accelerometer self-test with positive and negative sign based on STMicro specifications and example:
https://github.com/STMicroelectronics/STMems_Standard_C_drivers/blob/master/lis2dw12_STdC/examples/lis2dw12_self_test.c

Output with extra prints added:

Unbiased average: X=0.5859375, Y=-5.9570313, Z=1017.77344 (191 Attempts / 5 Samples)
Positive average: X=275.48828, Y=220.11719, Z=1628.9063 (177 Attempts / 5 Samples)
Negative average: X=-214.45313, Y=-262.3047, Z=616.1133 (186 Attempts / 5 Samples)
Accel self-test diffs in mGs (Expected between 70-1500):
Positive X=274.90234, Y=226.07422, Z=611.1328
Negative X=215.03906, Y=256.34766, Z=401.66016
Accel self-test passed!

RobertZ2011
RobertZ2011 previously approved these changes May 12, 2025
@jerrysxie jerrysxie enabled auto-merge (squash) May 14, 2025 00:33
@jerrysxie jerrysxie merged commit 93921e0 into OpenDevicePartnership:main May 14, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Embedded Controller May 14, 2025
@Ctru14 Ctru14 deleted the connortruono/accel-self-test branch May 14, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants