Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1416 Posts: 7560
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 78 Posts: 343
Hello everybody, I try using the XDK Extensionboard to read sensor data of a LIDAR (ToF sensor) via I2C. Does anyone have experience with this?
Thank you for your support
i worked with different sensors in combination of the XDK and an I2C bus before. The implementation of an I2C interface with the XDK is pretty easy. I recommend the "em_i2c.h" API from Silicon Labs.
In the internet you can find documentation and examples about the API. The example code you can find on this webstite:
If you have any furher questions feel free to ask.
Thank you for your prompt reply. Unfortunately, I am a beginner in using an API. I also have an API on my time-of-flight sensor to read out the sensor via the extension ports. Now I have to link the "em_i2c.h" to the API of the ToF sensor? is that the right approach? thanks for any kind of help.
I am just a little confused about what you told me right now. In the first post you mentioned the use case to connect an external sensor to the I2C bus of the XDK. In your latest response you are pointing out you already have an API to read data from the sensor. If that is correct, it seems you already have an API based on I2C functionallity. So if I may ask what API do you want to use and where did you get it from?
I have to apologize for the confusion. The sensor API was the VL53L0X_api which is included as a third party lib.
But I am now working with the Extensionport example project. With this it should be possible to write data to the I2C bus and to read from it. If I want to flash the project on the XDK, unfortunately, I get some error messages. Can you help me find a solution to this problem?