Skip to content

+49 1626571232

info@openelab.io

🚀 Free Shipping from 50€ in EU / 80€ Worldwide

ESP32 With VL53L0X Realizes IoT Artificial Intelligence Vehicle

11 Jul 2024 0 Comments
The VL53L0X is a fully integrated sensor with embedded infrared, human eye-safe laser, advanced filters and ultra-high-speed photon detection arrays. The VL53L0X enhances the ST FlightSense™ series with longer measuring distances and higher speed and accuracy, opening the door to new applications. Even under harsh operating conditions, the sensor can directly determine the distance to a target object up to 2 meters and is independent of the target's reflectivity.

 

Key Features of the VL53L0X Chip:

 

1.Fully Integrated Miniature Module

  
  • 940nm laser VCSEL

  • VCSEL driver

  • Distance measurement sensor with advanced embedded microcontroller

  • 4.4mmx2.4mmx1.0mm

  • Fast and accurate distance measurement

  • Measures absolute distances up to 2m

  • Reported distances are not affected by target reflectivity

  • Operates in high infrared light environments

  • Advanced embedded optical crosstalk compensation to simplify glass enclosure design.

  

2.Human Eye Safety

  
  • Class 1 laser equipment in accordance with the latest standard IEC 60825-1:2014 (3rd edition)

  

3.Easy to Integrate

  
  • Reflowable components

  • No additional optics required

  • Single power supply

  • I2C interface for device control and data transfer

  • Xshutdown and interrupt GPIOs

  • Operating Voltage: 3.3V/5V

   

4.Parameters of VL53L0X:

 
  • Product Size: 4.4mm × 2.4mm × 1.0mm

  • Distance measurement range: 30 ~ 2000mm

  • Distance Measuring Accuracy: ±5% (High Speed Mode), ±3% (High Accuracy Mode)

  • Measuring time (min): 20ms (high speed mode), 200ms (high precision mode)

  • Ranging Angle: 25

  • Laser wavelength: 940nm

  • Operating temperature: -20 ~ 70°C

 

The VL53L0X Sensor Provides 3 Measurement Modes

 
  1. Single Measurement Mode: In this measurement mode, a single trigger performs only one distance measurement, and after the measurement is finished, the VL53L0X sensor will return to standby and wait for the next trigger.

  2. Continuous Measurement Mode: In this mode the distance measurement is executed in a continuous manner. When one measurement is finished, the next one will be started immediately, and the user must stop the distance measurement to return to standby mode, the last measurement is finished before stopping.

  3. Timed Measurement Mode: This mode is actually a continuous measurement mode with specified time intervals. When a measurement is completed, the next measurement is initiated after a user-defined delay time. The user must stop ranging to return to standby, and the last measurement is completed before stopping.

  

The VL53L0X Sensor Also Offers 4 Different Accuracy Modes:

 
Precision mode
Measurement TimeBudget Range (ms)
Ranging distance (m)
Typical application scenarios
default
30
1.2
standard
high pre cision
200
1.2 (accuracy <± 3%)
Accuratemeзsurement
long distance
33
2
Long distance, only for dark no infrared conditions
high spoed
20
1.2 (accuracy <
± 5%)
Highrspoed, precision not a priarity
 
In practical applications, it is necessary to select the appropriate accuracy mode according to the current requirements to achieve the best measurement results.
 
The interface of the laser distance measurement module of VL53L0X is as follows:
 
Interface Description
VCC Power Positive (3.3V/5V Power Input)
GND Power Ground
SDA I2C Data Pin
SCL I2C Clock Pin
SHUT Pin, Connectable to IO Port
INT Interrupt Output Pin, Connectable to IO Port
 
Here's how to connect the laser ranging module to ESP32 development board. Here, the default pins 21 and 22 of ESP32 are used for IIC communication. the specific connections are shown in the table below:
 
Laser Distance Measurement Module ESP32 Module
VCC +5V
GND GND
SDA P21
SCL P22

  

Specific Operation Process

 
The next step is to open the development software Arduino IDE, the first need to install the VL53L0X library, the use of libraries can save us a lot of the underlying development work, do not need to pay attention to the details of the IIC communication, do not need to carefully understand the structure of the internal registers of the VL53L0X, the use of the library files provided by the function, you can directly complete the use of the module.
  1. Open the library management panel of the Arduino IDE, enter VL53L0X in the search box, and then choose to install the Adafruit_VL53L0X library, as shown below.

  1. The next step is to look at a simple template program for the single measurement mode. This is shown below:ESP32 with VL53L0X Realizes IoT Artificial Intelligence Vehicle -simple template program

As you can see in the code above, these steps are required to complete a single measurement of the laser distance measurement module:

(1) Create an instance of the Adafruit_VL53L0X object

Adafruit_VL53L0X lox = Adafruit_VL53L0X();

Call the begin() method to complete the initialization of the laser distance measurement module

(3) Create an instance of VL53L0X_RangingMeasurementData_t structure that saves the measurement results.

(4) Call the rangingTest() method to complete a measurement.

(5) The RangeStatus attribute of the measurement result object indicates the status of the measurement result, and the value of the RangeMilliMeter attribute is the measured distance (in millimeters).

 

For continuous measurement, the difference with the above single measurement is that after calling begin() to complete the initialization of the module, you have to call startRangeContinuous() method to switch the laser distance measurement module to continuous measurement mode. The difference in reading data is to use the isRangeComplete() method to determine whether the laser range module has completed a measurement, and then readRange() method to read the results of the measurement. The program template is shown below:ESP32 with VL53L0X Realizes IoT Artificial Intelligence Vehicle -continuous measuremen

 
The laser rangefinder module has been configured! The next step is to replace the ultrasonic ranging module with the laser ranging module on the cart to realize the IOT AI cart!
 

 

 

If you're working on a project using VL53L0X or ESP32 development board, our website offers a wide range of VL53L0X and ESP32 development board products, and we can also produce customized VL53L0X and ESP32 development board based on your requirements.
 
OpenELAB is a one-stop development platform for global AIoT electronics enthusiasts and an open-source community for electronic engineers. Besides providing developer modules online, our services also include customized manufacturing of various electronic parts such as micro switches and batteries, as well as plastic or metal parts through 3D printing, injection molding, CNC, laser cutting, etc.
 
In addition to VL53L0X and ESP32 development board, OpenELAB offers other electronic component sourcing services such as sensors, displays, IoT, and more. OpenELAB has a user-friendly website that makes it easy to find the components you need, and we offer fast shipping to customers around the world.
 
Moreover, OpenELAB offers Design as a Service (DaaS) for design optimization, Manufacturing as a Service (MaaS) for production manufacturing, Supply Chain as a Service (SaaS) for supply chain support, and Quality as a Service (QaaS) for quality control to AIoT products transitioning into mass production, ensuring a smooth transition to the commercial production phase.
 
Most importantly, OpenELAB is dedicated to building a global open-source community for AIoT electronic developers. Through the OpenELAB open community, developers in the AIoT electronic revolution can collaborate, empower each other, and create a culture of mutual respect and collaborative sharing, generating more innovative AIoT intelligent hardware products for the world.
 
 

 

Prev Post
Next Post

Leave a comment

All blog comments are checked prior to publishing

Someone recently bought a

Thanks for subscribing!

This email has been registered!

Shop the look

Choose Options

Edit Option
Back In Stock Notification
this is just a warning
Login
Shopping Cart
0 items
RuffRuff App RuffRuff App by Tsun