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

How to Use tof400c-vl53l1x: Examples, Pinouts, and Specs

Image of tof400c-vl53l1x
Cirkit Designer LogoDesign with tof400c-vl53l1x in Cirkit Designer

Introduction

The TOF400C-VL53L1X is a time-of-flight (ToF) distance sensor that uses advanced laser technology to measure distances with high precision. This compact and efficient sensor is capable of measuring distances up to 4 meters with millimeter-level accuracy. Its small form factor and low power consumption make it ideal for a wide range of applications, including robotics, automation, obstacle detection, and proximity sensing.

Explore Projects Built with tof400c-vl53l1x

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
A-Star 32U4 Mini Controlled Servo with VL53L8CX Time-of-Flight Distance Sensing
Image of Servo con distance sensor: A project utilizing tof400c-vl53l1x in a practical application
This circuit features an A-Star 32U4 Mini microcontroller connected to a VL53L8CX Time-of-Flight distance sensor and a servo motor. The microcontroller powers both the sensor and the servo, and it is configured to communicate with the sensor via I2C (using pins 2 and 3 for SDA and SCL, respectively) and to control the servo via a PWM signal on pin 10. The purpose of the circuit is likely to measure distances and respond with movements of the servo based on the sensor readings.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Powered Wi-Fi Controlled Robotic Car with OLED Display and Ultrasonic Sensor
Image of playbot: A project utilizing tof400c-vl53l1x in a practical application
This circuit is a battery-powered system featuring an ESP32 microcontroller that controls an OLED display, a motor driver for two hobby motors, an ultrasonic sensor for distance measurement, and a DFPlayer Mini for audio output through a loudspeaker. The TP4056 module manages battery charging, and a step-up boost converter provides a stable 5V supply to the components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Bluetooth Audio Receiver with Battery-Powered Amplifier and Loudspeakers
Image of speaker bluetooh portable: A project utilizing tof400c-vl53l1x in a practical application
This circuit is a Bluetooth-enabled audio system powered by a rechargeable 18650 Li-ion battery. It includes a TP4056 module for battery charging and protection, a PAM8403 amplifier with volume control to drive two loudspeakers, and a Bluetooth audio receiver to wirelessly receive audio signals.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560 Based Security System with Fingerprint Authentication and SMS Alerts
Image of Door security system: A project utilizing tof400c-vl53l1x in a practical application
This circuit features an Arduino Mega 2560 microcontroller interfaced with a SIM800L GSM module, two fingerprint scanners, an I2C LCD display, an IR sensor, and a piezo buzzer. Power management is handled by a PowerBoost 1000 Basic Pad USB, a TP4056 charging module, and a Li-ion 18650 battery, with an option to use a Mini AC-DC 110V-230V to 5V 700mA module for direct power supply. The primary functionality appears to be a security system with GSM communication capabilities, biometric access control, and visual/audible feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with tof400c-vl53l1x

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 Servo con distance sensor: A project utilizing tof400c-vl53l1x in a practical application
A-Star 32U4 Mini Controlled Servo with VL53L8CX Time-of-Flight Distance Sensing
This circuit features an A-Star 32U4 Mini microcontroller connected to a VL53L8CX Time-of-Flight distance sensor and a servo motor. The microcontroller powers both the sensor and the servo, and it is configured to communicate with the sensor via I2C (using pins 2 and 3 for SDA and SCL, respectively) and to control the servo via a PWM signal on pin 10. The purpose of the circuit is likely to measure distances and respond with movements of the servo based on the sensor readings.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of playbot: A project utilizing tof400c-vl53l1x in a practical application
ESP32-Powered Wi-Fi Controlled Robotic Car with OLED Display and Ultrasonic Sensor
This circuit is a battery-powered system featuring an ESP32 microcontroller that controls an OLED display, a motor driver for two hobby motors, an ultrasonic sensor for distance measurement, and a DFPlayer Mini for audio output through a loudspeaker. The TP4056 module manages battery charging, and a step-up boost converter provides a stable 5V supply to the components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of speaker bluetooh portable: A project utilizing tof400c-vl53l1x in a practical application
Bluetooth Audio Receiver with Battery-Powered Amplifier and Loudspeakers
This circuit is a Bluetooth-enabled audio system powered by a rechargeable 18650 Li-ion battery. It includes a TP4056 module for battery charging and protection, a PAM8403 amplifier with volume control to drive two loudspeakers, and a Bluetooth audio receiver to wirelessly receive audio signals.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Door security system: A project utilizing tof400c-vl53l1x in a practical application
Arduino Mega 2560 Based Security System with Fingerprint Authentication and SMS Alerts
This circuit features an Arduino Mega 2560 microcontroller interfaced with a SIM800L GSM module, two fingerprint scanners, an I2C LCD display, an IR sensor, and a piezo buzzer. Power management is handled by a PowerBoost 1000 Basic Pad USB, a TP4056 charging module, and a Li-ion 18650 battery, with an option to use a Mini AC-DC 110V-230V to 5V 700mA module for direct power supply. The primary functionality appears to be a security system with GSM communication capabilities, biometric access control, and visual/audible feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Robotics: Obstacle detection and navigation
  • Industrial automation: Proximity sensing and object measurement
  • Consumer electronics: Gesture recognition and presence detection
  • Drones: Altitude measurement and collision avoidance

Technical Specifications

The TOF400C-VL53L1X is designed to deliver reliable and accurate distance measurements. Below are its key technical details:

Key Specifications:

Parameter Value
Measurement Range 4 cm to 400 cm (0.04 m to 4 m)
Accuracy ±1 mm
Operating Voltage 2.6V to 3.5V
Communication Interface I²C
Operating Temperature -20°C to +85°C
Field of View (FoV) 27°
Power Consumption Low power mode: 20 µA
Dimensions 4.4 mm x 2.4 mm x 1.0 mm

Pin Configuration:

The TOF400C-VL53L1X sensor typically comes in a breakout board format. Below is the pinout description:

Pin Name Description
VIN Power supply input (2.6V to 3.5V)
GND Ground
SDA I²C data line
SCL I²C clock line
XSHUT Shutdown pin (active low, optional)
GPIO1 Interrupt output (optional, configurable)

Usage Instructions

The TOF400C-VL53L1X is straightforward to integrate into your projects. Below are the steps and best practices for using the sensor:

Connecting the Sensor:

  1. Power Supply: Connect the VIN pin to a 3.3V power source and the GND pin to ground.
  2. I²C Communication: Connect the SDA and SCL pins to the corresponding I²C pins on your microcontroller (e.g., Arduino UNO: A4 for SDA, A5 for SCL).
  3. Optional Pins:
    • Connect the XSHUT pin to a GPIO pin if you need to control the sensor's power state.
    • Use the GPIO1 pin for interrupt-based distance measurement if required.

Arduino UNO Example Code:

Below is an example of how to use the TOF400C-VL53L1X with an Arduino UNO. This code uses the Adafruit VL53L1X library, which simplifies sensor integration.

#include <Wire.h>
#include <Adafruit_VL53L1X.h>

// Create an instance of the VL53L1X sensor
Adafruit_VL53L1X vl53 = Adafruit_VL53L1X();

void setup() {
  Serial.begin(115200);
  while (!Serial) {
    delay(10); // Wait for Serial Monitor to open
  }

  // Initialize I²C communication
  if (!vl53.begin()) {
    Serial.println("Failed to detect VL53L1X sensor. Check wiring!");
    while (1) {
      delay(10); // Halt execution if sensor is not detected
    }
  }

  Serial.println("VL53L1X sensor initialized successfully!");
  vl53.startRanging(); // Start continuous ranging mode
}

void loop() {
  // Read distance in millimeters
  uint16_t distance = vl53.read();
  
  if (distance != 0) {
    Serial.print("Distance: ");
    Serial.print(distance);
    Serial.println(" mm");
  } else {
    Serial.println("Error reading distance!");
  }

  delay(100); // Delay for stability
}

Best Practices:

  • Power Supply: Ensure a stable 3.3V power source to avoid measurement errors.
  • I²C Pull-Up Resistors: Use 4.7kΩ pull-up resistors on the SDA and SCL lines if not already included on the breakout board.
  • Ambient Light: Avoid direct exposure to strong ambient light sources, as they may interfere with the sensor's laser measurements.
  • FoV Considerations: Ensure no obstructions within the sensor's 27° field of view for accurate readings.

Troubleshooting and FAQs

Common Issues:

  1. Sensor Not Detected:

    • Cause: Incorrect wiring or I²C address mismatch.
    • Solution: Double-check the connections and ensure the I²C address matches the library's default (0x29).
  2. Inaccurate Measurements:

    • Cause: Strong ambient light or reflective surfaces.
    • Solution: Reduce ambient light or reposition the sensor to avoid reflective surfaces.
  3. No Distance Reading:

    • Cause: Sensor not initialized or XSHUT pin held low.
    • Solution: Verify the sensor initialization in the code and ensure the XSHUT pin is not pulled low.

FAQs:

  1. Can the sensor measure distances beyond 4 meters?

    • No, the maximum range of the TOF400C-VL53L1X is 4 meters.
  2. Is the sensor eye-safe?

    • Yes, the sensor uses a Class 1 laser, which is safe for human eyes under normal operating conditions.
  3. Can I use the sensor with a 5V microcontroller?

    • Yes, but you must use a level shifter for the I²C lines to avoid damaging the sensor.

By following this documentation, you can effectively integrate the TOF400C-VL53L1X into your projects and troubleshoot common issues with ease.