Motor speed pulse frequency conversion method, computer readable storage medium and motor

文档序号:1407907 发布日期:2020-03-06 浏览:17次 中文

阅读说明:本技术 电机转速脉冲频率转换方法、计算机可读存储介质及电机 (Motor speed pulse frequency conversion method, computer readable storage medium and motor ) 是由 钟绍民 李庆 高晓峰 陈东锁 于 2019-10-18 设计创作,主要内容包括:本发明提供了电机转速脉冲频率转换方法、计算机可读存储介质及电机,通过对接收到电机控制器的电机转速输入脉冲信号分两路信号分析,一路信号通过周期测量法算出脉冲周期T1,另一路信号通过计数测量法算出脉冲周期T2,依据脉冲周期T1和T2算出最终的脉冲周期T,通过脉冲周期T算出输出脉冲波形并输出至空调控制器。本发明通过两路电机转速脉冲信号分析,可以对不同个数的脉冲信号进行分析转换,统一输出特定个数的脉冲信号,將非50%占空比的输入脉冲转换成50%占空比的输出脉冲,提高脉冲信号的输出精度,减小误差,使得空调对电机速度控制更加有效平稳。(The invention provides a motor rotating speed pulse frequency conversion method, a computer readable storage medium and a motor.A motor rotating speed input pulse signal received by a motor controller is analyzed by two paths of signals, one path of signal calculates a pulse period T1 through a periodic measurement method, the other path of signal calculates a pulse period T2 through a counting measurement method, a final pulse period T is calculated according to the pulse periods T1 and T2, and an output pulse waveform is calculated through the pulse period T and is output to an air conditioner controller. According to the invention, through the analysis of two paths of motor rotating speed pulse signals, different numbers of pulse signals can be analyzed and converted, a specific number of pulse signals are uniformly output, input pulses with duty ratios other than 50% are converted into output pulses with duty ratios of 50%, the output precision of the pulse signals is improved, errors are reduced, and the speed control of the motor by the air conditioner is more effective and stable.)

1. A motor rotating speed pulse frequency conversion method is characterized in that a motor rotating speed input pulse signal received by a motor controller is analyzed by dividing into two paths of signals, one path of signal calculates a pulse period T1 through a periodic measurement method, the other path of signal calculates a pulse period T2 through a counting measurement method, a final pulse period T is calculated according to the pulse periods T1 and T2, an output pulse waveform is calculated according to the pulse period T and is output to an air conditioner controller.

2. The method for converting the pulse frequency of the motor speed according to claim 1, wherein the pulse period T1 calculated by the periodic measurement method is specifically: the number m of pulse transitions and the total time T1 are detected by a periodicity measuring method, and the period T1 is obtained through the formula T1= T1/(m-1).

3. The method for converting the pulse frequency of the motor rpm according to claim 1, wherein the calculating the pulse period T2 by the counting measurement method of the other path of signals is specifically as follows: the number n of pulses and the total time T2 are detected by a counting measurement method, the frequency F is obtained through a formula F =2n/T2, and the period T2 is obtained through a formula T2= 1/F.

4. The method for converting the rotational speed pulse frequency of a motor according to claim 1, wherein the calculating the final pulse period T according to the pulse periods T1 and T2 comprises: the pulse periods T1 and T2 are subject to the formula T = (T1+ T2)/2 to obtain an accurate period T.

5. A motor rotating speed pulse frequency conversion system is characterized by comprising a Hall sensor, a motor controller, a pulse frequency conversion circuit and an air conditioner controller, the hall sensor is used to detect the rotor position and transmit a speed feedback signal to the motor controller, the motor controller comprises feedback signal for processing, rectangular wave pulse signal output, and pulse frequency conversion circuit, the pulse frequency conversion circuit comprises an input pulse signal, a twelve pulse signal and an air conditioner controller, wherein the input pulse signal is converted into the twelve pulse signals, the twelve pulse signals are output to the air conditioner controller, the air conditioner controller receives the pulse signals and calculates the rotating speed of the motor, and sends a speed regulating signal to the motor according to the requirement, a computer program is stored in the pulse frequency conversion circuit, the computer program, when invoked by a processor, implements the motor tachometer pulse frequency conversion method of any one of claims 1 to 4.

6. A computer-readable storage medium for storing a computer program, wherein the computer program, when invoked by a processor, implements the motor tacho pulse frequency conversion method of any of claims 1 to 4.

7. An electrical machine comprising a processor and a memory for storing a computer program, wherein the computer program when invoked by the processor implements a motor tachopulse frequency conversion method according to any one of claims 1 to 4.

8. An air conditioner comprising a processor and a memory for storing a computer program, wherein the computer program when invoked by the processor implements the motor tacho pulse frequency conversion method of any one of claims 1 to 4.

9. An intelligent appliance comprising a processor and a memory, said memory storing a computer program, wherein said computer program when invoked by said processor implements the motor tacho pulse frequency conversion method of any one of claims 1 to 4.

Technical Field

The invention relates to the technical field of motors, in particular to a motor rotating speed pulse frequency conversion method, a computer readable storage medium and a motor.

Background

The FG signal received by the air conditioner controller is a feedback signal of the motor rotation speed, and is generally generated after being processed by the motor controller based on a hall sensor signal. The air conditioner controller can calculate the rotating speed of the motor after receiving the pulse signal so as to know the running state of the air conditioner, such as flow condition, whether to stop rotating due to faults and the like; meanwhile, the air conditioner controller can regulate and control the air conditioner according to the signals, and the intellectualization of the air conditioning system is realized.

The air conditioner controller calculates the rotation speed of the motor by considering that the motor rotates once every 12 pulses are received by default when recognizing the pulse signal of the FG. Often, the number of pulses output from a motor controller FG circuit is not necessarily 12 every rotation of a rotor, 3 Hall sensors are arranged under a sensing control scheme, when the number of pole pairs of a motor is 4, the motor controller outputs 12 pulses every rotation of the rotor, 15 pulses are output by 5 pairs of pole motors, and 21 pulses are output by 7 pairs of pole motors, so that a pulse frequency conversion circuit is required to be added in the transmission process of the motor controller and an air conditioner controller to convert non-12 pulse signals into 12 pulse signals. In patent document "a pulse feedback output control method of BLDC motor and an air conditioning system applied thereto" (publication No. CN 105811815B), it is proposed that a microprocessor detects pulse transitions and measures time T of adjacent pulse transitions, and calculates time T of switching output pulses to be T/mx (nxa), the microprocessor configures a timer using time T, and the timer controls a port FG to output pulses using time T. Meanwhile, if the period T acquired by the input circuit has an error, the error of the period T of the pulse output circuit is large, so that the FG signal received by the air-conditioning system controller is inaccurate, the speed acquisition is inaccurate, and the speed control of the motor is adversely affected.

Disclosure of Invention

Aiming at the defects of the prior art, the invention provides a motor rotating speed pulse frequency conversion method, which solves the problems of inaccurate FG pulse signal acquisition, large error of the duty ratio of FG pulse signals and low precision and large error of FG pulse signals received by an air conditioning system receiver.

In order to achieve the purpose, the invention adopts the following technical scheme:

a motor rotating speed pulse frequency conversion method is characterized in that a motor rotating speed input pulse signal received by a motor controller is divided into two paths of signals for analysis, one path of signal calculates a pulse period T1 through a periodic measurement method, the other path of signal calculates a pulse period T2 through a counting measurement method, a final pulse period T is calculated according to the pulse periods T1 and T2, an output pulse waveform is calculated according to the pulse period T and is output to an air conditioner controller. Through the analysis of two paths of motor rotating speed pulse signals, the pulse signals with different numbers can be analyzed and converted, the pulse signals with specific numbers are uniformly output, the input pulses with duty ratios different from 50% are converted into the output pulses with duty ratios of 50%, the output precision of the pulse signals is improved, errors are reduced, and the air conditioner can more effectively and stably control the motor speed.

Further, the pulse period T1 calculated by the periodic measurement method for the one-path signal is specifically: the number m of pulse transitions and the total time T1 are detected by a periodicity measuring method, and the period T1 is obtained through the formula T1= T1/(m-1). The pulse period T1 is obtained by analyzing and calculating the pulse jumping condition, and the pulse period can be obtained more accurately by the method, so that the detection precision is improved.

Further, the pulse period T2 calculated by the counting measurement method for the other path of signal is specifically: the number n of pulses and the total time T2 are detected by a counting measurement method, the frequency F is obtained through a formula F =2n/T2, and the period T2 is obtained through a formula T2= 1/F. The pulse period T2 is obtained by analyzing the condition of the number of pulses, and the pulse period T1 calculated by combining the pulse jumping condition is analyzed, so that different pulse signal conditions can be analyzed and calculated, the detection is more comprehensive and accurate, and the detection error can be effectively reduced.

Further, the step of calculating the final pulse period T according to the pulse periods T1 and T2 is specifically as follows: the pulse periods T1 and T2 are subject to the formula T = (T1+ T2)/2 to obtain an accurate period T. The average value of the calculated pulse periods is calculated to be used as the final pulse period through detection, the calculation mode is more scientific and accurate, the optimal pulse period can be obtained, and the air conditioner controller can calculate the optimal motor rotating speed through the pulse period, so that the motor can run more stably and effectively.

A motor rotating speed pulse frequency conversion system comprises a Hall sensor, a motor controller, a pulse frequency conversion circuit and an air conditioner controller, wherein the Hall sensor is used for detecting the position of a rotor and transmitting a speed feedback signal to the motor controller, the motor controller comprises a feedback signal for processing and outputting a pulse signal of a rectangular wave, the pulse signal is transmitted to the pulse frequency conversion circuit, the pulse frequency conversion circuit comprises an input pulse signal and is converted into twelve pulse signals to be output to the air conditioner controller, the air conditioner controller receives the pulse signals to calculate the rotating speed of the motor and sends a speed regulation signal to the motor according to the requirement, a computer program is stored in the pulse frequency conversion circuit, and the computer program realizes the motor rotating speed pulse frequency conversion method when being called by the processor.

A computer readable storage medium storing a computer program which when invoked by a processor implements a motor tacho pulse frequency conversion method as claimed in any one of the preceding claims.

An electrical machine comprising a processor and a memory for storing a computer program which when invoked by the processor implements a motor tacho pulse frequency conversion method as claimed in any preceding claim.

An air conditioner comprising a processor and a memory for storing a computer program which when invoked by the processor implements a motor tacho pulse frequency conversion method as claimed in any preceding claim.

An intelligent appliance comprising a processor and a memory, said memory being adapted to store a computer program which, when invoked by said processor, implements the motor tacho pulse frequency conversion method of any preceding claim.

The motor rotating speed pulse frequency conversion method, the computer readable storage medium and the motor provided by the invention have the beneficial effects that: by the method, the motor rotating speed input pulse with a duty ratio of not 50% is converted into the output pulse with a duty ratio of 50%, and simultaneously, the pulse signal with high precision and small error is output; meanwhile, the air conditioning system receiver receives an accurate motor rotating speed pulse signal, the speed feedback is normal and accurate, and the motor speed control is more effective and stable.

Drawings

FIG. 1 is a schematic diagram of pulse signal transmission according to the present invention;

FIG. 2 is a schematic flow chart of the present invention;

FIG. 3 is a diagram illustrating the number m of pulse transitions in accordance with the present invention;

FIG. 4 is a diagram illustrating the number n of pulses according to the present invention;

FIG. 5 is a diagram illustrating the total time T1 and the period T1 according to the present invention;

fig. 6 is a diagram illustrating the total time t2 according to the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person skilled in the art without making any inventive step are within the scope of the present invention.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:提高永磁直线同步电动机鲁棒跟踪控制精度的装置及方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!