Hi everyone!
I'm working on project, that needs to be oriented in space. So, I have decided to use module with acceloremeter, gyro, and barometer.
Everything works fine with accelerometer/gyro X and Y axis, but I have same problems with Z axis.
Readings are different from that what I expected.
I'm using Arduino Leonardo. The problem must be related to code.
If you get here, I'm really thankful, because I know my English is tough to understand.
Thanks in advance!
I must admit, that I have also Pololu AltIMU-10 v5 module, and I'm receving same readings alike, so module cannot be damaged.
Maybe Z axis doesn't work, like I think it should? In my thoughts, it should work in way, like it is on this photo.
If my imagination about this is wrong, please, explain it to me how it should work.
jremington:
What are your expectations, and what are the readings?
If the Z axis is pointing up or down, it should be measuring the acceleration due to the Earth's gravity along Z.
Yeah, that were my expectations, but when I rotate it around Z-axis (at least Z-axis as photo above describes it)
readings aren't changing. Moreover, when I rotate it around X-axis, readings from Z-axis are changing the most.