External sensor connection
7/22/19 4:40 PM

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 Votes)
RE: External sensor connection
7/24/19 7:02 AM as a reply to 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 Votes)
RE: External sensor connection
7/29/19 8:20 AM as a reply to 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 Votes)