Accelerometer orientation
-
Is the orientation in the photo in line with the following line of code? M955 P0 I56 C"spi.cs4+spi.cs3" I'm getting some weird spikes on my Z axis.
-
@SonnyD1 from your picture, it looks like the accelerometer Z direction is pointing in the -Y direction, and X is in the +X direction. So according to https://docs.duet3d.com/User_manual/Connecting_hardware/Sensors_Accelerometer#orientation
The first digit specifies which machine direction the Z axis of the accelerometer chip (usually the top face of the chip) faces, as follows: 0 = +X, 1 = +Y, 2 = +Z, 4 = -X, 5 = -Y, 6 = -Z. The second digit expresses which direction the X axis of the accelerometer chip faces up, using the same code.
Your code should be:
M955 P0 I50 C"spi.cs4+spi.cs3"
Ian
-
@droftarts I read it but I didn't completely understand it. I knew after looking at the data that it was reading wrong. Thank you for the help.