avsa242 / adxl345-spin

Parallax P8X32A/Propeller, P2X8C4M64P/Propeller 2 driver object for the Analog Devices ADXL34x-series 3DoF Accelerometers
MIT License
0 stars 0 forks source link

Bad accelerometer data when using SPI #8

Open avsa242 opened 3 years ago

avsa242 commented 3 years ago

When the SPI interface is chosen (P1), the accelerometer data (at least the Z-axis) reads slightly differently than when I2C is chosen. The Z-axis reading should be approx. 1g when the chip package top faces up, but reads approx 0.95g. Performing calibration seems to have little to no effect.

avsa242 commented 3 years ago

Update: This only affects 4-wire SPI. The WIP 3-wire code seems unaffected by this.