Capacitive detection method and capacitive detection system for preventing contact

Through the capacitive detection method and the update mechanism of the benchmark and trigger detection time threshold, real-time contact risk detection of the motor is realized, ensuring that the motor is stopped in time before approaching, solving the problem of contact events not being prevented in time in the existing technology, and improving improve the adaptability and accuracy of the detection system.

CN118534202APending Publication Date: 2024-08-23AMICRO SEMICONDUCTOR CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410744470.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing motor detection technology is difficult to detect the approach of human hands or foreign objects in real time, causing the motor to be shut down only when it endangers the user's safety, making it impossible to prevent contact incidents in time.

Method used

Using the capacitive detection method, by setting the baseline detection time threshold and trigger detection time threshold, combined with multiple rounds of cyclic charging operations, the charging time of the reference capacitor is periodically detected, and the detection time threshold is updated to adapt to the electrical environment to ensure that before the risk of exposure occurs downtime and avoid miscalculations.

Benefits of technology

It achieves timely detection and shutdown before human hands or foreign objects approach, improves the safety of the motor and the environmental adaptability, sensitivity and accuracy of the detection system, and avoids frequent shutdowns caused by misjudgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534202A
    Figure CN118534202A
Patent Text Reader

Abstract

The invention discloses an anti-contact capacitive detection method and an anti-contact capacitive detection system. The capacitive detection method comprises the following steps: 1, timing the charging time of a reference capacitor under the condition that the capacitance value of a target detection capacitor is not influenced by an electrified body, and setting the charging time as a reference detection time threshold value; step 2, setting a trigger detection time threshold according to the relationship between the reference detection time threshold and the charging time of the reference capacitor counted at different measurement distances in advance; step 3, controlling the target detection capacitor to perform multi-round cyclic charging operation on the reference capacitor and timing the charging time of the reference capacitor round by round; secondly, judging whether a preset number of charging times counted latest in the step 3 are all within a preset time range, if so, updating the reference detection time threshold value and then executing the step 2, otherwise, judging whether the charging time counted in the step 3 is smaller than a trigger detection time threshold value; if yes, the risk that an electrified body makes contact with the target detection capacitor exists, and otherwise, the third step is executed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of motor detection, and in particular to a capacitive detection method and a capacitive detection system for contact prevention. Background Art

[0002] In order to improve the safety of people using motors, many safety specifications for use have been formulated under the existing technical environment, including installing an iron mesh in front of the motor blades to block foreign objects and shutting down the motor when it is detected to be blocked or working abnormally. Among them, Chinese invention patent CN201910798676.2 discloses a motor abnormality detection method. The motor abnormality detection method sets multi-level duty cycles and multi-level current thresholds to achieve a comprehensive judgment under high duty cycle conditions. Whether the slope of the curve fitted by the real-time detected motor current and the duty cycle adjusted according to a preset step size is higher or lower than the preset value, thereby determining whether the motor is currently blocked or in a state of excessive resistance. However, there is no detection of whether there is an external foreign object contacting or approaching the motor, such as being unable to detect the approach of a human hand, which can easily endanger the safety of the user. Therefore, it is necessary to shut down the motor immediately before it harms the user in some electrical environments. Summary of the invention

[0003] The present application discloses a capacitive detection method and a capacitive detection system for anti-touch, and the specific technical solutions are as follows: A capacitive detection method for contact prevention, the capacitive detection method comprising: step 1, when the capacitance value of the target detection capacitor is not affected by the charged body, timing the charging time of the reference capacitor, and setting the charging time of the reference capacitor as the benchmark detection time threshold; then executing step 2; step 2, setting the trigger detection time threshold according to the relationship between the benchmark detection time threshold and the charging time of the reference capacitor pre-timed at different measurement distances, and then executing step 3; wherein the distance between the charged body and the target detection capacitor is the measurement distance; whenever the measurement distance is changed, the capacitance value of the target detection capacitor changes, causing the charging time of the reference capacitor to change; the trigger detection time threshold is less than the benchmark detection time threshold; step 3, controlling the target detection capacitor Perform multiple rounds of cyclic charging operations for the reference capacitor, and time the charging time of the reference capacitor round by round, and then execute step 4; step 4, determine whether the preset number of charging times most recently timed in step 3 are all within the preset time range, if so, update the adaptive target charging time to the benchmark detection time threshold and then execute step 2, otherwise execute step 5; wherein, the adaptive target charging time is within the preset time range; when the coverage range of the preset number of rounds of charging time most recently timed in step 3 changes, the preset time range changes to change the adaptive target charging time; step 5, determine whether the charging time timed in step 3 is less than the trigger detection time threshold, if so, determine that there is a risk of contact between the charged body and the target detection capacitor, otherwise execute step 3.

[0004] In summary, by executing the aforementioned steps 1 to 5, the present application sets a benchmark detection time threshold in the absence of interference from a charged body, and then sets a trigger detection time threshold in combination with the charging time of a reference capacitor pre-timed at different measurement distances; then, in the process of performing multiple rounds of cyclic charging operations for the reference capacitor, the relatively stable charging time is updated to the benchmark detection time threshold by repeatedly detecting whether the charging time of the reference capacitor is stable to improve the adaptability of the detection environment; and in the case where a relatively stable charging time cannot be obtained, if it is determined that the charging time is less than the trigger detection time threshold, it is determined that there is a risk of contact between a charged body and the target detection capacitor, that is, the contact risk is detected, so as to trigger the motor where the target detection capacitor is located to shut down directly, otherwise, the reference capacitor continues to be charged for multiple rounds and the charging time of the reference capacitor is detected. It is possible to periodically detect the charging time of the reference capacitor to update the relevant detection time threshold until it is detected that the charging time of the reference capacitor is less than the latest relevant detection time threshold and the contact risk is detected. The detection can be completed before the actual contact occurs, effectively preventing the occurrence of contact events, and can trigger the shutdown of motor equipment with contact risks accordingly, or update the relevant detection time threshold when no contact risk is currently detected to ensure that the motor equipment will not be mistakenly triggered to shut down in the electrical environment in which it is located, effectively dealing with misjudgments caused by electrical environments with charged bodies such as wires and circuit boards around the motor.

[0005] Further, in the same electrical environment, the capacitance value of a target detection capacitor corresponds to a measurement distance, and a measurement distance corresponds to the charging time of a reference capacitor; starting from the same charged body, the smaller the measurement distance, the larger the capacitance value of the target detection capacitor, and the shorter the charging time of the reference capacitor, so that when the charged body is in contact with the target detection capacitor, the capacitance value of the target detection capacitor reaches the maximum, and the charging time of the reference capacitor reaches the shortest; starting from the same charged body, the larger the measurement distance, the smaller the capacitance value of the target detection capacitor, and the longer the charging time of the reference capacitor, so that when the measurement distance becomes large enough that the capacitance value of the target detection capacitor is not affected by the charged body, the charging time of the reference capacitor reaches the longest. It is achieved that the corresponding measurement distance can be mapped by timing the charging time.

[0006] Further, in step 2, the method for setting the trigger detection time threshold according to the relationship between the benchmark detection time threshold and the charging time of the reference capacitor pre-timed at different measuring distances includes: selecting the charging time corresponding to one of the measuring distances from the charging time of the reference capacitor pre-timed at different measuring distances as the trigger detection time threshold, so that in the subsequent step 5, when it is determined that the charging time of the reference capacitor is greater than the trigger detection time threshold, the risk of contact between the charged body and the target detection capacitor has been detected before the target detection capacitor physically contacts the charged body, and it is determined that the distance between the charged body and the target detection capacitor decreases during the subsequent execution of steps 3 and 4; wherein, the charging time of the reference capacitor pre-timed at different measuring distances is: before executing step 1, the charging time of the reference capacitor corresponding to each measuring distance is timed successively; wherein, the target detection capacitor and the reference capacitor are connected at the same position, so that the target detection capacitor and the reference capacitor are at the same measuring distance relative to the charged body. The charging time that can be selected as the trigger detection time threshold in the present application will take into account the layout and electrical characteristic interference of the wires, various electronic components and equipment instruments in the electrical environment. The optimal charging time obtained through repeated tests in the same electrical environment at least ensures that the target detection capacitor has detected that the charged body is approaching the target detection capacitor before it contacts the charged body, and also prevents misjudgment.

[0007] Furthermore, each time step 2 is performed, the time difference between the reference detection time threshold and the charging time measured at one of the measurement distances is configured to be fixed, so that the time difference does not change with changes in the electrical environment. Therefore, in the case of changes in the electrical environment, the charging time measured at one of the measurement distances can be calculated using the time difference and the preset reference detection time threshold, or the new reference detection time threshold can be calculated using the time difference and the latest charging time measured at one of the measurement distances.

[0008] Further, in step 3, the method of controlling the target detection capacitor to perform multiple rounds of cyclic charging operations for the reference capacitor and timing the charging time of the reference capacitor round by round includes: step 31, detecting whether the voltage across the reference capacitor reaches a preset voltage threshold, if yes, executing step 32, otherwise executing step 33; step 32, determining whether the current round of cyclic charging operation is completed, and saving the timing value of the reference capacitor in the current round of cyclic charging operation as the charging time of the reference capacitor, and then controlling the reference capacitor to discharge until the reference capacitor is fully discharged, and then executing step 33; step 33, charging the target detection capacitor until the target detection capacitor is fully charged, and then executing step 34; step 34, stopping charging the target detection capacitor, and then controlling the target detection capacitor to charge the reference capacitor, and timing the charging time of the reference capacitor until the voltage across the target detection capacitor remains unchanged with the voltage across the reference capacitor, stopping timing, and then executing step 31. In summary, by repeatedly executing steps 31 to 34 for multiple times, the target detection capacitor can be controlled to perform multiple rounds of cyclic charging operations for the reference capacitor, so as to continuously fully charge and discharge the reference capacitor, and time the charging time of the reference capacitor round by round to accept the subsequent step 4 for judging the stability of the charging time and the subsequent step 5 for detecting the contact risk.

[0009] Further, in step 4, when it is determined that the most recently timed preset number of charging times in step 3 are all within the preset time range, the most recently timed preset number of charging times in step 3 are set to be equal to the adaptive target charging time within the preset error allowable range to determine that the charging time of the reference capacitor is stable, and it is considered that there is a charged body outside the target detection capacitor that stably causes the capacitance value of the target detection capacitor / the charging time of the reference capacitor to change.

[0010] Among them, the adaptive target charging time is equal to the middle value of the preset time range or the average value of the maximum charging time and the minimum charging time among the preset number of charging times most recently timed in step 3, so as to fully reflect the central time value of the preset time range and be representative.

[0011] Furthermore, in step 1, when the capacitance value of the target detection capacitor is not affected by the charged body, the target detection capacitor is controlled to charge the reference capacitor, and the charging time of the reference capacitor is timed until the reference capacitor is fully charged, and then the charging time of the reference capacitor is recorded as the charging time of the reference capacitor; wherein, when the reference capacitor is fully charged, the voltage across the reference capacitor is equal to the preset voltage threshold. Therefore, step 1 provides a reference amount to enable the subsequent steps to select and update the detection time threshold in the relevant distance and environment, which will not be triggered by mistake and can detect the contact risk before the human hand touches it.

[0012] A capacitive detection system, the capacitive detection system includes a capacitive touch detection circuit, a motor and a motor controller, the capacitive touch detection circuit includes the aforementioned target detection capacitor and the aforementioned reference capacitor; the motor is connected to the motor controller, the capacitive touch detection circuit is connected to the motor controller, the motor controller is used to execute the capacitive detection method, when it is determined by executing the capacitive detection method that there is a risk of a charged body contacting the target detection capacitor, the motor is controlled to stop running.

[0013] In summary, by executing the aforementioned steps 1 to 5, the capacitive detection system periodically detects the charging time of the reference capacitor to update the relevant detection time threshold until it detects that the charging time of the reference capacitor is less than the latest relevant detection time threshold, and detects that there is a risk of contact between the charged body and the target detection capacitor. The detection can be completed before the charged body and the target detection capacitor actually come into contact, effectively preventing the occurrence of contact events, and can trigger the shutdown of motor equipment with contact risks accordingly, or update the relevant detection time threshold when no contact risk is currently detected to ensure that the motor will not be frequently mistakenly triggered to shut down in the electrical environment in which it is located, effectively dealing with misjudgments caused by electrical environments with charged bodies such as wires and circuit boards around, and improving the environmental adaptability, sensitivity and accuracy of the capacitive detection system.

[0014] Furthermore, the capacitive touch detection circuit also includes a charging power supply, a first switch and a second switch; the charging power supply is connected to one end of the first switch, the other end of the first switch is respectively connected to one end of the target detection capacitor and one end of the second switch, the other end of the target detection capacitor is grounded, the other end of the second switch is connected to one end of the reference capacitor, and the other end of the reference capacitor is grounded. After the target detection capacitor is fully charged, the target detection capacitor charges the reference capacitor, so that the motor controller detects the change in capacitance value of the target detection capacitor caused by the external charged body based on the charging time of the reference capacitor during the execution of steps 3 to 5.

[0015] Furthermore, the motor controller is used to first charge the target detection capacitor by closing the first switch, and at the same time control the second switch to be disconnected until the target detection capacitor is fully charged, then disconnect the first switch to stop charging the target detection capacitor, and close the second switch to allow the target detection capacitor to charge the reference capacitor, and at the same time trigger the scan counter to time the charging time of the reference capacitor. When the voltage across the target detection capacitor remains unchanged with the voltage across the reference capacitor, it is determined that a charging cycle has been scanned, and the scan counter is controlled to stop timing, and then the next charging cycle is entered; the motor controller is used to scan through multiple charging cycles until the voltage across the reference capacitor reaches a preset voltage threshold value, determine that a round of cyclic charging operation is completed, and save the timing value of the scan counter in a round of cyclic charging operation as the charging time of the reference capacitor in a round of cyclic charging operation, then clear the timing value of the scan counter, and control the discharge of the reference capacitor by disconnecting the second switch until the reference capacitor is fully discharged, and then enter the next round of cyclic charging operation; the motor controller is used to control the target detection capacitor to perform multiple rounds of cyclic charging operations for the reference capacitor. If it is determined that the charging time of the reference capacitor timed by the scan counter is less than the trigger detection time threshold, it is determined that there is a risk of contact between the charged body and the target detection capacitor, and the motor is controlled to stop running; wherein, the motor controller is provided with a scan counter.

[0016] In summary, the motor controller implements repeated switching operations in the process of executing the aforementioned steps 31 to 34, specifically, in the current charging cycle, the first switch is first closed and the second switch is opened; then the second switch is closed and the first switch is opened; then in the next charging cycle, the operation of the first switch and the second switch in the current charging cycle is repeated; this operation is repeated for multiple charging cycles until the voltage across the reference capacitor reaches a preset voltage threshold, and it is determined that a round of cyclic charging operation is completed, so as to judge whether the target detection capacitor is affected by human hands or other charged bodies based on the change in charging time of the reference capacitor caused by the change in the capacitance value of the target detection capacitor.

[0017] In addition, in order to implement the capacitive detection method, the capacitive touch detection circuit built by the capacitive detection system outside the motor controller is simplified. Only a few corresponding capacitors and switches are needed to detect charged objects using the charging time, which is low-cost and easy to implement. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flow chart of a capacitive detection method for anti-touch disclosed in one embodiment of the present application.

[0019] Figure 2 An embodiment of the present application discloses Figure 1 Schematic diagram of the specific execution method of step 3 in FIG.

[0020] Figure 3 is a schematic diagram of a capacitive touch detection circuit disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application. To further illustrate the embodiments, the present application provides drawings. These drawings are part of the disclosure of the present application, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in this field should be able to understand other possible implementation methods and the advantages of the present application.

[0022] With regard to the detection problems in the prior art mentioned above, if only a fixed time threshold is set for real-time detection, it is easy to be affected by environmental factors (including errors caused by voltage changes and heat causing changes in the electrical characteristics of components and electrical appliances) or it is detected only after a person touches the motor. Therefore, the real-time detection of the prior art either finds it difficult to detect the entry of a person's hand or foreign matter into the motor, or it is detected and stopped only when the motor has already caused harm to a person, resulting in: a lack of timely shutdown safety protection when a person touches the motor, and when a user operates improperly or becomes fatigued after long-term work, the user is prone to accidentally touch the fan blades of the motor, causing serious harm to the person or even endangering life safety.

[0023] The present application provides a capacitive detection method for touch protection, which sets a corresponding detection time threshold and updates the corresponding detection time threshold periodically during cyclic charging to detect the approach or touch of a charged object, thereby preventing false detection in the corresponding electrical environment and detecting before human hand contact, thereby realizing timely and accurate reminders to users for safe use.

[0024] As an example, Figure 1 As shown, the capacitive detection method includes: Step 1, when the capacitance value of the target detection capacitor is not affected by the charged body, the charging time of the reference capacitor is timed, and the charging time of the reference capacitor is set as the reference detection time threshold; then step 2 is executed; the situation where the capacitance value of the target detection capacitor is not affected by the charged body refers to that in a certain electrical environment, the charged body (including electrical instruments and equipment stored stably around, biological bodies, etc.) is far away from the target detection capacitor so that the parasitic capacitance inside the charged body will not cause the capacitance value of the target detection capacitor to change, which is regarded as a situation without charged body interference. The target detection capacitor is a touch capacitor set in an electrical device that is easy to contact with an external charged body, and is preferably regarded as a part of a capacitive touch button device in the electrical device; the electrical device is easy to cause harm to the human body when it touches the human body, such as a motor; it needs to be avoided by executing the capacitive detection method, and the premise of avoiding is to set the corresponding time threshold to detect it in advance, and step 1 provides a reference amount to start the subsequent steps to select and update the time threshold in the relevant distance and environment.

[0025] Step 2, setting a trigger detection time threshold according to the relationship between the benchmark detection time threshold and the charging time of the reference capacitor pre-timed at different measuring distances, and then executing step 3; wherein, the distance between the charged body and the target detection capacitor is the measuring distance, and whenever the measuring distance is changed, the capacitance value of the target detection capacitor changes, so that the charging time of the reference capacitor changes; the trigger detection time threshold set in step 2 based on the benchmark detection time threshold and the charging time of the reference capacitor pre-timed at different measuring distances is at least configured to be less than the benchmark detection time threshold; and the difference between the trigger detection time threshold and the benchmark detection time threshold can be related to the measuring distance, so that the charging time of the reference capacitor pre-timed at the corresponding measuring distance can be directly set as the trigger detection time threshold.

[0026] In some embodiments, if the trigger detection time threshold is closer to the reference detection time threshold, the detection is more sensitive and can be detected even at a longer measurement distance, but it is also more prone to false triggering. A compromise time should be selected from the charging time of the reference capacitor pre-timed at the corresponding measurement distance, which is not prone to false triggering and can respond quickly and sensitively.

[0027] Therefore, the present application performs detection based on the capacitor charging time caused by the change in the capacitance value of the capacitor between the human hand and the motor that may be in contact, that is, to find a time threshold based on the influence of different distances between the human hand and the motor that may be in contact on the capacitance, that is, the trigger detection time threshold.

[0028] Step 3, control the target detection capacitor to perform multiple rounds of cyclic charging operations for the reference capacitor, and time the charging time of the reference capacitor round by round, and then execute step 4; it should be noted that each round of cyclic charging operation may include the target detection capacitor performing multiple charging and discharging operations for the reference capacitor, but the charging time of the reference capacitor is counted in units of one round of cyclic charging operation, so that one round of cyclic charging operation corresponds to a charging time, which is also recorded as a periodic scan of the charging time of the reference capacitor.

[0029] The charge released by the target detection capacitor may not be able to fill the reference capacitor at one time, and the target detection capacitor needs to be charged repeatedly for multiple times; further, when the charged body approaches the target detection capacitor, causing the capacitance value of the target detection capacitor to increase, if the capacitance value of the target detection capacitor increases (the approach of the charged body causes the total capacitance value of the parasitic capacitance to increase), the amount of charge contained inside increases, and the reference capacitor can be filled faster in a single round of cyclic charging operation, shortening the charging time. In this case, if the time threshold is not updated according to the latest charging time, relying on the original larger time threshold for detection will lead to frequent detection of charged body contact events (physical contact has not actually occurred or is approaching) and constantly triggering the shutdown of the electrical equipment where the target detection capacitor is located. Therefore, not only is it necessary to periodically detect the charging time of the reference capacitor in step 3, but it is also necessary to adjust the benchmark detection time threshold by executing step 4, and then change the trigger detection time threshold, so as to deal with errors caused by changes in the electrical characteristics of components and electrical appliances due to voltage changes and heat generation.

[0030] Step 4, judging whether the preset number of charging times that have been timed most recently in step 3 are all within the preset time range, if so, updating the adaptive target charging time to the benchmark detection time threshold, determining that the current charging time of the reference capacitor is stable, and then executing step 2, otherwise executing step 5; wherein, the adaptive target charging time is within the preset time range, and the difference between each charging time within the preset time range is only allowed to fall within a fixed system error range, and the length of each charging time is related to the capacitance value of the target detection capacitor, and the capacitance value of the target detection capacitor is related to the distribution and contact of the charged body in the surrounding electrical environment. Therefore, when it is judged that the preset number of charging times that have been timed most recently in step 3 are all within the preset time range, it can be considered that the capacitance value of the target detection capacitor remains unchanged for a period of time, and the distribution of the charged body in the surrounding electrical environment is fixed and the electrical characteristics are stable; when the coverage range of the preset number of charging times that have been timed most recently in step 3 changes, the preset time range changes to change the adaptive target charging time, and then the benchmark detection time threshold required for the subsequent execution of step 2 changes adaptively to adapt to the current electrical environment changes.

[0031] In step 4, the preset number is less than or equal to the number of rounds of the cyclic charging operation performed in step 3, and the preset number can be set to be greater than or equal to 1. The preset number of charging times that have been most recently timed in step 3 are the charging times of the reference capacitors timed round by round in part or all of the cyclic charging operations performed in step 3, so as to realize the stability of the charging time of the reference capacitor by using the charging time periodically timed in step 3 to feedback.

[0032] After step 4 updates the adaptive target charging time to the benchmark detection time threshold, choose to return to step 2 to adapt to the current electrical environment changes, but the charging time of the reference capacitor pre-timed at the different measurement distances used when returning to step 2 has not changed, and the charging time of the reference capacitor pre-timed at each different measurement distance used in the last step 2 or before executing step 1 is still used to reduce manual measurement operations. It is only necessary to apply the influence of the charging time of the pre-timed reference capacitor on the basis of the updated benchmark detection time threshold to set the corresponding trigger detection time threshold, thus completing a round of threshold update.

[0033] Step 5, determine whether the charging time measured in step 3 is less than the trigger detection time threshold. If so, determine that there is a risk of contact between the charged body and the target detection capacitor, otherwise execute step 3. Among them, the charging time measured in step 3 involved in the judgment is the charging time of the reference capacitor measured in any round of cyclic charging operation in step 3, and can also be the charging time of the reference capacitor measured in the latest round of cyclic charging operation, that is, the (preset number)th charging time measured in step 4. It should be noted that the trigger detection time threshold and the aforementioned reference detection time threshold are both regarded as updateable detection time thresholds.

[0034] If the preset number of charging times that have been most recently timed in step 3 are not all within the preset time range, it can be determined that the charging time timed in at least one round of cyclic charging operation in step 3 has a sudden change relative to other rounds of cyclic charging operations and has not stabilized within the preset time range. Then, combined with the comparison of the trigger detection time threshold, it is accurately determined that there is a risk of contact between the charged body and the target detection capacitor, including a decrease in the distance between the charged body and the target detection capacitor or contact between the charged body and the target detection capacitor, such as a human hand or a foreign object approaching the motor where the target detection capacitor is located, and it is necessary to trigger the motor where the target detection capacitor is located to stop running. If it is determined that the charging time timed in step 3 is not less than the trigger detection time threshold, in order to reduce misjudgment, it is necessary to return to step 3, re-control the target detection capacitor to perform multiple rounds of cyclic charging operations for the reference capacitor, continue to periodically scan the charging time of the reference capacitor, and then select to update the time threshold or make a contact risk judgment between the target detection capacitor and the charged body in step 4.

[0035] It is worth noting that before the trigger detection time threshold is updated, if there is a charged body (such as an instrument) distributed at a relative position of the target detection capacitor, causing the charging time of the reference capacitor to be lower than the trigger detection time threshold, it is deemed that there is no risk of the charged body approaching to contact, and the motor brake will not be triggered to stop; in the process of periodic scanning of the charging time of the reference capacitor, if the trigger detection time threshold is not updated, when the original trigger detection time threshold is used for detection, the position of the same charged body (such as an instrument) relative to the target detection capacitor distribution remains unchanged, but the electrical environment or electrical characteristics thereof change, resulting in a shortened charging time of the reference capacitor, but it is detected that there is a risk of the charged body approaching to contact, that is, a misjudgment occurs, which will trigger the motor brake to stop; therefore, when there is a charged body (such as an instrument) placed stably and motionless, repeating steps 2 to 5 requires updating the reference detection time threshold and the trigger detection time threshold in turn, so as to ensure that the next motor start will not be constantly triggered by the charged body at the fixed position.

[0036] In summary, by executing the aforementioned steps 1 to 5, the present application sets a benchmark detection time threshold in the absence of interference from a charged body, and then sets a trigger detection time threshold in combination with the charging time of a reference capacitor pre-timed at different measurement distances; then, in the process of performing multiple rounds of cyclic charging operations for the reference capacitor, the relatively stable charging time is updated to the benchmark detection time threshold by repeatedly detecting whether the charging time of the reference capacitor is stable to improve the adaptability of the detection environment; and in the case where a relatively stable charging time cannot be obtained, if it is determined that the charging time is less than the trigger detection time threshold, it is determined that there is a risk of contact between a charged body and the target detection capacitor, that is, the contact risk is detected, so as to trigger the motor where the target detection capacitor is located to shut down directly, otherwise, the reference capacitor continues to be charged for multiple rounds and the charging time of the reference capacitor is detected. It is possible to periodically detect the charging time of the reference capacitor to update the relevant detection time threshold until it is detected that the charging time of the reference capacitor is less than the latest relevant detection time threshold and the contact risk is detected. The detection can be completed before the actual contact occurs, effectively preventing the occurrence of contact events, and can trigger the shutdown of motor equipment with contact risks accordingly, or update the relevant detection time threshold when no contact risk is currently detected to ensure that the motor equipment will not be mistakenly triggered to shut down in the electrical environment in which it is located, effectively dealing with misjudgments caused by electrical environments with charged bodies such as wires and circuit boards around the motor.

[0037] When the capacitive detection method is applied in the same electrical environment, the following conditions exist: in the same electrical environment, the capacitance value of a target detection capacitor corresponds to a measurement distance, and a measurement distance corresponds to a charging time of a reference capacitor; since different measurement distances have different effects on the capacitance value of the target detection capacitor, the corresponding measurement distance can be mapped by timing the charging time.

[0038] In the same electrical environment, when a charged body is close to or even in contact with a target detection capacitor, that is, the charged body is within the interference range of the capacitance value of the target detection capacitor, the parasitic capacitance of the charged body affects the capacitance value of the target detection capacitor. When the capacitance value of a target detection capacitor changes, the charging time of a reference capacitor changes accordingly, wherein the source of the change is the change in the measurement distance.

[0039] In the same electrical environment, starting from the same charged body, the smaller the measuring distance is, that is, the closer the charged body is to the target detection capacitor, the larger the capacitance value of the target detection capacitor is, and the capacitance value change of the target detection capacitor is imposed by the parasitic capacitance of the charged body. It can be understood that the capacitance value change of the target detection capacitor is equal to the sum of the original capacitance value of the target detection capacitor and the capacitance value of the parasitic capacitance of the charged body. The shorter the charging time of the reference capacitor is, so that when the charged body is in contact with the target detection capacitor, the capacitance value of the target detection capacitor reaches the maximum, and the charging time of the reference capacitor reaches the shortest, which is less than the trigger detection time threshold and also less than the benchmark detection time threshold.

[0040] In the same electrical environment, starting from the same charged body, the greater the measurement distance, that is, the farther the charged body is from the target detection capacitor, the smaller the capacitance value of the target detection capacitor, the capacitance value change applied to the target detection capacitor by the parasitic capacitance of the charged body is gradually weakened, and the charging time of the reference capacitor is longer, so that when the measurement distance increases to the point where the capacitance value of the target detection capacitor is not affected by the charged body, the charging time of the reference capacitor reaches the longest, that is, equal to the reference detection time threshold. Therefore, according to the charging time corresponding to at least one measurement distance to be detected, the trigger detection time threshold is set in step 2.

[0041] In the same electrical environment, the capacitance value of the capacitor remains unchanged without being disturbed by charged bodies outside the capacitor, and the electrical characteristics of the charged body (such as an instrument) and the circuit device connected thereto do not change.

[0042] In step 2, the method for setting the trigger detection time threshold according to the relationship between the benchmark detection time threshold and the charging time of the reference capacitor pre-timed at different measurement distances includes: selecting the charging time corresponding to the time at one of the measurement distances from the charging time of the reference capacitor pre-timed at different measurement distances as the trigger detection time threshold, wherein one of the measurement distances may be less than or equal to 2 cm (close enough to the target detection capacitor), and the charging time that can be selected as the trigger detection time threshold will take into account the layout and electrical characteristic interference of the wires, various electronic components and equipment instruments in the electrical environment, and the optimal charging time obtained through repeated tests under the same electrical environment at least ensures that the target detection capacitor has detected that the charged body is approaching the target detection capacitor before contacting the charged body, and also prevents misjudgment.

[0043] The charging time of the reference capacitor timed in advance at different measuring distances here is the charging time of the reference capacitor corresponding to each measuring distance timed in succession before executing step 1; it can be understood that before executing the capacitive detection method, the charged body is manually or automatically pushed to the positions corresponding to the predetermined multiple measuring distances in sequence, so that the capacitance value of the target detection capacitor changes, and then the time consumed by the target detection capacitor to charge the reference capacitor corresponding to each measuring distance is timed in succession, and a set of fixed charging times is obtained, which serves as the charging time of the reference capacitor timed in advance at different measuring distances, constituting training data for testing the capacitance value change of the target detection capacitor using the charged body; then the difference in the corresponding charging time at different measuring distances can be further calculated, and regardless of whether the charged body and the target detection capacitor change, the obtained set of fixed charging times does not change.

[0044] It should be noted that the target detection capacitor and the reference capacitor are connected at the same position, so that the target detection capacitor and the reference capacitor are at the same measurement distance relative to the charged body.

[0045] When step 2 is executed once, the charging time corresponding to the timing at one of the measuring distances is selected as the trigger detection time threshold, so that in the subsequently executed step 5, when it is determined that the charging time of the reference capacitor is greater than the trigger detection time threshold, the target detection capacitor has detected the risk of contact between the charged body and the target detection capacitor before contacting the charged body, and determines that in the process of subsequently executing steps 3 and 4, the distance between the charged body and the target detection capacitor decreases, which can confirm that the charging time of the reference capacitor detected in step 4 is unstable and may undergo a sudden change, and thus it may be detected that the charged body is gradually approaching and contacting the target detection capacitor.

[0046] When step 2 is subsequently repeated, if the subsequent electrical environment changes, the charging time corresponding to one of the measurement distances also changes, and the set trigger detection time threshold also changes. The changed detection time threshold can make the detection result more adaptable to the environment.

[0047] Each time step 2 is performed, the time difference between the reference detection time threshold and the charging time measured at one of the measurement distances is configured to be fixed, so that the time difference does not change with the change of the electrical environment, that is, the time difference does not change during the repeated execution of steps 1 to 5; which is equivalent to understanding that the time difference only changes when the measurement distance changes. In addition, in the same electrical environment, the sum of the capacitance value of the reference capacitor and the capacitance value of the target detection capacitor corresponding to one of the measurement distances is negatively correlated with the charging time of the reference capacitor measured at one of the measurement distances.

[0048] In schematic form, when the capacitance value of the target detection capacitor is not affected by the charged body, the charging time of the reference capacitor is 100us, and the benchmark detection time threshold is set to 100us; when the measuring distance is 10cm, the charging time of the reference capacitor is 96us; when the measuring distance is 5cm, the charging time of the reference capacitor is 90us; when the measuring distance is 2cm, the charging time of the reference capacitor is 80us; when the measuring distance is 0cm, the charged body is in contact with the target detection capacitor, and the charging time of the reference capacitor is 40us.

[0049] When the charged object is a human hand, by testing when the human hand approaches the target detection capacitor, different measuring distances correspond to different charging times. By executing step 2 to set the trigger detection time threshold, it can be known according to step 5 that the charging time of the reference capacitor is less than the trigger detection time threshold, and it can be considered that the human hand is detected; based on the above-mentioned illustrative example, it can be known that the charging time of the reference capacitor changes in the process of the human hand approaching the target detection capacitor. Based on this, the charging time of 80us corresponding to the measurement distance of 2cm is set as the trigger detection time threshold. Therefore, the human hand is a charged object, and the capacitance value of the target detection capacitor will increase when the hand approaches. The faster the speed of charging the reference capacitor, the smaller the distance from the human hand is recognized at this time, and then setting a reasonable threshold can achieve the purpose of identifying the approach of the human hand.

[0050] Based on the aforementioned illustrative example, the time difference between the charging time 100us measured when the capacitance value of the target detection capacitor is not affected by the charged body and the charging time 80us of the reference capacitor measured when the measuring distance is 2cm is fixedly set to be equal to 20us, and the time difference does not change with changes in the electrical environment.

[0051] When the electrical environment changes, if the capacitance value of the target detection capacitor increases, and the charging time of the reference capacitor measured when the capacitance value of the target detection capacitor is not affected by the charged body is 90us, not 100us, then the benchmark detection time threshold is updated to 90us. At this time, since the time difference between the benchmark detection time threshold and the corresponding charging time measured at one of the measurement distances is configured to be fixed, the corresponding charging time measured when the measurement distance is 2cm is equal to the difference between the benchmark detection time threshold of 90us and 20us, that is, the trigger detection time threshold is set to 70us, which is 10us less than the trigger detection time threshold set before the electrical environment changes.

[0052] Similarly, when the electrical environment changes, the charging time corresponding to the measurement distance of 2cm is 70us, not 80us. At this time, since the time difference between the benchmark detection time threshold and the charging time corresponding to one of the measurement distances is configured to be a fixed 20us, the benchmark detection time threshold is equal to the sum of the charging time 70us and the time difference 20us, that is, the benchmark detection time threshold is updated to 90us, which is 10us less than the benchmark detection time threshold set before the electrical environment changes.

[0053] Therefore, in the event of a change in the electrical environment, the time difference and a pre-set benchmark detection time threshold can be used to convert the corresponding charging time measured at one of the measurement distances, or the time difference and the latest charging time measured at one of the measurement distances can be used to calculate a new benchmark detection time threshold.

[0054] As an example, Figure 2 As shown, in step 3, the method of controlling the target detection capacitor to perform multiple rounds of cyclic charging operations for the reference capacitor and timing the charging time of the reference capacitor round by round includes: Step 31, detect whether the voltage across the reference capacitor reaches a preset voltage threshold, if yes, execute step 32, otherwise execute step 33; thereby determining whether the charging operation of the reference capacitor is completed based on the preset voltage threshold, that is, determining whether the reference capacitor is charged to the preset voltage threshold.

[0055] Step 32, determine that the current round of cyclic charging operation is completed, and save the timing value of the reference capacitor in the current round of cyclic charging operation as the charging time of the reference capacitor, then control the reference capacitor to discharge until the reference capacitor is fully discharged, and it can be detected that the voltage across the reference capacitor is equal to 0, and then execute step 33 to enter a new round of cyclic charging operation. The charging time of the reference capacitor may refer to the time required for the reference capacitor to reach a fully charged state under certain conditions when it is placed in a circuit connected to the target detection capacitor. Subsequently, by judging the charging time of the reference capacitor in step 5, it can be detected whether the target detection capacitor is affected by a human hand or other charged body and the capacitance value changes, as well as the distance between the target detection capacitor and the charged body changes.

[0056] Step 33, charging the target detection capacitor until the target detection capacitor is fully charged. In this step, the subject for charging the target detection capacitor is a charging power supply; then execute step 34. When the capacitance value of the target detection capacitor is affected by the charged body, the amount of charge charged to the target detection capacitor changes. For example, when the parasitic capacitance of the charged body causes the capacitance value of the target detection capacitor to increase, the charging power supply charges the target detection capacitor so that the target detection capacitor carries more charge. The fully charged target detection capacitor can charge faster to reach the preset voltage threshold or charge balance state when charging the reference capacitor in step 34.

[0057] Step 34, stop charging the target detection capacitor, then control the target detection capacitor to charge the reference capacitor, and time the charging time of the reference capacitor. It can be understood that the charging power supply is disconnected each time the target detection capacitor is fully charged, and then the reference capacitor is charged by connecting the reference capacitor, and the timing is started at the same time; until the voltage across the target detection capacitor and the voltage across the reference capacitor remain unchanged. At this time, the charge balance is reached between the target detection capacitor and the reference capacitor, and the time consumed by the reference capacitor from no charge storage to charging to a charging balance voltage lower than the preset voltage threshold can be timed, but it has not yet been determined as the charging time of the reference capacitor; then stop timing, and execute step 31 again.

[0058] It should be noted that, when the judgment in step 31 is not established, the target detection capacitor is controlled to cyclically charge the reference capacitor by repeatedly executing steps 33 and 34, which of course also includes controlling the cyclic charging and discharging of the target detection capacitor; until it is detected that the voltage across the reference capacitor reaches the preset voltage threshold, it is determined that a round of cyclic charging operation is completed.

[0059] Since the capacitance value of the target detection capacitor is affected by the charged body, the capacitance value of the target detection capacitor will change, so that the amount of charge that the target detection capacitor can accommodate cannot fully charge the reference capacitor at one time, so it needs to be charged in multiple times, corresponding to a round of cyclic charging operation. It can be understood that each round of cyclic charging operation is represented by executing a round of steps 31 to 34, and step 31 determines whether a round of cyclic charging operation is completed.

[0060] In summary, by repeatedly executing steps 31 to 34 for multiple times, the target detection capacitor can be controlled to perform multiple rounds of cyclic charging operations for the reference capacitor, so as to continuously fully charge and discharge the reference capacitor, and time the charging time of the reference capacitor round by round to accept the subsequent step 4 for judging the stability of the charging time and the subsequent step 5 for detecting the contact risk.

[0061] In step 4 mentioned in the aforementioned embodiment, when it is determined that the most recently timed preset number of charging times in step 3 are all within the preset time range, the most recently timed preset number of charging times in step 3 are set to be equal to the adaptive target charging time within the preset error allowable range, so as to determine that the charging time of the reference capacitor is stable, that is, to obtain a relatively stable charging time, which can be used to update the aforementioned benchmark detection time threshold; wherein, the adaptive target charging time is equal to the middle value of the preset time range or the average value of the maximum charging time and the minimum charging time among the most recently timed preset number of charging times in step 3, so as to fully reflect the central time value of the preset time range and be representative.

[0062] When the charged body is placed still relative to the target detection capacitor, the capacitance value of the target detection capacitor remains unchanged. At this time, the charging time of the reference capacitor tends to be stable, and the stability standard allows a certain system error, that is, the preset error allowable range; therefore, it can be determined that the preset number of charging times most recently timed in step 3 are set to be equal to the adaptive target charging time within the preset error allowable range, that is, the capacitance value of the target detection capacitor remains unchanged for a period of time (within the preset number of charging times most recently timed in step 3).

[0063] The preset error allowable range is preferably a time error range within -0.1us to 0.1us or a lower order of magnitude. The best case is that the latest preset number of charging times in step 3 are equal to the adaptive target charging time. When the electrical environment remains unchanged, each time step 3 is performed, the latest preset number of charging times are equal to the adaptive target charging time; and when the electrical environment changes, step 3 is repeated, the set adaptive target charging time changes but the latest preset number of charging times are equal to the adaptive target charging time. However, the preset error allowable range, as an error evaluation amount, does not change with changes in the electrical environment. Therefore, by detecting multiple charging times until the preset number of charging times are equal to the adaptive target charging time, it is considered that there is a charged body outside the target detection capacitor that stably causes the capacitance value of the target detection capacitor / the charging time of the reference capacitor to change.

[0064] It should be added that the difference between each charging time within the preset time range is only allowed to fall within the preset error allowable range (corresponding to the fixed system error range mentioned in step 4 of the aforementioned embodiment), and the length of each charging time is related to the capacitance value of the target detection capacitor, and the capacitance value of the target detection capacitor is related to the distribution and contact conditions of the charged body in the surrounding electrical environment. Therefore, when it is judged that the latest preset number of charging times timed in step 3 are all within the preset time range, it can be considered that the capacitance value of the target detection capacitor remains unchanged for a period of time. Therefore, step 4 chooses to update the benchmark detection time threshold based on the stability of the latest preset number of charging times timed, or further use the trigger detection time threshold to determine whether there is a risk of contact between the charged body and the target detection capacitor, which can be detected before the human hand touches the target detection capacitor, greatly ensuring the safety of the user.

[0065] In step 1 mentioned in the aforementioned embodiment, when the capacitance value of the target detection capacitor is not affected by the charged body, it can be considered that when there is no charged body close to the target detection capacitor, the capacitance value of the target detection capacitor remains unchanged, the target detection capacitor is controlled to charge the reference capacitor, and the charging time of the reference capacitor is timed. It is worth noting that before the target detection capacitor is charged with the reference capacitor and the external counter starts timing, the target detection capacitor may have been fully charged.

[0066] In step 1, until the reference capacitor is fully charged, the charging time of the reference capacitor is recorded as the charging time of the reference capacitor. The charging time of the reference capacitor obtained at this time is the time for the reference capacitor to be fully charged when the capacitance value of the target detection capacitor remains unchanged. In step 1, when the reference capacitor is fully charged, the voltage across the reference capacitor is equal to the preset voltage threshold. If the charged object is a human hand, the charging time of the reference capacitor can be used as the benchmark charging time without human interference, and then set as the benchmark detection time threshold. Subsequently, a detection time threshold that can cope with sudden changes in charging time / capacitance is set, such as the trigger detection time threshold in the aforementioned step 2. Therefore, step 1 provides a benchmark to enable the subsequent steps to select and update the detection time threshold in the relevant distance and environment, which will not be triggered by mistake and can detect the contact risk before the human hand touches it.

[0067] The present application also discloses a capacitive detection system, which includes a capacitive touch detection circuit, a motor and a motor controller, wherein the capacitive touch detection circuit includes the aforementioned target detection capacitor and the aforementioned reference capacitor, wherein the target detection capacitor is used to charge the reference capacitor; when a charged body approaches or even contacts the aforementioned target detection capacitor, the sum of the capacitance value of the parasitic capacitance of the charged body and the original capacitance value of the aforementioned target detection capacitor is deemed to be equal to the changed capacitance value of the aforementioned target detection capacitor, and can also be deemed to be the capacitance value of the parasitic capacitance of the external port of the capacitive touch detection circuit.

[0068] The motor is connected to the motor controller, and the capacitive touch detection circuit is connected to the motor controller. The motor controller is used to execute the capacitive detection method disclosed in the above embodiment, including executing the above steps 1 to 5 by controlling the capacitive touch detection circuit; the motor controller is also used to control the operation of the motor; when the motor controller determines that there is a risk of contact between a charged body and the target detection capacitor by executing the capacitive detection method, the motor controller controls the motor to stop running to prevent the charged body outside the capacitive detection system from being damaged.

[0069] In the case that the charged object outside the capacitive detection system is a human hand, after the motor controller detects the human hand, it controls the motor to stop output, and at the same time opens the lower arm switch tube of the bridge circuit in the motor controller for driving the motor to rotate to ground, thereby achieving motor braking. The motor can also be stopped as soon as possible with the help of an external conventional braking device to protect the safety of the hand.

[0070] In the present application, the risk of a charged body contacting the target detection capacitor includes a decrease in the distance between the charged body and the target detection capacitor and contact between the charged body and the target detection capacitor. If the charged body is a human hand, when the human hand approaches the target detection capacitor, it can be considered that the capacitance value of the parasitic capacitance of the external port of the capacitive touch detection circuit where the target detection capacitor is located will increase, and it can be identified by detecting the change in the charging time of the reference capacitor. By executing steps 1 to 5 to set a reasonable detection time threshold, the risk of a charged body (human hand) contacting the target detection capacitor can be detected.

[0071] In summary, by executing the aforementioned steps 1 to 5, the capacitive detection system periodically detects the charging time of the reference capacitor to update the relevant detection time threshold until it detects that the charging time of the reference capacitor is less than the latest relevant detection time threshold, and detects that there is a risk of contact between the charged body and the target detection capacitor. The detection can be completed before the charged body and the target detection capacitor actually come into contact, effectively preventing the occurrence of contact events, and can trigger the shutdown of motor equipment with contact risks accordingly, or update the relevant detection time threshold when no contact risk is currently detected to ensure that the motor will not be frequently mistakenly triggered to shut down in the electrical environment in which it is located, effectively dealing with misjudgments caused by electrical environments with charged bodies such as wires and circuit boards around, and improving the environmental adaptability, sensitivity and accuracy of the capacitive detection system.

[0072] As an example, Figure 3 As shown, the capacitive touch detection circuit includes the aforementioned target detection capacitor Cp and the aforementioned reference capacitor Cx, and the capacitive touch detection circuit also includes a charging power supply, a first switch SW1 and a second switch SW2; the charging power supply is connected to one end of the first switch SW1, the other end of the first switch SW1 is respectively connected to one end of the target detection capacitor Cp and one end of the second switch SW2, the other end of the target detection capacitor Cp is grounded GND, the other end of the second switch SW2 is connected to one end of the reference capacitor Cx, and the other end of the reference capacitor Cx is grounded GND. Thus, the charging power supply is connected to the target detection capacitor Cp through the first switch SW1 to charge the target detection capacitor Cp when the first switch SW1 is closed; if the capacitive touch detection circuit is a capacitive touch button device, the target detection capacitor Cp is the touch capacitor in the touch button. In addition, the target detection capacitor Cp is connected to the reference capacitor Cx through the second switch SW2 to charge the reference capacitor Cx when the second switch SW2 is closed.

[0073] The second switch SW2 and the first switch SW1 are configured not to be closed at the same time, allowing the second switch SW2 to be opened to control the reference capacitor Cx to complete the discharge in step 32, and the process of the target detection capacitor Cp charging the reference capacitor Cx is the target detection capacitor Cp discharge process.

[0074] After the target detection capacitor Cp is fully charged, the target detection capacitor Cp charges the reference capacitor Cx, so that the motor controller detects the capacitance change of the target detection capacitor Cp caused by the external charged body based on the charging time of the reference capacitor Cx during the execution of steps 3 to 5.

[0075] Specifically, combined Figure 2 and Figure 3It can be seen that the motor controller is used to first charge the target detection capacitor Cp by closing the first switch SW1, and at the same time control the second switch SW2 to be disconnected until the target detection capacitor Cp is fully charged, corresponding to the execution of the aforementioned step 33; then disconnect the first switch SW1 to stop charging the target detection capacitor Cp, and close the second switch SW2 to allow the target detection capacitor Cp to charge the reference capacitor Cx, and at the same time trigger the scan counter to time the charging time of the reference capacitor Cx. When the voltage across the target detection capacitor Cp and the voltage across the reference capacitor Cx remain unchanged, the ground voltage of the target detection capacitor Cp and the ground voltage of the reference capacitor Cx remain unchanged, the target detection capacitor Cp and the reference capacitor Cx reach charge balance on the connected path, determine that a charging cycle has been scanned, and control the scan counter to stop timing, corresponding to the execution of the aforementioned step 34; then enter the next charging cycle.

[0076] The motor controller is provided with a scan counter. The motor controller is provided with a scan counter, which is used to time the charging time of the reference capacitor Cx until the voltage of the reference capacitor Cx to the ground reaches a preset voltage threshold Vt, and the charging time of the reference capacitor Cx is recorded as the charging time of the reference capacitor, thereby recording the time when the reference capacitor Cx is charged to reach the preset voltage threshold Vt in a cycle charging operation.

[0077] The motor controller is used to scan through multiple charging cycles, corresponding to repeatedly executing steps 33 and 34 until the voltage across the reference capacitor reaches a preset voltage threshold, that is, in the aforementioned step 31, it is determined that the voltage of the reference capacitor Cx to the ground reaches the preset voltage threshold Vt, and it is determined that a round of cyclic charging operation is completed, and the timing value of the scanning counter in a round of cyclic charging operation is saved as the charging time of the reference capacitor Cx in a round of cyclic charging operation, and then the timing value of the scanning counter is cleared, and the reference capacitor Cx is controlled to discharge by disconnecting the second switch SW2 until the reference capacitor Cx is completely discharged to the ground, and then enters the next round of cyclic charging operation, which corresponds to executing the aforementioned step 32; and before entering the next round of cyclic charging operation, the first switch SW1 is also disconnected to allow the target detection capacitor Cp to discharge its remaining charge to the ground.

[0078] A motor controller is used to determine that there is a risk of contact between a charged body and the target detection capacitor Cp during the process of controlling the target detection capacitor Cp to perform multiple rounds of cyclic charging operations for the reference capacitor Cx. If it is determined that the charging time of the reference capacitor Cx timed by the scan counter is less than the trigger detection time threshold, it corresponds to executing the aforementioned steps 3 and 5, and controlling the motor to stop running.

[0079] In summary, the motor controller implements repeated switching operations in the process of executing the aforementioned steps 31 to 34. Specifically, in the current charging cycle, the first switch SW1 is first closed and the second switch SW2 is opened; then the second switch SW2 is closed and the first switch SW1 is opened; then the operation of the first switch and the second switch in the current charging cycle is repeated in the next charging cycle; and the operation is repeated for multiple charging cycles until the voltage across the reference capacitor reaches a preset voltage threshold, and it is determined that a round of cyclic charging operation is completed, so as to judge whether the target detection capacitor Cp is affected by human hands or other charged bodies based on the change in charging time of the reference capacitor Cx caused by the change in the capacitance value of the target detection capacitor Cp.

[0080] In addition, in order to implement the capacitive detection method, the capacitive touch detection circuit built by the capacitive detection system outside the motor controller is simplified. Only a few corresponding capacitors and switches are needed to detect charged objects using the charging time, which is low-cost and easy to implement.

[0081] The motor controller is preferably a brushless motor controller. During specific implementation, the specific specifications of the controller can be selected according to the size of the motor. The specific specifications can be a conventional model or a self-defined chip specification.

[0082] The above embodiments are only for illustrating the technical concept and features of the present application, and their purpose is to enable technicians familiar with the technical field to understand the content of the present application and implement it accordingly, and they cannot be used to limit the protection scope of the present application. Any equivalent changes or modifications made according to the spirit of the present application should be included in the protection scope of the present application.

Claims

1. A capacitive detection method for contact prevention, characterized in that: Capacitive detection methods include: Step 1, when the capacitance value of the target detection capacitor is not affected by the charged body, the charging time of the reference capacitor is measured, and the charging time of the reference capacitor is set as the benchmark detection time threshold; then step 2 is executed; Step 2, according to the relationship between the reference detection time threshold and the charging time of the reference capacitor pre-timed at different measurement distances, set the trigger detection time threshold, and then execute step 3; wherein the distance between the charged body and the target detection capacitor is the measurement distance; whenever the measurement distance is changed, the capacitance value of the target detection capacitor changes, so that the charging time of the reference capacitor changes; the trigger detection time threshold is less than the reference detection time threshold; Step 3, controlling the target detection capacitor to perform multiple rounds of cyclic charging operations for the reference capacitor, and timing the charging time of the reference capacitor round by round, and then executing step 4; Step 4, determining whether the preset number of charging times most recently timed in step 3 are all within the preset time range, if so, updating the adaptive target charging time to the benchmark detection time threshold and then executing step 2, otherwise executing step 5; wherein the adaptive target charging time is within the preset time range; when the coverage range of the preset number of rounds of charging time most recently timed in step 3 changes, the preset time range changes so that the adaptive target charging time changes; Step 5: Determine whether the charging time measured in step 3 is less than the trigger detection time threshold. If so, determine that there is a risk of the charged body contacting the target detection capacitor. Otherwise, execute step 3.

2. The capacitive detection method according to claim 1, characterized in that: In the same electrical environment, the capacitance value of a target detection capacitor corresponds to a measurement distance, and a measurement distance corresponds to a charging time of a reference capacitor; starting from the same charged body, the smaller the measurement distance, the larger the capacitance value of the target detection capacitor, and the shorter the charging time of the reference capacitor, so that when the charged body is in contact with the target detection capacitor, the capacitance value of the target detection capacitor reaches the maximum, and the charging time of the reference capacitor reaches the shortest; Starting from the same charged body, the greater the measurement distance, the smaller the capacitance value of the target detection capacitor, and the longer the charging time of the reference capacitor, so that when the measurement distance is increased to the point where the capacitance value of the target detection capacitor is not affected by the charged body, the charging time of the reference capacitor reaches the longest.

3. The capacitive detection method according to claim 2, characterized in that: In step 2, the method for setting the trigger detection time threshold according to the relationship between the benchmark detection time threshold and the charging time of the reference capacitor pre-timed at different measurement distances includes: Selecting a charging time corresponding to the time at one of the measurement distances from the charging time of the reference capacitor pre-timed at different measurement distances as the trigger detection time threshold, so that in the subsequently executed step 5, when it is determined that the charging time of the reference capacitor is greater than the trigger detection time threshold, a risk of contact between the charged body and the target detection capacitor has been detected before the target detection capacitor and the charged body are in physical contact, and determining that the distance between the charged body and the target detection capacitor is reduced during the subsequent execution of steps 3 and 4; The charging time of the reference capacitor measured in advance at different measuring distances is: before executing step 1, the charging time of the reference capacitor corresponding to each measuring distance is measured in sequence; The target detection capacitor and the reference capacitor are connected at the same position, so that the target detection capacitor and the reference capacitor are at the same measurement distance relative to the charged body.

4. The capacitive detection method according to claim 3, characterized in that: Each time step 2 is performed, the time difference between the reference detection time threshold and the charging time measured at one of the measurement distances is configured to be fixed so that the time difference does not change with changes in the electrical environment.

5. The capacitive detection method according to claim 1, characterized in that: In step 3, the method of controlling the target detection capacitor to perform multiple rounds of cyclic charging operations for the reference capacitor and timing the charging time of the reference capacitor round by round includes: Step 31, detecting whether the voltage across the reference capacitor reaches a preset voltage threshold, if yes, executing step 32, otherwise executing step 33; Step 32, determining that the current round of cyclic charging operation is completed, and saving the timing value of the reference capacitor in the current round of cyclic charging operation as the charging time of the reference capacitor, and then controlling the reference capacitor to discharge until the reference capacitor is fully discharged, and then executing step 33; Step 33, charging the target detection capacitor until the target detection capacitor is fully charged, and then executing step 34; Step 34, stop charging the target detection capacitor, then control the target detection capacitor to charge the reference capacitor, and time the charging time of the reference capacitor until the voltage across the target detection capacitor remains unchanged with the voltage across the reference capacitor, stop timing, and then execute step 31.

6. The capacitive detection method according to claim 5, characterized in that: In step 4, when it is determined that the most recently timed preset number of charging times in step 3 are all within the preset time range, the most recently timed preset number of charging times in step 3 are set to be equal to the adaptive target charging time within the preset error allowable range to determine that the charging time of the reference capacitor is stable; wherein the adaptive target charging time is equal to the middle value of the preset time range or the average value of the maximum charging time and the minimum charging time among the most recently timed preset number of charging times in step 3.

7. The capacitive detection method according to claim 1, characterized in that: In step 1, when the capacitance value of the target detection capacitor is not affected by the charged body, the target detection capacitor is controlled to charge the reference capacitor, and the charging time of the reference capacitor is timed until the reference capacitor is fully charged, and the charging time of the reference capacitor is recorded as the charging time of the reference capacitor; When the reference capacitor is fully charged, the voltage across the reference capacitor is equal to a preset voltage threshold.

8. A capacitive detection system, characterized in that: The capacitive detection system includes a capacitive touch detection circuit, a motor and a motor controller, wherein the capacitive touch detection circuit includes the aforementioned target detection capacitor and the aforementioned reference capacitor; The motor is connected to the motor controller, and the capacitive touch detection circuit is connected to the motor controller. The motor controller is used to execute the capacitive detection method described in any one of claims 1 to 7. When it is determined that there is a risk of a charged body contacting the target detection capacitor by executing the capacitive detection method, the motor is controlled to stop running.

9. The capacitive detection system according to claim 8, characterized in that: The capacitive touch detection circuit also includes a charging power supply, a first switch and a second switch; the charging power supply is connected to one end of the first switch, the other end of the first switch is respectively connected to one end of the target detection capacitor and one end of the second switch, the other end of the target detection capacitor is grounded, the other end of the second switch is connected to one end of the reference capacitor, and the other end of the reference capacitor is grounded.

10. The capacitive detection system according to claim 9, characterized in that: A motor controller, used for first charging the target detection capacitor by closing a first switch, and controlling the second switch to be opened until the target detection capacitor is fully charged, then opening the first switch to stop charging the target detection capacitor, and closing the second switch to allow the target detection capacitor to charge the reference capacitor, and triggering a scan counter to time the charging time of the reference capacitor, and when the voltage across the target detection capacitor remains unchanged with the voltage across the reference capacitor, determining that a charging cycle has been scanned, and controlling the scan counter to stop timing, and then entering the next charging cycle; A motor controller, configured to scan through a plurality of charging cycles until the voltage across the reference capacitor reaches a preset voltage threshold, determine that a round of cyclic charging operation is completed, and save the timing value of the scanning counter in a round of cyclic charging operation as the charging time of the reference capacitor in a round of cyclic charging operation, then clear the timing value of the scanning counter, and control the discharge of the reference capacitor by disconnecting the second switch until the reference capacitor is fully discharged, and then enter the next round of cyclic charging operation; A motor controller, configured to determine that there is a risk of contact between a charged body and the target detection capacitor, and control the motor to stop running if it is determined that the charging time of the reference capacitor timed by the scan counter is less than a trigger detection time threshold during the process of controlling the target detection capacitor to perform multiple rounds of cyclic charging operations for the reference capacitor, and control the motor to stop running; Among them, the motor controller is equipped with a scan counter.

Citation Information

Patent Citations

  • Motor abnormity detection method

    CN112444744A