cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DW12TR not returning values

YBend.1
Associate III

I am trying to run the ACCEL 10 CLICK based on the LIS2DW12TR on MicroPython on i2c protocol.

A perfectly working code of the ADXL345 is https://github.com/DFRobot/micropython-dflib/blob/master/ADXL345/user_lib/ADXL345.py

Taking this as a reference I tried to run the LIS2DW12TR by making change of respective registers. My code is as follows:https://github.com/Yadnik1/Accel-10-i2c ,however it returns only 0's an output of the three axes and does not sense any change on movement.Can someone please tell me where I may be going wrong.Thank you!!

References:

Accel 10 click:https://www.mikroe.com/accel-10-click

LIS2DW12TR data sheet: https://download.mikroe.com/documents/datasheets/lis2dw12_datasheet.pdf

10 REPLIES 10
YBend.1
Associate III

Yes Eleon,

I had tried asking it on the forums earlier but no response: https://forum.micropython.org/viewtopic.php?f=15&t=10990