Skip to content

A simple C library to read the distance values from the VL53L0X time of flight sensor

License

Notifications You must be signed in to change notification settings

IC-Alchemy/VL53L0X

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOF - VL53L0X Time of Flight distance sensor library

This code is based on the Pololu Arduino library (see LICENSE.txt) My aim with this project was to simplify that code and port it to Linux for use on boards like the Raspberry Pi. The problem with ST Micro's part and support software are that they designed their I2C interface specifically to rely on 'magic numbers' for initialization and publish a software library which requires adherance to restrictive licensing terms. By publishing this library, I hope to help more people use the sensor in more ways. The technology and low cost of the sensor make it a valuable addition to the IoT world, but ST Micro's attempt to obfuscate the interface and control the software goes against the open nature of the community.

This code puts the sensor into continous sample mode and allows selection between the default mode (30-800mm) and the long range mode (30-2000mm).

From my limited testing, it appears to give accurate results in the range 40-600mm. Beyond that and the results are less accurate and more prone to being interfered with by ambient light.

About

A simple C library to read the distance values from the VL53L0X time of flight sensor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.3%
  • Makefile 0.7%