Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use VL53LOX: Examples, Pinouts, and Specs

Image of VL53LOX
Cirkit Designer LogoDesign with VL53LOX in Cirkit Designer

Introduction

The VL53LOX, manufactured by STM (part ID: CJVL53LOXV3), is a time-of-flight (ToF) distance sensor that utilizes laser technology to measure distances with high accuracy. This compact and efficient sensor can measure distances ranging from 30 mm to 2 meters, making it ideal for applications requiring precise distance measurement.

Common applications include:

  • Robotics for obstacle detection and navigation
  • Drones for altitude measurement and collision avoidance
  • Industrial automation for object detection
  • Consumer electronics for gesture recognition and proximity sensing

Explore Projects Built with VL53LOX

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO with A9G GSM/GPRS and Dual VL53L1X Distance Sensors
Image of TED CIRCUIT : A project utilizing VL53LOX in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an A9G GSM/GPRS+GPS/BDS module and two VL53L1X time-of-flight distance sensors. The A9G module is connected to the Arduino via serial communication for GPS and GSM functionalities, while both VL53L1X sensors are connected through I2C with shared SDA and SCL lines and individual SHUT pins for selective sensor activation. The Arduino is programmed to control these peripherals, although the specific functionality is not detailed in the provided code.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO R4 WiFi Laser Module with Distance Sensor
Image of KIT 1: SENSOR KIT: A project utilizing VL53LOX in a practical application
This circuit features an Arduino UNO R4 WiFi connected to a VL53L0X distance sensor via I2C for distance measurement. Additionally, a tube laser module is powered by a battery case and controlled through a rocker switch, with a terminal block connector completing the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560-Based Multi-Sensor System with Distance, Magnetometer, and Camera Integration
Image of Junior Design - Sensors: A project utilizing VL53LOX in a practical application
This circuit features an Arduino Mega 2560 microcontroller interfaced with multiple VL53L0X distance sensors, an OV7725 camera module, and an Adafruit LIS3MDL triple-axis magnetometer. The Arduino reads data from these sensors and the camera, likely for a robotics or environmental sensing application, and processes the data for further use or transmission.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP8266 NodeMCU-Based Smart Eye Pressure Monitor with OLED Display and Wi-Fi Connectivity
Image of Copy of test 2 (7): A project utilizing VL53LOX in a practical application
This circuit features an ESP8266 NodeMCU microcontroller interfaced with a VL53L0X time-of-flight distance sensor, a 0.96" OLED display, a piezo sensor, and a photodiode for light detection. The ESP8266 collects data from the sensors, displays readings on the OLED, and hosts a web server to present the information. It is likely designed for distance measurement, light intensity detection, and pressure sensing, with the capability to monitor and display these parameters in real-time over WiFi.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with VL53LOX

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of TED CIRCUIT : A project utilizing VL53LOX in a practical application
Arduino UNO with A9G GSM/GPRS and Dual VL53L1X Distance Sensors
This circuit features an Arduino UNO microcontroller interfaced with an A9G GSM/GPRS+GPS/BDS module and two VL53L1X time-of-flight distance sensors. The A9G module is connected to the Arduino via serial communication for GPS and GSM functionalities, while both VL53L1X sensors are connected through I2C with shared SDA and SCL lines and individual SHUT pins for selective sensor activation. The Arduino is programmed to control these peripherals, although the specific functionality is not detailed in the provided code.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of KIT 1: SENSOR KIT: A project utilizing VL53LOX in a practical application
Arduino UNO R4 WiFi Laser Module with Distance Sensor
This circuit features an Arduino UNO R4 WiFi connected to a VL53L0X distance sensor via I2C for distance measurement. Additionally, a tube laser module is powered by a battery case and controlled through a rocker switch, with a terminal block connector completing the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Junior Design - Sensors: A project utilizing VL53LOX in a practical application
Arduino Mega 2560-Based Multi-Sensor System with Distance, Magnetometer, and Camera Integration
This circuit features an Arduino Mega 2560 microcontroller interfaced with multiple VL53L0X distance sensors, an OV7725 camera module, and an Adafruit LIS3MDL triple-axis magnetometer. The Arduino reads data from these sensors and the camera, likely for a robotics or environmental sensing application, and processes the data for further use or transmission.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Copy of test 2 (7): A project utilizing VL53LOX in a practical application
ESP8266 NodeMCU-Based Smart Eye Pressure Monitor with OLED Display and Wi-Fi Connectivity
This circuit features an ESP8266 NodeMCU microcontroller interfaced with a VL53L0X time-of-flight distance sensor, a 0.96" OLED display, a piezo sensor, and a photodiode for light detection. The ESP8266 collects data from the sensors, displays readings on the OLED, and hosts a web server to present the information. It is likely designed for distance measurement, light intensity detection, and pressure sensing, with the capability to monitor and display these parameters in real-time over WiFi.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

The VL53LOX is designed to deliver reliable and accurate distance measurements in a variety of environments. Below are its key technical details:

Key Specifications

Parameter Value
Operating Voltage 2.6 V to 3.5 V
Communication Interface I2C
Measurement Range 30 mm to 2000 mm
Accuracy ±3%
Field of View (FoV) 25°
Operating Temperature -20°C to +70°C
Power Consumption 20 mW (typical)
Dimensions 4.4 mm x 2.4 mm x 1.0 mm

Pin Configuration

The VL53LOX has a simple pinout for easy integration into circuits. Below is the pin configuration:

Pin Name Pin Number Description
VIN 1 Power supply input (2.6 V to 3.5 V)
GND 2 Ground connection
SDA 3 I2C data line
SCL 4 I2C clock line
XSHUT 5 Shutdown pin (active low)
GPIO1 6 Interrupt output (optional)

Usage Instructions

The VL53LOX is straightforward to use in a circuit, especially with microcontrollers like the Arduino UNO. Below are the steps to integrate and use the sensor:

Circuit Connection

  1. Connect the VIN pin to the 3.3V output of the Arduino UNO.
  2. Connect the GND pin to the ground (GND) of the Arduino UNO.
  3. Connect the SDA pin to the A4 pin (I2C data line) of the Arduino UNO.
  4. Connect the SCL pin to the A5 pin (I2C clock line) of the Arduino UNO.
  5. Optionally, connect the XSHUT pin to a digital pin on the Arduino for enabling/disabling the sensor.

Arduino Code Example

Below is an example Arduino sketch to read distance data from the VL53LOX using the Wire library:

#include <Wire.h>
#include <Adafruit_VL53L0X.h>

// Create an instance of the VL53L0X sensor
Adafruit_VL53L0X lox = Adafruit_VL53L0X();

void setup() {
  Serial.begin(9600); // Initialize serial communication
  while (!Serial) {
    delay(10); // Wait for the serial port to be ready
  }

  Serial.println("VL53LOX Test");

  // Initialize the sensor
  if (!lox.begin()) {
    Serial.println("Failed to initialize VL53LOX. Check wiring!");
    while (1);
  }
}

void loop() {
  VL53L0X_RangingMeasurementData_t measure;

  // Perform a distance measurement
  lox.rangingTest(&measure, false);

  // Check if the measurement is valid
  if (measure.RangeStatus != 4) { // 4 means out of range
    Serial.print("Distance (mm): ");
    Serial.println(measure.RangeMilliMeter);
  } else {
    Serial.println("Out of range");
  }

  delay(100); // Wait 100ms before the next measurement
}

Important Considerations

  • Ensure the sensor is not exposed to direct sunlight or reflective surfaces, as these can interfere with measurements.
  • Use pull-up resistors (typically 4.7 kΩ) on the SDA and SCL lines if they are not already present on your board.
  • The XSHUT pin can be used to reset the sensor or put it into a low-power state when not in use.

Troubleshooting and FAQs

Common Issues

  1. Sensor not detected by the microcontroller:

    • Ensure the I2C connections (SDA and SCL) are correct.
    • Verify that the sensor is powered with the correct voltage (2.6 V to 3.5 V).
    • Check for proper pull-up resistors on the I2C lines.
  2. Incorrect or fluctuating distance readings:

    • Ensure there are no reflective or transparent objects in the sensor's field of view.
    • Verify that the sensor is mounted securely and is not vibrating.
  3. Out of range errors:

    • Ensure the object is within the sensor's measurement range (30 mm to 2 m).
    • Avoid using the sensor in extremely bright environments.

FAQs

Q: Can the VL53LOX measure distances beyond 2 meters?
A: No, the maximum range of the VL53LOX is 2 meters. For longer ranges, consider other ToF sensors.

Q: Can I use the VL53LOX with a 5V microcontroller?
A: Yes, but you will need a logic level shifter to safely interface the 3.3V I2C lines with the 5V microcontroller.

Q: How can I reduce power consumption?
A: Use the XSHUT pin to put the sensor into a low-power state when not in use.

Q: Is the VL53LOX affected by ambient light?
A: While the sensor is designed to work in various lighting conditions, excessive ambient light or direct sunlight can reduce accuracy.