CN111812621A - Multi-channel Vl53l0X laser ranging calibration method and drive - Google Patents
Multi-channel Vl53l0X laser ranging calibration method and drive Download PDFInfo
- Publication number
- CN111812621A CN111812621A CN202010782131.5A CN202010782131A CN111812621A CN 111812621 A CN111812621 A CN 111812621A CN 202010782131 A CN202010782131 A CN 202010782131A CN 111812621 A CN111812621 A CN 111812621A
- Authority
- CN
- China
- Prior art keywords
- calibration
- vl53l0x
- laser ranging
- module
- mcu
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000005259 measurement Methods 0.000 claims abstract description 17
- 238000009434 installation Methods 0.000 claims abstract description 6
- 230000008569 process Effects 0.000 claims description 5
- 238000003780 insertion Methods 0.000 claims description 4
- 230000037431 insertion Effects 0.000 claims description 4
- 238000012937 correction Methods 0.000 claims description 3
- 230000002159 abnormal effect Effects 0.000 abstract description 2
- 230000005856 abnormality Effects 0.000 abstract description 2
- 230000004044 response Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S7/00—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
- G01S7/48—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
- G01S7/497—Means for monitoring or calibrating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Abstract
The invention relates to the technical field of multi-channel sensor driving, in particular to a multi-channel Vl53l0X laser ranging calibration method, which can achieve the purpose of realizing the driving and calibration of a Vl53l0X laser ranging module without manual intervention, and the self-calibration function can greatly reduce system errors caused by factors such as installation positions and the like; and the calibration data can be stored after calibration, the power failure is not lost, and the quick response can be realized without calibrating every time of power-on. The method can monitor the measurement data in real time through the serial port, and can send a calibration command to calibrate the abnormal sensor if data abnormality is found, so that the method can be flexibly suitable for various scenes; the method of the invention saves the flash space by reasonably planning the flash storage area and can be repeatedly erased without influencing the main program; the invention also provides a multi-channel Vl53l0X laser ranging calibration drive.
Description
Technical Field
The invention relates to the technical field of multi-channel sensor driving, in particular to a multi-channel Vl53l0X laser ranging calibration method.
Background
The I2C bus is a simple, bi-directional two-wire synchronous serial bus developed by Philips. The bus-type data bus only needs two lines to transmit information between devices connected to the bus, is high in reliability and low in implementation cost, can mount a plurality of peripherals through a multi-address mechanism, and is a common data bus at present. The laser ranging has the advantages of small volume, high measurement precision and low power consumption, and is widely applied to medium and small distance measurement.
An ultrasonic ranging method is usually adopted in the conventional short-distance ranging scheme, the ultrasonic ranging has a large volume, the measuring time is long, the measuring dead zone is large, the measuring precision in a short distance is difficult to guarantee, the beam angle is large, the multi-sensor ranging array is difficult to realize in a narrow space, because configuration information including equipment id can be lost after the Vl53l0X is reset, only one laser ranging module is often driven or too many chip resources are occupied by a multipath bus by the scheme adopting the Vl53l0X laser ranging module, the conventional Vl53l0X driving method does not have a calibration function or only has a calibration function when power is on, and the Vl53l0X cannot be flexibly calibrated to improve the measuring precision.
The method is based on an STM32F103C8T6 chip and based on a single I2C bus to drive a plurality of paths of Vl53l0X laser ranging modules, and the method plans a flash storage space for each Vl53l0X laser ranging module to store calibration data and configuration information, so that the space is saved, and a main program is not interfered; the method executes the self-calibration program during power-on, and reduces installation errors and external environment errors without manual intervention; in the calibration process of the method, a method of calculating the variance through multiple times of calibration is adopted to ensure the accuracy of the calibration result; the method adopts a direct insertion type, can be flexibly disassembled and assembled, can recalibrate the designated module through an upper computer instruction after the module is replaced, stores designated calibration parameters in a designated flash space, and is not lost when power failure occurs.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: in order to solve the problem that the conventional Vl53l0X driving method often has no calibration function or only has the calibration function when power is on and cannot flexibly calibrate the Vl53l0X so as to improve the measurement accuracy, the invention provides a multi-channel Vl53l0X laser ranging calibration method which is provided with a self-calibration program and effectively solves the problems in the prior art.
In one aspect, the present invention provides a calibration method for multi-channel Vl53l0X laser ranging,
a multi-channel Vl53l0X laser ranging calibration method and drive are characterized in that: comprises the following steps of (a) carrying out,
1) the I2C address of the Vl53l0X is lost after restarting, so that the MCU needs to configure an address for a designated module before initialization, the designated Vl53l0X laser ranging module is enabled through a specific chip selection pin, only the module can communicate with the MCU at the moment, and the address of the module is configured through an I2C bus and subsequent configuration is carried out;
2) inquiring the calibration information in a flash storage area inside the MCU corresponding to the Vl53l0X module address, and reading the compensation parameters from the corresponding flash area for configuration if the calibration information is calibrated;
3) if no calibration rule is available, starting a self-calibration program for preventing installation errors and errors caused by external environment, wherein the self-calibration program comprises the following steps:
(1) comparing the preset distance with the measured distance by a Vl53l0X module, and returning compensation parameters for correction after each measurement;
(2) repeating the calibration process for 3 times and respectively storing the measurement results;
(3) calculating the variance of the measurement results of 3 times, and if the variance is smaller than a threshold value, successfully calibrating;
(4) the MCU obtains the compensation parameters and then stores the compensation parameters in a flash area of the corresponding address of the module;
4) reading data from each Vl53l0X module in a circulating mode;
5) and the serial port outputs the measurement data.
In another aspect, the present invention provides a multi-lane Vl53l0X laser ranging calibration drive,
a multi-channel Vl53l0X laser ranging calibration drive comprises a control part and a sensor part, wherein the control part adopts an STM32F103C8T6 chip, and the sensor part adopts a plurality of Vl53l0X laser ranging modules.
Furthermore, the physical laser ranging module is fixed on the driving platform in a direct insertion mode and is connected with the control part; in control, multiple paths of Vl53l0X laser ranging modules are mounted on the same I2C bus to communicate with the MCU, and each laser ranging module is provided with an independent chip selection interface which is respectively connected with different pins of the MCU; the flash of the MCU is divided into a program area and an information configuration area, and an independent information configuration address block is divided for each Vl53l0X laser ranging module in the information configuration area.
The invention has the beneficial effects that: the method provided by the invention has the advantages that the structure is simple, the cost is low, the sensor part and the control part are connected in a modularized manner, the sensor can be replaced at will, and the method is flexible; and the multi-path sensor is mounted on the other I2C bus, so that on-chip resources can be saved, and the platform can conveniently expand other interfaces and functions. The method can achieve the driving and calibration of the Vl53l0X laser ranging module without manual intervention, and the self-calibration function can greatly reduce the system error caused by factors such as installation position and the like; and the calibration data can be stored after calibration, the power failure is not lost, and the quick response can be realized without calibrating every time of power-on. The method can monitor the measurement data in real time through the serial port, and can send a calibration command to calibrate the abnormal sensor if data abnormality is found, so that the method can be flexibly suitable for various scenes; the method of the invention saves the flash space by reasonably planning the flash storage area and can be repeatedly erased without influencing the main program.
Drawings
The invention is further illustrated with reference to the following figures and examples.
FIG. 1 is a process flow diagram of the present invention;
FIG. 2 is a calibration flow chart of the present invention;
FIG. 3 is a Flash configuration information diagram of the present invention;
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic views illustrating only the basic structure of the present invention in a schematic manner, and thus show only the constitution related to the present invention.
A multi-channel Vl53l0X laser ranging calibration method and drive includes the following steps,
1) the I2C address of the Vl53l0X is lost after restarting, so that the MCU needs to configure an address for a designated module before initialization, the designated Vl53l0X laser ranging module is enabled through a specific chip selection pin, only the module can communicate with the MCU at the moment, and the address of the module is configured through an I2C bus and subsequent configuration is carried out;
2) inquiring the calibration information in a flash storage area inside the MCU corresponding to the Vl53l0X module address, and reading the compensation parameters from the corresponding flash area for configuration if the calibration information is calibrated;
3) if no calibration rule is available, starting a self-calibration program for preventing installation errors and errors caused by external environment, wherein the self-calibration program comprises the following steps:
(1) comparing the preset distance with the measured distance by a Vl53l0X module, and returning compensation parameters for correction after each measurement;
(2) repeating the calibration process for 3 times and respectively storing the measurement results;
(3) calculating the variance of the measurement results of 3 times, and if the variance is smaller than a threshold value, successfully calibrating;
(4) the MCU obtains the compensation parameters and then stores the compensation parameters in a flash area of the corresponding address of the module;
4) reading data from each Vl53l0X module in a circulating mode;
5) and the serial port outputs the measurement data.
A multi-channel Vl53l0X laser ranging calibration drive comprises a control part and a sensor part, wherein the control part adopts an STM32F103C8T6 chip, the sensor part adopts a plurality of Vl53l0X laser ranging modules,
in a preferred embodiment, the physical laser ranging module is fixed on the driving platform in a direct insertion manner and is connected with the control part; in control, multiple paths of Vl53l0X laser ranging modules are mounted on the same I2C bus to communicate with the MCU, and each laser ranging module is provided with an independent chip selection interface which is respectively connected with different pins of the MCU; the flash of the MCU is divided into a program area and an information configuration area, and an independent information configuration address block is divided for each Vl53l0X laser ranging module in the information configuration area.
In light of the foregoing description of the preferred embodiment of the present invention, many modifications and variations will be apparent to those skilled in the art without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.
Claims (3)
1. A multi-channel Vl53l0X laser ranging calibration method and drive are characterized in that: comprises the following steps of (a) carrying out,
1) the I2C address of the Vl53l0X is lost after restarting, so that the MCU needs to configure an address for a designated module before initialization, the designated Vl53l0X laser ranging module is enabled through a specific chip selection pin, only the module can communicate with the MCU at the moment, and the address of the module is configured through an I2C bus and subsequent configuration is carried out;
2) inquiring the calibration information in a flash storage area inside the MCU corresponding to the Vl53l0X module address, and reading the compensation parameters from the corresponding flash area for configuration if the calibration information is calibrated;
3) if no calibration rule is available, starting a self-calibration program for preventing installation errors and errors caused by external environment, wherein the self-calibration program comprises the following steps:
(1) comparing the preset distance with the measured distance by a Vl53l0X module, and returning compensation parameters for correction after each measurement;
(2) repeating the calibration process for 3 times and respectively storing the measurement results;
(3) calculating the variance of the measurement results for 3 times, and if the variance is smaller than a threshold value, successfully calibrating;
(4) the MCU obtains the compensation parameters and then stores the compensation parameters in a flash area of the corresponding address of the module;
4) reading data from each Vl53l0X module in a circulating mode;
5) and the serial port outputs the measurement data.
2. A multi-lane Vl53l0X laser range calibration drive, using a multi-lane Vl53l0X laser range calibration method of claim 1, wherein: the calibration drive comprises a control part and a sensor part, wherein the control part adopts an STM32F103C8T6 chip, and the sensor part adopts a plurality of Vl53l0X laser ranging modules.
3. The multi-channel Vl53l0X laser ranging calibration drive of claim 2, wherein: the physical laser ranging module is fixed on the driving platform in a direct insertion mode and is connected with the control part; in control, multiple paths of Vl53l0X laser ranging modules are mounted on the same I2C bus to communicate with the MCU, and each laser ranging module is provided with an independent chip selection interface which is respectively connected with different pins of the MCU; the flash of the MCU is divided into a program area and an information configuration area, and an independent information configuration address block is divided for each Vl53l0X laser ranging module in the information configuration area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010782131.5A CN111812621A (en) | 2020-08-06 | 2020-08-06 | Multi-channel Vl53l0X laser ranging calibration method and drive |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010782131.5A CN111812621A (en) | 2020-08-06 | 2020-08-06 | Multi-channel Vl53l0X laser ranging calibration method and drive |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111812621A true CN111812621A (en) | 2020-10-23 |
Family
ID=72864248
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010782131.5A Pending CN111812621A (en) | 2020-08-06 | 2020-08-06 | Multi-channel Vl53l0X laser ranging calibration method and drive |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111812621A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114928910A (en) * | 2022-06-27 | 2022-08-19 | 长沙锐逸微电子有限公司 | LED driving chip |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108196549A (en) * | 2017-01-16 | 2018-06-22 | 浙江国自机器人技术有限公司 | One kind is used for submersible AGV laser infrared obstacle avoidance systems |
CN108469617A (en) * | 2018-03-16 | 2018-08-31 | 浙江华领科技有限公司 | Laser distance measurement method based on single line laser scanning means and system |
-
2020
- 2020-08-06 CN CN202010782131.5A patent/CN111812621A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108196549A (en) * | 2017-01-16 | 2018-06-22 | 浙江国自机器人技术有限公司 | One kind is used for submersible AGV laser infrared obstacle avoidance systems |
CN108469617A (en) * | 2018-03-16 | 2018-08-31 | 浙江华领科技有限公司 | Laser distance measurement method based on single line laser scanning means and system |
Non-Patent Citations (3)
Title |
---|
STMICROELECTRONICS: ""AN4846 Using multiple VL53L0X in a single design"", pages 1 - 7 * |
STMICROELECTRONICS: ""UM2039 User Manual World smallest Time-of-Flight ranging and gesture detection sensor Application Programming Interface"", pages 6 - 9 * |
曹玲玲: "《应用统计与实务》", 华中科技大学出版社, pages: 59 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114928910A (en) * | 2022-06-27 | 2022-08-19 | 长沙锐逸微电子有限公司 | LED driving chip |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11101017B2 (en) | Memory system and test system | |
US20070055793A1 (en) | System of managing peripheral interfaces in IPMI architecture and method thereof | |
CN110689915A (en) | Remote SSD debug via host/serial interface and method of performing same | |
US8161221B2 (en) | Storage system provided with function for detecting write completion | |
US20120246385A1 (en) | Emulating spi or 12c prom/eprom/eeprom using flash memory of microcontroller | |
CN111812621A (en) | Multi-channel Vl53l0X laser ranging calibration method and drive | |
US20070250740A1 (en) | System and method for conducting BIST operations | |
CN110956998B (en) | Memory testing device and system | |
US7945714B2 (en) | Apparatus and method of tracing descriptors in host controller | |
EP3192677A1 (en) | Method for burning data into tire pressure monitoring device | |
CN116049015A (en) | Universal debugger, debugging system and debugging method of computing equipment | |
US10761747B2 (en) | Memory device and memory system including the same | |
US11586504B2 (en) | Electronic apparatus and boot method thereof | |
CN115114193A (en) | Memory system, control method of memory system, and host device | |
CN105512008A (en) | Method and device obtaining fault information | |
US11467910B2 (en) | Memory system re-performing access operation and operating method thereof | |
CN212181459U (en) | FPGA upgrading system | |
CN113468028A (en) | Device management method for computing device, apparatus and medium | |
US10489334B2 (en) | Server system and method for detecting transmission mode of server system | |
CN114826489B (en) | Link error correction method, system, storage medium and equipment | |
TWI757606B (en) | Server device and communication method between baseboard management controller and programmable logic unit thereof | |
CN110888598B (en) | Data storage device, electronic equipment and system capable of remotely controlling electronic equipment | |
US11604600B2 (en) | Stand-alone bridging test method | |
KR20190059633A (en) | Data storage device, operating method thereof and operating method for nonvolatile memory device | |
US9569379B1 (en) | Method for burning data into tire pressure monitoring device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |