06-16-2022 03:24 PM
Hi,
I've spent a few days trying to find why I can read TPH, but the ADC value for Gas was always zero.
The datasheet shows the 'run_gas' flag in register 71h (Ctrl_gas_1), bit postion '4'. This is incorrect - it should be bit position '5'.
Hope this saves some time for somebody!!!
-Phil
Solved! Go to Solution.
06-17-2022 04:57 AM
Hi phil-by-sea,
Could we know why do you think run_gas bit in 0x71 should be bit 5?
06-20-2022 11:10 AM
Hi Robin,
Because setting Ctrl_gas_1 register (0x71) to: (BME68X_RUN_GAS_MSK & 0x20).
Produces 'gas_r' readings which vary when I introduce and remove various gases.
Setting Ctrl_gas_1 register (0x71) to: (BME68X_RUN_GAS_MSK & 0x10).
Produces zero every time.
07-01-2022 12:04 PM
Hi phil-by-sea,
Let us check and give your feedback later.
07-01-2022 01:24 PM
No worries Robin,
I can see you're busy on the forums.....