I received a delivery of Garden Breakout with bme280 and msa301 sensors. The bme280 works perfectly fine but I seem to have a problem with msa301. One of the axis is “locked” and does not provide any sensible accel reading. I tried couple of examples. Below is sample code I used and the output. Is the unit faulty or do I need to change the calibration of z-axis or try something else? Any advice will be be much appreciated.
Regards,
Pawel
Python code:
import time
import board
import adafruit_msa301
i2c = board.I2C()
msa = adafruit_msa301.MSA301(i2c)
while True:
print("%f %f %f" % msa.acceleration)
time.sleep(0.5)
Thank you for helping with this. Yes, it is Pimoroni MSA301 breakout mounted on Breakout Garden Mini. I’ve tested it on both 2C slots with Pimoroni’s library and the results are similar, with the exception that a different axis seems to be “locked”.
Ah - sounds like you might have a faulty sensor then :( If you drop an email to support@pimoroni.com they’ll be able to sort you out with a replacement!