Hi All,
I’m new to Arduino,
But I’ve coded in the past on various platforms, just been a while so it’s slowly coming back to me.
Having an issue with the data output of the H3LIS331DL.
Correct me if I don’t understand correctly, but I’ve wired up the H3LIS331DL IMU and have it working with my Arduino RP2040, however, I’m getting odd output values for each axis, specifically negative int16_t values and it’s VERY jumpy.
The average rest values are int16_t (-5X, -5Y, 30Z) and again for the ConvertedToG values (-.3X, -.3Y, 1.5Z)).
At rest, the values fluctuate a lot for the base int16_t values (-/+10 range) and again for the ConvertedToG values (-/+0.25g range).
Am I missing something here? any help would be appreciated, thanks.
(I also may have supplied 3.3v to one of the MOSI/MISO pins :shock: )
Using mostly the example code
Settings;
baud rates match tried a few.
xl.setPowerMode(LIS331::NORMAL);
xl.setODR(LIS331::DR_50HZ);
xl.setFullScale(LIS331::LOW_RANGE);
xl.convertToG(100,x)
xl.convertToG(100,y)
xl.convertToG(100,z)