Current curve-based resistance backoff judgment method and system

Through the resistance fallback determination method based on the current curve, through the comparison and difference judgment of the current curve and the trend curve, the threshold is dynamically adjusted, which solves the problems of inaccurate and high cost determination of the resistance of the electric lifting table, and realizes the detection of any load. Accurate judgment and cost control under circumstances.

CN118611531APending Publication Date: 2024-09-06LOCTEK ERGONOMIC TECH CORP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410641071.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing obstruction-return technology of electric lift tables has problems such as inaccurate judgment and high cost. Especially when the load size is unknown, it is difficult to adapt to any load situation, resulting in an increased possibility of misjudgment or missed judgment.

Method used

Adopt the resistance fallback determination method based on the current curve, obtain the current curve and trend curve through real-time collection and filtering, calculate the difference between the current value and the trend value, and dynamically adjust the threshold based on the difference to determine whether the preset threshold is exceeded and continues If the time exceeds the preset time, it will be judged to be blocked, and the motor will be controlled to perform retreat or stop actions.

Benefits of technology

It realizes the accurate judgment of the resistance characteristics of the lifting table under any load conditions, improves the accuracy of the resistance judgment, does not require additional circuits or sensors, and reduces the cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611531A
    Figure CN118611531A
Patent Text Reader

Abstract

The invention provides a current curve-based resistance back-off judgment method and system, and relates to the technical field of motor resistance back-off control, and the method comprises the steps: collecting and filtering a real-time current value during the operation of a motor, so as to obtain a real-time current curve containing the real-time current values at a plurality of continuous moments, obtaining a current trend curve containing current trend values at a plurality of continuous moments based on the real-time current curve; calculating a difference value obtained by subtracting the current trend value of the current moment from the real-time current value of the current moment, multiplying the real-time current value of the current moment by a preset threshold coefficient to obtain a resistance meeting threshold value, and then judging whether the difference value exceeds the resistance meeting threshold value and whether the duration exceeds a preset duration or not; controlling the motor to execute a rollback or stop action; and if not, dynamically adjusting the resistance meeting threshold value according to the difference value. The beneficial effects are that accurate determination of resistance meeting characteristics of the lifting table under any load condition is realized, accuracy of resistance meeting determination is improved, and cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor resistance fallback control, and in particular to a method and system for determining resistance fallback based on a current curve. Background Art

[0002] In the field of electric lift table technology, the retraction function is an important safety feature designed to prevent equipment damage or personal injury caused by collision or overload. At present, the retraction function of electric lift tables is mainly achieved in two main ways: one is to detect the change of current during the collision process, and the other is to use a six-axis sensor to detect and measure the change of gravity acceleration and angular acceleration.

[0003] In the method of using current changes to determine resistance, the conventional approach is to determine resistance by detecting the change in current per unit time (i.e., the change in the slope of the current). However, this method faces a significant problem in practical applications: the load size of the lifting table is unknown during use, especially during the descent process, the average current value under light load and heavy load conditions is very different. Therefore, using a single slope change threshold as the standard for resistance determination is difficult to adapt to resistance conditions under any load condition, which increases the possibility of misjudgment or missed judgment.

[0004] Another method is to use a six-axis sensor to determine if there is an obstacle. Although this method has high accuracy, the cost is relatively high, which increases the manufacturing cost of the product and is not conducive to the market promotion and popularization of the product.

[0005] Therefore, the existing electric lift table retracting technology when encountering an obstruction has the problems of inaccurate judgment and high cost. There is an urgent need for a solution that can accurately judge the obstruction situation and control the cost. Summary of the invention

[0006] In view of the problems existing in the prior art, the present invention provides a method for determining when to retreat when encountering an obstacle based on a current curve, comprising:

[0007] Step S1, when the motor is running, collecting and filtering to obtain a real-time current value representing the current flowing through the motor at the current moment to obtain a real-time current curve containing real-time current values ​​at multiple consecutive moments, and filtering based on the real-time current value at the current moment and the current trend value at the previous moment to obtain a current trend value representing the median value of the motor current fluctuation range at the current moment when no resistance is encountered to obtain a current trend curve containing current trend values ​​at multiple consecutive moments;

[0008] Step S2, calculate the difference between the current real-time current value at the current moment and the current trend value at the current moment, and obtain the resistance threshold value based on the real-time current value at the current moment multiplied by the preset threshold coefficient, and then determine whether the difference exceeds the resistance threshold value and the duration exceeds the preset duration:

[0009] If yes, it is determined as encountering an obstacle, and the motor is controlled to perform a retreat or stop action;

[0010] If not, the obstruction threshold is dynamically adjusted according to the difference, and then the process returns to step S2.

[0011] Preferably, the step S1 comprises:

[0012] Step S11, collecting the original current value of the motor in real time when the motor is running, and then performing mean filtering on the original current value to obtain a rough current value;

[0013] Step S12, performing low-pass filtering according to the real-time current value at the previous moment of the real-time current curve and the rough current value at the current moment to obtain the real-time current value at the current moment of the real-time current curve;

[0014] Step S13, performing low-pass filtering according to the current trend value of the previous moment of the current trend curve and the real-time current value of the current moment in the real-time current curve to obtain the current trend value of the current trend curve at the current moment.

[0015] Preferably, the filtering process in step S12 satisfies the following formula:

[0016]

[0017] in, is the real-time current value of the real-time current curve at the current moment, is the real-time current value at a moment on the real-time current curve, K1 is the filter coefficient, is the rough current value at the current moment.

[0018] Preferably, the filtering process in step S13 satisfies the following formula:

[0019]

[0020] in, is the current trend value of the current trend curve at the current moment, K2 is the filter coefficient, is the current trend value at a previous moment on the current trend curve, is the real-time current value at the current moment in the real-time current curve.

[0021] Preferably, the process of dynamically adjusting the obstruction threshold according to the difference in step S2 includes:

[0022] Determine whether the difference is greater than zero:

[0023] If yes, when the duration of the difference being greater than zero is greater than the preset duration, the threshold coefficient is reduced to adjust the obstruction threshold, and then the process returns to step S2;

[0024] If not, then when the duration during which the difference is not greater than zero is greater than the preset duration, the threshold coefficient is increased to adjust the obstruction threshold, and then the process returns to step S2.

[0025] The present invention also provides a current curve-based system for determining when an obstacle is encountered and when a fallback is encountered, which uses the above-mentioned method for determining when an obstacle is encountered and when a fallback is encountered, and comprises:

[0026] A curve calculation module, used for collecting and filtering a real-time current value representing the current flowing through the motor at the current moment when the motor is running to obtain a real-time current curve containing real-time current values ​​at multiple consecutive moments, and filtering the real-time current value at the previous moment of the real-time current curve to obtain a current trend value representing the median value of the motor current fluctuation range at the current moment when no resistance is encountered to obtain a current trend curve containing the current trend values ​​at multiple consecutive moments;

[0027] An obstruction determination module is connected to the curve calculation module, and is used to calculate the difference between the real-time current value of the real-time current curve at the current moment and the current current trend value of the current trend curve at the current moment, and to obtain the obstruction threshold value based on the real-time current value of the real-time current curve at the current moment multiplied by a preset threshold coefficient; then, when it is determined that the difference exceeds the obstruction threshold value and the duration of the excess exceeds the preset duration, it is determined that there is an obstruction, and the motor is controlled to perform a retreat or stop action; and when it is determined that the difference does not exceed the obstruction threshold, the obstruction threshold is dynamically adjusted according to the difference, and then the obstruction determination is re-performed.

[0028] Preferably, the curve calculation module includes:

[0029] A current acquisition unit, which acquires the original current value of the motor in real time when the motor is running, and then performs mean filtering on the original current value to obtain a rough current value;

[0030] A first curve processing unit, connected to the current acquisition unit, for performing low-pass filtering according to the real-time current value at a previous moment of the real-time current curve and the rough current value at a current moment to obtain the real-time current value at a current moment of the real-time current curve;

[0031] The second curve processing unit is connected to the first curve processing unit and is used to perform low-pass filtering based on the current trend value of the previous moment of the current trend curve and the real-time current value of the current moment in the real-time current curve to obtain the current current trend value of the current trend curve at the current moment.

[0032] Preferably, the filtering process in the first curve processing unit satisfies the following formula:

[0033]

[0034] in, is the real-time current value of the real-time current curve at the current moment, is the real-time current value of the previous moment of the real-time current curve, K1 is the filter coefficient, is the rough current value at the current moment.

[0035] Preferably, the filtering process in the second curve processing unit satisfies the following formula:

[0036]

[0037] in, is the current trend value of the current trend curve at the current moment, K2 is the filter coefficient, is the current trend value at a previous moment on the current trend curve, is the real-time current value of the real-time current curve at the current moment.

[0038] Preferably, the obstacle determination module comprises:

[0039] A threshold coefficient adjustment unit is used to reduce the threshold coefficient to adjust the obstruction threshold when the difference is not greater than the obstruction threshold and it is judged that the difference is greater than zero and lasts for a period greater than the preset time, and then recalculate the difference between the real-time current value at the current moment and the current current trend value to make an obstruction judgment, and increase the threshold coefficient to adjust the obstruction threshold when it is judged that the difference is not greater than zero and lasts for a period greater than the preset time, and then recalculate the difference between the real-time current value at the current moment and the current current trend value to make an obstruction judgment.

[0040] The above technical solution has the following advantages or beneficial effects: the present invention obtains a difference by comparing the real-time current curve with the current trend curve when the motor is running, and through the time determination when the difference exceeds the resistance threshold and the dynamic resistance threshold adjustment, it realizes the accurate judgment of the resistance characteristics of the lifting table under any load condition. This method not only improves the accuracy of the resistance judgment, but also does not require additional circuits or sensors, reduces costs, and has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flow chart of a method for determining whether to retreat when encountering resistance based on a current curve in a preferred embodiment of the present invention;

[0042] Figure 2 A schematic diagram of a sub-process of step S1 in a preferred embodiment of the present invention;

[0043] Figure 3 The figure is a schematic structural diagram of a system for determining whether to retreat when encountering an obstacle based on a current curve in a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0044] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The present invention is not limited to this embodiment, and other embodiments may also fall within the scope of the present invention as long as they conform to the gist of the present invention.

[0045] In a preferred embodiment of the present invention, based on the above problems existing in the prior art, a method for determining when to retreat when encountering resistance based on a current curve is provided. Figure 1 As shown, including:

[0046] Step S1, when the motor is running, collecting and filtering to obtain a real-time current value representing the current flowing through the motor at the current moment to obtain a real-time current curve containing real-time current values ​​at multiple consecutive moments, and filtering based on the real-time current value at the current moment of the real-time current curve and the current trend value at the previous moment to obtain a current trend value representing the median value of the motor current fluctuation range at the current moment when no resistance is encountered to obtain a current trend curve containing current trend values ​​at multiple consecutive moments;

[0047] Step S2, calculate the difference between the real-time current value of the real-time current curve at the current moment and the current current trend value of the current trend curve at the current moment, and multiply the real-time current value of the real-time current curve at the current moment by the preset threshold coefficient to obtain the resistance threshold, and then determine whether the difference exceeds the resistance threshold and the duration exceeds the preset duration:

[0048] If yes, it is determined as encountering an obstacle, and the motor is controlled to perform a retreat or stop action;

[0049] If not, the obstruction threshold is dynamically adjusted according to the difference, and then the process returns to step S2.

[0050] Specifically, in this embodiment, a method for determining whether to fall back when encountering resistance based on dual current curves is provided. First, in view of the problem in the prior art that the load size is unknown during the use of the lifting table, especially the large difference in the average current value under light load and heavy load conditions during the descent process, this technical solution introduces the concept of dual current curves. One of the current curves reflects the real-time current value at each moment, and the other reflects the current change trend of the median value of the motor current fluctuation range at the current moment when the motor is running without resistance. This method enables the technical solution to capture the changing characteristics of the current more comprehensively, rather than relying solely on a single slope change threshold.

[0051] Secondly, this embodiment determines whether the lifting table encounters resistance by calculating the difference between the real-time current value in the real-time current curve at the current moment and the current trend value in the current trend line at the current moment (which can be understood as an estimated value of the current prediction, calculated according to the value of the previous moment in the current trend curve and the real-time current value at the current moment, indicating the median value of the motor current fluctuation range at the current moment when there is no resistance), and the time when this difference exceeds the resistance threshold. This method can effectively determine the resistance characteristics when the lifting table is descending under heavy load conditions and the motor current is relatively small. At the same time, due to the use of a dynamic threshold setting method, the determination process is more flexible and can adapt to resistance judgments under different load conditions.

[0052] In addition, this technical solution also has a certain fault tolerance. Due to the use of dual moving averages, when one of the moving averages is disturbed or abnormal, the other moving average can still provide effective reference information, thereby ensuring the accuracy and reliability of the obstacle judgment.

[0053] Finally, it is worth noting that the technical solution can be directly applied to the existing point lifting table drive without adding additional circuits or sensors, so it does not increase the cost. This feature makes the technical solution highly practical and economical.

[0054] In a preferred embodiment of the present invention, Figure 2 As shown, step S1 includes:

[0055] Step S11, collecting the original current value of the motor in real time when the motor is running, and then performing mean filtering on the original current value to obtain a rough current value;

[0056] Step S12, performing low-pass filtering according to the real-time current value of the real-time current curve at the previous moment and the rough current value at the current moment to obtain the real-time current value of the real-time current curve at the current moment;

[0057] Step S13, performing low-pass filtering on the current trend value of the previous moment of the current trend curve and the real-time current value of the current curve at the current moment to obtain the current trend value of the current trend curve at the current moment.

[0058] In a preferred embodiment of the present invention, the filtering process in step S12 satisfies the following formula:

[0059]

[0060] in, is the real-time current value of the real-time current curve at the current moment, is the real-time current value at a moment on the real-time current curve, K1 is the filter coefficient, is the rough current value at the current moment.

[0061] In a preferred embodiment of the present invention, the filtering process in step S13 satisfies the following formula:

[0062]

[0063] in, is the current trend value of the current trend curve at the current moment, K2 is the filter coefficient, is the current trend value at a previous moment on the current trend curve, It is the real-time current value at the current moment in the real-time current curve.

[0064] Specifically, in this embodiment, first, during the operation of the motor, the current of the motor is sampled in real time through the ADC module provided to obtain the original current value of the motor. In practical applications, the current sampling process is often affected by various noises and interferences, which may come from the instability of the power supply, electromagnetic interference, thermal noise of the equipment, etc. These noises and interferences will cause fluctuations and errors in the sampled current value, and cannot accurately reflect the actual current situation. Through mean filtering, these noises and interferences can be averaged to obtain a relatively stable and accurate current value. Another function of mean filtering is to smooth the data. Due to random errors or system errors that may exist during the sampling process, the current value may suddenly change or jump at certain moments. This sudden change or jump does not represent the actual current change, but is caused by the sampling error. Through mean filtering, these sudden changes or jumps can be smoothed out, making the current data more continuous and stable. The rough current value I after mean filtering rough It will be used as the basic data for subsequent processing. If the original current value with noise and interference is directly used for subsequent processing, it may cause errors and instability in the processing results. The rough current value I obtained by mean filtering rough It is more accurate and stable, which can improve the accuracy and reliability of subsequent processing.

[0065] Then the rough current value I rough Low-pass filtering can obtain the first curve mentioned above - the real-time current curve. The formula we use is:

[0066]

[0067] in, is the real-time current value of the real-time current curve at the current moment, is the real-time current value at a moment on the real-time current curve, K1 is the filter coefficient, It is the real-time current value at the current moment.

[0068] In order to obtain a smoother curve, K1 is set to about 0.98 in this embodiment.

[0069] Because we are continuously sampling the motor current, each point corresponding to each moment in our real-time current curve (the value of the previous moment is taken as 0 at the initial moment) is calculated based on the real-time current value of the previous moment in the real-time current curve and the rough current value of the current moment. Therefore, the formula needs to combine the value of the previous moment and the rough current value of the current moment, multiply by the corresponding coefficient, and then sum them to complete the low-pass filtering to remove high-frequency abnormal data to obtain a current moving average to reflect the real-time current curve.

[0070] After obtaining the real-time current curve, we perform low-pass filtering on the real-time current curve to obtain the second curve - the current trend curve. The formula we use is:

[0071]

[0072] in, is the current trend value of the current trend curve at the current moment, K2 is the filter coefficient, is the current trend value at a previous moment on the current trend curve, It is the real-time current curve.

[0073] In this embodiment, K2 is set to about 0.98, and K1 and K2 may be equal or unequal, and may be adjusted according to actual conditions to obtain the best obstacle encounter judgment effect.

[0074] Based on the same calculation idea as the aforementioned real-time current curve, each moment in the current trend curve is calculated based on the current trend value of the previous moment in the current trend curve (the current trend value of the previous moment is taken as 0 at the initial moment) and the real-time current value of the real-time current curve at the current moment. Therefore, the formula needs to combine the current trend value of the previous moment and the real-time current value corresponding to the real-time current curve at the current moment, multiply by the corresponding coefficient and then sum them to complete low-pass filtering to remove high-frequency abnormal data to obtain a current trend curve. This curve reflects the current change trend when the motor is running, that is, to predict the real-time current at the current moment.

[0075] In a preferred embodiment of the present invention, the process of dynamically adjusting the resistance threshold according to the difference in step S2 includes:

[0076] Check whether the difference is greater than zero:

[0077] If yes, when the duration of the difference being greater than zero is greater than the preset duration, the threshold coefficient is reduced to adjust the obstruction threshold, and then the process returns to step S2;

[0078] If not, then when the duration of the difference not being greater than zero is greater than the preset duration, the threshold coefficient is increased to adjust the resistance threshold, and then the process returns to step S2. Specifically, in this embodiment, the difference between the real-time current value of the real-time current curve and the current current trend value of the current trend curve is calculated, and the time when the difference exceeds the resistance threshold is determined to determine whether the lifting table encounters resistance. This method can effectively determine the resistance characteristics of the lifting table when the motor current is relatively small under heavy load conditions. At the same time, due to the use of a dynamic threshold setting method, the determination process is more flexible and can adapt to resistance judgments under different load conditions.

[0079] Specifically, we first set the initial threshold coefficient C, which is preferably less than 10% in this embodiment, and then calculate the initial resistance threshold I thd =C*I real , I real Get the real-time current value at the current moment in the real-time current curve;

[0080] Next, calculate the difference I between the real-time current curve and the current trend curve delta =I real -I ref , that is, the difference I between the real-time current value of the real-time current curve at the current moment and the current current trend value of the current trend curve is calculated delta , calculate the difference I delta We then need to compare this difference with the calculated resistance threshold.

[0081] When this difference I de l ta Exceeding the resistance threshold I thd , and the duration is greater than the preset duration T, it means that the current real-time current value of the current motor and the predicted current trend value have deviated, and this deviation exceeds the range we allow (because the difference may have positive and negative values, so the resistance coefficient should also take positive and negative values ​​so that the resistance threshold is a positive to negative range corresponding to the difference. For example, the current real-time current value is 10A, and the threshold coefficient C takes (-5%, 5%), then the corresponding resistance threshold is (-0.5, 0.5), that is, the difference should be judged to exceed the range of (-0.5, 0.5)), and the duration exceeds the preset duration we allow, the current situation is judged as encountering resistance, and the motor performs the retreat task (it can retreat a certain distance or stop running immediately). T is generally set to 400-600ms.

[0082] When this difference I delta Does not exceed the resistance threshold I thd When (for example, in the previous example, the difference is between (-0.5, 0.5)), we need to determine the difference I deltaIs it greater than zero? If the difference I delta If the difference I is less than zero and lasts longer than the preset time T, it means that the motor current is decreasing. At this time, we need to reduce the threshold coefficient C to adjust the corresponding resistance threshold to increase the sensitivity of resistance judgment. delta If it is greater than zero and lasts longer than the preset time T, it means that the motor current is increasing. At this time, we need to increase the threshold coefficient C to adjust the corresponding resistance threshold to reduce the sensitivity of resistance judgment and reduce the probability of false alarm.

[0083] This technical solution is mainly used in the technical field of smart home and electric lift table, specifically involving the drive control part of the electric lift table. Accurately and in real time detect whether the electric lift table encounters resistance during the lifting process, so as to respond in time to avoid damage to the drive or inconvenience to the user.

[0084] In general, this technical solution is implemented through the following steps:

[0085] The original current is filtered to obtain a real-time current curve, and the real-time current curve is further filtered to obtain a general trend curve of the current. This can eliminate the influence of current fluctuations on the judgment result and make the judgment more accurate.

[0086] According to the difference between the real-time current value and the current trend value, the resistance threshold value is dynamically set. This method can flexibly adjust the threshold value according to the actual situation, thereby improving the accuracy of detection.

[0087] When multi-step filtering is performed on the original current to obtain a real-time current curve representing the real-time current and a current trend curve representing the current change trend, the difference between the real-time current value and the current trend value at the current moment is obtained, and when it is detected that the difference exceeds the set resistance threshold and lasts for too long, it is determined that the electric lifting table encounters resistance. At this time, the driver will take corresponding measures, such as stopping lifting or reverse movement, to protect the user's life and property safety and avoid damage to the driver.

[0088] This algorithm is particularly effective under heavy load conditions. When a heavy load is lowered, the motor needs a smaller current to overcome the load under the action of gravity, but if it encounters resistance at this time, the current change trend may not be as obvious as when it is lightly loaded. However, since the dual current moving average algorithm considers both the real-time current and the current change trend to dynamically adjust the threshold coefficient of the resistance threshold to adjust the sensitivity of the threshold judgment, it can effectively judge the resistance characteristics even when the motor current is small and the current change trend is small.

[0089] In this way, the technical solution effectively solves the problem of inaccurate detection and untimely response of electric lift tables in the prior art, and improves the safety and user experience of electric lift tables. At the same time, the technical solution does not require additional circuits or sensors, and can be directly applied to existing point lift table drivers without increasing costs, which has certain practicality and economy.

[0090] The present invention also provides a current curve-based system for determining when a circuit is blocked and when a circuit is blocked, and the above-mentioned method for determining when a circuit is blocked is used. Figure 3 As shown, including:

[0091] A curve calculation module 1 is used to collect and filter the real-time current value representing the current flowing through the motor at the current moment when the motor is running to obtain a real-time current curve containing the real-time current values ​​at multiple consecutive moments, and filter the real-time current value at the previous moment of the real-time current curve to obtain a current trend value representing the median value of the motor current fluctuation range at the current moment when no resistance is encountered to obtain a current trend curve containing the current trend values ​​at multiple consecutive moments;

[0092] The resistance judgment module 2 is connected to the curve calculation module 1, and is used to calculate the difference between the real-time current value of the real-time current curve at the current moment and the current current trend value of the current trend curve at the current moment, and multiply the real-time current value of the real-time current curve at the current moment by a preset threshold coefficient to obtain a resistance threshold value, and then judge that there is resistance when the difference exceeds the resistance threshold and the duration of the excess exceeds the preset duration, and control the motor to perform a retreat or stop action; and dynamically adjust the resistance threshold according to the difference when it is judged that the difference does not exceed the resistance threshold, and then re-perform the resistance judgment.

[0093] In a preferred embodiment of the present invention, the curve calculation module 1 includes:

[0094] The current acquisition unit 11 acquires the original current value of the motor in real time when the motor is running, and then performs mean filtering on the original current value to obtain a rough current value;

[0095] The first curve processing unit 12 is connected to the current acquisition unit 11 and is used to perform low-pass filtering according to the real-time current value of the real-time current curve at the previous moment and the rough current value at the current moment to obtain the real-time current value of the real-time current curve at the current moment;

[0096] The second curve processing unit 13 is connected to the first curve processing unit 12, and is used to perform low-pass filtering according to the current trend value of the previous moment of the current trend curve and the real-time current value of the current moment in the real-time current curve to obtain the current trend value of the current trend curve at the current moment.

[0097] In a preferred embodiment of the present invention, the filtering process in the first curve processing unit satisfies the following formula:

[0098]

[0099] in, is the real-time current value of the real-time current curve at the current moment, is the real-time current value of the previous moment of the real-time current curve, K1 is the filter coefficient, is the rough current value at the current moment.

[0100] In a preferred embodiment of the present invention, the filtering process in the second curve processing unit satisfies the following formula:

[0101] in, is the current trend value of the current trend curve at the current moment, K2 is the filter coefficient, is the current trend value at a previous moment on the current trend curve, It is the real-time current value of the real-time current curve at the current moment.

[0102] In a preferred embodiment of the present invention, the obstruction determination module 2 comprises:

[0103] The threshold coefficient adjustment unit 21 is used to reduce the threshold coefficient to adjust the resistance threshold when the difference is not greater than the resistance threshold, and when it is judged that the difference is greater than zero and lasts for a longer period than a preset time, and then recalculate the difference between the real-time current value at the current moment and the current current trend value to make a resistance judgment, and increase the threshold coefficient to adjust the resistance threshold when it is judged that the difference is not greater than zero and lasts for a longer period than a preset time, and then recalculate the difference between the real-time current value at the current moment and the current current trend value to make a resistance judgment.

[0104] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the contents of this specification and illustrations should be included in the protection scope of the present invention.

Claims

1. A method for determining when to retreat when encountering resistance based on a current curve, characterized in that: include: Step S1, when the motor is running, collecting and filtering to obtain a real-time current value representing the current flowing through the motor at the current moment to obtain a real-time current curve containing the real-time current values ​​at multiple consecutive moments, and filtering based on the real-time current value at the current moment and the current trend value at the previous moment to obtain a current trend value representing the median value of the motor current fluctuation range at the current moment when no resistance is encountered to obtain a current trend curve containing the current trend values ​​at multiple consecutive moments; Step S2, calculating the difference between the real-time current value at the current moment and the current trend value at the current moment, and obtaining the resistance threshold value based on the real-time current value at the current moment multiplied by the preset threshold coefficient, and then determining whether the difference exceeds the resistance threshold value and the duration exceeds the preset duration: If yes, it is determined as encountering an obstacle, and the motor is controlled to perform a retreat or stop action; If not, the obstruction threshold is dynamically adjusted according to the difference, and then the process returns to step S2.

2. The method for determining when to retreat when encountering an obstacle according to claim 1, characterized in that: The step S1 comprises: Step S11, collecting the original current value of the motor in real time when the motor is running, and then performing mean filtering on the original current value to obtain a rough current value; Step S12, performing low-pass filtering according to the real-time current value at the previous moment of the real-time current curve and the rough current value at the current moment to obtain the real-time current value at the current moment of the real-time current curve; Step S13, performing low-pass filtering according to the current trend value of the previous moment of the current trend curve and the real-time current value of the current moment in the real-time current curve to obtain the current trend value of the current trend curve at the current moment.

3. The method for determining when to retreat when encountering an obstacle according to claim 2, characterized in that: The filtering process in step S12 satisfies the following formula: in, is the real-time current value of the real-time current curve at the current moment, is the real-time current value at the previous moment of the real-time current curve, K1 is the filter coefficient, is the rough current value at the current moment.

4. The method for determining whether to fall back when encountering an obstacle according to claim 2, characterized in that: The filtering process in step S13 satisfies the following formula: in, is the current trend value of the current trend curve at the current moment, K2 is the filter coefficient, is the current trend value at a previous moment on the current trend curve, is the real-time current value at the current moment in the real-time current curve.

5. The method for determining when to retreat when encountering an obstacle according to claim 1, characterized in that: The process of dynamically adjusting the obstruction threshold according to the difference in step S2 includes: Determine whether the difference is greater than zero: If yes, when the duration of the difference being greater than zero is greater than the preset duration, the threshold coefficient is reduced to adjust the obstruction threshold, and then the process returns to step S2; If not, then when the duration during which the difference is not greater than zero is greater than the preset duration, the threshold coefficient is increased to adjust the obstruction threshold, and then the process returns to step S2.

6. A system for judging whether to retreat when encountering an obstacle based on a current curve, characterized in that: The method for determining whether to fall back when encountering an obstacle as claimed in any one of claims 1 to 5 is applied, comprising: A curve calculation module, used for collecting and filtering a real-time current value representing the current flowing through the motor at the current moment when the motor is running to obtain a real-time current curve containing real-time current values ​​at multiple consecutive moments, and filtering the real-time current value at the previous moment of the real-time current curve to obtain a current trend value representing the median value of the motor current fluctuation range at the current moment when no resistance is encountered to obtain a current trend curve containing the current trend values ​​at multiple consecutive moments; An obstruction determination module is connected to the curve calculation module, and is used to calculate the difference between the real-time current value of the real-time current curve at the current moment and the current current trend value of the current trend curve at the current moment, and to obtain the obstruction threshold value based on the real-time current value of the real-time current curve at the current moment multiplied by a preset threshold coefficient; then, when it is determined that the difference exceeds the obstruction threshold value and the duration of the excess exceeds the preset duration, it is determined that there is an obstruction, and the motor is controlled to perform a retreat or stop action; and when it is determined that the difference does not exceed the obstruction threshold, the obstruction threshold is dynamically adjusted according to the difference, and then the obstruction determination is re-performed.

7. The obstacle-encountering fallback determination system according to claim 6, characterized in that: The curve calculation module comprises: A current acquisition unit, which acquires the original current value of the motor in real time when the motor is running, and then performs mean filtering on the original current value to obtain a rough current value; A first curve processing unit, connected to the current acquisition unit, for performing low-pass filtering according to the real-time current value at a previous moment of the real-time current curve and the rough current value at a current moment to obtain the real-time current value at a current moment of the real-time current curve; The second curve processing unit is connected to the first curve processing unit and is used to perform low-pass filtering based on the current trend value of the previous moment of the current trend curve and the real-time current value of the current moment in the real-time current curve to obtain the current current trend value of the current trend curve at the current moment.

8. The obstacle-encountering fallback determination system according to claim 7, characterized in that: The filtering process in the first curve processing unit satisfies the following formula: in, is the real-time current value of the real-time current curve at the current moment, is the real-time current value of the previous moment of the real-time current curve, K1 is the filter coefficient, is the rough current value at the current moment.

9. The obstacle-encountering fallback determination system according to claim 7, characterized in that: The filtering process in the second curve processing unit satisfies the following formula: in, is the current trend value of the current trend curve at the current moment, K2 is the filter coefficient, is the current trend value at a previous moment on the current trend curve, is the real-time current value of the real-time current curve at the current moment.

10. The obstacle-encountering fallback determination system according to claim 6, characterized in that: The obstacle determination module comprises: A threshold coefficient adjustment unit is used to reduce the threshold coefficient to adjust the obstruction threshold when the difference is not greater than the obstruction threshold and it is judged that the difference is greater than zero and lasts for a period greater than the preset time, and then recalculate the difference between the real-time current value at the current moment and the current current trend value to make an obstruction judgment, and increase the threshold coefficient to adjust the obstruction threshold when it is judged that the difference is not greater than zero and lasts for a period greater than the preset time, and then recalculate the difference between the real-time current value at the current moment and the current current trend value to make an obstruction judgment.

Citation Information

Cited By

  • Barrier detection method and device, clothes airing machine and storage medium

    CN120629930A