Distance2GoL distance data via I2C

Announcements

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User17
Level 1
Level 1
5 questions asked 10 sign-ins 5 replies posted

I would like to send distance data (what is visualized in the radar GUI) from the Distance2GoL via I2C to a different microcontroller. Basically, I need to correlate the distance that the Distance2GoL calculates to a voltage or just the value itself so that I can make sense of the data on a different MCU. How can I configure the Distance2GoL to send distance data via I2C? Can you help me accomplish this?

0 Likes
1 Solution
Pugitha_N
Moderator
Moderator
Moderator
100 solutions authored 250 sign-ins 50 solutions authored

Hello @User17,

Please take note that the Distance2GoL is capable of supporting SPI communication that allows you to retrieve data from the sensor. In order to read the distance using the communication libraries that are already available, you can install the Distance2GoL package by accessing the link provided below: https://www.infineon.com/cms/en/product/evaluation-boards/demo-distance2gol/?tab=~%27embedded_softwa...

Best Regards,

Pugitha

View solution in original post

0 Likes
3 Replies
Pugitha_N
Moderator
Moderator
Moderator
100 solutions authored 250 sign-ins 50 solutions authored

Hello @User17,

Please take note that the Distance2GoL is capable of supporting SPI communication that allows you to retrieve data from the sensor. In order to read the distance using the communication libraries that are already available, you can install the Distance2GoL package by accessing the link provided below: https://www.infineon.com/cms/en/product/evaluation-boards/demo-distance2gol/?tab=~%27embedded_softwa...

Best Regards,

Pugitha

0 Likes

How can I leverage those libraries to read data over SPI? If the libraries already exist, do I need to configure the firmware differently and flash the board? Or do I just need to find the SPI address of the board and then once I read/write to it, the distance data will already be loaded.

0 Likes
Pugitha_N
Moderator
Moderator
Moderator
100 solutions authored 250 sign-ins 50 solutions authored

Hello @User17,

The package includes not just the Firmware, but also the communication libraries used for connecting with the sensor. These libraries are meant to be employed at the host. A demo application is provided as well, which allows you to assess the sensor and measure distance, motion, and other parameters. You can learn more about the firmware by referring to the software guide at the link provided below: https://www.infineon.com/dgdl/Infineon-UM_Demo_Distance2GoL_Software_Guide-UserManual-v01_10-EN.pdf?...

Best Regards,

Pugitha

0 Likes