Control signal determination method and control method of infrared downward-looking sensor and robot

By calculating the access time and convergence time of the infrared vision sensor, the PWM control signal is generated, and the emission time of the infrared emission device is adjusted, the problems of aging and power consumption of the infrared vision sensor are solved, and a longer service life and lower power are achieved. Consumption.

CN118902341APending Publication Date: 2024-11-08HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411157193.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The infrared lower vision sensor has been in a working state in the sweeping robot, resulting in accelerated aging of light emitting devices and increased power consumption, affecting service life and efficiency.

Method used

By calculating the access time and convergence time of the under-infrared visual sensor, a pulse width modulation PWM control signal is generated, and the luminescence time of the infrared emitting device is adjusted, unnecessary luminescence, prolong service life and reduce power consumption.

Benefits of technology

It effectively extends the service life of infrared under-view sensors, reduces the power consumption of the sweeping robot, and ensures the timeliness of suspended air detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118902341A_ABST
    Figure CN118902341A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an infrared downward-looking sensor control signal determination method, a control method and a robot, and the method comprises the steps: calculating a target duty ratio of a pulse width modulation (PWM) control signal of a single infrared downward-looking sensor according to an access time length, the convergence time of an infrared receiving device and the collection time of a collection signal of the infrared receiving device; generating a PWM control signal of which the period is the access duration and the duty ratio is the target duty ratio by using the controller, and sending the PWM control signal to each infrared emission device; the controller is used for obtaining the collection signals of the infrared receiving devices, and the suspension condition of the sweeping robot is determined. The infrared emission device is controlled to emit the infrared light by utilizing the PWM control signal with the target duty ratio, so that the light emitting time of the infrared emission device in the running process of the sweeping robot can be shortened, the service life of the infrared downward-looking sensor is prolonged, and meanwhile, the power consumption of the sweeping robot is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of cleaning robots, and in particular to a control signal determination method, a control method and a robot for an infrared downward-looking sensor. Background Art

[0002] An infrared downward-looking sensor is installed at the bottom of the sweeping robot to determine whether there are steps or other falling environments in the environment. During the cleaning process, the robot can decide whether to continue moving forward based on whether there is a falling environment. For example, if a step is detected during the cleaning process, the robot will change direction to prevent damage to the sweeping robot due to falling.

[0003] In the related art, during the cleaning process of the sweeping robot, the infrared downward-looking sensor is always in working state, and the processor in the sweeping robot determines whether the sweeping robot is suspended by detecting the signal of the infrared downward-looking sensor. However, the total light-emitting time of the light-emitting device in the infrared downward-looking sensor is limited. If the infrared light is turned on all the time, the aging of the device will be accelerated, affecting the service life, and also speeding up the power consumption of the sweeping robot. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a control signal determination method, a control method and a robot for an infrared downward-looking sensor, so as to increase the service life of the infrared downward-looking sensor and reduce the power consumption of the sweeping robot. The specific technical solution is as follows:

[0005] In a first aspect, the present application provides a method for determining a control signal of an infrared downward-looking sensor, which is used to determine a control signal of an infrared downward-looking sensor in a sweeping robot, wherein the infrared downward-looking sensor includes an infrared transmitting device and an infrared receiving device, and the sweeping robot also includes a controller, and the method includes:

[0006] Acquire the number of infrared downward-looking sensors in the sweeping robot, the convergence time of the infrared receiving device, the acquisition time of the acquisition signal of the infrared receiving device acquired by the controller, and the cycle length of an access cycle of the controller to each infrared downward-looking sensor;

[0007] Determine the access duration of a single infrared downward-looking sensor according to the cycle duration and the number;

[0008] The target duty cycle of the pulse width modulation (PWM) control signal of a single infrared downward-looking sensor is calculated according to the access duration, the convergence time and the acquisition time, wherein the PWM control signal of the target duty cycle is used to control the infrared emitting device to emit infrared light.

[0009] In one embodiment of the present application, determining the access duration of a single infrared downward-looking sensor according to the cycle duration and the number includes:

[0010] The ratio of the cycle duration to the number is calculated to obtain the access duration of a single infrared downward-looking sensor.

[0011] In one embodiment of the present application, the target duty cycle of the pulse width modulation (PWM) control signal of the single infrared downward-looking sensor is calculated according to the access duration, the convergence time and the acquisition time, including:

[0012] The ratio of the sum of the acquisition time and the convergence time to the access time is calculated to obtain a target duty cycle of the PWM control signal of the single infrared downward-looking sensor.

[0013] In a second aspect, the present application provides a control method for an infrared downward-looking sensor, which is applied to a sweeping robot. The sweeping robot is provided with an infrared downward-looking sensor and a controller. The infrared downward-looking sensor includes an infrared transmitting device and an infrared receiving device. The method includes:

[0014] Using the controller to generate a PWM control signal with a period equal to the access duration and a duty cycle equal to the target duty cycle, and sending the PWM control signal to each of the infrared emitting devices;

[0015] The controller is used to obtain the collection signals of each of the infrared receiving devices, and the suspension status of the sweeping robot is determined according to each of the collection signals, wherein the target duty cycle and the access duration are determined by any of the control signal determination methods of the infrared downward-looking sensor described above.

[0016] In one embodiment of the present application, the step of obtaining the acquisition signal of each infrared receiving device by using the controller includes:

[0017] Using the controller to obtain a signal collection period, and obtaining a collection signal of each infrared receiving device during the signal collection period;

[0018] The start time of the signal acquisition period is T0+T1, and the end time of the signal acquisition period is T0+T1+T2, where T0 is the time when the controller sends the PWM control signal, T1 is the convergence time, and T2 is the acquisition time.

[0019] In a third aspect, the present application provides a sweeping robot, including an infrared downward-looking sensor and a controller, wherein the infrared downward-looking sensor includes an infrared transmitting device and an infrared receiving device;

[0020] The controller is used to obtain the pre-calculated access time and target duty cycle; generate a PWM control signal with a period equal to the access time and a duty cycle equal to the target duty cycle; wherein the target duty cycle and the access time are determined by any of the control signal determination methods of the infrared downward-looking sensor described above. ;

[0021] The infrared emitting device is used to emit infrared light in response to the PWM control signal;

[0022] The infrared receiving device is used to generate a corresponding acquisition signal in response to the reception of infrared light;

[0023] The controller is further used to obtain the collected signals of each of the infrared receiving devices, and determine the suspension status of the sweeping robot according to each of the collected signals.

[0024] In one embodiment of the present application, the controller is specifically used to: obtain a signal collection period, and obtain a collection signal of each of the infrared receiving devices in the signal collection period;

[0025] The start time of the signal acquisition period is T0+T1, and the end time of the signal acquisition period is T0+T1+T2, where T0 is the time when the controller sends the PWM control signal, T1 is the convergence time, and T2 is the acquisition time.

[0026] In one embodiment of the present application, the sweeping robot also includes a chassis, the chassis includes a left wheel, a right wheel and a front wheel, the front wheel is arranged on the forward direction side of the sweeping robot, the left wheel is arranged on the left side of the forward direction, and the right wheel is arranged on the right side of the forward direction.

[0027] In one embodiment of the present application, the sweeping robot includes five infrared downward-looking sensors, which are respectively arranged at the front end of the front wheel of the sweeping robot, the front end of the left wheel, the rear end of the left wheel, the front end of the right wheel, and the rear end of the right wheel, wherein the forward direction of the sweeping robot is the front end, and the direction away from the forward direction of the sweeping robot is the rear end.

[0028] In one embodiment of the present application, the controller includes a PWM signal generation module and an analog-to-digital converter;

[0029] The PWM signal generating module is used to generate the PWM control signal; the analog-to-digital converter is used to convert the collected signal of the infrared receiving device from an analog signal to a digital signal.

[0030] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it implements any of the above-mentioned methods for determining a control signal of an infrared downward-looking sensor and a method for controlling an infrared downward-looking sensor.

[0031] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the above-described control signal determination methods for infrared downward-looking sensors and control methods for infrared downward-looking sensors.

[0032] Beneficial effects of the embodiments of the present application:

[0033] The control signal determination method of the infrared downward-looking sensor provided in the embodiment of the present application includes: obtaining the number of infrared downward-looking sensors in the sweeping robot, the convergence time of the infrared receiving device, the acquisition time of the acquisition signal of the infrared receiving device acquired by the controller, and the cycle length of an access cycle of each infrared downward-looking sensor by the controller, and then determining the access time of a single infrared downward-looking sensor according to the cycle length of an access cycle of each infrared downward-looking sensor by the controller and the number of infrared downward-looking sensors, and then calculating the target duty cycle of the PWM control signal of the single infrared downward-looking sensor according to the access time of the single infrared downward-looking sensor, the convergence time of the infrared receiving device and the acquisition time of the acquisition signal of the infrared receiving device acquired by the controller. Using the PWM control signal of the target duty cycle to control the infrared emitting device to emit infrared light can reduce the light emission time of the infrared emitting device during the operation of the sweeping robot, thereby increasing the service life of the infrared downward-looking sensor and reducing the power consumption of the sweeping robot.

[0034] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0036] Figure 1 A schematic diagram of a flow chart of a method for determining a control signal of an infrared downward-looking sensor provided in the present application;

[0037] Figure 2 A schematic diagram of a flow chart of a control method of an infrared downward-looking sensor provided in the present application;

[0038] Figure 3A schematic diagram of a signal processing process of a controller and an infrared downward-looking sensor of a sweeping robot provided in the present application;

[0039] Figure 4 A schematic diagram of the structure of a sweeping robot provided in this application;

[0040] Figure 5a A schematic diagram of the chassis structure of a sweeping robot provided in this application;

[0041] Figure 5b A schematic diagram of the chassis structure of another sweeping robot provided in this application;

[0042] Figure 6 A schematic diagram of the structure of a controller of a sweeping robot provided in this application;

[0043] Figure 7 A schematic diagram of the structure of an electronic device provided in this application;

[0044] Figure 8 Schematic diagram of the photoelectric energy of the infrared receiving device in this application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0046] In the related art, in order to prevent the sweeping robot from falling, the sweeping robot's infrared downward-looking sensor is always in working state during the operation of the sweeping robot, and the processor in the sweeping robot determines whether the sweeping robot is suspended in the air by detecting the signal of the infrared downward-looking sensor. However, if the light-emitting device in the infrared downward-looking sensor keeps emitting light, it will accelerate the aging of the device, affect the reliable use time, and also speed up the power consumption of the sweeping robot. In order to solve at least one of the above problems, the embodiment of the present application provides a control signal determination method, a control method and a robot of an infrared downward-looking sensor.

[0047] In the first aspect of the embodiment of the present application, see Figure 1 First, a method for determining a control signal of an infrared downward-looking sensor is provided, which is used to determine a control signal of an infrared downward-looking sensor in a sweeping robot, wherein the infrared downward-looking sensor includes an infrared transmitting device and an infrared receiving device, and the sweeping robot also includes a controller, and the method includes:

[0048] Step S11: Obtain the number of infrared downward-looking sensors in the sweeping robot, the convergence time of the infrared receiving device, the acquisition time of the acquisition signal of the infrared receiving device acquired by the controller, and the cycle length of an access cycle of the controller for each infrared downward-looking sensor.

[0049] An infrared downward-looking sensor is installed on the chassis of the sweeping robot. The infrared downward-looking sensor includes an infrared emitting device and an infrared receiving device. The infrared emitting device is used to emit infrared light, and the infrared receiving device is used to detect the intensity of the received infrared light. When the sweeping robot is not suspended in the air, the infrared light emitted by the infrared emitting device is reflected by the ground and collected by the infrared receiving device; when the sweeping robot is suspended in the air, because the reflection of the ground is lost, the infrared light emitted by the infrared emitting device in the suspended position is scattered around, and the infrared receiving device collects very little infrared light. Therefore, it is possible to judge whether the sweeping robot is suspended in the air by the infrared receiving device collecting infrared light.

[0050] Figure 8 The line graph is a graph of the infrared receiving device's light receiving time and the infrared light photoelectric energy (intensity) it detects. It can be seen that after receiving the energy of the infrared light signal, the infrared receiving device cannot immediately and stably output the actual energy of the infrared light, but needs to wait for a period of time before its energy value can stabilize. This waiting time is called the convergence time of the infrared receiving device. In other words, in order to detect the actual infrared light intensity, the convergence time is necessary. The convergence time of the infrared receiving device is related to the photosensitive material of the infrared receiving device, which can be obtained from the factory calibration parameters of the infrared receiving device.

[0051] The acquisition time of the controller to obtain the acquisition signal of the infrared receiving device refers to the time from the infrared receiving device outputting a stable infrared light intensity signal to the controller actually obtaining the infrared light intensity. Usually, the infrared receiving device outputs an analog signal, and the controller can directly calculate a digital signal. Therefore, it is necessary to convert the analog infrared light intensity signal output by the infrared receiving device into a digital infrared light intensity signal, and this process takes a certain amount of time.

[0052] In a sweeping robot, the controller will periodically obtain the infrared light intensity signal collected by the infrared receiving device according to the preset access cycle; this access cycle is designed in the design process of the sweeping robot according to the response events required for the sweeping robot to prevent falling. For example, there are 4 infrared downward-looking sensors in the sweeping robot, and the controller will sequentially obtain the infrared light intensity signals collected by the infrared receiving devices in these 4 infrared downward-looking sensors. This process is an access cycle. The duration of an access cycle is called the cycle duration.

[0053] Step S12: Determine the access duration of a single infrared downward-looking sensor according to the cycle duration and the number.

[0054] According to the cycle duration of the access cycle and the number of infrared downward-looking sensors in the sweeping robot, the access duration of the controller for one infrared downward-looking sensor can be determined. Specifically, the access duration of a single infrared downward-looking sensor can be obtained by calculating the ratio of the cycle duration of an access cycle of the controller for each infrared downward-looking sensor to the number of infrared downward-looking sensors. In an example, the cycle duration of an access cycle of the controller for each infrared downward-looking sensor is 4ms, and the number of infrared downward-looking sensors is 4, then the access duration of a single infrared downward-looking sensor is 1ms.

[0055] Step S13: Calculate a target duty cycle of a PWM (Pulse Width Modulation) control signal of a single infrared downward-looking sensor according to the access duration, the convergence time and the acquisition time.

[0056] PWM is an analog control method that can adjust the voltage and frequency by changing the proportion of the conduction time to the total time in a cycle, that is, the duty cycle, so as to achieve the control purpose. In the embodiment of the present application, the infrared downward-looking sensor does not need to emit infrared light all the time, but controls the infrared light emission duration of the infrared downward-looking sensor through a PWM control signal. Among them, the access duration is the access duration of a single infrared downward-looking sensor, which can also be understood as a working cycle of the infrared downward-looking sensor. According to the convergence time and the acquisition time, the required emission duration of a single infrared downward-looking sensor can be calculated. Combined with the access duration of a single infrared downward-looking sensor, the duty cycle of the PWM control signal of a single infrared downward-looking sensor can be calculated, which is called the target duty cycle. Specifically, the sum of the acquisition time and the convergence time can be calculated, and then the ratio of the above sum to the access duration of a single infrared downward-looking sensor is calculated to obtain the target duty cycle of the PWM control signal of a single infrared downward-looking sensor. In an example, taking the acquisition time of the controller to obtain the acquisition signal of the infrared receiving device as 20μs, the convergence time of the infrared receiving device as 100μs, and the access time of a single infrared downward-looking sensor as 1ms, the target duty cycle of the PWM control signal of the single infrared downward-looking sensor is: (20+100) / 1000=12%.

[0057] As can be seen from the above, the control signal determination method of the infrared downward-looking sensor provided in the embodiment of the present application calculates the target duty cycle of the PWM control signal of a single infrared downward-looking sensor, and uses the PWM control signal of the target duty cycle to control the infrared emitting device to emit infrared light, which can reduce the luminous time of the infrared emitting device during the operation of the sweeping robot, thereby increasing the service life of the infrared downward-looking sensor and reducing the power consumption of the sweeping robot. In addition, in the process of calculating the target duty cycle, factors such as the number of infrared downward-looking sensors and the cycle length are taken into account. On the basis of reducing the luminous time of the infrared emitting device, the original sampling frequency of the controller is not affected, and the sampling frequency of the controller will not be reduced, thereby ensuring the timeliness of the sweeping robot's suspended detection.

[0058] In the second aspect of the embodiment of the present application, see Figure 2 , provides a control method for an infrared downward-looking sensor, which is applied to a sweeping robot. The sweeping robot is provided with an infrared downward-looking sensor and a controller. The infrared downward-looking sensor includes an infrared transmitting device and an infrared receiving device. The method includes:

[0059] Step S21: using the controller to generate a PWM control signal with a period equal to the access duration and a duty cycle equal to the target duty cycle, and sending the PWM control signal to each of the infrared emitting devices.

[0060] The controller in the sweeping robot is the most important part of the entire structure, which can realize the scheduling and control of various functions of the robot. The controller in the embodiment of the present application can be a SoC (System on Chip) or an MCU (Microcontroller Unit), etc. The controller can control the robot according to a preset program, and the controller can include multiple modules. In an example, Figure 3 As shown, a schematic diagram of the signal processing process of the controller and infrared downward-looking sensor of a sweeping robot is given, wherein the controller includes a PWM module, and the PWM module of the controller can generate a PWM control signal with a specified duty cycle, so the PWM module of the controller can be used to generate a PWM control signal with a period of the above-mentioned access duration and a duty cycle of the above-mentioned target duty cycle, and send the generated PWM control signal to each infrared emitting device. The access duration and target duty cycle of the infrared downward-looking sensor can be calculated by the control signal determination method of the infrared downward-looking sensor in the embodiment of the present application, which will not be repeated here.

[0061] Step S22: using the controller to obtain the acquisition signal of each infrared receiving device.

[0062] The controller obtains the intensity signal of the infrared light detected by each infrared receiving device, that is, the acquisition signal of the infrared receiving device. As mentioned above, the controller may include multiple modules, such as Figure 3 As shown, the controller may include an ADC (Analog-to-Digital Converter) module, which converts the analog infrared light intensity signals collected by each infrared receiving device into digital infrared light intensity signals that can be directly processed by the processor.

[0063] Step S23: using the controller to determine the suspension status of the sweeping robot according to each of the collected signals.

[0064] The collected signal represents the intensity of infrared light, and the controller can determine whether the sweeping robot is suspended based on the collected signal. Figure 3 As shown, after the infrared emitting device emits infrared light to the ground, the ground will reflect the infrared light to the infrared receiving device. The controller analyzes the collected signal of the infrared receiving device, so that it can judge whether there is a step-falling situation in the ground environment according to the energy of the collected signal. Specifically, an energy threshold can be preset. When the infrared light intensity represented by the collected signal of any infrared receiving device is less than the energy threshold, it is considered that the position of the infrared receiving device is suspended; when the infrared light intensity represented by the collected signal of the infrared receiving device is not less than the energy threshold, it is considered that the position of the infrared receiving device is not suspended. In addition, the corresponding instruction program can also be set. When it is judged that there is a step-falling situation in the ground environment, the instruction of the sweeping robot to turn around is executed. Specifically, if a suspended situation is detected, it is necessary to stop the operation of the sweeping robot, or to leave the environment by retracting the sweeping robot.

[0065] As can be seen from the above, the control method of the infrared downward-looking sensor provided in the embodiment of the present application first uses a controller to generate a PWM control signal with a period equal to the access time of a single infrared downward-looking sensor and a duty cycle equal to the target duty cycle, and sends a PWM control signal to each infrared emitting device, and then uses the controller to obtain the acquisition signal of each infrared receiving device, and determines the suspension status of the sweeping robot according to each acquisition signal. The present application periodically controls the light-emitting time of the infrared light-emitting device through the PWM control signal generated by the controller, thereby increasing the service life of the infrared light-emitting device and reducing the power consumption of the sweeping robot. In addition, in the process of calculating the target duty cycle, factors such as the number of infrared downward-looking sensors and the cycle duration are taken into account. On the basis of reducing the light-emitting time of the infrared emitting device, the original sampling frequency of the controller is not affected, and the sampling frequency of the controller will not be reduced, thereby ensuring the timeliness of the sweeping robot's suspension detection.

[0066] In a possible implementation, the above step S22 uses the controller to obtain the collection signal of each infrared receiving device, including:

[0067] Using the controller to obtain a signal collection period, and obtaining a collection signal of the infrared receiving device during the signal collection period;

[0068] The start time of the signal acquisition period is T0+T1, and the end time of the signal acquisition period is T0+T1+T2, where T0 is the time when the controller sends the PWM control signal, T1 is the convergence time, and T2 is the acquisition time.

[0069] In an embodiment of the present application, in each access cycle, the controller can complete the acquisition of the acquisition signal only within the signal acquisition period. In an access cycle, the moment when the controller sends the PWM control signal is recorded as T0, then the time when the controller starts to acquire the acquisition signal needs to be greater than or equal to T0+T1, and the time when the controller ends to acquire the acquisition signal needs to be greater than or equal to T0+T1+T2. Therefore, under the premise of ensuring the validity of the acquisition signal, in order to minimize the time for the controller to acquire the acquisition signal, in an embodiment of the present application, the start time of the signal acquisition period is set to: T0+T1, and the end time of the signal acquisition period is set to T0+T1+T2, so that the acquisition of the acquisition signal can be achieved in the shortest time. Thereby, the power consumption of the controller can be reduced, and at the same time, the occupancy of the communication line of the controller can be reduced to release the timing resources of the communication line.

[0070] In an example, the time when the PWM module of the controller sends the PWM control signal is 10000 μs, the convergence time of the infrared receiving device is 100 μs, and the acquisition time of the ADC module of the controller to obtain the acquisition signal of the infrared receiving device is 20 μs. Then the start time of the signal acquisition period is (10000+100) μs, and the end time of the signal acquisition period is (10000+120) μs.

[0071] As can be seen from the above, the control method of the infrared downward-looking sensor provided in the embodiment of the present application can obtain the signal acquisition period and obtain the acquisition signal of each infrared receiving device during the signal acquisition period, and the convergence time of the infrared receiving device, the acquisition time of the acquisition signal of the infrared receiving device obtained by the controller, and the number of infrared downward-looking sensors can all be acquired in advance. Based on these pieces of information, the signal acquisition period can be accurately acquired, thereby obtaining the acquisition signal of each infrared receiving device within the signal acquisition period, thereby improving the accuracy of signal acquisition.

[0072] In the third aspect of the embodiment of the present application, see Figure 4, a schematic structural diagram of a sweeping robot is provided, including: a controller 402, an infrared downward-looking sensor 401, the infrared downward-looking sensor 401 including an infrared emitting device 4011 and an infrared receiving device 4012;

[0073] The controller 402 is used to obtain the pre-calculated access duration and target duty cycle of a single infrared downward-looking sensor; and generate a PWM control signal with a period equal to the access duration of a single infrared downward-looking sensor and a duty cycle equal to the target duty cycle. The access duration and target duty cycle of the infrared downward-looking sensor can be calculated by the control signal determination method of the infrared downward-looking sensor in the embodiment of the present application, which will not be described in detail here.

[0074] The infrared emitting device 4011 is used to emit infrared light in response to the above PWM control signal.

[0075] The infrared receiving device 4012 is used to generate a corresponding acquisition signal in response to the reception of infrared light.

[0076] The controller 402 is further used to obtain the collected signals of each infrared receiving device, and determine the suspension status of the sweeping robot according to each collected signal.

[0077] When the infrared emitting device emits infrared light to the ground to be detected, the ground will reflect the infrared light to the infrared receiving device, and the controller collects signals from the infrared receiving end. In this way, it can be determined whether there is a step-falling situation in the ground environment according to the energy of the collected signal, that is, the suspension of the sweeping robot can be determined according to each collected signal. Specifically, an energy threshold can be preset. If the energy of the collected signal is less than the preset energy threshold, it is determined that there is a step-falling situation on the ground; if the energy of the collected signal is greater than the preset energy threshold, it is determined that there is no step-falling situation on the ground. At the same time, the corresponding instruction program can be set. When it is determined that there is a step-falling situation in the ground environment, the instruction of the sweeping robot to turn around is executed.

[0078] In one example, the controller 402 includes a PWM module, which is used to generate a PWM control signal with a period of the access duration and a duty cycle of the target duty cycle, and send the PWM control signal to each infrared emitting device. In one example, the controller 402 may also include an ADC module, which is used to convert the analog acquisition signal into a digital acquisition signal, so that it can be directly used for calculation processing of the controller 402.

[0079] As can be seen from the above, the sweeping robot provided by the embodiment of the present application uses the PWM control signal of the target duty cycle to control the infrared emitting device to emit infrared light, which can reduce the luminous time of the infrared emitting device during the operation of the sweeping robot, thereby increasing the service life of the infrared downward-looking sensor and reducing the power consumption of the sweeping robot. In addition, in the process of calculating the target duty cycle, factors such as the number of infrared downward-looking sensors and the cycle length are taken into account. On the basis of reducing the luminous time of the infrared emitting device, the original sampling frequency of the controller is not affected, and the sampling frequency of the controller will not be reduced, thereby ensuring the timeliness of the sweeping robot's suspended detection.

[0080] In one embodiment of the present application, the controller 402 is specifically used to: obtain a signal acquisition period, and obtain an acquisition signal of the infrared receiving device during the signal acquisition period; wherein the start time of the signal acquisition period is: T0+T1, and the end time of the signal acquisition period is T0+T1+T2, T0 is the time when the controller sends the PWM control signal, T1 is the convergence time, and T2 is the acquisition time.

[0081] As can be seen from the above, the sweeping robot provided in the embodiment of the present application has a controller that obtains a signal collection period, and obtains the collection signal of each infrared receiving device during the signal collection period, and the convergence time of the infrared receiving device, the collection time when the controller obtains the collection signal of the infrared receiving device, and the number of infrared downward-looking sensors can all be obtained in advance. Based on these pieces of information, the signal collection period can be accurately obtained, thereby obtaining the collection signal of each infrared receiving device within the signal collection period, thereby improving the accuracy of signal collection.

[0082] In one embodiment of the present application, Figure 5a As shown, the sweeping robot also includes a chassis 501, which includes a front wheel 5011, a left wheel 5012 and a right wheel 5013. The front wheel 5011 is arranged on the forward direction side of the sweeping robot, the left wheel 5012 is arranged on the left side of the forward direction, and the right wheel 5013 is arranged on the right side of the forward direction.

[0083] A sweeping robot is generally provided with a plurality of wheels for driving the robot forward, backward and turning. In this embodiment, the front wheel is arranged on the forward direction side of the sweeping robot, the left wheel is arranged on the left side of the forward direction, and the right wheel is arranged on the right side of the direction. Specifically, the front wheel is located at the front end of the center of gravity of the sweeping robot, and the left wheel and the right wheel are respectively located at the left and right ends of the center of gravity of the sweeping robot, wherein the forward direction of the sweeping robot is the front end, and the direction away from the forward direction of the sweeping robot is the rear end.

[0084] As can be seen from the above, the sweeping robot provided in the embodiment of the present application also includes a chassis and front wheels, left wheels and right wheels. The arrangement of these wheels enables the sweeping robot to move and turn flexibly.

[0085] A sweeping robot is generally equipped with multiple infrared downward-looking sensors to detect whether there are steps or other falling conditions on the ground to prevent the robot from being damaged by falling. The number and position of the infrared downward-looking sensors in the sweeping robot can be customized according to actual conditions. For example, an infrared downward-looking sensor is set in each of the front, back, left, and right directions of the sweeping robot to achieve hanging detection in the four directions of front, back, left, and right. In one embodiment of the present application, Figure 5b As shown, the sweeping robot includes five infrared downward-looking sensors 502, and the five infrared downward-looking sensors 502 are respectively arranged at the front end of the front wheel 5011 of the sweeping robot, the front end of the left wheel 5012, the rear end of the left wheel 5012, the front end of the right wheel 5013, and the rear end of the right wheel 5013, wherein the forward direction of the sweeping robot is the front end, and the direction away from the forward direction of the sweeping robot is the rear end.

[0086] In this embodiment, five infrared downward-looking sensors are arranged in the sweeping robot, which are arranged at the front end of the front wheel of the sweeping robot, the front end of the left wheel, the rear end of the left wheel, the front end of the right wheel, and the rear end of the right wheel. Specifically, the front wheel is located at the front end of the center of gravity of the sweeping robot, and the left wheel and the right wheel are located at the left and right ends of the center of gravity of the sweeping robot, respectively. The forward direction of the sweeping robot is the front end, and the direction away from the forward direction of the sweeping robot is the rear end. Such a setting can accurately detect the ground environment and greatly reduce the falling of the sweeping robot.

[0087] It is understandable that the forward direction of the sweeping robot may include the front, the left front, and the right front, and the reverse direction of the sweeping robot may include: the rear, the left rear, and the right rear. Normally, the front is the most commonly used direction of travel for the sweeping robot, so the sweeping robot in the embodiment of the present application is provided with an infrared downward-looking sensor at the front end of the front wheel. In addition, considering that the left front and the right front are also relatively commonly used directions of travel, an infrared downward-looking sensor is provided at the front end of the left wheel and the front end of the right wheel. As for the reverse direction, an infrared downward-looking sensor is provided at the rear end of the left wheel and the rear end of the right wheel, respectively. Compared with the solution of providing an infrared downward-looking sensor at the front, back, left, and right, this can detect the suspension situation earlier during the turning and driving process of the sweeping robot, and can greatly reduce the probability of the sweeping robot falling. In addition, considering that the sweeping robot usually moves forward, in this case, the position directly behind it is the position that the sweeping robot has just passed, and this position will definitely not be suspended, so there is no need to perform suspension detection. Therefore, in order to save costs, there is no need to arrange an infrared downward-looking sensor directly behind the chassis of the sweeping robot. The reversing speed of the sweeping robot is generally slow. Even if there is a scene of reversing and hanging in the air, the rear end of the left wheel and the rear end of the right wheel can be used for suspension detection. It can be seen that in the embodiment of the present application, through the setting of these five infrared downward-looking sensors, the controller can accurately obtain the collected signal and accurately judge whether there is a fall in the ground environment, so as to execute the next action of the sweeping robot. The selection of the positions of the five infrared downward-looking sensors fully considers the suspension problem of the sweeping robot, and can effectively reduce the falling of the sweeping robot on the basis of cost saving.

[0088] In one embodiment of the present application, Figure 6 As shown, the controller 601 of the sweeping robot includes a PWM signal generating module 6011 and an analog-to-digital converter 6012; the PWM signal generating module 6011 is used to generate the PWM control signal; the analog-to-digital converter 6012 is used to convert the collected signal of the infrared receiving device from an analog signal to a digital signal.

[0089] As can be seen from the above, the sweeping robot provided in the embodiment of the present application has a controller including a PWM signal generating module and an analog-to-digital converter. Through these two modules, the service life of the infrared light-emitting device can be increased and the power consumption of the sweeping robot can be reduced, under the premise that the sweeping robot can accurately judge whether there is a fall in the ground environment.

[0090] In the fourth aspect of the embodiment of the present application, see Figure 7 , provides an electronic device, comprising:

[0091] Memory 701, used for storing computer programs;

[0092] The processor 702 is used to implement any of the above-mentioned control signal determination methods and control methods of the infrared downward-looking sensor when executing the program stored in the memory 701.

[0093] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 702, the communication interface, and the memory 701 communicate with each other via the communication bus.

[0094] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0095] The communication interface is used for communication between the above electronic device and other devices.

[0096] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0097] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0098] In another embodiment provided in the present application, a computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor, the control signal determination method and control method steps of any of the above-mentioned infrared downward-looking sensors are implemented.

[0099] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the control signal determination method and control method of any infrared downward-looking sensor in the above-mentioned embodiments.

[0100] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.

[0101] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0102] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the sweeping robot and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0103] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A method for determining a control signal of an infrared downward-looking sensor, It is characterized in that The method is used to determine a control signal of an infrared downward-looking sensor in a sweeping robot, wherein the infrared downward-looking sensor includes an infrared emitting device and an infrared receiving device, and the sweeping robot also includes a controller, and the method includes: Acquire the number of infrared downward-looking sensors in the sweeping robot, the convergence time of the infrared receiving device, the acquisition time of the acquisition signal of the infrared receiving device acquired by the controller, and the cycle length of an access cycle of the controller to each infrared downward-looking sensor; Determine the access duration of a single infrared downward-looking sensor according to the cycle duration and the number; The target duty cycle of the pulse width modulation (PWM) control signal of a single infrared downward-looking sensor is calculated according to the access duration, the convergence time and the acquisition time, wherein the PWM control signal of the target duty cycle is used to control the infrared emitting device to emit infrared light.

2. The method according to claim 1, It is characterized in that The step of determining the access duration of a single infrared downward-looking sensor according to the cycle duration and the number of the infrared downward-looking sensors comprises: The ratio of the cycle duration to the number is calculated to obtain the access duration of a single infrared downward-looking sensor.

3. The method according to claim 1, It is characterized in that The step of calculating the target duty cycle of the pulse width modulation (PWM) control signal of a single infrared downward-looking sensor according to the access duration, the convergence time, and the acquisition time includes: The ratio of the sum of the acquisition time and the convergence time to the access time is calculated to obtain a target duty cycle of the PWM control signal of the single infrared downward-looking sensor.

4. A control method for an infrared downward-looking sensor, It is characterized in that Applied to a sweeping robot, the sweeping robot is provided with an infrared downward-looking sensor and a controller, the infrared downward-looking sensor includes an infrared emitting device and an infrared receiving device, and the method includes: Using the controller to generate a PWM control signal with a period equal to the access duration and a duty cycle equal to the target duty cycle, and sending the PWM control signal to each of the infrared emitting devices; The controller is used to obtain the collection signals of each of the infrared receiving devices, and the suspension status of the sweeping robot is determined according to each of the collection signals, wherein the target duty cycle and the access duration are determined by any method described in claims 1-3.

5. The method according to claim 4, It is characterized in that The method of using the controller to obtain the acquisition signal of each infrared receiving device includes: Using the controller to obtain a signal collection period, and obtaining a collection signal of each infrared receiving device during the signal collection period; The start time of the signal acquisition period is T0+T1, and the end time of the signal acquisition period is T0+T1+T2, where T0 is the time when the controller sends the PWM control signal, T1 is the convergence time, and T2 is the acquisition time.

6. A sweeping robot, It is characterized in that It includes an infrared downward-looking sensor and a controller, wherein the infrared downward-looking sensor includes an infrared transmitting device and an infrared receiving device; The controller is used to obtain a pre-calculated access duration and a target duty cycle; generate a PWM control signal with a period equal to the access duration and a duty cycle equal to the target duty cycle; wherein the target duty cycle and the access duration are determined by the method described in any one of claims 1 to 3; The infrared emitting device is used to emit infrared light in response to the PWM control signal; The infrared receiving device is used to generate a corresponding acquisition signal in response to the reception of infrared light; The controller is further used to obtain the collected signals of each of the infrared receiving devices, and determine the suspension status of the sweeping robot according to each of the collected signals.

7. The sweeping robot according to claim 6, It is characterized in that The controller is specifically used to: obtain a signal collection period, and obtain a collection signal of the infrared receiving device in the signal collection period; The start time of the signal acquisition period is T0+T1, and the end time of the signal acquisition period is T0+T1+T2, where T0 is the time when the controller sends the PWM control signal, T1 is the convergence time, and T2 is the acquisition time.

8. The sweeping robot according to claim 6, It is characterized in that The sweeping robot also includes a chassis, which includes a left wheel, a right wheel and a front wheel. The front wheel is arranged on the forward direction side of the sweeping robot, the left wheel is arranged on the left side of the forward direction, and the right wheel is arranged on the right side of the forward direction.

9. The sweeping robot according to claim 8, It is characterized in that The sweeping robot includes five infrared downward-looking sensors, which are respectively arranged at the front end of the front wheel of the sweeping robot, the front end of the left wheel, the rear end of the left wheel, the front end of the right wheel, and the rear end of the right wheel. The forward direction of the sweeping robot is the front end, and the direction away from the forward direction of the sweeping robot is the rear end.

10. The sweeping robot according to claim 6, It is characterized in that The controller includes a PWM signal generating module and an analog-to-digital converter; The PWM signal generating module is used to generate the PWM control signal; the analog-to-digital converter is used to convert the collected signal of the infrared receiving device from an analog signal to a digital signal.