Storage state detection system based on TOF distance measurement
By using the combination of TOF ranging sensor and rectifier transformer module in the storage cabinet, the accuracy and power supply stability of storage status detection are solved, and low-cost and efficient storage status detection is achieved, avoiding detection blind spots.
Patent Information
- Application Number
- CN202422200020.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2034-09-06
AI Technical Summary
The existing storage cabinet storage status detection methods have problems such as poor detection accuracy, high cost, low reliability and insufficient power supply stability, especially poor detection effect for lightweight items and complex structures.
The TOF range measurement sensor is used in combination with the rectifier transformer module to detect the storage status through the TOF range measurement module and power the system through the rectifier transformer module. The rectifier transformer module includes a filter protection unit, a rectifier transformer unit, a feedback unit and a buffer unit to ensure the stability of power supply.
It realizes efficient and accurate detection of storage status, without the need for complex transformation of storage compartments, is low in cost, and has high power supply stability, avoids detection blind spots, and improves the reliability of the system.
Smart Images

Figure CN223229754U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of storage state detection of storage devices, in particular to a storage state detection system based on TOF distance measurement. Background Art
[0002] At present, the methods for detecting the storage status of storage compartments in lockers usually include: (1) installing a pressure sensor on the bottom surface of the storage compartment and judging whether there is an item in the storage compartment by detecting the weight change. This method has poor accuracy for detecting lightweight items. (2) embedding an RFID card reader in the storage compartment, and attaching an RFID tag to the item. When the item is placed in the storage compartment, the card reader is used to identify the tag information and record the existence of the item. This method can be applied in fewer scenarios. (3) adding an ultrasonic sensor in the storage compartment. The ultrasonic sensor can be used to detect items of different shapes and materials, but the cost is relatively high. (4) installing multiple cameras in the storage compartment, combining image recognition technology, and judging whether there is an item by analyzing the image in the storage compartment. This method requires the development of a recognition algorithm, which is costly and technically complex. In summary, the current methods for detecting the storage status of storage compartments all require complex modifications to the original structure of the storage compartment, and also have problems such as poor reliability and high application cost. In addition, when detecting the storage status, the working stability of the detection device such as the sensor is required to be high. Therefore, how to improve the stability of the power supply of the detection device is also one of the problems to be solved. Utility Model Content
[0003] In response to the above problems and technical requirements, the inventors have proposed a storage status detection system based on TOF ranging.
[0004] The technical solution of the utility model is as follows:
[0005] A storage status detection system based on TOF ranging includes a host computer, several TOF ranging modules, and a rectifier and transformer module for providing working voltage for the host computer and the TOF ranging modules, wherein:
[0006] The rectifier and transformer module includes a filter protection unit, a rectifier and transformer unit, a feedback unit, and a buffer unit that are adaptively connected;
[0007] The TOF ranging module is arranged in the storage compartment and includes a TOF ranging sensor, a single-chip microcomputer and a communication unit, wherein the TOF ranging sensor is connected to the single-chip microcomputer, and the single-chip microcomputer is connected to the communication unit. The TOF ranging sensor detects the storage status information of the storage compartment and transmits it to the communication unit through the single-chip microcomputer, and the communication unit transmits the storage status information to the host computer.
[0008] A further technical solution is that the rectifier and transformer unit includes a diode D1, a diode D2, a diode D3, a diode D4, a first voltage regulator and a flyback transformer, wherein:
[0009] The flyback transformer includes a primary winding and a secondary winding, the cathode of the diode D1 is connected to the cathode of the diode D2 and the same-name end of the primary winding, the anode of the diode D1 is connected to the cathode of the diode D3, and the anode of the diode D3 is grounded;
[0010] The anode of the diode D2 is connected to the cathode of the diode D4. The anode of the diode D4 is connected to the first voltage regulator and grounded. The first voltage regulator is also connected to the opposite-name end of the primary winding. The secondary winding is connected to the filtering protection unit and the feedback unit.
[0011] A further technical solution is that the feedback unit includes a photoelectric coupler, a voltage reference chip of model TL431, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a capacitor C6, wherein:
[0012] The first input terminal of the photoelectric coupler is connected to one end of the resistor R6 and is connected to one end of the capacitor C6 through the resistor R5. The other end of the capacitor C6 is connected to one end of the resistor R3, one end of the resistor R4 and the reference end of the voltage reference chip. The other end of the resistor R4 is grounded.
[0013] The cathode terminal of the voltage reference chip is connected to the second input terminal of the photoelectric coupler, and the anode terminal of the voltage reference chip is grounded.
[0014] Its further technical solution is that the first voltage regulator includes a voltage regulator chip model NCP1054P100, and the voltage regulator chip includes a Drain pin, a Control Input pin, a VCC pin and a Ground3 pin, wherein,
[0015] The Drain pin is connected to the opposite-name end of the primary winding, the VCC pin is connected to the Ground3 pin via capacitor U2, the Control Input pin is connected to the Ground3 pin via capacitor C4, and the Ground3 pin is grounded;
[0016] The first output end of the photoelectric coupler is connected to the Ground3 pin and the VCC pin, and the second output end of the photoelectric coupler is connected to the Control Input pin.
[0017] A further technical solution is that the filtering protection unit includes an input filtering protection subunit and an output filtering protection subunit;
[0018] The input filter protection subunit includes a fuse F2, a capacitor C1, a capacitor U3, and a common-mode choke L1, wherein one end of the fuse F2 is connected to one end of the capacitor C1 and the first input end of the common-mode choke L1, and the second input end of the common-mode choke L1 is connected to the other end of the capacitor C1;
[0019] The first output end of the common-mode choke L1 is connected to the anode of the diode D2 and the cathode of the diode D4, and the second output end of the common-mode choke L1 is connected to the anode of the diode D1 and the cathode of the diode D3;
[0020] One end of the capacitor U3 is connected to the cathode of the diode D2 and the cathode of the diode D1 , and the other end of the capacitor U3 is connected to the anode of the diode D4 and is grounded.
[0021] A further technical solution is that the output filter protection subunit includes a voltage stabilizing diode D6, a capacitor U5, a capacitor U6, a capacitor U7, a capacitor U8, a capacitor U9 and an inductor L2, wherein:
[0022] The positive electrode of the voltage stabilizing diode D6 is connected to the opposite-name end of the secondary winding, the negative electrode of the voltage stabilizing diode D6 is connected to one end of the capacitor U5, and the other end of the capacitor U5 is connected to the same-name end of the secondary winding;
[0023] The capacitor U6 and the capacitor U7 are both connected in parallel with the capacitor U5. One end of the inductor L2 is connected to one end of the capacitor U5, the capacitor U6 and the capacitor U7. The other end of the inductor L2 is connected to one end of the capacitor U8 and the capacitor U9 to form the output end of the rectifier and transformer module. The other end of the capacitor U8 and the other end of the capacitor U9 are grounded.
[0024] A further technical solution is that the buffer unit includes a resistor R1, a resistor R2, a capacitor C2, a capacitor C3 and a diode D5, wherein:
[0025] One end of the capacitor C2 is connected to the cathode of the diode D1, one end of the capacitor C3, and the same-name end of the primary winding, the other end of the capacitor C2 is connected to the cathode of the diode D5, the cathode of the diode D5 is connected to one end of the resistor R2, the opposite-name end of the primary winding, and the Drain pin of the first regulator, the resistor R2 is connected to the other end of the capacitor C3, and the resistor R1 is connected in parallel with the capacitor C2.
[0026] Its further technical solution is that the TOF ranging module also includes a second voltage regulator, the model of the second voltage regulator is LP5907, including an IN pin, a GND pin, an EN pin and an OUT pin, the IN pin is connected to the EN pin and connected to the GND pin through a capacitor C15, the GND pin is grounded, the OUT pin is grounded through a capacitor C16, and the capacitor C16 is connected in parallel with the capacitor C17.
[0027] Its further technical solution is that the model of the TOF ranging sensor is VL53L4CD, including a TOF_SDA pin and a TOF_SCL pin;
[0028] The model of the single chip microcomputer is ESP8266, including an SDA pin and an SCL pin. The SDA pin is connected to the TOF_SDA pin through a switch device U16, and the SCL pin is connected to the TOF_SCL pin through a switch device U15;
[0029] The SDA pin is connected to the OUT pin of the second voltage regulator through a resistor R45, and the TOF_SDA pin is connected to the output end of the rectifier and transformer module through a resistor R47;
[0030] The SCL pin is connected to the OUT pin of the second voltage regulator through a resistor R44, and the TOF_SCL pin is connected to the output end of the rectifier and transformer module through a resistor R46.
[0031] Its further technical solution is that the communication unit includes a communication chip of model SP3485, including an RO pin and a DI pin, the RO pin is connected to the cathode of the diode D41, the anode of the diode D41 is connected to the TXD0 pin of the microcontroller, and the DI pin is connected to the RXD0 pin of the microcontroller.
[0032] The beneficial technical effects of the utility model are:
[0033] The utility model provides a storage status detection system based on time-of-flight (TOF) ranging. This system can stably read storage status information detected by multiple TOF ranging modules through a host computer. The TOF ranging modules are small and low-cost, and the application of this storage status detection system does not require complex modifications to the original structure of the storage compartment. At the same time, by placing multiple TOF ranging modules, the storage status of the entire space within the storage compartment can be detected, eliminating the detection blind spots. In addition, the rectifier and transformer modules provided in the system can improve the stability of the system power supply, ensuring the stable operation of the detection device, namely the TOF ranging module. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1This is a system block diagram of an embodiment of a storage status detection system based on TOF ranging.
[0035] Figure 2 FIG. 1 is a pin diagram of an embodiment of a second voltage regulator.
[0036] Figure 3 This is a circuit diagram of an embodiment of a rectifier and transformer module.
[0037] Figure 4 This is a pin diagram of an embodiment of a TOF ranging sensor.
[0038] Figure 5 The diagram is a partial pin connection diagram of a TOF ranging sensor and a single chip microcomputer in an embodiment.
[0039] Figure 6 This is a pin diagram of one embodiment of a communication unit. DETAILED DESCRIPTION
[0040] The specific implementation of the present utility model will be further described below with reference to the accompanying drawings.
[0041] The utility model provides a storage status detection system based on TOF ranging, including a host computer, several TOF ranging modules and a rectifier transformer module for providing working voltage for the host computer and the TOF ranging modules, wherein:
[0042] The rectifier and transformer module includes a filter protection unit, a rectifier and transformer unit, a feedback unit, and a buffer unit that are adaptively connected;
[0043] The TOF ranging module is arranged in the storage compartment and includes a TOF ranging sensor, a single-chip microcomputer and a communication unit, wherein the TOF ranging sensor is connected to the single-chip microcomputer, and the single-chip microcomputer is connected to the communication unit. The TOF ranging sensor detects the storage status information of the storage compartment and transmits it to the communication unit through the single-chip microcomputer, and the communication unit transmits the storage status information to the host computer.
[0044] Specifically, the TOF (Time of flight) ranging sensor in the TOF ranging module emits a detection light. After the detection light is reflected back from the object to be measured by the sensor, the distance between the object to be measured and the sensor is measured based on the time difference between the emission of the detection light and the return of the object to be measured to the sensor after reflection. The TOF ranging module is fixed in the storage compartment. When an object is placed in the storage compartment, the placed object will change the measurement result of the TOF ranging sensor in the TOF ranging module. Therefore, according to the measurement result of the TOF ranging sensor, it can be determined whether there is an object placed in the storage compartment, that is, the storage state of the storage compartment is determined. The storage state information of the storage compartment is the measurement result of the TOF ranging sensor. The storage state information is transmitted to the host computer through the single-chip microcomputer and the communication unit. The specific method of information transmission can be referred to the following description. The host computer can be a Raspberry Pi.
[0045] The TOF ranging module can be fixed on the top surface or side surface of the inner wall of the storage compartment, and one or more TOF ranging modules can be fixed in a storage compartment. Since the detection range of the TOF ranging module is limited, when performing storage status detection on a storage compartment with a larger volume, multiple TOF ranging modules can be placed to detect the storage status of the entire space in the storage compartment, thereby preventing the occurrence of detection blind spots and ensuring the accuracy of detection.
[0046] At the same time, in order to improve the stability of the system power supply, the host computer and the TOF ranging module are powered by a rectifier and transformer module in this system. The rectifier and transformer module includes an adaptively connected filter protection unit, a rectifier and transformer unit, a feedback unit and a buffer unit. The specific structure and connection method of the filter protection unit, the rectifier and transformer unit, the feedback unit and the buffer unit can be referred to the following description.
[0047] Furthermore, the rectifier and transformer unit includes a diode D1, a diode D2, a diode D3, a diode D4, a first voltage regulator, and a flyback transformer, wherein:
[0048] The flyback transformer includes a primary winding and a secondary winding, the cathode of the diode D1 is connected to the cathode of the diode D2 and the same-name end of the primary winding, the anode of the diode D1 is connected to the cathode of the diode D3, and the anode of the diode D3 is grounded;
[0049] The anode of the diode D2 is connected to the cathode of the diode D4. The anode of the diode D4 is connected to the first voltage regulator and grounded. The first voltage regulator is also connected to the opposite-name end of the primary winding. The secondary winding is connected to the filtering protection unit and the feedback unit.
[0050] Specifically, the rectifier and transformer unit is connected to the filtering protection unit, which includes an input filtering protection subunit, and the input filtering protection subunit includes a fuse F2, a capacitor C1, a capacitor U3 and a common-mode choke L1, wherein one end of the fuse F2 is connected to one end of the capacitor C1 and the first input end of the common-mode choke L1, and the second input end of the common-mode choke L1 is connected to the other end of the capacitor C1; the first output end of the common-mode choke L1 is connected to the positive pole of the diode D2 and the negative pole of the diode D4, and the second output end of the common-mode choke L1 is connected to the positive pole of the diode D1 and the negative pole of the diode D3; one end of the capacitor U3 is connected to the negative pole of the diode D2 and the negative pole of the diode D1, and the other end of the capacitor U3 is connected to the positive pole of the diode D4 and grounded.
[0051] Figure 3 A schematic diagram of a rectifier-transformer module embodiment is shown. As shown, 220V AC power is applied to the input filter protection subunit via one end of fuse F2 and one end of capacitor C1. It is then fed through common-mode choke L1 to diodes D1, D2, D3, and D4, forming a bridge rectifier. This bridge rectifier converts the AC power into DC power. Fuse F2 protects the circuit from surge damage when it is turned on. In this embodiment, F2 has a rated current of 2A. Common-mode choke L1 improves the device's EMI capability, and both capacitor C1 and common-mode choke L1 attenuate differential-mode noise. Capacitor U3 maintains the rectified line voltage and filters out common-mode noise. In this embodiment, capacitor U3 is a 33uF aluminum electrolytic capacitor, which is durable and highly reliable.
[0052] The first voltage regulator is used to switch and control the charging and discharging of the primary winding of the flyback transformer. In this embodiment, the flyback transformer has an output voltage of 5V and an output current of 2A. The flyback transformer stores magnetic energy during charging through the primary winding and releases it through the secondary winding during discharge. To maximize power and ensure the normal operation of the first voltage regulator, in this embodiment, the maximum duty cycle of the flyback transformer is 48%. Parameters such as the inductance of the flyback transformer's primary winding are determined in a manner consistent with existing technology.
[0053] The first voltage stabilizer can use a voltage stabilizer chip model NCP1054P100, which includes a Drain pin, a Control Input pin, a VCC pin, and a Ground3 pin. The Drain pin is connected to the opposite end of the primary winding to perform switch control on the charge and discharge of the primary winding. The VCC pin is connected to the Ground3 pin via capacitor U2, the Control Input pin is connected to the Ground3 pin via capacitor C4, and the Ground3 pin is connected to the ground. Figure 3 As shown, according to the pin numbers, the third pin, the seventh pin and the eighth pin in the voltage regulator chip are all Ground pins, the Ground3 pin is the Ground pin corresponding to the third pin, and the seventh pin and the eighth pin are grounded.
[0054] Furthermore, the feedback unit includes a photoelectric coupler, a voltage reference chip of model TL431, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a capacitor C6, wherein:
[0055] The first input terminal of the photoelectric coupler is connected to one end of the resistor R6 and is connected to one end of the capacitor C6 through the resistor R5. The other end of the capacitor C6 is connected to one end of the resistor R3, one end of the resistor R4 and the reference end of the voltage reference chip. The other end of the resistor R4 is grounded.
[0056] The cathode terminal of the voltage reference chip is connected to the second input terminal of the photoelectric coupler, and the anode terminal of the voltage reference chip is grounded.
[0057] Specifically, the first input terminal of the photocoupler corresponds to the anode of the light-emitting diode within the photocoupler, the second input terminal corresponds to the cathode of the light-emitting diode within the photocoupler, the first output terminal of the photocoupler is connected to the Ground3 pin and the VCC pin, and the second output terminal of the photocoupler is connected to the Control Input pin. The first output terminal of the photocoupler corresponds to the emitter of the phototransistor within the photocoupler, and the second output terminal corresponds to the collector of the phototransistor within the photocoupler.
[0058] The TL431 voltage reference chip has a built-in reference voltage, which can be adjusted using an external resistor. In this embodiment, the reference voltage is set to 2.5V, and the resistance values of resistors R3 and R4 are equal, both 2kΩ. When the feedback unit is operating, the output voltage of the flyback transformer is divided by resistors R3 and R4 to generate a divided voltage, which is applied to the reference terminal of the TL431 voltage reference chip. The TL431 voltage reference chip compares the divided voltage with the 2.5V reference voltage. When the divided voltage is greater than the reference voltage, the transistor built into the voltage reference chip turns on, the second input terminal of the optocoupler is grounded, and the light-emitting diode within the optocoupler illuminates, turning on the phototransistor. This reduces the voltage at the Control Input pin of the NCP1054P100 voltage regulator chip, thereby adjusting the duty cycle of the flyback transformer via the Drain pin to stabilize the output voltage of the flyback transformer at 5V. Capacitor C6, a compensation capacitor, is connected between the reference terminal and the cathode terminal of the voltage reference chip to enhance chip stability. Resistor R6 limits the current through the optocoupler to a safe level, preventing damage to the optocoupler.
[0059] Furthermore, the filtering protection unit further includes an output filtering protection subunit, which includes a voltage stabilizing diode D6, a capacitor U5, a capacitor U6, a capacitor U7, a capacitor U8, a capacitor U9 and an inductor L2, wherein:
[0060] The positive electrode of the voltage stabilizing diode D6 is connected to the opposite-name end of the secondary winding, the negative electrode of the voltage stabilizing diode D6 is connected to one end of the capacitor U5, and the other end of the capacitor U5 is connected to the same-name end of the secondary winding;
[0061] The capacitor U6 and the capacitor U7 are both connected in parallel with the capacitor U5. One end of the inductor L2 is connected to one end of the capacitor U5, the capacitor U6 and the capacitor U7. The other end of the inductor L2 is connected to one end of the capacitor U8 and the capacitor U9 to form the output end of the rectifier and transformer module. The other end of the capacitor U8 and the other end of the capacitor U9 are grounded.
[0062] Specifically, the output filter protection subunit is used to filter the output voltage of the flyback transformer. In this embodiment, capacitors U5, U6, and U7 are connected in parallel to reduce Equivalent Series Resistance (ESR). Capacitors U5, U6, and U7 must have high voltage ratings to withstand voltage spikes and output voltage. Inductor L2, capacitors U8, and capacitors U9 form a low-pass filter that attenuates high-frequency noise.
[0063] Furthermore, the buffer unit includes a resistor R1, a resistor R2, a capacitor C2, a capacitor C3 and a diode D5, wherein:
[0064] One end of the capacitor C2 is connected to the cathode of the diode D1, one end of the capacitor C3, and the same-name end of the primary winding, the other end of the capacitor C2 is connected to the cathode of the diode D5, the cathode of the diode D5 is connected to one end of the resistor R2, the opposite-name end of the primary winding, and the Drain pin of the first regulator, the resistor R2 is connected to the other end of the capacitor C3, and the resistor R1 is connected in parallel with the capacitor C2.
[0065] Specifically, resistor R1, capacitor C2, and diode D5 form an RCD snubber to suppress voltage oscillations. Resistor R2 and capacitor C3 form an RC ringing damper, which reduces peak voltage and thus reduces ringing caused by high-frequency noise. Increasing the capacitor size appropriately can also reduce the amplitude of voltage ripple. The snubber and ringing damper work together to protect the first regulator from transient voltages and reduce radiated noise.
[0066] Furthermore, the TOF ranging module also includes a second voltage regulator, the model of the second voltage regulator is LP5907, including an IN pin, a GND pin, an EN pin and an OUT pin, the IN pin is connected to the EN pin and connected to the GND pin through a capacitor C15, the GND pin is grounded, the OUT pin is grounded through a capacitor C16, and the capacitor C16 is connected in parallel with the capacitor C17.
[0067] Specifically, Figure 2 The pin diagram of the second voltage regulator of model LP5907 is shown. The second voltage regulator is used to convert the 5V output voltage output by the rectifier and transformer module into a 2.8V power supply voltage for the TOF ranging sensor. In this embodiment, the TOF ranging sensor model is VL53L4CD. Figure 4 The TOF ranging sensor pin diagram is shown. As shown in the figure, the XSHUT pin of the TOF ranging sensor is connected to a 2.8V power supply voltage through a resistor R4, the GPIO1 pin is connected to a 2.8V power supply voltage through a resistor R23, and the AVDDVCSEL pin and the AVSSVCSEL pin are also connected to a 2.8V power supply voltage.
[0068] The TOF ranging sensor transmits information to the single-chip microcomputer through the IIC (Inter Integrated Circuit) bus. In this embodiment, the single-chip microcomputer is ESP8266, including the SDA pin and the SCL pin. Figure 4It can be seen that the TOF ranging sensor also includes an SDA pin and an SCL pin. To distinguish the TOF ranging sensor from the SDA pin and SCL pin of the microcontroller, the SDA pin of the TOF ranging sensor is represented as the TOF_SDA pin, and the SCL pin of the TOF ranging sensor is represented as the TOF_SCL pin. The SDA pin is connected to the TOF_SDA pin via a switch device U16, and the SCL pin is connected to the TOF_SCL pin via a switch device U15. The SDA pin is connected to the OUT pin of the second voltage regulator via a resistor R45, and the TOF_SDA pin is connected to the output of the rectifier and transformer module via a resistor R47. The SCL pin is connected to the OUT pin of the second voltage regulator via a resistor R44, and the TOF_SCL pin is connected to the output of the rectifier and transformer module via a resistor R46, so that the voltages of the TOF_SDA pin and TOF_SCL pin are pulled up to 5V, and the voltages of the SDA pin and SCL pin of the microcontroller are pulled up to 2.8V.
[0069] In this embodiment, the switch device U15 and the switch device U16 are both NMOS transistors. The source of the switch device U15 is connected to the TOF_SCL pin, the drain of the switch device U15 is connected to the SCL pin, and the gate of the switch device U15 is connected to a 2.8V power supply voltage. The source of the switch device U16 is connected to the TOF_SDA pin, the drain of the switch device U16 is connected to the SDA pin, and the gate of the switch device U16 is connected to a 2.8V power supply voltage.
[0070] Furthermore, the communication unit includes a communication chip of model SP3485, including an RO pin and a DI pin. The RO pin is connected to the cathode of the diode D41, the anode of the diode D41 is connected to the TXD0 pin of the microcontroller, and the DI pin is connected to the RXD0 pin of the microcontroller.
[0071] Specifically, the communication chip of SP3485 uses the MODBUS RTU protocol to transmit information with the host computer. The storage status information described in the MODBUS RTU protocol will be stored in the MODBUS register. The host computer can obtain the storage status information by reading the MODBUS register to complete the information transmission. Figure 6 The pin diagram of the SP3485 communication chip is shown in FIG. Figure 6 As shown, the RE# pin and DE pin in the communication chip are used to control the signal transmission and reception of the communication chip. The VCC pin is connected to the microcontroller, and the microcontroller provides the operating voltage to the VCC pin. The VCC pin is connected to the A pin through the resistor R42, and the B pin is connected to the GND pin through the resistor R43. The A pin and the B pin are connected to the host computer through the RS485 interface.
[0072] The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment. It is understood that other improvements and variations directly derived or imagined by those skilled in the art without departing from the spirit and concept of the present invention should be considered to be included in the scope of protection of the present invention.
Claims
1. A storage status detection system based on TOF ranging, characterized in that: It includes a host computer, several TOF ranging modules and a rectifier and transformer module for providing working voltage for the host computer and the TOF ranging modules, wherein: The rectifier and transformer module includes a filter protection unit, a rectifier and transformer unit, a feedback unit, and a buffer unit that are adaptively connected; The TOF ranging module is arranged in the storage compartment and includes a TOF ranging sensor, a single-chip microcomputer and a communication unit, wherein the TOF ranging sensor is connected to the single-chip microcomputer, and the single-chip microcomputer is connected to the communication unit. The TOF ranging sensor detects the storage status information of the storage compartment and transmits it to the communication unit through the single-chip microcomputer, and the communication unit transmits the storage status information to the host computer.
2. The storage status detection system based on TOF ranging according to claim 1 is characterized in that: The rectifier and transformer unit includes a diode D1, a diode D2, a diode D3, a diode D4, a first voltage regulator, and a flyback transformer, wherein: The flyback transformer includes a primary winding and a secondary winding, the cathode of the diode D1 is connected to the cathode of the diode D2 and the same-name end of the primary winding, the anode of the diode D1 is connected to the cathode of the diode D3, and the anode of the diode D3 is grounded; The anode of the diode D2 is connected to the cathode of the diode D4. The anode of the diode D4 is connected to the first voltage regulator and grounded. The first voltage regulator is also connected to the opposite-name end of the primary winding. The secondary winding is connected to the filtering protection unit and the feedback unit.
3. The storage status detection system based on TOF ranging according to claim 2 is characterized in that: The feedback unit includes a photoelectric coupler, a voltage reference chip of model TL431, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a capacitor C6, wherein: The first input terminal of the photoelectric coupler is connected to one end of the resistor R6 and is connected to one end of the capacitor C6 through the resistor R5. The other end of the capacitor C6 is connected to one end of the resistor R3, one end of the resistor R4 and the reference end of the voltage reference chip. The other end of the resistor R4 is grounded. The cathode terminal of the voltage reference chip is connected to the second input terminal of the photoelectric coupler, and the anode terminal of the voltage reference chip is grounded.
4. The storage status detection system based on TOF ranging according to claim 3 is characterized in that: The first voltage regulator includes a voltage regulator chip model NCP1054P100, and the voltage regulator chip includes a Drain pin, a Control Input pin, a VCC pin, and a Ground3 pin, wherein: The Drain pin is connected to the opposite-name end of the primary winding, the VCC pin is connected to the Ground3 pin via capacitor U2, the Control Input pin is connected to the Ground3 pin via capacitor C4, and the Ground3 pin is grounded; The first output end of the photoelectric coupler is connected to the Ground3 pin and the VCC pin, and the second output end of the photoelectric coupler is connected to the Control Input pin.
5. The storage status detection system based on TOF ranging according to claim 4 is characterized in that: The filtering protection unit includes an input filtering protection subunit and an output filtering protection subunit; The input filter protection subunit includes a fuse F2, a capacitor C1, a capacitor U3, and a common-mode choke L1, wherein one end of the fuse F2 is connected to one end of the capacitor C1 and the first input end of the common-mode choke L1, and the second input end of the common-mode choke L1 is connected to the other end of the capacitor C1; The first output end of the common-mode choke L1 is connected to the anode of the diode D2 and the cathode of the diode D4, and the second output end of the common-mode choke L1 is connected to the anode of the diode D1 and the cathode of the diode D3; One end of the capacitor U3 is connected to the cathode of the diode D2 and the cathode of the diode D1 , and the other end of the capacitor U3 is connected to the anode of the diode D4 and is grounded.
6. The storage status detection system based on TOF ranging according to claim 5 is characterized in that: The output filter protection subunit includes a voltage stabilizing diode D6, a capacitor U5, a capacitor U6, a capacitor U7, a capacitor U8, a capacitor U9 and an inductor L2, wherein: The positive electrode of the voltage stabilizing diode D6 is connected to the opposite-name end of the secondary winding, the negative electrode of the voltage stabilizing diode D6 is connected to one end of the capacitor U5, and the other end of the capacitor U5 is connected to the same-name end of the secondary winding; The capacitor U6 and the capacitor U7 are both connected in parallel with the capacitor U5. One end of the inductor L2 is connected to one end of the capacitor U5, the capacitor U6 and the capacitor U7. The other end of the inductor L2 is connected to one end of the capacitor U8 and the capacitor U9 to form the output end of the rectifier and transformer module. The other end of the capacitor U8 and the other end of the capacitor U9 are grounded.
7. The storage status detection system based on TOF ranging according to claim 6 is characterized in that: The buffer unit includes a resistor R1, a resistor R2, a capacitor C2, a capacitor C3 and a diode D5, wherein: One end of the capacitor C2 is connected to the cathode of the diode D1, one end of the capacitor C3, and the same-name end of the primary winding, the other end of the capacitor C2 is connected to the cathode of the diode D5, the cathode of the diode D5 is connected to one end of the resistor R2, the opposite-name end of the primary winding, and the Drain pin of the first regulator, the resistor R2 is connected to the other end of the capacitor C3, and the resistor R1 is connected in parallel with the capacitor C2.
8. The storage status detection system based on TOF ranging according to claim 6, characterized in that: The TOF ranging module also includes a second voltage regulator, the model of which is LP5907, including an IN pin, a GND pin, an EN pin and an OUT pin. The IN pin is connected to the EN pin and to the GND pin through a capacitor C15. The GND pin is grounded, and the OUT pin is grounded through a capacitor C16. The capacitor C16 is connected in parallel with the capacitor C17.
9. The storage status detection system based on TOF ranging according to claim 8, characterized in that: The model of the TOF ranging sensor is VL53L4CD, including TOF_SDA pin and TOF_SCL pin; The model of the single chip microcomputer is ESP8266, including an SDA pin and an SCL pin. The SDA pin is connected to the TOF_SDA pin through a switch device U16, and the SCL pin is connected to the TOF_SCL pin through a switch device U15; The SDA pin is connected to the OUT pin of the second voltage regulator through a resistor R45, and the TOF_SDA pin is connected to the output end of the rectifier and transformer module through a resistor R47; The SCL pin is connected to the OUT pin of the second voltage regulator through a resistor R44, and the TOF_SCL pin is connected to the output end of the rectifier and transformer module through a resistor R46.
10. The storage status detection system based on TOF ranging according to claim 8, characterized in that: The communication unit includes a communication chip of model SP3485, including an RO pin and a DI pin. The RO pin is connected to the cathode of the diode D41, the anode of the diode D41 is connected to the TXD0 pin of the microcontroller, and the DI pin is connected to the RXD0 pin of the microcontroller.