Arduino nano iot 33 & Fermion LIS2DW12 Triple Axis Accelerometer

userHead Lasha8 2024-12-01 05:16:34 96 Views2 Replies

Hi.I am trying to make a fall detection and parkinson detection project.I use arduino nano iot 33 and Fermion: LIS2DW12 Triple Axis Accelerometer sencor.I have tried everything but i always get this message:''Communication failed, check the connection and I2C address setting when using I2C communication.'' My connection is like this

Vcc→3,3V
Gnd→Gnd

SCL→D12
SDA→D11 
SDO→GND

CS→GND

5,1kOhm pull up resistor from SDA→3,3V
5,1kOhm pull up resistor from SCL→3,3V

 

And i use the examples given from the library.

I always get the same message.

Also when i scan with i2c scanner i get this message:"A device was found in adress 0x60
a device was found in adress 0x6A.But from what i read in this sencors datasheet when i connect SDO to gnd i use 0x18 adress,so that must have been the adress found.
Thanks in advance



 

2024-12-03 16:46:04

Check for wiring problems

userHeadPic yiqing.guan
2024-12-01 20:54:35 The LIS2DW12 datasheet indicates that the I2C address is determined by the SDO pin:SDO connected to GND → Address: 0x18.SDO connected to Vcc → Address: 0x19.If your I2C scanner detects devices at 0x60 and 0x6A instead of 0x18 or 0x19, it implies either:There’s another device on the I2C bus.The LIS2DW12 is not responding correctly. userHeadPic lia.ifat