I'm using ADXL 345 accelerometer with an Arduino Leonardo.
Everything looks fine but i am having problems with the 3-axis 1g-values.
When i set range to +-2g the 1g values should be like 255/256 but i receive this:
the 0g values are good too so i cannot just add a calculated offset. Does someone of you know why the z-axis values are that bad or how i can filter this deviation?
static int16_t read16(uint8_t reg)
return (int16_t)(i2cread() | (i2cread() << 8));
static uint8_t i2cread(void)
i appreciate your help