2024-08-22 02:53 PM
HI,
I am using VL53L1 sat board, can i configure I2C of the sensor to 1MHz? How should i do it? Could u please guide me on this matter?
Thank you
Solved! Go to Solution.
2024-08-26 07:29 AM
In the X-cube ToF1, the software is limited to 400,000. But don't worry. Just generate the code and you will see - in main.c - the I2C initialization.
just change that one line - it's all it takes.
2024-08-22 03:05 PM
First we have two VL53L1 parts, and they are sligthly different as to which code they run.
But either way when you download the API code, there will be examples.
In main.c of the examples there is a bit of code:
2024-08-23 10:03 AM
Hi John,
Thaks for the response. I am actually using X CUBE TOF!1 project. can you tell me how to change the I2C speed there to 1MHZ?
Thank you
2024-08-26 07:29 AM
In the X-cube ToF1, the software is limited to 400,000. But don't worry. Just generate the code and you will see - in main.c - the I2C initialization.
just change that one line - it's all it takes.
2024-08-26 07:55 AM
Hi John,
Thanks for the response. I believe this wont work for Nucleo- F401re since its I2C limit is upto 400khz right?
2024-08-26 08:54 AM
It works just fine. I do it all the time. For some reason the XCube code refuses to allow the 1M, but it's been working for me for years. And I had one demo with 9 sensors, which ran for weeks and weeks. Not an issue.
I've reported it as a bug, but the STM32 guys don't seem too interested in changing it.