I'm using <TWI Scanner> example on nRF52 DK to find my sensor's address.
According to the sensor datasheet, the sensor's address is 0x21. However, <TWI Scanner> finds the address at 0x20.
Any idea, please?
I'm using <TWI Scanner> example on nRF52 DK to find my sensor's address.
According to the sensor datasheet, the sensor's address is 0x21. However, <TWI Scanner> finds the address at 0x20.
Any idea, please?
Update.
In sdk config, I changed SCL and SDA pins as pin 3 and 4. These 2 pins work well in <twi_master_with_twis_slave> example. Then, I used <TWI scanner> to scan my sensor address.
It shows "No device was found".
Problem Solved!
The code doesn't work due to the slave device and time delay issue. The sensor I'm using requires:
1) reset-->send continuous mode command-->read data (I didn't add reset command before)
2) meanwhile, for each read/write command, we must add a time delay (e.g. 5 ms) after the command
Thanks to everyone who helped me before! Cheers
Problem Solved!
The code doesn't work due to the slave device and time delay issue. The sensor I'm using requires:
1) reset-->send continuous mode command-->read data (I didn't add reset command before)
2) meanwhile, for each read/write command, we must add a time delay (e.g. 5 ms) after the command
Thanks to everyone who helped me before! Cheers