cancel
Showing results for 
Search instead for 
Did you mean: 

External Trigger

trisha-2
Associate II

Dear altruist, I need urgent help. Can I apply hardware-based external triggering in the VL53L8CX sensor by STM32 Nucleo F401RE? Will the sensor work for external triggering? Thank you

trisha2_0-1753810012377.jpeg

 

1 ACCEPTED SOLUTION

Accepted Solutions
Chris21
Senior III

According to UM3109, A guide for using the VL53L8CX, low-power, high-performance Time-of-Flight multizone ranging sensor - User manual an external trigger source can be used to synchronize the Time-of-Flight (ToF) ranging acquisition: 

External synchronization pin
An external trigger source can be used to synchronize the ToF ranging acquisitions for applications where there may be interference concerns. Such interferences include multiple VL53L8CX devices or IR image sensors within close proximity, or any other electronics emitting 940 nm IR light. When the external synchronization is enabled, the SYNC pin is configured as an input and the VL53L8CX waits for a rising edge on the SYNC pin to start the next single ranging acquisition. To use this feature, the SYNC pin (B1) must be connected to an external trigger source as described in the product datasheet.

External synchronization is only available in autonomous mode. There are no specific timing requirements for using the external synchronization. However, the VL53L8CX ranging frequency should be set higher than the external trigger signal frequency to ensure that each ranging acquisition has completed prior to the next external trigger event. The timing of the synchronized single ranging acquisition period follows the integration time in autonomous mode, as defined by the user... 

View solution in original post

6 REPLIES 6
AScha.3
Super User

Hi,

i dont understand : > Will the sensor work for external triggering? <

->

The host customer application controls the VL53L8CX
using an application programming interface (API). The API implementation is delivered to the customer as a driver
(C code and reference Linux® driver). The driver provides the customer application with a set of high level
functions that allow control of the VL53L8CX firmware. This includes control of items such as device initialization,
ranging start/stop, and mode select.

So...you use the API ? or what then ?

connection to cpu:

AScha3_0-1753824307980.png

>Can I apply hardware-based external triggering

sync IN ?  Why not ?

If you feel a post has answered your question, please click "Accept as Solution".
Chris21
Senior III

According to UM3109, A guide for using the VL53L8CX, low-power, high-performance Time-of-Flight multizone ranging sensor - User manual an external trigger source can be used to synchronize the Time-of-Flight (ToF) ranging acquisition: 

External synchronization pin
An external trigger source can be used to synchronize the ToF ranging acquisitions for applications where there may be interference concerns. Such interferences include multiple VL53L8CX devices or IR image sensors within close proximity, or any other electronics emitting 940 nm IR light. When the external synchronization is enabled, the SYNC pin is configured as an input and the VL53L8CX waits for a rising edge on the SYNC pin to start the next single ranging acquisition. To use this feature, the SYNC pin (B1) must be connected to an external trigger source as described in the product datasheet.

External synchronization is only available in autonomous mode. There are no specific timing requirements for using the external synchronization. However, the VL53L8CX ranging frequency should be set higher than the external trigger signal frequency to ensure that each ranging acquisition has completed prior to the next external trigger event. The timing of the synchronized single ranging acquisition period follows the integration time in autonomous mode, as defined by the user... 

Anne BIGOT
ST Employee

Indeed you can apply an external trigger source on the SYNC pin


Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised.

ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'

Thanks for your response. But the VL53L8CX sensor doesn't have a sync IN pin; there are GPIO1 and GPIO2 pins. Thus, instead of the SYNC pin, I made GPIO 1 an input. Then I tried to debug the sensor for external triggering in autonomous mode, but it didn't work. 
I had applied the command below and made the necessary changes. 
// Enable external sync pin
status |= vl53l8cx_set_external_sync_pin_enable(&(pL5obj->Dev), 1);

Also, what is the integration time in continuous mode? If the ranging frequency is 15 Hz, then the frame-to-frame time duration is 66.6 ms. So. According to the dataset, if the default integration time is 5 ms in continuous mode, then what about the rest of the 61.6 ms? What happened during the 61.6 ms time period?

I think you may have misinterpreted the integration time.

The data sheet does not say, "default integration time is 5 ms in continuous mode." The default is 5ms for autonomous mode only. Integration time is defined as how long the VCSEL is enabled and integration is occurring. See Ranging Mode and Integration Time on page 10 of UM3109. "Changing integration time if the ranging mode is set to continuous has no effect." In continuous mode the VCSEL is always on and integration is always occurring. So, If the ranging frequency is 15 Hz and the frame-to-frame time duration is 66.6 ms, the integration time would also be 66.6 ms per frame -- giving you maximum ranging distance and ambient immunity (high performance).  Autonomous mode, with low integration times (5ms), is for power savings as it turn off the VCSEL during the "rest of the 61.6 ms", assuming 4x4 @ 15hz.

 

See page 15 for your external sync question. The SYNC pin is GPIO2 (B1) and you need to use a 47K pullup resister to IOVDD.  Set your trigger pin on your controller to LOW (pulling B1 to GND) until you are ready to trigger. The trigger will occur on the rising edge > 0.7v when you set the trigger pin HIGH.

" The external synchronization can be enabled or disabled by using the function
vl53l8cx_set_external_sync_pin_enable(). Ranging can be started using the function vl53l8cx_start_ranging().
The sensor waits for the external SYNC signal to trigger the next measurement process. To stop the sensor, the
user must assert a stop condition in the system, and then on the next external SYNC pin assertion, the
vl53l8cx_stop_ranging() function should be executed.
"