This is a placeholder topic for “Gravity: I2C LIS2DW12 Triple Axis Accelerometer Sensor (±2g/±4g/±8g/±16g)” comments.
The LIS2DW12 is an ultra-low-power high-performance three-axis linear accelerometer. It has user-selectable full scales of ±2g/±4g/±8g/±16g and is capable of measuring … read more
Read more
I have connected the i2c part of it and i could scan the address 19h from the device. Now i am trying to get the value at register 0x0F (Who_Am_I) to make sure i can access registers but the value i get is Dh (hex) it should be 44h (hex) base on datasheet info. Can anyone help with this? Thanks in advance
Hey Daryoush,
Seems like you might be trying to reinvent the wheel on this one! The Arduino Library doesn’t require reading and writing to registers manually, so you might have more luck with it:
What microcontroller are you using this with? With that in mind we can better suggest ways of doing what you’re after.
-James
HI James,
I am using Pi Pico micro python, i haven’t used Arduino before. They do have a library for Python for raspberry pi but its different to micro python. I have attached an image to show my code. in my next order i will add the Piico version of this it has library for Pi Pico micro python. Thanks
Regards,
Daryoush
Hey Daryoush,
No worries! I found it a little hard to find a library, and while it’s not from a documentation powerhouse like Adafruit or Sparkfun, it should work for what you’re after:
Take a look and tell me how you go!
-James
Hi James
Thanks for your help , the code is for micropython, I have copied the code and it works. Thank you
Regards
Daryoush