Object existence state detection sensor and method
By detecting light signals from the light-emitting module and the light-receiving module, and combining this with calculations from the control module, the automatic detection of the state of objects inside the storage device is achieved. This solves the problem of low efficiency in manual inspection and improves management convenience and efficiency.
Patent Information
- Application Number
- CN202511012697.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2025-11-14
AI Technical Summary
Existing storage devices are inefficient in managing items, requiring manual checks of space occupancy, which is cumbersome.
The object presence state detection sensor uses a light-emitting module and a light-receiving module in conjunction with a control module. It detects the presence state of an object through light signals, and the control module calculates the presence state of the object in the target area based on the feedback signal and outputs the detection result.
The storage unit can be opened frequently to check the contents, improving the convenience and efficiency of storage management and reducing power consumption and cold air loss.
Smart Images

Figure CN120949347A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of sensor technology, and in particular to a sensor and method for detecting the presence of an object. Background Technology
[0002] Storage devices are needed in many aspects of production and daily life, such as refrigerators, wardrobes, shoe cabinets, and suitcases. During the use and management of these devices, items need to be added, removed, and managed according to the space occupied. Manually checking the occupancy of storage devices is cumbersome and inefficient. Summary of the Invention
[0003] In view of this, this application provides a sensor and method for detecting the presence of an object, with the main objective of improving the convenience and efficiency of storage management.
[0004] According to a first aspect of the present invention, an object presence state detection sensor is provided, the sensor comprising: a light-emitting module, a light-receiving module, and a control module; the light-emitting module and the light-receiving module are both connected to the control module;
[0005] The light-emitting module is used to send a detection signal to the light-receiving module;
[0006] The light-receiving module is used to generate a feedback signal based on the received detection signal and send the feedback signal to the control module;
[0007] The control module is used to calculate the existence state of an object in the target area between the light-emitting module and the light-receiving module based on the feedback signal. The existence state of the object includes the presence of an object and the absence of an object.
[0008] In some embodiments, the light-emitting module includes a plurality of light-emitting elements, the light-receiving module includes a plurality of light-receiving elements, and the light-emitting elements and the light-receiving elements are arranged one-to-one to form a plurality of detection units, wherein each group of detection units includes one light-emitting element and one light-receiving element, and each group of detection units is arranged at a preset interval; the detection signal is red light or infrared light.
[0009] In some embodiments, the control module is configured to send detection commands to the light-emitting module and the light-receiving module, controlling each group of detection units to sequentially initiate detection, including:
[0010] The control module controls the light-emitting elements in the light-emitting module to sequentially emit detection signals, and controls the light-receiving elements in the light-receiving module to generate feedback signals respectively.
[0011] In some embodiments, the control module is configured to send a detection command to the light-emitting module and the light-receiving module upon receiving a detection instruction input by a user, or...
[0012] The control module sends detection commands to the light-emitting module and the light-receiving module at preset time intervals.
[0013] In some embodiments, the control module is used to issue the detection command to control the detection unit to perform two rounds of detection continuously, and to record the detection results corresponding to the two rounds of detection by the detection unit;
[0014] If the control module determines that the detection results of the two rounds of detection by the detection unit are the same, it outputs the corresponding detection result of the detection unit.
[0015] If the control module determines that the detection results of the two rounds of detection by the detection unit are different, it controls the light-emitting element in the detection unit to continuously emit a preset number of detection signals to perform multiple detections.
[0016] In some embodiments, when the control module controls the detection unit to perform multiple detections, if at least two of the detection results corresponding to the detection signals of a preset number of detections indicate the presence of an object, then the final detection result corresponding to the detection unit is determined to be the presence of an object.
[0017] In some embodiments, the feedback signal is used to characterize the luminous flux of the detection signal received by the light-receiving element;
[0018] The control module is used to determine that the detection result corresponding to the feedback signal is that an object exists when the feedback signal meets a preset first threshold range, and to determine that the detection result corresponding to the feedback signal is that an object does not exist when the feedback signal meets a preset second threshold range.
[0019] In some embodiments, the control module determines the detection result corresponding to the feedback signal based on the measured fluctuation threshold range, including:
[0020] When measuring the fluctuation threshold, if the measured value corresponding to the received feedback signal is different from the preset factory value, the measured value is recorded, and the fluctuation threshold range is calculated based on the measured value and the factory value.
[0021] When detecting the presence of an object, if the detection value corresponding to the received feedback signal meets the fluctuation threshold range, the detection result corresponding to the feedback signal is determined to be that the object exists; if the detection value of the received feedback signal does not meet the fluctuation threshold range, the detection result corresponding to the feedback signal is determined to be that the object does not exist.
[0022] According to a second aspect of the present invention, a method for detecting the presence state of an object is provided, the method being applied in an object presence state detection sensor as described in any of the preceding claims, the method comprising:
[0023] The light-emitting module sends a detection signal to the light-receiving module;
[0024] The light-receiving module generates a feedback signal based on the received detection signal and sends the feedback signal to the control module;
[0025] The control module calculates the existence state of the object in the target area between the light-emitting module and the light-receiving module based on the feedback signal. The existence state of the object includes the presence of an object and the absence of an object.
[0026] In some embodiments, the method further includes the control module sending a detection command to the light-emitting module and the light-receiving module when it receives a detection instruction input by the user, or the control module sending a detection command to the light-emitting module and the light-receiving module at preset time intervals;
[0027] The control module sends detection commands to the light-emitting module and the light-receiving module, and controls each group of detection units to start detection in sequence, including: the control module controls the light-emitting elements in the light-emitting module to emit detection signals in sequence, and controls the light-receiving elements in the light-receiving module to generate feedback signals respectively.
[0028] By employing the above technical solution, this application provides an object presence state detection sensor and method. The sensor includes a light-emitting module, a light-receiving module, and a control module. Both the light-emitting module and the light-receiving module are connected to the control module. The light-emitting module sends a detection signal to the light-receiving module. The light-receiving module generates a feedback signal based on the received detection signal and sends the feedback signal to the control module. The control module calculates the presence state of an object in a target area between the light-emitting module and the light-receiving module based on the feedback signal. The presence state of the object includes the presence of an object and the absence of an object. By employing the above technical solution, the presence state of an object in a target area is detected through signal transmission between the light-emitting module and the light-receiving module. The detection signal can be an optical signal. When an object exists between the light-emitting module and the light-receiving module, the light flux received by the light-receiving module is smaller compared to when no object is present. Based on this, the light-receiving module generates a feedback signal based on the received detection signal and sends it to the control module. The control module calculates the presence state of the object in the target area based on the feedback signal and outputs the detection result. In this way, the presence of objects in the storage device can be displayed visually, thus revealing the occupancy of the storage space. This eliminates the need to open the storage device every time to check, improving the convenience and efficiency of storage management.
[0029] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0030] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0031] Figure 1 This diagram illustrates the structure of an object presence state detection sensor according to an embodiment of the present invention.
[0032] Figure 2 This diagram illustrates the structure of another object presence state detection sensor provided in an embodiment of the present invention.
[0033] Figure 3 This diagram illustrates a structural schematic of a light-emitting module according to an embodiment of the present invention.
[0034] Figure 4 A schematic diagram of a light-receiving module provided in an embodiment of the present invention is shown;
[0035] Figure 5 This diagram illustrates the structure of yet another object presence state detection sensor provided in an embodiment of the present invention.
[0036] Figure 6 The diagram shows a flowchart of an object presence state detection method provided by an embodiment of the present invention. Detailed Implementation
[0037] The present invention will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in the present application can be combined with each other.
[0038] Storage devices are needed in many aspects of production and daily life, such as refrigerators, wardrobes, shoe cabinets, and suitcases. During the use and management of these devices, items need to be added, removed, and managed according to the space occupied. Manually checking the occupancy of storage devices is cumbersome and inefficient.
[0039] Based on the above problems, embodiments of this application provide an object presence state detection sensor, such as... Figure 1 and Figure 2 As shown, the aforementioned object presence detection sensor includes a light-emitting module, a light-receiving module, and a control module, wherein both the light-emitting module and the light-receiving module are connected to the control module. The light-emitting module is used to send a detection signal to the light-receiving module; the light-receiving module is used to generate a feedback signal based on the received detection signal and send the feedback signal to the control module; the control module is used to calculate the presence state of an object in the target area between the light-emitting module and the light-receiving module based on the feedback signal, wherein the presence state includes the presence of an object and the absence of an object.
[0040] In the above embodiments, the light-emitting module and the light-receiving module are arranged opposite to each other, such as... Figure 2 As shown, a target area is formed between the light-emitting module and the light-receiving module, which is the detection area. The object presence state sensor provided in this embodiment can detect the presence state of objects in the target area. The control module controls the detection state of the light-emitting module and the light-receiving module. Specifically, it can control whether the light-emitting module and the light-receiving module start detection by sending detection commands to them. The light-emitting module and the light-receiving module can be connected by connectors and wires. The connectors and wires connect the control terminals of the light-emitting module and the light-receiving module, thereby improving the synchronization of receiving and responding to detection commands issued by the control module, reducing communication latency, and thus improving the accuracy and speed of detection results.
[0041] The light-emitting module and the light-receiving module can transmit light signals. Specifically, the detection signal sent by the light-emitting module to the light-receiving module is a light signal. The light-receiving module generates a feedback signal based on the received detection signal and sends it to the control module. The process of generating the feedback signal involves the light-receiving module converting the received light signal into an electrical signal, thus representing the luminous flux received by the light-receiving module in electrical form. In the target area between the light-emitting and light-receiving modules, the luminous flux received by the light-receiving module is maximum when no object is present, and lower when an object is present. Based on this, the control module can calculate the presence status of objects in the target area based on the received feedback signal.
[0042] The object presence detection sensor provided in this application detects the presence of objects in a target area through signal transmission between a light-emitting module and a light-receiving module. The detection signal can be a light signal. When an object is present between the light-emitting and light-receiving modules, the luminous flux received by the light-receiving module is less than when no object is present. Based on this, the light-receiving module generates a feedback signal based on the received detection signal and sends it to the control module. The control module calculates the presence of objects in the target area based on the feedback signal and outputs the detection result. In this way, the presence of objects in the storage device can be displayed visually, thus revealing the space occupancy of the storage device without having to open it every time, improving the convenience and efficiency of storage management.
[0043] In one example, the storage device can be a refrigerator, such as a car refrigerator. Traditional car refrigerators lack intelligent functions and cannot monitor the status of items inside in real time. On the one hand, users may forget whether there are perishable items, such as fresh produce or medicine, inside the refrigerator, leading to waste or safety hazards. On the other hand, frequently opening and closing the refrigerator door to check the status of items inside increases power consumption. Based on this scenario, in this embodiment, the light-emitting module and the light-receiving module can be horizontally installed at the bottom of two opposite inner walls of the car refrigerator (for refrigerators with partitions, they can also be installed near the partitions on two opposite inner walls), thereby realizing the detection of the status of items inside the car refrigerator. By applying the object presence status detection sensor provided in this embodiment, the presence of items inside the refrigerator can be known without manually opening the refrigerator door, avoiding the loss of cold air and power waste caused by frequent door opening and closing. Furthermore, this embodiment uses photoelectric sensing technology to detect the status of items inside the car refrigerator, which is unaffected by the driving environment, such as vibrations from climbing steep roads, and has good anti-interference performance.
[0044] In one embodiment, the light-emitting module includes multiple light-emitting elements, the light-receiving module includes multiple light-receiving elements, and the light-emitting elements and the light-receiving elements are arranged one-to-one to form multiple sets of detection units, wherein each set of detection units includes one light-emitting element and one light-receiving element, and each set of detection units is arranged at a preset interval; the detection signal is red light or infrared light.
[0045] In the above embodiments, such as Figure 3 and Figure 4 As shown, the light-emitting module may include one or more light-emitting elements, and the light-receiving module may include one or more light-receiving elements. The number of light-emitting elements and light-receiving elements is the same. The light-emitting elements are mounted on the circuit board of the light-emitting module, and the light-receiving elements are mounted on the circuit board of the light-receiving module. The control module may be mounted on the circuit board of either the light-emitting module or the light-receiving module, and the control module may be implemented using an MCU (Micro Controller Unit), etc. The light-emitting module and the light-receiving module are arranged opposite to each other so that the light-emitting elements and light-receiving elements correspond one-to-one, forming a through-beam optical path, such as... Figure 5 As shown, a detection unit consists of a light-emitting element and a light-receiving element. The number and spacing (i.e., preset spacing) of the detection units (light-emitting and light-receiving elements) can be set according to actual needs. For example, the spacing of the detection units can be determined based on the detection accuracy (the minimum size of the object to be detected), and the number of detection units can be determined based on the size (length, width, etc.) of the storage device. The detection signal can be visible red light or invisible infrared light, which can be set according to actual needs.
[0046] In one embodiment, the control module is used to send detection commands to the light-emitting module and the light-receiving module, and control each group of detection units to start detection sequentially, including: the control module controls the light-emitting elements in the light-emitting module to emit detection signals sequentially, and controls the light-receiving elements in the light-receiving module to generate feedback signals respectively.
[0047] In one embodiment, the control module is configured to send a detection command to the light-emitting module and the light-receiving module when it receives a detection instruction input by the user, or the control module sends a detection command to the light-emitting module and the light-receiving module at preset time intervals.
[0048] In the above embodiments, the control module can control the light-emitting module and the light-receiving module to initiate detection by sending detection commands to their control terminals. Specifically, the control module has a human-machine interface, allowing the user to input detection commands to initiate the detection function. Upon receiving the user-input detection commands, the control module sends detection commands to the light-emitting module and the light-receiving module. The control module can also send detection commands to the light-emitting module and the light-receiving module at preset time intervals to update the detection results in a timely manner.
[0049] In one embodiment, the feedback signal is used to characterize the luminous flux of the detection signal received by the light-receiving element; the control module is used to determine that the detection result corresponding to the feedback signal is that an object exists when the feedback signal meets a preset first threshold range, and to determine that the detection result corresponding to the feedback signal is that an object does not exist when the feedback signal meets a preset second threshold range.
[0050] In one embodiment, the control module determines the detection result corresponding to the feedback signal based on the measured fluctuation threshold range, including: when measuring the fluctuation threshold, if the measured value corresponding to the received feedback signal is different from the preset factory value, the measured value is recorded, and the fluctuation threshold range is calculated based on the measured value and the factory value; when detecting the presence of an object, if the detection value corresponding to the received feedback signal conforms to the fluctuation threshold range, the detection result corresponding to the feedback signal is determined to be that the object exists; if the detection value of the received feedback signal does not conform to the fluctuation threshold range, the detection result corresponding to the feedback signal is determined to be that the object does not exist.
[0051] In the above embodiments, the feedback signal is an electrical signal converted from the received light signal by the light-receiving module, used to characterize the magnitude of the received luminous flux. The magnitude of the feedback signal can be proportional to the magnitude of the received luminous flux. When an object exists between the light-emitting element and the light-receiving element, the luminous flux received by the light-receiving element will decrease; therefore, the detection result can be determined based on the change in luminous flux. Specifically, the detection result corresponding to the feedback signal can be determined by setting a threshold. The threshold can be a fixed preset threshold or a threshold dynamically determined according to the actual application scenario.
[0052] For example, for a fixed threshold, a fixed threshold y can be determined in advance through multiple tests. In actual testing, if the feedback signal received by the control module is less than the threshold y (i.e., meets the first threshold interval), the detection result corresponding to the feedback signal is determined to be that the object exists. If the feedback signal received by the control module is greater than or equal to the threshold y (i.e. meets the second threshold interval), the detection result corresponding to the feedback signal is determined to be that the object does not exist.
[0053] For example, regarding dynamic thresholds, the fluctuation threshold range can be determined through measurement. Specifically, a factory default value 'a' corresponding to the absence of an object can be preset. During the fluctuation threshold measurement process, if the received feedback signal value differs from the preset factory default value 'a', the feedback signal value is recorded as the measured value 'b'. The fluctuation threshold range 'c' is calculated based on the factory default value 'a' and the measured value 'b'. During actual detection, if the detection value corresponding to the feedback signal received by the control module conforms to the fluctuation threshold range, the detection result corresponding to the feedback signal is determined to indicate the presence of an object; otherwise, the detection result is determined to indicate the absence of an object. For example, if the difference between the factory default value and the detection value corresponding to the feedback signal is greater than or equal to the fluctuation threshold range 'c', the detection result is determined to indicate the presence of an object; if the difference between the factory default value and the detection value corresponding to the feedback signal is less than the fluctuation threshold range 'c', the detection result is determined to indicate the absence of an object. The measured value 'b' can be the average value obtained from multiple measurements. Considering the influence of errors in optical acquisition or hardware configuration, the fluctuation threshold range can be c ± x, where x is a correction value. After the sensor restarts, the fluctuation threshold range can be re-measured.
[0054] In one embodiment, the control module is used to issue the detection command to control the detection unit to perform two rounds of continuous detection and record the detection results corresponding to the two rounds of detection by the detection unit; if the control module determines that the detection results of the two rounds of detection by the detection unit are the same, it outputs the detection result corresponding to the detection unit; if the control module determines that the detection results of the two rounds of detection by the detection unit are different, it controls the light-emitting element in the detection unit to continuously emit a preset number of detection signals to perform multiple detections.
[0055] In the above embodiments, to improve the accuracy of the detection results, for each group of detection units, the detection results corresponding to two consecutive detections can be referenced; for example, two rounds of detection can be performed. Specifically, controlling each group of detection units to perform detection sequentially constitutes one round of detection, that is, controlling each light-emitting element to emit a detection signal sequentially, and each light-receiving element to generate a feedback signal accordingly. Furthermore, the detection results corresponding to each group of detection units are recorded for each round of detection. After two rounds of detection, for each detection unit, the detection results of the two rounds are compared. If the detection results of two consecutive detections of a detection unit are the same, then the detection result is output as the final detection result of that detection unit. If the detection results of two consecutive detections are different, multiple detections are initiated for that detection unit to further determine the detection result corresponding to that detection unit.
[0056] In one embodiment, when the control module controls the detection unit to perform multiple detections, if at least two of the detection results corresponding to the detection signals of a preset number of detections indicate the presence of an object, then the final detection result corresponding to the detection unit is determined to be the presence of an object.
[0057] In the above embodiments, if two adjacent detection results from the same detection unit are different, for example, for transparent or semi-transparent objects (such as glass bottles), the received feedback signal may be unstable. In this case, multiple detections can be initiated to further confirm the detection results and improve the reliability of the detection. That is, the light-emitting element in the detection unit is controlled to continuously emit detection signals multiple times and obtain the corresponding detection results each time. Specifically, if at least two detection results indicate the presence of an object in multiple detections, the final detection result corresponding to the detection unit is determined to be the presence of an object; otherwise, the final detection result corresponding to the detection unit is determined to be the absence of an object. The number of multiple detections can be set to 3 to 5.
[0058] In this embodiment, after obtaining the detection results of all detection units, the detection results corresponding to each detection unit can be output separately, or a final detection result can be determined and output by combining the detection results of all detection units. For example, in a scenario where it is only necessary to detect whether there is an object in the storage device / target area (such as detecting whether there is an object in a refrigerator, suitcase, or storage box), if at least one set of detection units detects that an object exists, the final detection result can be output as "an object exists in the target area." If the detection results of each set of detection units detect that no object exists, the final detection result can be output as "no object exists in the target area." As another example, in a scenario where it is necessary to detect the space occupancy of the storage device, it is necessary to output the detection results corresponding to each set of detection units. The space occupancy of the storage device can be characterized based on the detection results of each set of detection units. For example, if the storage device is a wardrobe or shoe cabinet, the proportion of free space in the storage device can be determined by applying the sensor provided in this embodiment, thus facilitating the planning and management of storage space.
[0059] In the above embodiments, the detection results can be output in a high-low level manner through the output interface. For example, a high level is output when an object is present, and a low level is output when the object is not present. Users can customize the representation of the detection results based on the output interface, such as displaying the detection results through indicator lights or a display screen.
[0060] By applying the technical solution of this application, the number and spacing of detection units in the sensor can be customized. A through-beam optical path is used between the light-emitting element and the light-receiving element. The presence of an object is identified by analyzing the obstruction of the optical path. This method can detect transparent objects such as glass bottles, as well as small objects. It can be applied to storage management fields such as in-vehicle refrigerators and smart homes, offering advantages such as non-contact detection, low cost, high performance, low power consumption, and high precision. Furthermore, it is unaffected by the material of the object being measured or the environment of the storage device (e.g., tilted or bumpy conditions), exhibits strong anti-interference capabilities, and provides accurate detection results.
[0061] In one embodiment, a method for detecting the presence of an object is provided. The description will take the application of this method to an object presence detection sensor described in any of the above embodiments as an example. Figure 6 As shown, the method may include the following steps:
[0062] 101. The light-emitting module sends a detection signal to the light-receiving module.
[0063] 102. The light receiving module generates a feedback signal based on the received detection signal and sends the feedback signal to the control module.
[0064] 103. The control module calculates the existence state of the object in the target area between the light-emitting module and the light-receiving module based on the feedback signal. The existence state of the object includes the presence of an object and the absence of an object.
[0065] In one embodiment, the above-mentioned object presence state detection method may further include the following steps: the control module sends a detection command to the light-emitting module and the light-receiving module, and controls each group of detection units to start detection in sequence, including: the control module controls the light-emitting elements in the light-emitting module to emit detection signals in sequence, and controls the light-receiving elements in the light-receiving module to generate feedback signals respectively.
[0066] In one embodiment, the above-mentioned object presence detection method may further include the following steps: when the control module receives a detection instruction input by the user, it sends a detection command to the light-emitting module and the light-receiving module; or, the control module sends a detection command to the light-emitting module and the light-receiving module at a preset time interval.
[0067] In one embodiment, the above-mentioned object presence state detection method may further include the following steps: the control module issues the detection command to control the detection unit to perform two rounds of continuous detection, and records the detection results corresponding to the two rounds of detection by the detection unit; if the control module determines that the detection results of the two rounds of detection by the detection unit are the same, it outputs the detection result corresponding to the detection unit; if the control module determines that the detection results of the two rounds of detection by the detection unit are different, it controls the light-emitting element in the detection unit to continuously emit a preset number of detection signals to perform multiple detections.
[0068] In one embodiment, the above-mentioned object presence detection method may further include the following steps: when the control module controls the detection unit to perform multiple detections, if at least two of the detection results corresponding to the detection signals of a preset number of detections indicate that an object exists, then the final detection result corresponding to the detection unit is determined to indicate that an object exists.
[0069] In one embodiment, the above-mentioned object presence detection method may further include the following steps: the feedback signal is used to characterize the luminous flux of the detection signal received by the light-receiving element; the control module determines that the detection result corresponding to the feedback signal is that the object exists when the feedback signal meets a preset first threshold interval, and determines that the detection result corresponding to the feedback signal is that the object does not exist when the feedback signal meets a preset second threshold interval.
[0070] In one embodiment, the above-mentioned object presence detection method may further include the following steps: the control module determines the detection result corresponding to the feedback signal based on the measured fluctuation threshold range, including: when measuring the fluctuation threshold, if the measured value corresponding to the received feedback signal is different from the preset factory value, the measured value is recorded, and the fluctuation threshold range is calculated based on the measured value and the factory value; when detecting the object presence, if the detection value corresponding to the received feedback signal conforms to the fluctuation threshold range, the detection result corresponding to the feedback signal is determined to be that the object exists; if the detection value of the received feedback signal does not conform to the fluctuation threshold range, the detection result corresponding to the feedback signal is determined to be that the object does not exist.
[0071] It should be noted that the various embodiments of the object presence state detection method described above can be implemented using the embodiments of the object presence state detection sensor described above. Therefore, for implementation methods and technical effects not covered in the object presence state detection method, please refer to the description of any of the embodiments provided by the object presence state detection sensor described above. This embodiment will not be specifically described or limited here. Furthermore, the information (including but not limited to user information, device information, etc.) and data (including but not limited to data used for analysis, storage, and display, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0072] This application also provides a computer device, specifically a personal computer, server, network device, etc. The computer device includes a bus, processor, memory, and communication interface, and may also include input / output interfaces and a display device. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device stores location information. The network interface of the computer device is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements the steps in the various method embodiments.
[0073] Those skilled in the art will understand that the structure of the computer device described above is only a partial structure related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. A specific computer device may include more or fewer components, or combine certain components, or have different component arrangements.
[0074] In one embodiment, a computer-readable storage medium is provided, which may be non-volatile or volatile, having stored thereon a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0075] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0076] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0077] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0078] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A sensor for detecting the presence of an object, characterized in that, The sensor includes: a light-emitting module, a light-receiving module, and a control module; the light-emitting module and the light-receiving module are both connected to the control module. The light-emitting module is used to send a detection signal to the light-receiving module; The light-receiving module is used to generate a feedback signal based on the received detection signal and send the feedback signal to the control module; The control module is used to calculate the existence state of an object in the target area between the light-emitting module and the light-receiving module based on the feedback signal. The existence state of the object includes the presence of an object and the absence of an object.
2. The object presence state detection sensor according to claim 1, characterized in that, The light-emitting module includes multiple light-emitting elements, and the light-receiving module includes multiple light-receiving elements. The light-emitting elements and the light-receiving elements are arranged one-to-one to form multiple sets of detection units. Each set of detection units includes one light-emitting element and one light-receiving element. Each set of detection units is arranged at a preset interval. The detection signal is red light or infrared light.
3. The object presence state detection sensor according to claim 1, characterized in that, The control module is used to send detection commands to the light-emitting module and the light-receiving module, and control each group of detection units to start detection sequentially, including: The control module controls the light-emitting elements in the light-emitting module to sequentially emit detection signals, and controls the light-receiving elements in the light-receiving module to generate feedback signals respectively.
4. The object presence state detection sensor according to claim 3, characterized in that, The control module is used to send a detection command to the light-emitting module and the light-receiving module when it receives a detection command input by the user, or... The control module sends detection commands to the light-emitting module and the light-receiving module at preset time intervals.
5. The object presence state detection sensor according to claim 3, characterized in that, The control module is used to issue the detection command to control the detection unit to perform two rounds of detection continuously, and to record the detection results corresponding to the two rounds of detection by the detection unit; If the control module determines that the detection results of the two rounds of detection by the detection unit are the same, it outputs the corresponding detection result of the detection unit. If the control module determines that the detection results of the two rounds of detection by the detection unit are different, it controls the light-emitting element in the detection unit to continuously emit a preset number of detection signals to perform multiple detections.
6. The object presence state detection sensor according to claim 5, characterized in that, When the control module controls the detection unit to perform multiple detections, if at least two of the detection results corresponding to the detection signals of a preset number of detections indicate the presence of an object, then the final detection result corresponding to the detection unit is determined to be the presence of an object.
7. The object presence state detection sensor according to claim 5, characterized in that, The feedback signal is used to characterize the luminous flux of the detection signal received by the light-receiving element; The control module is used to determine that the detection result corresponding to the feedback signal is that an object exists when the feedback signal meets a preset first threshold range, and to determine that the detection result corresponding to the feedback signal is that an object does not exist when the feedback signal meets a preset second threshold range.
8. The object presence state detection sensor according to claim 5, characterized in that, The control module determines the detection result corresponding to the feedback signal based on the measured fluctuation threshold range, including: When measuring the fluctuation threshold, if the measured value corresponding to the received feedback signal is different from the preset factory value, the measured value is recorded, and the fluctuation threshold range is calculated based on the measured value and the factory value. When detecting the presence of an object, if the detection value corresponding to the received feedback signal meets the fluctuation threshold range, the detection result corresponding to the feedback signal is determined to be that the object exists; if the detection value of the received feedback signal does not meet the fluctuation threshold range, the detection result corresponding to the feedback signal is determined to be that the object does not exist.
9. A method for detecting the existence state of an object, characterized in that, The method is applied to the object presence state detection sensor as described in any one of claims 1 to 8, and the method includes: The light-emitting module sends a detection signal to the light-receiving module; The light-receiving module generates a feedback signal based on the received detection signal and sends the feedback signal to the control module; The control module calculates the existence state of the object in the target area between the light-emitting module and the light-receiving module based on the feedback signal. The existence state of the object includes the presence of an object and the absence of an object.
10. The object existence state detection method according to claim 9, characterized in that, The method further includes: When the control module receives a detection command input by the user, it sends a detection command to the light-emitting module and the light-receiving module; or, the control module sends a detection command to the light-emitting module and the light-receiving module at a preset time interval. The control module sends detection commands to the light-emitting module and the light-receiving module, and controls each group of detection units to start detection in sequence, including: the control module controls the light-emitting elements in the light-emitting module to emit detection signals in sequence, and controls the light-receiving elements in the light-receiving module to generate feedback signals respectively.