External sensor connection
22.07.19 16:40

Hi everyone,

I'm using the Bosch BME680 and implementing an I2C communication. Files .c and .h are available on Github.com. My doubt is, in order to work with such a sensor, is it necessary to include these files in the XDK project file?

Or, does the comunication between XDK and this sensor work by using the extension bus example/functions only...without including external files?

Thanks for your help.


0 (0 Stimmen)
RE: External sensor connection
24.07.19 07:02 als Antwort auf Bruno Rodriguez.

Hello Bruno,

i do not think the extesnion bus example will be able to communicate correctly with the BME680 sensor. The programm is just a simple example to show the general use of the I2C interface of the XDK.

In order to communicate with the sensor you have to look into the data sheet. Usually these sensors work with the same basic concept. So i would assume you have to do some configuration (writing bit patterns to defined registeres of the sensor) like the rate the sensor should refresh the data or the accuracy.

To get data from the sensor you could programm a hard or software timer with a handling function which reads data from the sensor.

I hope this was helpfull.

Best regards,


0 (0 Stimmen)
RE: External sensor connection
29.07.19 08:20 als Antwort auf Christian Köhler.

Hi Bruno,

The official driver is available in https://github.com/BoschSensortec/BME680_driver
In order to evaluate it, you need to copy the source and interface files into your project and integrate them into the makefile. Furthermore you will need to write/adapt the read, write and delayms callbacks in order to read from the external bus (here is the point where you can use the read/write functions from the external bus).



0 (0 Stimmen)