2024-03-13 05:52 AM
i want to interface vl53l5cx sensor with nordic Nrf52840 board but in stm project there are too many register read and write so just i want few register for get the distance from tof sensor so which minimum registers i have to configure ? and initialize of sensor rd multi function used so it is not working properly provide me support
2024-03-14 04:18 AM
@Bhavik_Patel wrote:in stm project there are too many register read and write so just i want few register
That doesn't really make sense - if you can read one register, you can read any number of registers!
Once you've got the basic register read & write working, the number of reads & writes shouldn't be an issue!
2024-03-14 07:19 AM
The register map is our most asked question. And we don't hand it out. There are nearly 1000 registers and although I'm sure you could write the driver, you would hate us forever.
The first thing the Initialization does is download an 80K bunch of firmware. That should give you some idea of the complexity.
I know it's big, and I'm sorry about that. Some of the smaller MCUs just are not big enough.
But it's a powerful sensor, and you get a ton of data from it.
We worked pretty hard to make the integration into your MCU as simple as possible. Actually, it was written for the Cellphone market and has a few abstraction layers that Linux programmers seem to love. It could be smaller, but not by much.
Try taking the software package as it is. You will need to re-write the Platform.c file to interface to your MCUs I2C bus. As delivered, that file doesn't do anything. But other than calling the functions that initialize and start ranging, you don't have to do much, and we have lots of examples to help.
I'm sure you could write a smaller driver, but wouldn't you rather concentrate on what to do with the data?
Good luck,
- john
2024-03-15 04:22 AM
2024-03-15 04:41 AM