Has anyone managed to use the LSM303 accel sensor?
I tried using the adafruit library but that didn’t work.
Thanks
Hi,
On what board are you trying to use the LSM303?
SAMD platform is not supported by adafruit (yet?).
This means Sodaq Explorer and Arduino Zero / m0 are not supported.
The library should work on a Arduino Leonardo.
Regards,
Jan
It indeed is a Arduino Zero.
Do you know any library that works on the SAMD platform?
Regards,
Elia
does the LSM303 have the normal I2C address as specified in the Adafruit library?
Hi,
Thanks for pointing out this library.
I just tested it and can confirm it works on the Sodaq Explorer.
The address need to be changed to:
/=========================================================================
I2C ADDRESS/BITS
-----------------------------------------------------------------------/
#define LSM303_ADDRESS_ACCEL (0x1D)
#define LSM303_ADDRESS_MAG (0x1E)
/=========================================================================/
Let me know if this works for you.
Regards,
Jan
Thanks, that worked for me
Hi,
Is it confirmed that LSM303 on the SODAQ_NB-IoT board works with a Arduino m0?
I can’t get it to work and I am using the 0x1D& 0x1E address as in the specification.
/Henrik
Dear Henrik,
I just updated http://support.sodaq.com/sodaq-one/nb-iot_tutorials/
The board you have should have the new LSM303AGR
Kind regards,
Jan