2022-07-26 09:50 PM
I've tried to use VL53L0X API, but it is too confusing. The API package STSW-IMG005 lacks any proper guidelines how to use API. The source file vl53l0x_platform results in one or another error.
i'm unable to my own code VL53L0X as register map is not properly available in datasheet.
Tried to explore discussion forums but unable to find any relevant solution.
The problem i'm experiencing with API is How to link I2C write and Read operations with API function calls
Kindly guide me.
i'm using STM32F103 and IAR workbench.
Regards
Solved! Go to Solution.
2022-08-02 04:15 PM
You can find a working environment at https://github.com/lamik/VL53L0X_API_STM32_HAL/blob/master/Drivers/VL53L0X/platform/src/
I performed a Google search for STM32 VL53L0X GitHub where I found this example. Please give this a try.
The link is also logged in this ticket :
Regards
2022-08-02 04:15 PM
You can find a working environment at https://github.com/lamik/VL53L0X_API_STM32_HAL/blob/master/Drivers/VL53L0X/platform/src/
I performed a Google search for STM32 VL53L0X GitHub where I found this example. Please give this a try.
The link is also logged in this ticket :
Regards
2022-08-21 09:54 AM
thanks for your suggestion finally its working.
i'v one more question. with the default settings i'm able to measure only upto 150mm.
i want to switch to long range mode, which function is to be used for this purpose
regards
2022-08-24 06:39 AM
Hello,
Please have a llok in the User Manual here
You will see how to switch from one range to another.
Regards
Anne
2024-09-04 05:00 AM
You can find a working environment at https://github.com/lamik/VL53L0X_API_STM32_HAL/blob/master/Drivers/VL53L0X/platform/src/
while (1)
{
VL53L0X_PerformSingleRangingMeasurement(Dev, &RangingData);
if(RangingData.RangeStatus == 0)
{
MessageLen = sprintf((char*)Message, "Measured distance: %i\n\r", RangingData.RangeMilliMeter);
HAL_UART_Transmit(&huart2, Message, MessageLen, 100);
}
continuously going in if condition and showing Measured distance : 0 , continuously on log terminal without showing any error
kindly guide me