Page 1 of 1
I2C driver for LIS2HH12 3-axis accelerometer
Posted: Mon Oct 02, 2017 7:37 pm
by tuupola
MicroPython
I2C driver for STMicroelectronics LIS2HH12 3-axis accelerometer. This chip is also found in PySense and PyTrack boards. However unlike the Pycom driver this one has permissive MIT license.
Re: I2C driver for LIS2HH12 3-axis accelerometer
Posted: Sun Feb 11, 2018 3:11 pm
by tuupola
Since I am big believer in reuseable code I just updated this driver to use
unified sensor properties and units as described by CircuitPython design guide. TL;DR default unit is
m/s^2 instead of
g and values are accessed via
sensor.acceleration property instead of
sensor.acceleration() method.
Re: I2C driver for LIS2HH12 3-axis accelerometer
Posted: Mon Feb 12, 2018 12:21 am
by mattyt
Nice, I've just bought an LIS2DH12 which looks drop-in compatible. I'll give your code a try when I receive my device!
Re: I2C driver for LIS2HH12 3-axis accelerometer
Posted: Mon Feb 12, 2018 4:58 am
by tuupola
Let me know how it goes. If it works I mention it in docs.