BME68x_SensorAPI icon indicating copy to clipboard operation
BME68x_SensorAPI copied to clipboard

On my PIC hard ware, I need to put both bme68x_set_heatr_conf and bme68x_set_conf into while loop

Open KazukiOhno opened this issue 3 years ago • 0 comments

Hello, I'm not sure. This is true issue or just my side issue. I use PIC 18F27K42 contorler to utilize this BME680. And I refered examples/forced_mode)/forced_mode.c as main routine. However this forced_mode.c could not operate well.

For my hardware with PIC, I use bme68x_defs.h, bme68x.h and bme68x.c without any change. On the other hand, I also utilize examples/common/common.h and examples/common/common.c. I know I need to modify common.c to fit with my hardware. I don't use or ignore coins related routine. I modified I2C related function, delay and bme68x_interface_init. I suppose I could put correct modification without coins related functions.

I expected forced_mode.c shows SAMPLE_COUNT times. However, data from BME680 looks strange. Only temperature looks OK but humidity shows always 100%.

After investigating on my side, I found when I put both bme68x_set_heatr_conf and bme68x_set_conf function into while loop, then I could get correct value from BME680. Thus now I can use BME680 with PIC. But I don't know this information and/or method is correct or not.

Both functions are needed to get correct informaion on my system. If I put either function from while loop, I could not find correct value from BME680.

Thanks,

KazukiOhno avatar Sep 24 '22 08:09 KazukiOhno