You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am studying your project to design an electronic component, and I have some questions regarding the ADXL345 file.
Why do you multiply the rawValue by 4 in the __convertRawToDecimal method and return it as a int32_t data type? Is there a specific reason for that? I understand that the Tiva C series TM4C123GH6PM stores its values in two 8-bit registers, so it is necessary to read each one separately and store them in a int16_t variable. Wouldn't it be enough to use a variable of that data type?
I’m encountering some issues when I position my sensor at 90º. Sometimes, I receive full-scale values. Have you experienced this problem?
Congratulations on your project! It's been really helpful!
The text was updated successfully, but these errors were encountered:
I imagine that I multiplied the value by 4 because that got me close enough to the resting position reading as 1G or something. The ADXL345 has adjustable precision, maybe that plays a role as well.
Unfortunately I no longer have the hardware to try it out.
Hello, Truh! I hope you're doing well.
I am studying your project to design an electronic component, and I have some questions regarding the ADXL345 file.
Why do you multiply the rawValue by 4 in the __convertRawToDecimal method and return it as a int32_t data type? Is there a specific reason for that? I understand that the Tiva C series TM4C123GH6PM stores its values in two 8-bit registers, so it is necessary to read each one separately and store them in a int16_t variable. Wouldn't it be enough to use a variable of that data type?
I’m encountering some issues when I position my sensor at 90º. Sometimes, I receive full-scale values. Have you experienced this problem?
Congratulations on your project! It's been really helpful!
The text was updated successfully, but these errors were encountered: