Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KazukiOhno opened this issue Sep 24, 2022 · 0 comments

Comments

@KazukiOhno
Copy link

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant