Skip to content

Range/Scale and TapDetection #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
benlemond opened this issue Feb 3, 2020 · 5 comments
Closed

Range/Scale and TapDetection #16

benlemond opened this issue Feb 3, 2020 · 5 comments
Assignees

Comments

@benlemond
Copy link

In your documentation and in your library code you make a statement that the "Scale factor" for the threshold (THRESH_TAP) for tap detection changes based on the "Range" of the accelerometer. Can you explain how that works?

Our current impression is that the datasheet doesn't say that. It comments that the scale is a constant 62.5mG/LSB. We are interpreting "LSB" as the value set for the threshold.
(i.e. if the threshold is 0xFF, then that would be equal to 16G. -- 62.5 * 255 / 1000 = 16)

@siddacious siddacious self-assigned this Feb 4, 2020
@ladyada
Copy link
Member

ladyada commented Feb 5, 2020

checked DS - ben is correct it does not change with range (unlike other accels) so @siddacious we just need to change the comment?

@benlemond
Copy link
Author

benlemond commented Feb 5, 2020

@ladyada
Is that true, though? Maybe I have a skewed view of the functionality.

For instance:
I was testing the adxl43 on my desk using your library. I configured the scale to be 16G, the Datarate to be 100, and the Threshold to be 255. I understood this to be 16g. I wacked the table and the Threshold was reached. I then switched it to a 2G scale. I assumed that since the max range of the scale was 2G and the Threshold was at 16g that it should be impossible to reach the threshold. I wacked the table again and the event was set again. This tells me that either I have misinterpreted the functionality or the datasheet is wrong.

@benlemond
Copy link
Author

IMO I would assume that the equation would HAVE to change based on scale like your lib indicated, but obviously the DS disagrees or is wrong.

@ladyada
Copy link
Member

ladyada commented Feb 5, 2020

🤷‍♀ you could open a ticket with ADI - they'd know for sure :)

@benlemond
Copy link
Author

That is my next step. I wanted to check with you all first though. I thought, due to the comment in your library that you knew something we didn't :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants