Disclosure of Invention
The embodiment of the application aims to provide a motor overcurrent detection device, a motor system and a platform, which are used for solving the problem that an overcurrent protection value set according to experience in the existing motor overcurrent detection device is misjudged when a motor normally operates.
In a first aspect, an embodiment of the application provides a motor overcurrent detection device, which comprises a first power supply for supplying power, a current detection module for measuring static current and running current of a motor to be detected, a singlechip for determining an overcurrent protection value according to the static current of the motor to be detected, determining the overcurrent times of the motor to be detected based on the running current of the motor to be detected and the overcurrent protection value and determining whether to control the motor to stop according to the overcurrent times, wherein the first power supply is connected with the current detection module, the current detection module is grounded through the motor to be detected, and the current detection module is connected with the singlechip.
In the motor overcurrent detection device, the static current of the motor to be detected is detected through the current detection chip, and the overcurrent protection value of the motor to be detected is set through the combination of the static current of the motor to be detected and the overcurrent protection value set according to experience through the singlechip, so that the finally set overcurrent protection value of the motor to be detected considers the influence of other component parameters in the detection circuit, the problem that the motor is misjudged during normal operation of the motor in the current motor overcurrent detection device according to the overcurrent protection value set according to experience is solved, and the overcurrent detection of the motor to be detected is more accurate and the operation stability of the motor to be detected is guaranteed.
In an optional implementation manner of the first aspect, the current detection module includes a current detection chip, a model of the current detection chip is ACS712, a first ip+ pin and a second ip+ pin of the current detection chip are connected in parallel and then connected with the first power supply, a first IP-pin and a second IP-pin of the current detection chip are connected in parallel and then connected with the tested motor, and a VIOUT pin of the current detection chip is connected with the singlechip.
In an optional implementation manner of the first aspect, the device further includes a first diode, the first diode is connected in parallel with the tested motor, a negative electrode of the first diode is connected with the current detection chip, and a positive electrode of the first diode is grounded.
In the above embodiment, the motor to be tested is an inductance device, and when the inductance device is powered off, a large electromotive force is generated, so that the motor is not damaged by high voltage, and the first diode is added to bypass the high voltage when the power is off.
In an optional implementation manner of the first aspect, the model of the single-chip microcomputer is STC12C5a60S2, and the current_ad pin of the single-chip microcomputer is connected to the VIOUT pin of the CURRENT detection chip.
In the above embodiment, the current_ad pin of the single chip microcomputer with the model number STC12C5a60S2 is an AD conversion pin, so as to convert the analog signal output by the CURRENT detection chip into a corresponding digital value, and further implement the setting of the overcurrent protection value based on the digital value.
In an optional implementation manner of the first aspect, the device further includes a direction control circuit for controlling the running direction of the tested motor and an enable control circuit for controlling the enabling of the tested motor, the mt_dir pin of the single-chip microcomputer is connected with the tested motor through the direction control circuit, and the mt_en pin of the single-chip microcomputer is connected with the positive electrode of the first diode through the enable control circuit.
In the above embodiment, the power state of the motor to be tested is controlled by the enabling control circuit and the rotation direction of the motor to be tested is controlled by the direction control circuit, so that the overcurrent detection device can also control and grasp the running state of the motor to be tested in real time.
In an alternative implementation manner of the first aspect, the directional control circuit comprises a first resistor, a second resistor, an NPN triode, a second diode, a double-pole double-throw relay and a second power supply, wherein the double-pole double-throw relay comprises a coil, a first contact set and a second contact set, the first contact set comprises a first movable contact, a first fixed contact and a second fixed contact, the second contact set comprises a second movable contact, a third fixed contact and a fourth fixed contact, an MT_DIR pin of the singlechip is connected with a first end of the first resistor, a second end of the first resistor is grounded through the second resistor, a second end of the first resistor is also connected with a base electrode of the NPN triode, an emitter electrode of the NPN triode is grounded, a collector electrode of the NPN triode is respectively connected with an anode of the second diode and one end of the coil, a cathode of the second diode is connected with the second power supply after being connected with the other end of the coil, and the cathode of the second diode is connected with a first movable contact and a cathode of the first diode, and the anode of the second diode is connected with the anode of the first diode and the second static contact, and the cathode of the second diode is connected with the anode of the second diode.
In the embodiment of the design, the singlechip 30 controls the direction control circuit to further control the motor to display forward rotation and reverse rotation, so that the designed motor overcurrent detection device not only can detect whether the motor displays overcurrent, but also can control and master the running state of the motor.
In an alternative implementation manner of the first aspect, the enabling control circuit includes a third resistor, a photo-coupler, a third power supply, a fourth resistor, a fifth resistor, a transient voltage suppressor and a field effect tube, wherein the type of the photo-coupler is TLP281-1, an mt_en pin of the singlechip is connected with a CATHODE pin of the photo-coupler through the third resistor, an ANODE pin of the photo-coupler is connected with the third power supply, a COLLECTOR pin of the photo-coupler is connected with the first power supply through the fourth resistor, a EMITTER pin of the photo-coupler is respectively connected with a first end of the fifth resistor, a negative electrode of the transient voltage suppressor and a gate electrode of the field effect tube, and a second end of the fifth resistor, a positive electrode of the transient voltage suppressor and a source electrode of the field effect tube are respectively grounded.
In the embodiment of the design, the singlechip 30 controls the enabling control circuit to control the motor to stop or rotate, so that the singlechip 30 controls the motor to be tested to stop at the stage of initially setting the overcurrent protection value, and after the current protection value is set, the singlechip 30 controls the motor to be tested to rotate, further the subsequent overcurrent judgment is completed, and the overcurrent detection process of the motor is automated.
In an alternative embodiment of the first aspect, the transient voltage suppressor is model HZD5242B.
In an alternative embodiment of the first aspect, the fet is 75NF75.
In an alternative embodiment of the first aspect, the voltage of the first power supply is 48V.
In a second aspect, the present application provides an electric motor system comprising an electric motor body and an electric motor over-current protection device in any of the alternative embodiments of the first aspect, the electric motor body and the electric motor over-current protection device being electrically connected.
In a third aspect, an embodiment of the present application provides a platform, where the platform includes a platform body, a motor for driving the platform body to move, and a motor overcurrent protection device in any optional embodiment of the first aspect, where the motor is electrically connected to the motor overcurrent protection device.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
First embodiment
As shown in fig. 1, the embodiment of the application provides a motor overcurrent detection device, which comprises a first power supply 10, a current detection module 20 and a singlechip 30, wherein the first power supply 10 is connected with the current detection module 20, the current detection module 20 is grounded through a detected motor, and the current detection module 20 is connected with the singlechip 30.
The first power supply 10 supplies power to the current detection module 20, the current detection module 20 is used for measuring the static current and the running current of the motor to be detected and transmitting the static current and the running current to the single chip microcomputer 30, the single chip microcomputer 30 receives the static current and the running current transmitted by the current detection module 20, determines an overcurrent protection value based on the static current transmitted by the current detection module 20 and an overcurrent preset value set by a user, determines whether the motor to be detected has an overcurrent phenomenon based on the running current of the motor to be detected and the overcurrent protection value, and controls the motor to be detected to stop rotating after the number of times of the overcurrent phenomenon is determined to meet a certain preset number of times. When the static current is represented as the current generated by the overcurrent detection circuit when the motor to be detected does not rotate, the overcurrent protection value set by the singlechip 30 is comprehensively determined based on the static current of the motor to be detected and the overcurrent preset value set by a user, which means that the influence of other component parameters in the detection circuit is considered in the process of determining the overcurrent protection value. In addition, the tested motor in the application can be a brush push rod motor with rated operation parameters of 48V and 0.6A.
In the motor overcurrent detection device designed as above, the static current of the motor to be detected is detected through the current detection chip 201, and then the overcurrent protection value of the motor to be detected is set through the combination of the static current of the motor to be detected and the overcurrent protection value set according to experience through the singlechip 30, so that the finally set overcurrent protection value of the motor to be detected considers the influence of other component parameters in the detection circuit, the problem that the motor is misjudged during normal operation of the motor in the current motor overcurrent detection device according to the overcurrent protection value set according to experience is solved, and the overcurrent detection of the motor to be detected is more accurate and the operation stability of the motor to be detected is ensured.
In an alternative implementation manner of this embodiment, as shown in fig. 2, the CURRENT detection module 20 includes a CURRENT detection chip 201, a model of the CURRENT detection chip 201 is ACS712, a model of the single chip microcomputer 30 is STC12C5a60S2, the CURRENT detection chip 201 includes a first ip+ pin, a second ip+ pin, a first IP-pin, a second IP-pin, a VCC pin, VIOUT pins, a FILTER pin, and a GND pin, and the single chip microcomputer includes a current_ad pin, and the current_ad pin is connected to an analog-to-digital conversion module inside the single chip microcomputer 30.
The first ip+ pin and the second ip+ pin of the CURRENT detection chip 201 are connected in parallel and then connected to the first power supply 10, the first IP-pin and the second IP-pin of the CURRENT detection chip 201 are connected in parallel and then connected to the tested motor, the VCC pin of the CURRENT detection chip 201 is connected to a 5V power supply, the VIOUT pin of the CURRENT detection chip 201 is connected to the current_ad pin of the singlechip 30, the FILTER pin of the CURRENT detection chip 201 is grounded through the first capacitor 202, and the GND pin of the CURRENT detection chip is grounded.
Before overcurrent detection, the circuit is used for collecting static CURRENT, the current_ad pin of the singlechip 30 is connected with the VIOUT pin of the CURRENT detection chip 201, the first IP-pin and the second IP-pin of the CURRENT detection chip 201 are connected with the motor to be detected, and the motor to be detected does not rotate at this time. The program configures registers related to the analog-to-digital conversion module, specifically comprises configuring pins into a high-resistance input mode, setting an analog-to-digital conversion channel number, analog-to-digital conversion cycle time, turning on an analog-to-digital conversion power supply, enabling analog-to-digital interruption, turning on analog-to-digital conversion, generating an analog-to-digital interruption after each analog-to-digital conversion is completed, and storing converted results in an array by the program. When the static current is collected, the analog-to-digital conversion module in the singlechip 30 samples the output voltage of the current detection chip 201 for multiple times (for example, 20 times), wherein after the digital quantity corresponding to the output voltage of the current detection chip 201 sampled for multiple times is obtained, coarse error elimination can be performed on the data sampled for multiple times through a 3sigma rule (Laida criterion), then the digital quantity corresponding to the average value of the output voltage of the current detection chip 201 is obtained after weighted average is performed on the data subjected to coarse error elimination, the digital quantity corresponding to the average value of the output voltage reflects the magnitude of the static current of the motor to be tested, and the singlechip 30 further determines the overcurrent protection value of the motor to be tested according to the digital quantity corresponding to the average value of the output voltage and the digital quantity corresponding to the overcurrent test value set by a user.
Specifically, for example, the current detection chip 201 detects that the static current of the detected motor is I1, the output voltage is V1, the value of the corresponding digital quantity converted by the analog-to-digital conversion module is VAL1, the overcurrent test value set by the user is I2, the corresponding voltage is V2, the value of the corresponding digital quantity converted by the analog-to-digital conversion module is VAL2, the measurement range of the current detection chip 201 is assumed to be 5A, the precision is 185mv/a, the precision of the analog-to-digital conversion module in the singlechip 30 is 10 bits, 1024 digital quantities are total, the corresponding reference voltage is 5V, that is, the voltage corresponding to 1 digital quantity is 5/1024V. Then, the digital value VAL 1=i1×185/1000/5×1024 corresponding to the quiescent current I1, where i1×185/1000 is denoted as a voltage corresponding to the current I1, the unit is V, I1×185/1000/5×1024 is a digital value converted from the voltage, and the set empirical value I2 corresponds to the digital value VAL 2=i2×185/1000/5×1024. The resulting over-current protection value i=i1+i2, the number val=val1+val2= (i1+i2) 185/1000/5×1024 for the overcurrent protection value I.
After the over-current protection value is set based on the above process, the detected motor starts to operate normally, the current detection chip 201 detects the current of the operated detected motor in real time and transmits the current to the analog-to-digital conversion module inside the single chip microcomputer 30, the single chip microcomputer 30 reads the data of one analog-to-digital conversion every preset time (for example, 5 ms), judges whether the digital quantity corresponding to the read data is greater than or equal to the digital quantity corresponding to the set over-current protection value, and if the digital quantity corresponding to the read data is greater than or equal to the digital quantity corresponding to the set over-current protection value, then the over-current phenomenon of the detected motor in the operation state is determined.
In an alternative implementation manner of this embodiment, after the singlechip 30 determines that the number corresponding to the data read once is greater than or equal to the number corresponding to the set overcurrent protection value (the overcurrent phenomenon occurs in the tested motor), the singlechip 30 may increment the internal counter by 1, if it determines that the number corresponding to the data read once is less than the number corresponding to the set overcurrent protection value, the singlechip 30 may increment the internal counter by 1, then the singlechip 30 determines whether the data in the counter is greater than the preset number (for example, 5), if the singlechip 30 determines that the data in the counter is greater than or equal to 5, the tested motor is controlled to stop rotating, and meanwhile, the counter is cleared, and if the data in the singlechip 30 determines that the data in the counter is less than 5, no protection action occurs. In addition, if the number corresponding to the data read by the singlechip 30 is smaller than the number corresponding to the set overcurrent protection value, it is further possible to continuously determine whether the data in the counter is greater than 0, if so, then 1 reduction is performed, and if not, then 1 reduction is not performed. After the operation on the counter is completed, the singlechip performs the next data reading at a preset time (for example, 5 ms) and repeatedly performs the operation.
In the embodiment of the design, whether the tested motor is stopped or not is determined by whether the number of the overcurrent times of the tested motor exceeds a threshold value, so that the problem that the tested motor is stopped by mistake due to the fact that single judgment is too sensitive is solved.
In an alternative implementation manner of this embodiment, when the detected motor is started for the first time, the singlechip 30 may delay for a preset time (for example, 150 ms) before detecting, which is because the current is very large when the detected motor is started for the first time, which may cause the singlechip 30 to misjudge that the detected motor has an overcurrent phenomenon.
In an alternative implementation of this embodiment, as shown in fig. 3, the apparatus further includes a first diode 40, where the first diode 40 is connected in parallel with the motor under test, a cathode of the first diode 40 is connected to the current detection chip 201, and an anode of the first diode 40 is grounded.
In the above embodiment, the motor to be tested is an inductance device, and when the inductance device is powered off, a large electromotive force is generated, so that the first diode 40 is added to bypass the high voltage at the time of power off in order to prevent the motor from being damaged by the high voltage.
In an alternative implementation manner of this embodiment, the device further includes a direction control circuit 50 and an enable control circuit 60, the mt_dir pin of the singlechip 30 is connected to the tested motor through the direction control circuit 50, and the mt_en pin of the singlechip 30 is connected to the anode of the first diode 40 through the enable control circuit 60. The direction control circuit 50 controls the running direction of the motor to be tested, such as forward rotation or reverse rotation of the motor to be tested, the enable control circuit 60 controls whether the motor to be tested runs or stops, for example, the singlechip 30 can control the motor to be tested to stop rotating through an MT_EN pin in the stage of detecting the static current of the motor to be tested, and after the overcurrent protection value is set, the singlechip 30 can control the motor to be tested to start rotating through the MT_EN pin.
In an alternative implementation of the present embodiment, as shown in fig. 4, the directional control circuit 50 includes a first resistor 501, a second resistor 502, an NPN transistor 503, a second diode 504, a double pole double throw relay 505, and a second power supply 506, the double pole double throw relay 505 includes a coil 5051, a first contact set including a first movable contact A1, a first stationary contact A2, and a second stationary contact A3, and a second contact set including a second movable contact B1, a third stationary contact B2, and a fourth stationary contact B3.
The MT_DIR pin of the singlechip 30 is connected with the first end of a first resistor 501, the second end of the first resistor 501 is grounded through a second resistor 502, the second end of the first resistor 501 is also connected with the base electrode of an NPN type triode 503, the emitter electrode of the NPN type triode 503 is grounded, the collector electrode of the NPN type triode 503 is respectively connected with the anode of a second diode 504 and one end of a coil 5051, the cathode of the second diode 504 is connected with the other end of the coil 5051 and then is connected with a second power supply 506, a first movable contact A1 is connected with the cathode of a first diode 40, a second movable contact B1 is connected with the anode of the first diode 40, a first fixed contact A2 and a fourth fixed contact B3 are connected with the cathode end of a motor to be tested, and a second fixed contact A3 and a third fixed contact B2 are connected with the anode end of the motor to be tested.
As shown in fig. 4, in the initial state, the mt_dir pin of the singlechip 30 outputs a low level, at this time, the NPN transistor 503 is turned off, no power is applied to the coil 5051, the contact is maintained in the initial condition, that is, the first movable contact A1 is connected to the second movable contact A3, the second movable contact B1 is connected to the fourth movable contact B3, at this time, since the first movable contact A2 and the fourth movable contact B3 are connected to the negative terminal M of the motor to be tested, the second movable contact A3 and the third movable contact B2 are connected to the positive terminal m+ of the motor to be tested, and the motor presents a forward rotation state. When the motor is required to rotate reversely, the output of the MT_DIR pin of the singlechip 30 is changed into a high level, at the moment, the base electrode of the NPN triode 503 is input into the high level, the NPN triode 503 is saturated and is conducted, the coil 5051 is electrified, the coil 5051 attracts a contact to form a first movable contact A1 to be connected with a first fixed contact A2, a second movable contact B1 to be connected with a third fixed contact B2, at the moment, the first fixed contact A2 and the fourth fixed contact B3 are connected with the negative electrode end M-of the motor to be tested, the second fixed contact A3 and the third fixed contact B2 are connected with the positive electrode end M+ of the motor to be tested, and the motor is in a reverse rotation state.
The first resistor 501 mainly plays a role of current limiting, the second resistor 502 enables the NPN triode 503 to be reliably cut off, the second diode 504 mainly plays a role of reverse freewheeling, and a release passage is provided for current in the coil 5051 when the NPN triode is turned from on to off, so that the coil 5051 is prevented from being scalded, and simultaneously, high-voltage potential generated instantly is prevented from damaging an electrical appliance.
In the embodiment of the design, the singlechip 30 controls the direction control circuit to further control the motor to display forward rotation and reverse rotation, so that the designed motor overcurrent detection device not only can detect whether the motor displays overcurrent, but also can control and master the running state of the motor.
In an alternative implementation of the present embodiment, as shown in fig. 4, the enable control circuit 60 includes a third resistor 601, a photocoupler 602, a third power supply 603, a fourth resistor 604, a fifth resistor 605, a transient voltage suppressor 606, and a field effect transistor 607.
The model of the photoelectric coupler 602 is TLP281-1, the MT_EN pin of the singlechip 30 is connected with the CATHODE pin of the photoelectric coupler 602 through a third resistor 601, the ANODE pin of the photoelectric coupler 602 is connected with a third power supply 603, the COLLECTOR pin of the photoelectric coupler 602 is connected with the first power supply 10 through a fourth resistor 604, the EMITTER pin of the photoelectric coupler 602 is respectively connected with the first end of a fifth resistor 605, the negative electrode of a transient voltage suppressor 606 and the grid electrode of a field effect transistor 607, and the second end of the fifth resistor 605, the positive electrode of the transient voltage suppressor 606 and the source electrode of the field effect transistor 607 are respectively grounded. Wherein the transient voltage suppressor is a (TRANSIENT VOLTAGE SUPPRESSOR, TVS) tube.
When the tested motor does not run/rotate, for example, in the process of collecting the static current of the tested motor, the output level of the MT_EN pin of the singlechip 30 is high, the field effect tube 607 is cut off, the negative terminal M-of the tested motor is disconnected from the ground terminal, no current exists in the circuit of the tested motor, and the tested motor does not rotate. When the motor is required to rotate, for example, after the overcurrent protection value is set, the output level of the MT_EN pin of the singlechip 30 is low, the field effect tube 607 is conducted, the negative terminal M-of the motor to be tested is connected with the ground terminal, current exists in the circuit of the motor to be tested, and the motor to be tested rotates. The high-voltage power supply and the low-voltage device are isolated, so that the low-voltage device is prevented from being damaged by high-voltage impact.
In the embodiment of the design, the singlechip 30 controls the enabling control circuit to control the motor to stop or rotate, so that the singlechip 30 controls the motor to be tested to stop at the stage of initially setting the overcurrent protection value, and after the overcurrent protection value is set, the singlechip 30 controls the motor to be tested to rotate, further the subsequent overcurrent judgment is completed, and the overcurrent detection process of the motor is automated.
IN an alternative implementation of this embodiment, the fet 607 may be 75NF75, the tvs 606 may be HZD5242B, the first diode 40 and the second diode 504 may be IN4007, and the NPN transistor may be SS8050.
In an alternative implementation of the present embodiment, the first power supply 10 may be 48V, the second power supply 506 may be 12V, and the third power supply 603 may be 5V. The first power supply 10 is 48V, and the motor to be tested can operate under the rated voltage, so that the overcurrent detection result of the motor to be tested is more accurate.
In an alternative implementation manner of this embodiment, as shown in fig. 5, the apparatus further includes a motor interface 70, and the tested motor is directly connected to the motor overcurrent detecting apparatus through the motor interface 70.
Second embodiment
The application also provides a motor system, which comprises a motor body and a motor overcurrent detection device in any optional implementation mode of the first embodiment, wherein the motor overcurrent detection device is electrically connected with the motor body, the motor body is represented as an existing motor capable of rotating in an electrified state, for example, the motor can be a brush push rod motor with rated operation parameters of 48V and 0.6A, and the motor overcurrent detection device can be arranged inside the motor body or outside the motor body.
Third embodiment
The application also provides a platform, which comprises a platform body, a motor for driving the platform body to move and a motor overcurrent detection device in any optional implementation mode in the first embodiment, wherein the motor is electrically connected with the motor overcurrent detection device.
In an alternative implementation of this embodiment, the platform may be a lifting platform, and the platform body is represented as a mechanical structure in which the lifting platform is lifted and lowered by a motor. Optionally, the motor drives the platform body to ascend when rotating forward, and drives the platform body to descend when rotating backward.
In the platform lifting process, due to the effect of the motor overcurrent detection device, the lifting platform cannot be subjected to motor overcurrent misjudgment in the operation process to stop the lifting platform, so that the stability of platform operation is enhanced, and the experience of a user is improved. The motor overcurrent detection device has the same function as that of the motor overcurrent detection device in the first embodiment, namely, the current detection chip is used for detecting the static current of the motor to be detected, and the singlechip is used for setting the overcurrent protection value of the motor to be detected by combining the static current of the motor to be detected with the overcurrent protection value set according to experience, so that the finally set overcurrent protection value of the motor to be detected considers the influence of other component parameters in the detection circuit, the problem that the motor is misjudged in normal operation of the motor according to the overcurrent protection value set empirically in the existing motor overcurrent detection device is solved, the overcurrent detection of the motor to be detected is more accurate, the operation stability of the motor to be detected is guaranteed, and the operation stability of a platform is further guaranteed.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units/modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.