Motor control method, device and system and storage medium

文档序号:1907831 发布日期:2021-11-30 浏览:13次 中文

阅读说明:本技术 电机控制方法、装置、系统及存储介质 (Motor control method, device and system and storage medium ) 是由 黄锦彦 王科 张敏 林锰津 王城 赵泽涛 于 2021-08-23 设计创作,主要内容包括:本申请涉及一种电机控制方法、装置、系统及存储介质,该电机控制方法包括:获取温度检测芯片发送的无线信号,所述无线信号根据所述温度检测芯片中的温度检测器件检测到的转子的温度生成;对所述无线信号进行解调,得到包含至少一个脉冲的脉冲信号,所述至少一个脉冲表示所述温度检测器件检测到的转子的温度;根据所述包含至少一个脉冲的脉冲信号,控制电机运行。本申请用以将检测到的转子的温度数字化,通过无线信号传输检测到的转子的温度,从而减少对该检测到的转子的温度的干扰,使得微控制器所获取到的转子的温度的可靠性较高,保证根据转子的温度控制电机运行的效果较好。(The application relates to a motor control method, a device, a system and a storage medium, wherein the motor control method comprises the following steps: acquiring a wireless signal sent by a temperature detection chip, wherein the wireless signal is generated according to the temperature of a rotor detected by a temperature detection device in the temperature detection chip; demodulating the wireless signal to obtain a pulse signal including at least one pulse, the at least one pulse representing the temperature of the rotor detected by the temperature detection device; and controlling the motor to operate according to the pulse signal containing at least one pulse. This application is used for the temperature digitization of the rotor that will detect, the temperature of the rotor that detects through wireless signal transmission to reduce the interference to the temperature of this rotor that detects, make the reliability of the temperature of the rotor that microcontroller obtained higher, guarantee that the effect of the temperature control motor operation according to the rotor is better.)

1. A method for controlling a motor, applied to a microcontroller, the method comprising:

acquiring a wireless signal sent by a temperature detection chip, wherein the wireless signal is generated according to the temperature of a rotor detected by a temperature detection device in the temperature detection chip;

demodulating the wireless signal to obtain a pulse signal including at least one pulse, the at least one pulse representing the temperature of the rotor detected by the temperature detection device;

and controlling the motor to operate according to the pulse signal containing at least one pulse.

2. The motor control method of claim 1, wherein controlling the motor to operate according to the pulse signal comprising at least one pulse comprises:

converting the pulse signal containing at least one pulse into the temperature of the rotor detected by the temperature detection device;

and controlling the motor to operate according to the temperature of the rotor detected by the temperature detection device.

3. The motor control method according to claim 2, wherein the controlling of the motor operation based on the temperature of the rotor detected by the temperature detection means includes:

if the value of the temperature of the rotor detected by the temperature detection device is within the value range of the preset temperature, controlling the motor to operate, and acquiring a wireless signal sent by the temperature detection chip again;

and if the value of the temperature of the rotor detected by the temperature detection device is outside the value range of the preset temperature, controlling the motor to stop running.

4. The motor control method according to claim 2, wherein said converting the pulse signal including at least one pulse into the temperature of the rotor detected by the temperature detection means includes:

and converting the pulse signal containing at least one pulse into the temperature of the rotor detected by the temperature detection device according to the number of the at least one pulse, the detection precision of the temperature detection device and the detection range of the temperature detection device.

5. The motor control method according to claim 4, wherein said converting the pulse signal including at least one pulse into the temperature of the rotor detected by the temperature detection device based on the number of the at least one pulse, the detection accuracy of the temperature detection device, and the detection range of the temperature detection device comprises:

determining a product of n-1 and the detection accuracy of the temperature detection device, and determining a sum of the product and a minimum value in a detection range of the temperature detection device as the temperature of the rotor detected by the temperature detection device obtained by converting the pulse signal including at least one pulse; n is the number of the at least one pulse;

or, determining nmax- (n-1) and the detection accuracy of said temperature detection means, determining the difference between the maximum value in the detection range of said temperature detection means and said product as the temperature of the rotor detected by said temperature detection means converted from said pulse signal containing at least one pulse; n is the number of at least one pulse, nmaxIs the maximum value of the number of pulses in one pulse signal.

6. A motor control apparatus, characterized in that the apparatus comprises:

the temperature detection device comprises an acquisition module, a detection module and a control module, wherein the acquisition module is used for acquiring a wireless signal sent by a temperature detection chip, and the wireless signal is generated according to the temperature of a rotor detected by a temperature detection device in the temperature detection chip;

a demodulation module, configured to demodulate the wireless signal to obtain a pulse signal including at least one pulse, where the at least one pulse represents a temperature of the rotor detected by the temperature detection device;

and the control module is used for controlling the motor to operate according to the pulse signal containing at least one pulse.

7. The motor control system is characterized by comprising a microcontroller and a temperature detection chip; the microcontroller is in communication connection with the temperature detection chip, the output end of the microcontroller is electrically connected with a driving circuit of the motor, the temperature detection chip is arranged on a rotor of the motor and used for detecting the temperature of the rotor, the microcontroller is electrically connected with a power circuit, and the power circuit is used for supplying power to the microcontroller;

the microcontroller is used for acquiring a wireless signal sent by a temperature detection chip, and the wireless signal is generated according to the temperature of the rotor detected by a temperature detection device in the temperature detection chip; demodulating the wireless signal to obtain a pulse signal including at least one pulse, the at least one pulse representing the temperature of the rotor detected by the temperature detection device; controlling the motor to operate according to the pulse signal containing at least one pulse;

the temperature detection chip is used for acquiring the temperature of the rotor detected by the temperature detection device and generating a wireless signal according to the temperature detected by the temperature detection device; and sending the wireless signal to a microcontroller.

8. The motor control system of claim 7, wherein the temperature detection chip comprises a temperature detection device, a pulse conversion circuit and a wireless communication module;

the temperature detection device is used for detecting the temperature of the rotor and sending the temperature of the rotor to the pulse conversion circuit;

the pulse conversion circuit is used for converting the temperature of the rotor into a pulse signal containing at least one pulse; the at least one pulse is indicative of a temperature of the rotor;

the wireless communication module is used for generating a wireless signal according to the pulse signal containing at least one pulse and sending the wireless signal to the microcontroller.

9. The motor control system according to claim 8, wherein the pulse conversion circuit is configured to determine the number of the at least one pulse based on the detection accuracy of the temperature detection device, the detection range of the temperature detection device, the maximum value of the number of pulses in one pulse signal, and the temperature of the rotor detected by the temperature detection device; generating the pulse signal comprising at least one pulse.

10. The motor control system of claim 9,

the pulse conversion circuit is particularly used for determining T-TminAnd a ratio of the detection accuracy of the temperature detection device, and determining a sum of the ratio and 1 as the number of the at least one pulse, T is the temperature of the rotor detected by the temperature detection device, T isminIs the minimum value of the detection range of the temperature detection device;

alternatively, the pulse conversion circuit is specifically used for determining Tmax-a ratio of T to a detection accuracy of said temperature detection device, and dividing said nmaxA difference between +1 and the ratio is determined as the number of the at least one pulse, T is a temperature of the rotor detected by the temperature detecting device, T ismaxIs the maximum value of the detection range of the temperature detection device, nmaxIs the maximum value of the number of pulses in one pulse signal.

11. The motor control system of claim 7, wherein the temperature sensing chip is embedded in the rotor shaft.

12. The motor control system of claim 7, further comprising a rectifier circuit;

the rectifying circuit is used for rectifying input voltage to obtain direct current voltage for driving the temperature detection chip, and the input voltage is shaft voltage generated by the rotor shaft in the rotating process.

13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the motor control method according to any one of claims 1-5.

Technical Field

The present disclosure relates to the field of motor technologies, and in particular, to a method, an apparatus, a system, and a storage medium for controlling a motor.

Background

According to the international organization for standardization (ISO) standard, a rotating body supported by a bearing is called a rotor, and is a major rotating part in power machines and working machines. In actual use, the motor can be controlled to operate according to the temperature of the rotor. At this time, the accuracy of measuring the temperature of the rotor greatly affects the accuracy of controlling the motor. In a conventional motor control system, a thermistor is usually used to measure the temperature of a rotor in a motor operating environment, as shown in fig. 1, the conventional motor (M) control system includes a power circuit 10, a microcontroller 11, a power driving module 12, and a temperature detection circuit 13, the temperature detection circuit 13 includes a thermistor 14 and a high-precision resistor 15, the thermistor 14 is used in combination with the high-precision resistor 15 that is not affected by the environmental temperature, a voltage value at two ends of the thermistor 14 is sent to the microcontroller 11 as a sampling signal, the microcontroller 11 compares a table in which a resistance value of the thermistor 14 changes with the temperature to obtain the temperature corresponding to the voltage value at two ends of the thermistor 13, and then determines the temperature as the temperature of the rotor in the motor operating environment, and controls the motor to operate according to the temperature.

However, in the above-mentioned conventional motor control system, there may be interference in feeding back the measured temperature data to the microcontroller in the control board of the motor, so that the reliability of the temperature of the rotor of the motor acquired by the microcontroller is low. At this time, the microcontroller cannot provide accurate over-temperature protection for the rotor, so that the effect of controlling the operation of the motor by the microcontroller is poor, the situation that the control circuit is burnt due to overlong high-temperature time of the motor may occur, or the situation that the black glue of the damping rotor is melted and deformed due to overlong high-temperature time of the motor may occur, and irreversible loss is caused to the motor.

Disclosure of Invention

The application provides a motor control method, a motor control device, a motor control system and a storage medium, and aims to solve the problem that the effect of controlling the operation of a motor according to the temperature of a rotor is poor due to poor reliability of the temperature of the rotor acquired by a microcontroller.

In a first aspect, the present application provides a motor control method applied to a microcontroller, the motor control method including: acquiring a wireless signal sent by a temperature detection chip, wherein the wireless signal is generated according to the temperature of a rotor detected by a temperature detection device in the temperature detection chip;

demodulating the wireless signal to obtain a pulse signal including at least one pulse, the at least one pulse representing the temperature of the rotor detected by the temperature detection device;

and controlling the motor to operate according to the pulse signal containing at least one pulse.

Optionally, the controlling the motor to operate according to the pulse signal containing at least one pulse includes:

converting the pulse signal containing at least one pulse into the temperature of the rotor detected by the temperature detection device;

and controlling the motor to operate according to the temperature of the rotor detected by the temperature detection device.

Optionally, the controlling the operation of the motor according to the temperature of the rotor detected by the temperature detecting device includes:

if the value of the temperature of the rotor detected by the temperature detection device is within the value range of the preset temperature, controlling the motor to operate, and acquiring a wireless signal sent by the temperature detection chip again;

and if the value of the temperature of the rotor detected by the temperature detection device is outside the value range of the preset temperature, controlling the motor to stop running.

Optionally, the converting the pulse signal including at least one pulse into the temperature of the rotor detected by the temperature detection device includes:

and converting the pulse signal containing at least one pulse into the temperature of the rotor detected by the temperature detection device according to the number of the at least one pulse, the detection precision of the temperature detection device and the detection range of the temperature detection device.

Optionally, the converting the pulse signal including the at least one pulse into the temperature of the rotor detected by the temperature detection device according to the number of the at least one pulse, the detection accuracy of the temperature detection device, and the detection range of the temperature detection device includes:

determining a product of n-1 and the detection accuracy of the temperature detection device, and determining a sum of the product and a minimum value in a detection range of the temperature detection device as the temperature of the rotor detected by the temperature detection device obtained by converting the pulse signal including at least one pulse; n is the number of the at least one pulse;

or, determining nmax- (n-1) and the detection accuracy of said temperature detection means, determining the difference between the maximum value in the detection range of said temperature detection means and said product as the temperature of the rotor detected by said temperature detection means converted from said pulse signal containing at least one pulse; n is the number of at least one pulse, nmaxIs the maximum value of the number of pulses in one pulse signal.

In a second aspect, the present application provides a motor control apparatus comprising: the temperature detection device comprises an acquisition module, a detection module and a control module, wherein the acquisition module is used for acquiring a wireless signal sent by a temperature detection chip, and the wireless signal is generated according to the temperature of a rotor detected by a temperature detection device in the temperature detection chip;

a demodulation module, configured to demodulate the wireless signal to obtain a pulse signal including at least one pulse, where the at least one pulse represents a temperature of the rotor detected by the temperature detection device;

and the control module is used for controlling the motor to operate according to the pulse signal containing at least one pulse.

In a third aspect, a motor control system is provided, which includes a microcontroller, a temperature detection chip; the microcontroller is in communication connection with the temperature detection chip, the output end of the microcontroller is electrically connected with a driving circuit of the motor, the temperature detection chip is arranged on a rotor of the motor and used for detecting the temperature of the rotor, the microcontroller is electrically connected with a power circuit, and the power circuit is used for supplying power to the microcontroller;

the microcontroller is used for acquiring a wireless signal sent by a temperature detection chip, and the wireless signal is generated according to the temperature of the rotor detected by a temperature detection device in the temperature detection chip; demodulating the wireless signal to obtain a pulse signal including at least one pulse, the at least one pulse representing the temperature of the rotor detected by the temperature detection device; controlling the motor to operate according to the pulse signal containing at least one pulse;

the temperature detection chip is used for acquiring the temperature of the rotor detected by the temperature detection device and generating a wireless signal according to the temperature detected by the temperature detection device; and sending the wireless signal to a microcontroller.

Optionally, the temperature detection chip includes a temperature detection device, a pulse conversion circuit, and a wireless communication module;

the temperature detection device is used for detecting the temperature of the rotor and sending the temperature of the rotor to the pulse conversion circuit;

the pulse conversion circuit is used for converting the temperature of the rotor into a pulse signal containing at least one pulse; the at least one pulse is indicative of a temperature of the rotor;

the wireless communication module is used for generating a wireless signal according to the pulse signal containing at least one pulse and sending the wireless signal to the microcontroller.

Optionally, the pulse conversion circuit is specifically configured to determine the number of the at least one pulse according to the detection accuracy of the temperature detection device, the detection range of the temperature detection device, the maximum value of the number of pulses in one pulse signal, and the temperature of the rotor detected by the temperature detection device; generating the pulse signal comprising at least one pulse.

Optionally, the pulse conversion circuit is specifically for determining T-TminAnd a ratio of the detection accuracy of the temperature detection device, and determining a sum of the ratio and 1 as the number of the at least one pulse, T is the temperature of the rotor detected by the temperature detection device, T isminIs the minimum value of the detection range of the temperature detection device;

alternatively, the pulse conversion circuit is specifically used for determining Tmax-a ratio of T to a detection accuracy of said temperature detection device, and dividing said nmaxA difference between +1 and the ratio is determined as the number of the at least one pulse, T is a temperature of the rotor detected by the temperature detecting device, T ismaxIs the maximum value of the detection range of the temperature detection device.

Optionally, the temperature detection chip is embedded in the rotor shaft.

Optionally, the system further comprises a rectification circuit;

the rectifying circuit is used for rectifying input voltage to obtain direct current voltage for driving the temperature detection chip, and the input voltage is shaft voltage generated by the rotor shaft in the rotating process.

In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the motor control method according to any of the embodiments of the first aspect.

Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:

in the motor control method provided by the embodiment of the application, the microcontroller acquires the temperature of the rotor detected by the temperature detection device sent by the temperature detection chip in the form of the wireless signal, that is, the temperature of the rotor detected by the temperature detection device is sent in the form of the wireless signal, so that the interference on the temperature of the rotor detected by the temperature detection device in the transmission process is reduced, the reliability of the temperature of the rotor acquired after the microcontroller demodulates and converts the acquired wireless signal is ensured, and the effect of controlling the motor to operate according to the temperature of the rotor is further ensured.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.

Fig. 1 is a schematic diagram of a conventional motor control system according to an embodiment of the present disclosure;

fig. 2 is a schematic flowchart of a motor control method according to an embodiment of the present disclosure;

fig. 3 is a schematic diagram of a motor control apparatus according to an embodiment of the present disclosure;

fig. 4 is a schematic diagram of a motor control system according to an embodiment of the present disclosure;

FIG. 5 is a schematic diagram illustrating a position of a temperature detecting chip according to an embodiment of the present disclosure;

fig. 6 is a schematic view of an electronic device according to an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

In order to solve the problem that the reliability of the obtained temperature of the rotor is poor, so that the effect of controlling the operation of the motor according to the temperature of the rotor is poor, the embodiment of the application provides a motor control method which is applied to a microcontroller. As shown in fig. 2, the motor control method includes steps 201 to 203:

step 201: and acquiring a wireless signal sent by the temperature detection chip.

Wherein the wireless signal is generated according to the temperature of the rotor detected by the temperature detection device in the temperature detection chip.

In a possible implementation manner, the temperature detection chip includes a temperature detection device, a pulse conversion circuit, and a wireless communication module.

The temperature detection device detects the temperature of the rotor of the motor and sends the temperature of the rotor of the motor detected by the temperature detection device to the pulse conversion circuit. Then, the pulse conversion circuit converts the temperature of the rotor received by the pulse conversion circuit from the temperature detection device into a pulse signal containing at least one pulse, and sends the pulse signal containing at least one pulse to the wireless communication module. Correspondingly, the wireless communication module receives the pulse signal containing at least one pulse sent by the pulse conversion circuit and modulates the pulse signal containing at least one pulse, so as to obtain the required wireless signal. And finally, the wireless communication module sends the wireless signal to the microcontroller, and correspondingly, the microcontroller acquires the wireless signal sent by the temperature detection chip.

After receiving the temperature of the rotor sent by the temperature detection device, the pulse conversion circuit determines the number of at least one pulse in the pulse signal containing at least one pulse according to the detection precision of the temperature detection device, the detection range of the temperature detection device, the maximum value of the number of pulses in one pulse signal and the temperature of the rotor detected by the temperature detection device.

Specifically, the pulse conversion circuit determines T-T firstminAnd the detection accuracy of the temperature detection device, and the sum of the ratio and 1 is determined as the number of at least one pulse in the pulse signal including the at least one pulse. Wherein T is the temperature of the rotor detected by the temperature detecting device, TminIs the minimum value of the detection range of the temperature detection device. Alternatively, the pulse conversion circuit determines T firstmax-ratio of T to the detection accuracy of the temperature detection device, and nmaxThe difference between +1 and the ratio is determined as the number of at least one pulse in the pulse signal comprising the at least one pulse. Wherein T is the temperature of the rotor detected by the temperature detecting device, TmaxIs the maximum value of the detection range of the temperature detection device, nmaxIs the maximum value of the number of pulses in one pulse signal.

Illustratively, the pulse conversion circuit is based on n ═ T-Tmin) and/P +1, converting the temperature of the rotor detected by the temperature detection device into a pulse signal including at least one pulse. Where n is the number of at least one pulse in the obtained pulse signal, T is the temperature of the rotor detected by the temperature detecting means, and T is the temperature of the rotor detected by the temperature detecting meansminIs the minimum value in the detection range of the temperature detection device, and P is the detection accuracy of the temperature detection device. Alternatively, the pulse conversion circuit is based on n ═ nmax+1-(Tmax-T)/P, converting the temperature of the rotor detected by the temperature detection means into a pulse signal comprising at least one pulse. Where n is the number of at least one pulse in the obtained pulse signal, T is the temperature of the rotor detected by the temperature detecting means, and T is the temperature of the rotor detected by the temperature detecting meansmaxIs the minimum value in the detection range of the temperature detection device, nmaxIs the maximum value of the number of pulses in one pulse signal, and P is the detection accuracy of the temperature detection device.

In general, n ═ T (T-T)min)/P+1=nmax+1-(Tmax-T)/P。

The detection precision of the temperature detection device is the temperature value corresponding to one pulse in the pulse signal. The temperature value corresponding to the one pulse is determined depending on the detection range of the temperature detection device and the maximum value of the number of pulses in the one pulse signal.

For example, a temperature corresponding to one pulse is 10 ℃, and if the number of pulses in one pulse signal is 10, the temperature of the rotor detected by the temperature detection device corresponding to the pulse signal is 100 ℃.

Illustratively, according to P ═ T (T)max-Tmin)/nmaxAnd determining the detection precision of the temperature detection device. Wherein P represents the detection accuracy of the temperature detection device, and TmaxMaximum value, T, representing the detection range of the temperature detection deviceminRepresents the minimum value of the detection range of the temperature detection device.

The maximum value of the number of pulses in the above one pulse signal may also be said to be the maximum value of the number of pulses that can be triggered in one cycle. When the temperature of the rotor is the maximum value of the temperature detected by the temperature detector, the pulse conversion module sends nmaxThe duration of each pulse is the duration of the one period. It should be noted that the duration of this period is a fixed value of hardware.

In a possible implementation, the period may also be used as a time length of the delay. The temperature detection device converts the detected temperature of the rotor to obtain a pulse signal containing at least one pulse, and sends the pulse signal to the wireless communication module. The temperature detection device detects the temperature of the rotor again after the time length of the period after the initial time of sending the pulse signal.

Among the above-mentioned traditional motor control system, thermistor arranges on the controller of the motor far away from the rotor, this moment, the temperature value of the motor that detects through thermistor receives the influence of the inside temperature of motor great, and because thermistor's temperature characteristic is mostly non-linear function, that is to say, when detecting the temperature of rotor through thermistor, can only guarantee temperature measurement's precision in a narrower temperature range, but temperature measurement's precision can reduce by a wide margin in other scopes, consequently, measurement accuracy when measuring the temperature of rotor through thermistor is lower. However, by measuring the temperature of the rotor using the temperature detection chip, a more accurate temperature of the rotor can be obtained. In order to further ensure the accuracy or precision of the temperature measurement of the rotor, in one possible implementation, the temperature detection chip is arranged on the rotor of the electric machine.

Specifically, the temperature detection chip is embedded in a rotor shaft of the motor. In this way, the temperature of the rotor can be measured in a contact manner, and the measurement accuracy in measuring the temperature of the rotor is high.

It should be noted that the pulse signal is an electrical signal, and since the temperature detection device and the pulse conversion circuit are embedded in the rotor shaft, the rotor cannot directly transmit the signal to the microcontroller fixed on the motor control board. Therefore, a wireless communication module is provided in the temperature detection chip to transmit the temperature of the rotor detected by the temperature detection device to the microcontroller through the wireless communication module. In addition, the temperature of the rotor detected by the temperature detection device is sent to the microcontroller through a wireless signal, so that the interference on the temperature of the rotor detected by the temperature detection device when being transmitted to the microcontroller can be reduced, the reliability of the temperature of the rotor detected by the temperature detection device acquired by the controller is ensured, and the effect of controlling the motor to operate by the microcontroller according to the temperature of the rotor is better.

Step 202: and demodulating the wireless signal to obtain a pulse signal containing at least one pulse.

Wherein at least one pulse in the at least one pulse signal is used to indicate the temperature of the rotor detected by the temperature detection device.

It should be noted that the process of demodulating the wireless signal by the microcontroller is the inverse process of the above process of modulating the pulse signal, and the processes of modulation and demodulation can refer to the prior art and are not described herein again.

Step 203: and controlling the motor to operate according to the pulse signal containing at least one pulse.

The pulse signal including at least one pulse obtained in step 202 above is converted into the temperature of the rotor detected by the temperature detection device. Subsequently, the motor is controlled to operate according to the temperature of the rotor detected by the temperature detecting device.

In a possible implementation manner, the obtained pulse signal including at least one pulse is converted into the detected temperature of the rotor, that is, the temperature of the rotor detected by the temperature detection device, according to the number of at least one pulse in the obtained pulse signal including at least one pulse, the detection accuracy of the temperature detection device, and the detection range of the temperature detection device.

For the description of the detection accuracy of the temperature detection device, reference may be made to the above description, and details are not repeated herein.

Specifically, the microcontroller determines the product of n-1 and the detection accuracy of the temperature detection device, and determines the sum of the product and the minimum value in the detection range of the temperature detection device as the temperature of the rotor detected by the temperature detection device converted from the pulse signal including at least one pulse. Wherein n is the number of at least one pulse in the pulse signal including at least one pulse.

Illustratively, the detection range of the temperature detection device is [10 ℃, 30 ℃ ], and the minimum value in the detection range of the temperature detection device is 10 ℃, and the maximum value in the detection range of the temperature detection device is 30 ℃.

Illustratively, the microcontroller is based on T ═ P + T (n-1) ·minAnd determining the temperature of the rotor detected by the temperature detection device. Wherein T is the temperature of the rotor obtained by converting the at least one pulse signal, i.e. the temperature of the rotor detected by the temperature detection device, n is the number of at least one pulse in the pulse signal including the at least one pulse, P is the detection accuracy of the temperature detection device, TminIs the minimum value of the detection range of the temperature detection device.

Alternatively, the microcontroller determines n firstmaxA product of (n-1) and the detection accuracy of the temperature detection device, and determining a difference between a maximum value in the detection range of the temperature detection device and the product as the temperature of the rotor obtained by converting the pulse signal including the at least one pulse, that is, the temperature of the rotor detected by the temperature detection device. Wherein n is the number of at least one pulse in the pulse signal containing at least one pulse, and n ismaxIs the maximum value of the number of pulses in one pulse signal.

Illustratively, the microcontroller is based on T ═ Tmax-(nmax- (n-1)) P, determined as the temperature of the rotor resulting from the conversion of said pulse signal comprising at least one pulse. Wherein T is the temperature of the rotor obtained by converting the at least one pulse signal, TmaxIs the maximum value of the detection range of the temperature detection device, nmaxIs the maximum value of the number of pulses in a pulse signal, n is the number of at least one pulse in the pulse signal containing at least one pulse, nmaxIs the maximum value of the number of pulses in one pulse signal.

In general, T ═ n-1 ═ P + Tmin=Tmax-(nmax-(n-1))*P。

After the pulse signal containing at least one pulse is converted into the temperature of the rotor detected by the temperature detection device, if the value of the temperature of the rotor detected by the temperature detection device is within the value range of the preset temperature, the motor is controlled to operate, and the wireless signal sent by the temperature detection chip is acquired again. And if the value of the temperature of the rotor detected by the temperature detection device is outside the value range of the preset temperature, controlling the motor to stop running. The value range of the preset temperature may be predetermined or determined according to an actual working condition (e.g., an internal structure of the motor), and is not specifically limited herein. Of course, the microcontroller may also control the motor to decrease the rotation speed or increase the rotation speed according to the temperature of the rotor, or adjust other operating parameters of the motor according to the temperature of the rotor.

For example, the value range of the preset temperature is below 100 ℃, the pulse signal including at least one pulse is converted to obtain the temperature of the rotor of the temperature detection device, and if the temperature of the rotor of the temperature detection device is 40 ℃, the motor is controlled to operate, and the wireless signal sent by the temperature detection chip is obtained again. And if the temperature of the rotor detected by the temperature detection device is 120 ℃, controlling the motor to stop running.

It should be noted that, the operation or the stop operation of the motor is controlled by whether the temperature of the rotor detected by the temperature detection device is within the value range of the preset temperature, so that when the temperature of the rotor is too high, the motor is controlled to stop operating, the over-temperature protection of the rotor is realized, the temperature of the rotor is adjusted, the protection of the circuit is realized, and the unnecessary loss is reduced.

In addition, through the above process, the microcontroller acquires the temperature of the rotor detected by the temperature detection device sent by the temperature detection chip in the form of a wireless signal, that is, the temperature of the rotor detected by the temperature detection device is sent in the form of a wireless signal, so that the interference on the temperature of the rotor detected by the temperature detection device in the transmission process is reduced, the reliability of the acquired temperature of the rotor after the microcontroller demodulates and converts the acquired wireless signal is ensured, and the effect of controlling the motor to operate according to the temperature of the rotor is further ensured.

As shown in fig. 3, an embodiment of the present application provides a motor control apparatus, which includes an obtaining module 301, a demodulating module 302, and a control module 303.

An obtaining module 301, configured to obtain a wireless signal sent by a temperature detection chip, where the wireless signal is generated according to a temperature of a rotor detected by a temperature detection device in the temperature detection chip.

A demodulation module 302, configured to demodulate the wireless signal to obtain a pulse signal including at least one pulse, where the at least one pulse represents the temperature of the rotor detected by the temperature detection device;

and the control module 303 is used for controlling the motor to operate according to the pulse signal containing at least one pulse.

In order to solve the problem that the reliability of the temperature of the rotor acquired by the microcontroller is poor, and the effect of controlling the operation of the motor according to the temperature of the rotor is poor, the embodiment of the application provides a motor (M) control system. As shown in fig. 4, the system includes a microcontroller 41 and a temperature detection chip 42.

The microcontroller is in communication connection with the temperature detection chip, the output end of the microcontroller is electrically connected with a driving circuit of the motor, namely a power driving circuit 43, the temperature detection chip is arranged on a rotor of the motor and used for detecting the temperature of the rotor, the microcontroller is electrically connected with a power supply circuit 44, and the power supply circuit is used for supplying power to the microcontroller.

The microcontroller is used for acquiring a wireless signal sent by the temperature detection chip, and the wireless signal is generated according to the temperature of the rotor detected by the temperature detection device in the temperature detection chip; analyzing the wireless signal to obtain a pulse signal containing at least one pulse, wherein the at least one pulse is used for indicating the temperature of the rotor detected by the temperature detection device; and controlling the motor to operate according to the pulse signal containing at least one pulse.

The temperature detection chip is used for acquiring the temperature of the rotor detected by the temperature detection device and generating a wireless signal according to the temperature detected by the temperature detection device; the wireless signal is sent to the microcontroller.

The temperature detecting chip further includes a temperature detecting device 421, a pulse converting circuit 422, and a wireless communication module 423.

And the temperature detection device is used for detecting the temperature of the rotor and sending the temperature of the rotor to the pulse conversion circuit. In which many circuits can realize a temperature detection function. Illustratively, a resistance element (e.g., a high-precision resistor) and a MOS transistor combination can be integrated inside the temperature detection chip as a temperature detection device to facilitate subsequent digital processing of the detected temperature data of the rotor. The MOS tube and the resistance element can be a MOS tube and a resistance element which are positively correlated with the temperature. Alternatively, the temperature detection device may include other temperature measuring elements, such as a pure resistance element, a thermocouple element, a parasitic transistor temperature detection device, a MOS transistor and a resistance element that are inversely related to temperature, and the like.

A pulse conversion circuit for converting the temperature of the rotor into a pulse signal containing at least one pulse; the at least one pulse is indicative of a temperature of the rotor.

In a possible implementation manner, the pulse conversion circuit is specifically configured to determine the number of the at least one pulse according to the detection accuracy of the temperature detection device, the detection range of the temperature detection device, the maximum value of the number of pulses in one pulse signal, and the temperature of the rotor detected by the temperature detection device; generating the pulse signal comprising at least one pulse.

In particular, the pulse conversion circuit is particularly useful for determining T-TminAnd a ratio of the detection accuracy of the temperature detection device, and determining a sum of the ratio and 1 as the number of the at least one pulse, T is the temperature of the rotor detected by the temperature detection device, T isminIs the minimum value of the detection range of the temperature detection device; alternatively, the pulse conversion circuit is specifically used for determining Tmax-a ratio of T to a detection accuracy of said temperature detection device, and dividing said nmaxA difference between +1 and the ratio is determined as the number of the at least one pulse, T is a temperature of the rotor detected by the temperature detecting device, T ismaxIs the maximum value of the detection range of the temperature detection device, nmaxIs the maximum value of the number of pulses in one pulse signal. For the implementation of this process, reference may be made to the above description, which is not repeated herein.

And the wireless communication module is used for generating a wireless signal according to the pulse signal containing at least one pulse and sending the wireless signal to the microcontroller.

In one possible implementation, the temperature sensing chip is embedded in the rotor shaft 46. When the motor operates, the shaft voltage generated by the rotor shaft can provide energy for the temperature detection chip.

In one possible implementation, the motor control system further includes a rectifier circuit 45. The rectifying circuit is used for rectifying the input voltage to obtain a direct-current voltage for driving the temperature detection chip. And the input voltage is the shaft voltage generated by the potential difference of the rotor shaft in the rotation process. In the running process of the motor, the voltage amplitude, the frequency and the like at the two ends of the rotor shaft are greatly influenced by indian factors such as the rotating speed of the rotor, so that stable direct-current voltage can be obtained by rectifying the voltage at the two ends of the rotor shaft through the rectifying circuit, and the temperature detection chip can normally work under the driving of the direct-current voltage.

Rectifier circuit has two inputs and two outputs, and the output is as a whole with temperature detection chip both ends after linking to each other, is fixed by insulating material parcel, and the input exposes outside, and this whole just fastens in the pivot production process, and no fixed position requirement only needs to guarantee that exposed input contacts with the pivot, and internal circuit can switch on.

For example, the position of the temperature detection chip 42 in the motor control system may be as shown in fig. 5. Wherein, 1 is the rotor shaft subassembly, 2 is rotor shaft permanent magnet subassembly, 3 is the embedded position of temperature detection chip and rectifier circuit 45, and 4 and 5 are the both ends of rotor shaft respectively. When the motor operates, the rectifying circuit takes the voltage at two ends of the rotor shaft as input voltage. The temperature detecting chip 42 includes a temperature detecting device 421, a pulse converting circuit 422, and a wireless communication module 423. The temperature detecting chip sends a wireless signal (i.e. the temperature of the rotor detected by the temperature detecting device) to the microcontroller 41 in the external control board, which is also provided with a power driving circuit 43.

It should be noted that, after the shaft voltage of the rotor shaft is rectified (filtered, etc.) by the rectifier circuit, a stable dc voltage can be obtained, so as to provide energy for the temperature detection chip embedded in the rotor shaft, and thus, each part of the circuit of the temperature detection chip is conducted and works normally. That is, the rectifying circuit may be regarded as an energy supply unit of the temperature detection chip.

In one possible implementation, the microcontroller may initialize various parameters of the motor and control the various parameters during the operation of the motor so that the motor operates normally. Illustratively, the motor may be a brushless dc motor. It should be noted that, after the microcontroller initializes various parameters of the motor, the motor is started under the initial current drive.

As shown in fig. 6, an electronic device according to an embodiment of the present application includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604. The processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604.

A memory 603 for storing a computer program.

In an embodiment of the present application, when the processor 601 is configured to execute the program stored in the memory 603, the method for controlling a motor according to any one of the foregoing method embodiments includes:

embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for controlling a motor.

It is noted that, 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种步进电机的驱动电路、控制方法、及设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!