Teensy Basics: Distance Sensing with VL53L0X Laser Sensor

Overview The VL53L0X is a ranging sensor that uses time-of-flight of a laser to determine the distance to the next surface correct to the mm with a maximum of 2m. The sensor uses an i2c interface with a default address of 0x29. The xshut pin allows for address control and start up / shut down during setup. Hardware Setup Here are the pinouts for the Teensy 4.1 and the VL53L0X: Make the following…