Component: Range Time of Flight (VL53L0X) (Light)
From Flowcode Help
(Redirected from Component: ID 488c3a77 9ff2 4e60 9bfd cf074405e294)
Jump to navigationJump to searchAuthor | 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.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ChangeI2CAddress
ChangeI2CAddress | |
Updates the I2C address of the sensor. | |
- BYTE | Address |
- BOOL | UpdateAddressReg |
0=Leave address register alone, 1=Update address register | |
- VOID | Return |
Initialise
Initialise | |
- BOOL | Return |
ReadDistance
ReadDistance | |
Read the current distance in mm. Returns -1 if the sensor timed out during the read operation. | |
- INT | Return |
ReadModel
ReadModel | |
Collects the model number from the sensor | |
- BYTE | Return |
ReadRegister
ReadRegister | |
A simple example showing a generic way to read a register using I2C. | |
- BYTE | Address |
- BYTE | Return |
ReadRegister16
ReadRegister16 | |
A simple example showing a generic way to read a register using I2C. | |
- BYTE | Address |
- UINT | Return |
ReadRevision
ReadRevision | |
Collects the revision number from the sensor | |
- BYTE | Return |
WriteRegister
WriteRegister | |
A simple example showing a generic way to write a register using I2C. | |
- BYTE | Address |
- BYTE | Data |
- VOID | Return |
WriteRegister16
WriteRegister16 | |
A simple example showing a generic way to write a register using I2C. | |
- BYTE | Address |
- UINT | Data |
- VOID | Return |
Property reference
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