Difference between revisions of "Component: Range Time of Flight (VL53L0X) (Light)"
From Flowcode Help
Jump to navigationJump to searchLine 74: | Line 74: | ||
Simple example showing the proximity detector component at work, when a proximity is detected the direction of the motor is reversed. | Simple example showing the proximity detector component at work, when a proximity is detected the direction of the motor is reversed. | ||
{{Fcfile|Detector.fcfx|Detector}} | {{Fcfile|Detector.fcfx|Detector}} | ||
+ | |||
+ | |||
Line 79: | Line 81: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===ReadModel=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 92: | Line 95: | ||
+ | ===ReadRevision=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 105: | Line 109: | ||
+ | ===ReadDistance=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 118: | Line 123: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:52, 3 February 2023
Author | MatrixTSL |
Version | 1.0 |
Category | Light |
Contents
Range Time of Flight (VL53L0X) component
A laser based range sensor designed to provide accurate range infomation for a very narrow sensing beam. Capable of sensing ranges from 50mm to 1200mm. Communication with the device is based on a I2C bus.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_RangeTOF_VL53L0X.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_RangeTOF_VL53L0X.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Simple example showing the proximity detector component at work, when a proximity is detected the direction of the motor is reversed.
Detector
Macro reference
ReadModel
![]() |
ReadModel |
Collects the model number from the sensor | |
![]() |
Return |
ReadRevision
![]() |
ReadRevision |
Collects the revision number from the sensor | |
![]() |
Return |
ReadDistance
![]() |
ReadDistance |
Read the current distance in mm. Returns -1 if the sensor timed out during the read operation. | |
![]() |
Return |
Initialise
![]() |
Initialise |
![]() |
Return |