01-16-2024 02:09 PM
Hi to all,
I'm starting to use BMA680 sensor, it is managed by a PIC18F27K42 and to connected to it over I2C bus. I'm using the official library, version v4.4.7. To set or get data from internal register, I linked the read and write routines of my I2C library. I notice that i must add a delay after every acces (read or write) to the register to get their content, I don't uderstand why this delay is nedded...someone of you could help me?
I get data using forced mode for the sensor and data seems correct (for example, if I compare temperature or humidity with other data measured with other sensors).
Thanks,
marilena
01-18-2024 03:21 AM
Hi Mari,
In read_field_data() function of BME680 sensor API v4.4.7, it has a loop that executes five times, and if the status register (0x1D) shows new data, it will read the sensor data and break the loop. If the status register (0x1D) shows no new data, it will be delayed for a period of time(the reference code used delay time 10ms) and continue to execute the loop.