WO2020135603A1 - 一种电机低速测量方法及电机测速系统 - Google Patents

一种电机低速测量方法及电机测速系统 Download PDF

Info

Publication number
WO2020135603A1
WO2020135603A1 PCT/CN2019/128766 CN2019128766W WO2020135603A1 WO 2020135603 A1 WO2020135603 A1 WO 2020135603A1 CN 2019128766 W CN2019128766 W CN 2019128766W WO 2020135603 A1 WO2020135603 A1 WO 2020135603A1
Authority
WO
WIPO (PCT)
Prior art keywords
sampling period
counter
pulse
target sampling
pulses
Prior art date
Application number
PCT/CN2019/128766
Other languages
English (en)
French (fr)
Inventor
庄飞飞
刘培超
刘志立
郎需林
Original Assignee
深圳市越疆科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市越疆科技有限公司 filed Critical 深圳市越疆科技有限公司
Publication of WO2020135603A1 publication Critical patent/WO2020135603A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • G01P3/48Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage
    • G01P3/481Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals

Definitions

  • This application relates to the field of motor speed measurement, in particular to a method for measuring a low speed of a motor and a motor speed measurement system.
  • the linear displacement or angular displacement generated by the rotation of the motor The main role of the motor in the circuit is to generate driving torque, which is used as the power source for the motor speed measurement system or electrical equipment. In the control of the motor, the control of the motor speed is a very important link. The accuracy of the motor speed measurement determines the accuracy of the motor control.
  • the incremental encoder is usually used to measure the speed of the motor.
  • the M method, the T method or the M/T method is often used for the measurement of the motor speed.
  • the M method is used to measure speed at high speeds
  • the T method is used to measure speed at low speeds.
  • the M method, T method or M/T method cannot measure its speed. Corresponding current speed.
  • the embodiments of the present application provide a low-speed motor measurement method and a motor speed measurement system, which realize the motor speed measurement at an ultra-low speed and improve the accuracy of the motor speed measurement at a low speed.
  • an embodiment of the present application discloses a method for measuring a low speed of a motor, including:
  • the motor speed is calculated according to the number of pulses in the target sampling period and the time of the target sampling period.
  • the determining the counter according to the number of pulses in the target sampling period includes:
  • the counter When the number of pulses in the target sampling period is greater than or equal to 2, the counter includes a clock counter, a first time node counter, a second time node counter, a third time node counter, and a fourth time node counter;
  • the clock counter is used to trigger clearing when the first preset sampling period arrives, trigger pulse counting according to the preset clock frequency, and record the period count pulse T;
  • the first time node counter is used in the first Trigger to clear when the preset sampling period arrives, stop counting when the first transition edge arrives, record the first counting pulse t1;
  • the second time node counter, third time node counter and fourth time node counter are used to Whenever a pulse arrives, the value is updated, and the second count pulse t2, the third count pulse t3, and the fourth count pulse t4 are recorded respectively;
  • the second count pulse t2 is not greater than the third count pulse t3
  • the third count pulse t3 is not greater than the fourth count pulse t4
  • the fourth count pulse t4 is not greater than the period count pulse T.
  • the calculating the number of pulses in the target sampling period and the time of the target sampling period according to the counter includes:
  • the counter obtain the complete pulse number Mn in the target sampling period and the complete pulse number Mn in the target sampling period, the length Tm of the previous pulse; and, calculate the first in the target sampling period The length of the incomplete pulse tn1, the length of the last incomplete pulse in the target sampling period tn2, the length of the last complete pulse in the target sampling period Tn, the length of the penultimate complete pulse in the target sampling period Tn-1 and the complete pulse number Mn in the target sampling period and the length Tn+1 of the next pulse;
  • deltaP (tn1/Tm)+(Mn)+(tn2/Tn+1)
  • the calculating the motor speed according to the number of pulses in the target sampling period and the time of the target sampling period includes:
  • calculating the number of pulses in the target sampling period and the time of the target sampling period according to the counter includes:
  • the number of complete pulses Mn in the target sampling period and the fourth count pulse t0 of the previous sampling period of the target sampling period are obtained, and the first incomplete in the target sampling period is calculated
  • deltaP (tn1/Tm)+(Mn)+(tn2/Tn+1)
  • the determining the counter according to the number of pulses in the target sampling period includes: when the number of pulses in the target sampling period is less than 2, the counter includes a clock counter, a first uncleared counter, and a second Unclear counter and third unclear counter;
  • the first unclear counter, the second unclear counter and the third unclear counter are used to update the value whenever a pulse arrives, and record the fifth count pulse t5, the sixth count pulse t6 and the seventh count respectively Pulse t7;
  • the fifth count pulse t5 is not greater than the sixth count pulse t6
  • the sixth count pulse t6 is not greater than the seventh count pulse t7
  • the seventh count pulse t7 is not greater than the period count pulse T.
  • calculating the number of pulses in the target sampling period and the time of the target sampling period according to the counter includes:
  • the method further includes:
  • the pulse mark is incremented by 1, and whenever the target sampling period includes at least one pulse, the pulse mark is cleared to 0;
  • the stop mark is set to 1;
  • the stop mark is set to 0;
  • an embodiment of the present application discloses a motor speed measurement system, including:
  • the signal conditioning circuit is connected to the speed measuring encoder
  • the FPGA module is connected to the signal conditioning circuit and is used to execute the above method.
  • the FPGA module includes an FPGA chip, a crystal oscillator, a clock counter, a first time node counter, a second time node counter, a third time node counter, a fourth time node counter, a first uncleared counter, a second Unclear counter, third unclear counter and controller;
  • the FPGA chip and the signal conditioning circuit crystal oscillator, clock counter, first time node counter, second time node counter, third time node counter, fourth time node counter, first unclear counter, The second unclear counter, the third unclear counter and the controller are connected.
  • the embodiments of the present application provide a method for measuring a low speed of a motor and a motor speed measuring system.
  • the pulses of the speed measuring encoder are sampled in a preset sampling period, a counter is determined according to the number of pulses in the target sampling period, and the number of pulses in the target sampling period is calculated according to the counter
  • the time of the target sampling period is calculated according to the number of pulses in the target sampling period and the time of the target sampling period.
  • FIG. 1 is a schematic structural diagram of a motor speed measuring system provided by an embodiment of the present application.
  • FIG. 2 is a flowchart of a method for measuring a low-speed motor provided by an embodiment of the present application
  • 3 is a sampling sequence diagram of a motor speed waveform when the number of pulses in a target sampling period is not less than 3, provided by an embodiment of the present application;
  • FIG. 4 is a sampling sequence diagram of a motor speed waveform when the number of pulses in a target sampling period is equal to 2 provided by an embodiment of the present application;
  • FIG. 5 is a sampling sequence diagram of a motor speed waveform when the number of pulses in a target sampling period is equal to 1 provided by an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of a motor speed measuring system according to an embodiment of the present application.
  • the motor speed measuring system 100 includes a motor 10, a speed measuring encoder 20, a signal conditioning circuit 30 and an FPGA module 40.
  • the motor 10 is an electromagnetic device installed in a motor driving device and converting or transmitting electric energy stored in a city power or storage battery according to the law of electromagnetic induction. It is common to convert electric energy into mechanical kinetic energy and control the mechanical device to perform corresponding operations.
  • the motor 10 may drive a corresponding mechanical load according to the type of the motor driving device, for example, when the motor driving device is a blower, the load driven by the motor 10 is a fan, and when the motor driving device is a lathe device The load driven by the motor 10 is a lathe rail, a belt, and the like.
  • the motor 10 can be divided into a servo motor, a stepper motor, a torque motor, a switched reluctance motor, a brushless DC motor, a DC motor, an asynchronous motor, a synchronous motor, etc.
  • the servo motor is widely used in various control systems, which can convert the input voltage signal into the mechanical output on the motor shaft and drag the controlled component, so as to achieve the control purpose.
  • the stepping motor is mainly used in the field of CNC machine tool manufacturing.
  • the stepping motor does not require A/D conversion, and can directly convert the digital pulse signal into angular displacement.
  • stepper motors can also be used in other machines, such as motors in automatic feeders, motors for universal floppy disk drives, and printers and plotters.
  • the asynchronous motor has the advantages of simple structure, convenient manufacture, use and maintenance, reliable operation, low quality and low cost.
  • Asynchronous motors are mainly widely used to drive machine tools, water pumps, blowers, compressors, hoisting winches, mining machinery, light industry machinery, agricultural and sideline product processing machinery, and most industrial and agricultural production machinery as well as household appliances and medical equipment. There are also many applications in household appliances, such as electric fans, refrigerators, air conditioners, and vacuum cleaners. Synchronous motors are mainly used in large-scale machinery, such as blowers, water pumps, ball mills, compressors, steel rolling mills, and small and micro-instrumentation equipment or as control elements. In addition, they can also be used as cameras to transfer inductive or capacitive reactive power to the power grid power.
  • the speed of the motor is related to the frequency of the power supply and the number of motor pole pairs. The higher the frequency of the power supply, the fewer the motor pole pairs, and the higher the speed.
  • the speed of the motor is also related to the current flowing through the motor coil. The larger the current, the closer the speed is to the speed of the synchronous motor of the same specification.
  • the rated speed is calibrated on the motor 10. The rated speed is the speed of the motor under the rated magnetic flux, at this time the rated electromotive force is equal to the rated voltage. Therefore, under the rated flux, the speed of the motor increases from zero to the rated speed, and the electromotive force increases from zero to the rated voltage.
  • the electromotive force cannot exceed the rated voltage. Therefore, under the rated flux, the motor cannot exceed the rated speed. In order to prevent the electromotive force from exceeding the rated limit, the magnetic flux becomes smaller when the rotational speed exceeds the rated rotational speed.
  • the speed measuring encoder 20 is connected to the motor 10, and is used to convert the displacement into a periodic signal, and then converts this electrical signal into a count pulse, and indicates the magnitude of the displacement according to the number of count pulses.
  • the speed measuring encoder 20 may be an incremental encoder, a photoelectric encoder, a Hall sensor, etc.
  • the rotation of the motor 10 drives the speed measuring encoder 20. Each time the motor 10 rotates, it outputs N speed measurement pulses. , Generally use PLC high-speed counting unit for pulse counting.
  • the commonly used digital rotational speed measurement methods of the speed measuring encoder 20 include an M method (frequency method), a T method (period method), and an M/T (frequency/period method).
  • the speed measuring encoder 20 is used when the motor 10 is at a high speed or a medium speed, combined with the M method (frequency method), T method (period method), or M/T ( Frequency/period method) measurement, in the case of low speed or ultra low speed, the rotation speed measurement of the motor 10 is switched to the FPGA module 40.
  • the signal conditioning circuit 30 is connected to the speed measuring encoder 20 and is used to adaptively select a measurement channel for the motor 10, which includes a speed measuring encoder 20 or an FPGA module 40.
  • the FPGA module 40 is connected to the signal conditioning circuit 30.
  • the FPGA module 40 includes an FPGA chip 401, a crystal oscillator 402, a clock counter 403, a first time node counter 404, a second time node counter 405, and a third time node counter 406, a fourth time node counter 407, a first unclear counter 408, a second unclear counter 409, a third unclear counter 410, and a controller 411.
  • the FPGA chip 401 and the signal conditioning circuit 30, the crystal oscillator 402, the clock counter 403, the first time node counter 404, the second time node counter 405, the third time node counter 406, the fourth time node counter 407 The first unclear counter 408, the second unclear counter 409, the third unclear counter 410 and the controller 411 are connected.
  • the FPGA chip 401 is used to acquire the speed measuring encoder pulse, sample the speed measuring encoder pulse at a preset sampling period, and determine the counter according to the number of pulses in the target sampling period, according to the The counter calculates the number of pulses in the target sampling period and the time of the target sampling period, and calculates the motor speed according to the number of pulses in the target sampling period and the time of the target sampling period.
  • the crystal oscillator 402 is a quartz crystal oscillator, which cooperates with other components to generate a standard pulse signal with a specific frequency and pulse width.
  • the first time node counter 404 is used to trigger clearing when the first preset sampling period arrives, stop counting when the first transition edge arrives, and record the first count pulse t1.
  • the second time node counter 405, the third time node counter 406, and the fourth time node counter 407 are used to update the value whenever a pulse arrives, and record the second count pulse t2, the third count pulse t3, and the fourth count, respectively Pulse t4. It should be noted that the second time node counter 405, the third time node counter 406, and the fourth time node counter 407 are rolling refreshed, and the value is refreshed when a pulse edge comes. For example, the rising edge of a pulse corresponding to a high level corresponds to the third time node counter 406, then the falling edge of the pulse corresponds to the fourth time node counter 407, and the length of the pulse is equal to the fourth count pulse t4 minus Go to the third count pulse t3.
  • the first unclear counter 408, the second unclear counter 409 and the third unclear counter 410 are used to update the value whenever a pulse arrives, and record the fifth count pulse t5, the sixth count pulse t6 and The seventh count pulse t7. That is, the fifth count pulse t5 of the previous preset sampling period differs from the fifth count pulse t5 of the next preset sampling period by a length corresponding to a preset sampling period, that is, the period count pulse T. Wherein, the fifth count pulse t5 is not greater than the sixth count pulse t6, the sixth count pulse t6 is not greater than the seventh count pulse t7, and the seventh count pulse t7 is not greater than the period count pulse T.
  • the controller 411 may be a microprocessor, a pulse width modulation module, a digital signal processor, a single-chip computer, a central processor, or the like.
  • the second unclear counter 409 and the third unclear counter 410 may be integrated inside the FPGA chip 401.
  • the motor speed measuring system acquires the speed measuring encoder pulse, samples the speed measuring encoder pulse at a preset sampling period, determines a counter according to the number of pulses in the target sampling period, and calculates according to the counter
  • the number of pulses in the target sampling period and the time of the target sampling period are calculated according to the number of pulses in the target sampling period and the time of the target sampling period.
  • the present application realizes motor speed measurement at ultra-low speed, and improves the motor speed measurement accuracy at low speed.
  • FIG. 2 is a flowchart of a method for measuring a low-speed motor according to an embodiment of the present application. As shown in FIG. 2, the method includes:
  • the current waveform of the motor rotation output is a continuous analog quantity, which is triggered in advance by the pulse width modulation module to convert the motor rotation output into a series of pulse signals of equal amplitude with corresponding frequencies.
  • S102 Sampling the pulse of the speed measuring encoder with a preset sampling period.
  • the preset sampling period Tt is 100us, and the processed motor speed waveform is sampled.
  • S103 Determine the counter according to the number of pulses in the target sampling period.
  • the counter When the number of pulses in the target sampling period is greater than or equal to 2, the counter includes a clock counter 403, a first time node counter 404, a second time node counter 405, a third time node counter 406, and a fourth time node counter 407. That is, when the number of pulses in the target sampling period is greater than or equal to 2, the clock counter 403, the first time node counter 404, the second time node counter 405, the third time node counter 406, and the fourth time node are gated The counter 407 turns off the first unclear counter 408, the second unclear counter 409, and the third unclear counter 410.
  • the counter When the number of pulses in the target sampling period is less than 2, the counter includes a clock counter 403, a first unclear counter 408, a second unclear counter 409, and a third unclear counter 410. That is, when the number of pulses in the target sampling period is less than 2, the clock counter 403, the first unclear counter 408, the second unclear counter 409, and the third unclear counter 410 are gated off The first time node counter 404, the second time node counter 405, the third time node counter 406, and the fourth time node counter 407.
  • S104 Calculate the number of pulses in the target sampling period and the time of the target sampling period according to the counter.
  • the calculating the number of pulses in the target sampling period and the time of the target sampling period according to the counter includes:
  • the counter obtain the complete pulse number Mn in the target sampling period and the complete pulse number Mn in the target sampling period, the length Tm of the previous pulse; and, calculate the first in the target sampling period The length of the incomplete pulse tn1, the length of the last incomplete pulse in the target sampling period tn2, the length of the last complete pulse in the target sampling period Tn, the length of the penultimate complete pulse in the target sampling period Tn-1 and the complete pulse number Mn in the target sampling period and the length Tn+1 of the next pulse.
  • count pulses are used to characterize the length of the pulse. Since the pulse width of each count pulse is fixed, the number of count pulses multiplied by the pulse width of a single count pulse is equal to the length of a complete or partial pulse.
  • deltaP (tn1/Tm)+(Mn)+(tn2/Tn+1)
  • calculating the number of pulses in the target sampling period and the time of the target sampling period according to the counter includes:
  • the number of complete pulses Mn in the target sampling period and the fourth count pulse t0 of the previous sampling period of the target sampling period are obtained, and the first incomplete in the target sampling period is calculated
  • the length of the pulse tn1 the length of the last incomplete pulse in the target sampling period tn2
  • the length of the last complete pulse in the target sampling period Tn the length of the penultimate complete pulse in the target sampling period Tn- 1 and the length Tn+1 of one pulse after the complete number of pulses Mn in the target sampling period.
  • the number of pulses in the target sampling period is equal to 2
  • the number of complete pulses Mn in the target sampling period is 1.
  • deltaP (tn1/Tm)+(Mn)+(tn2/Tn+1)
  • the time deltaT of the target sampling period is equal to that of the preset sampling period time.
  • the number of pulses in the target sampling period deltaP [t3/(t3+T-t0)]+(Mn)+[T-t4/(2t4-3t3-T+t0)].
  • calculating the number of pulses in the target sampling period and the time of the target sampling period according to the counter includes:
  • the time deltaT of the target sampling period is the time corresponding to the current sampling period.
  • the first unclear counter 408, the second unclear counter 409, and the third unclear counter 410 scroll to update the value, as long as the current
  • the pulse flag is represented by IntCount
  • the stop flag is represented by ZeroFlag.
  • the pulse flag IntCount is increased by 1, and each time the target sampling period includes at least one pulse At this time, the pulse flag IntCount is cleared to 0.
  • Set the preset threshold to 10. If the pulse mark IntCount is greater than 10, it means that there is no pulse for more than 10 consecutive sampling periods.
  • S105 Calculate the motor speed according to the number of pulses in the target sampling period and the time of the target sampling period.
  • the method for measuring a low speed of a motor acquires a pulse of a speed measuring encoder, samples the pulse of the speed measuring encoder at a preset sampling period, determines a counter according to the number of pulses in the target sampling period, and according to the counter, Calculate the number of pulses in the target sampling period and the time of the target sampling period, and calculate the motor speed according to the number of pulses in the target sampling period and the time of the target sampling period.
  • the present application realizes motor speed measurement at ultra-low speed, and improves the motor speed measurement accuracy at low speed.

Abstract

一种电机低速测量方法,包括:获取测速编码器脉冲(S101);以预设采样周期对测速编码器脉冲进行采样(S102);根据目标采样周期内的脉冲个数,确定计数器(S103);根据计数器,计算目标采样周期内的脉冲个数和目标采样周期的时间(S104);根据目标采样周期内的脉冲个数和目标采样周期的时间,计算电机转速(S105)。还公开一种电机测速系统。该方法和系统实现了超低速下的电机测速,提高了低速时的电机测速精度。

Description

一种电机低速测量方法及电机测速系统
本申请要求于2018年12月29日提交中国专利局,申请号为2018116362180,发明名称为“一种电机低速测量方法及电机测速系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电机测速领域,特别是涉及一种电机低速测量方法及电机测速系统。
背景技术
电机转动产生的直线位移或者角位移,电机在电路中主要的作用是产生驱动扭矩,作为电机测速系统或者用电器械的动力来源。在电机的控制中,电机转速的控制是非常重要的环节,电机转速测量的精确度决定了电机控制的精度,通常采用增量编码器进行电机测速。
发明人在实现本申请的过程中,发现相关技术存在以下问题:目前,电机转速测量多采用M法、T法或M/T法,一般高速使用M法测速,低速采用T法测速。但是,在电机低速运转时,采用T法测速会引入较大的误差,在电机超低速(采样周期内无明显脉冲变化)运转时,M法、T法或M/T法都无法测量到其对应的当前转速。
发明内容
本申请实施例提供了一种电机低速测量方法及电机测速系统,其实现了超低速下的电机测速,提高了低速时的电机测速精度。
为解决上述技术问题,本申请实施方式采用的一个技术方案是:
在第一方面,本申请的实施例公开了一种电机低速测量方法,包括:
获取测速编码器脉冲;
以预设采样周期对所述测速编码器脉冲进行采样;
根据目标采样周期内的脉冲个数,确定计数器;
根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间;
根据目标采样周期内的脉冲个数和所述目标采样周期的时间,计算电机转速。
可选地,所述根据目标采样周期内的脉冲个数,确定计数器包括:
当所述目标采样周期内脉冲个数大于或等于2时,所述计数器包括时钟计数器、第一时间节点计数器、第二时间节点计数器、第三时间节点计数器以及第四时间节点计数器;
所述时钟计数器用于在第一个所述预设采样周期到达时触发清零,根据预设时钟频率触发脉冲计数,记录周期计数脉冲T;所述第一时间节点计数器用于在第一个预设采样周期到达时触发清零,到第一个跳变沿到来时停止计数,记录第一计数脉冲t1;所述第二时间节点计数器、第三时间节点计数器以及第四时间节点计数器用于每当有脉冲到来时更新数值,分别记录第二计数脉冲t2、第三计数脉冲t3以及第四计数脉冲t4;
其中,所述第二计数脉冲t2不大于所述第三计数脉冲t3,所述第三计数脉冲t3不大于所述第四计数脉冲t4,所述第四计数脉冲t4不大于所述周期计数脉冲T。
可选地,当所述目标采样周期内的脉冲个数不低于3时,所述根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,包括:
根据所述计数器,获取所述目标采样周期内完整的脉冲个数Mn与所述目标采样周期内完整的脉冲个数Mn前一个脉冲的长度Tm;以及,计算所述目标采样周期内第一个非完整脉冲的长度tn1、所述目标采样周期内最后一个非完整脉冲的长度tn2、所述目标采样周期内最后一个完整脉冲的长度Tn、所述目标采样周期内倒数第二个完整脉冲的长度Tn-1以及所述目标采样周期内完整的脉冲个数Mn后一个脉冲的长度Tn+1;
其中,tn1=t1;tn2=T-t4;Tn=t4-t3;Tn-1=t3-t2;Tn+1= Tn+(Tn-Tn-1)=t2+2*t4–3*t3;
根据deltaP=(tn1/Tm)+(Mn)+(tn2/Tn+1),计算所述目标采样周期内的脉冲个数deltaP,所述目标采样周期的时间deltaT等于所述预设采样周期的时间。
可选地,所述根据目标采样周期内的脉冲个数和所述目标采样周期的时间,计算电机转速,包括:
根据v=deltaP/deltaT,计算所述电机转速。
可选地,当所述目标采样周期内的脉冲个数等于2时,所述根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,包括:
根据所述计数器,获取所述目标采样周期内完整的脉冲个数Mn和所述目标采样周期的上一个采样周期的第四计数脉冲t0,以及计算得到所述目标采样周期内第一个非完整脉冲的长度tn1、所述目标采样周期内最后一个非完整脉冲的长度tn2、所述目标采样周期内最后一个完整脉冲的长度Tn、所述目标采样周期内倒数第二个完整脉冲的长度Tn-1以及所述目标采样周期内完整的脉冲个数Mn后一个脉冲的长度Tn+1;
其中,tn1=t3;tn2=T-t4;Tn=t4-t3;Tn-1=Tm=(t3+T-t0);Tn+1=Tn+(Tn-Tn-1)=2t4–3t3-T+t0;
根据deltaP=(tn1/Tm)+(Mn)+(tn2/Tn+1),计算所述目标采样周期内的脉冲个数deltaP,所述目标采样周期的时间deltaT等于所述预设采样周期的时间。
可选地,所述根据目标采样周期内的脉冲个数,确定计数器包括:当所述目标采样周期内脉冲个数小于2时,所述计数器包括时钟计数器、第一不清零计数器、第二不清零计数器以及第三不清零计数器;
所述第一不清零计数器、第二不清零计数器以及第三不清零计数器用于每当有脉冲到来时更新数值,分别记录第五计数脉冲t5、第六计数脉冲t6以及第七计数脉冲t7;
其中,所述第五计数脉冲t5不大于所述第六计数脉冲t6,所述第六计数脉冲t6不大于所述第七计数脉冲t7,所述第七计数脉冲t7不大 于所述周期计数脉冲T。
可选地,当所述目标采样周期内的脉冲个数等于1时,所述根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,包括:
根据所述计数器,计算所述目标采样周期内的脉冲个数deltaP=1,所述目标采样周期的时间deltaT等于所述第七计数脉冲t7减去所述第六计数脉冲t6。
可选地,当所述目标采样周期内所述完整的脉冲个数等于0时,所述方法还包括:
设置脉冲标记和停止标记,当所述停止标记置为1时,则所述电机转速为0,当所述停止标记置为0时,则所述电机转速不为0;
每当采样周期到来时,所述脉冲标记累计加1,每当所述目标采样周期内包括至少一个脉冲时,所述脉冲标记清0;
检测所述脉冲标记的数值;
若所述脉冲标记的数值大于预设阈值,则将所述停止标记置为1;
若所述脉冲标记的数值小于预设阈值,则将所述停止标记置为0;
根据v=deltaP/deltaT,计算所述电机转速。
在第二方面,本申请的实施例公开了一种电机测速系统,包括:
电机;
测速编码器,与所述电机连接;
信号调理电路,与所述测速编码器连接;
FPGA模块,与所述信号调理电路连接,用于执行上述的方法。
可选地,所述FPGA模块包括FPGA芯片、晶振、时钟计数器、第一时间节点计数器、第二时间节点计数器、第三时间节点计数器、第四时间节点计数器、第一不清零计数器、第二不清零计数器、第三不清零计数器以及控制器;
其中,所述FPGA芯片分别与所述信号调理电路、晶振、时钟计数器、第一时间节点计数器、第二时间节点计数器、第三时间节点计数器、第四时间节点计数器、第一不清零计数器、第二不清零计数器、第三不 清零计数器以及控制器连接。
本申请实施方式的有益效果是:区别于现有技术的情况,本申请实施例提供一种电机低速测量方法及电机测速系统。通过获取测速编码器脉冲,以预设采样周期对所述测速编码器脉冲进行采样,根据目标采样周期内的脉冲个数,确定计数器,根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,根据目标采样周期内的脉冲个数和所述目标采样周期的时间,计算电机转速。本申请实现了超低速下的电机测速,提高了低速时的电机测速精度。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是本申请实施例提供的一种电机测速系统的结构示意图;
图2是本申请实施例提供的一种电机低速测量方法的方法流程图;
图3是本申请实施例提供的当目标采样周期内的脉冲个数不低于3时的电机速度波形的采样序列图;
图4是本申请实施例提供的当目标采样周期内的脉冲个数等于2时的电机速度波形的采样序列图;
图5是本申请实施例提供的当目标采样周期内的脉冲个数等于1时的电机速度波形的采样序列图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
此外,下面所描述的本申请各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。
请参阅图1,为本申请实施例提供的一种电机测速系统的结构示意图。如图1所示,所述电机测速系统100包括电机10、测速编码器20、信号调理电路30以及FPGA模块40。
所述电机10安装于电机驱动设备,依据电磁感应定律将市电或者蓄电池存储的电能转换或者传递的一种电磁装置,常见的是将电能转换为机械动能,控制机械装置执行对应的操作。所述电机10可以根据电机驱动设备的类型,带动相应的机械负载,例如,当所述电机驱动设备为鼓风机时,所述电机10带动的负载为风扇,当所述电机驱动设备为车床设备时,所述电机10带动的负载为车床导轨、皮带等。所述电机10可以分为伺服电机、步进电机、力矩电机、开关磁阻电机、无刷直流电机、直流电机、异步电机、同步电机等。
其中,伺服电机广泛应用于各种控制系统中,能将输入的电压信号转换为电机轴上的机械输出量,拖动被控制元件,从而达到控制目的。步进电机主要应用在数控机床制造领域,步进电机不需要A/D转换,能够直接将数字脉冲信号转化成为角位移。除了在数控机床上的应用,步进电机也可以用在其他的机械上,比如作为自动送料机中的马达,作为通用的软盘驱动器的马达,也可以应用在打印机和绘图仪中。异步电机具有结构简单,制造、使用和维护方便,运行可靠以及质量较小,成本较低等优点。异步电机主要广泛应用于驱动机床、水泵、鼓风机、压缩机、起重卷扬设备、矿山机械、轻工机械、农副产品加工机械等大多数工农生产机械以及家用电器和医疗器械等。在家用电器中应用也比较多,例如电扇、电冰箱、空调、吸尘器等。同步电机主要用于大型机械,如鼓风机、水泵、球磨机、压缩机、轧钢机以及小型、微型仪器设备或者充当控制元件,此外,还可以当调相机使用,向电网输送电感性或者电容性无功功率。
对于同步电机来说,电机的转速与电源的频率和电机磁极对数有关,电源的频率越高,电机磁极对数越少,其转速就越高。对于异步电 机来说,电机的转速还与流过电机线圈的电流有关,电流越大,其转速就越接近同规格的同步电机的转速。一般,所述电机10上面标定额定转速。额定转速是电机在额定磁通下的转速,此时额定电动势等于额定电压。因此,在额定磁通下,电机的转速从零增加到额定转速,电动势从零增大到额定电压。为了避免过电压损害绝缘,电动势不能够超过额定电压。因此,在额定磁通下,电机不能超过额定转速。为了使电动势不超过额定限制,磁通在转速超过额定转速时会变小。
所述测速编码器20与所述电机10连接,用于将位移转换为周期性的信号,再把这个电信号转换为计数脉冲,根据计数脉冲的个数表示位移的大小。所述测速编码器20可以为增量编码器、光电编码器、霍尔传感器等,所述电机10转动带动所述测速编码器20,电机10每转动一圈,输出N个转速测量脉冲,目前,一般采用PLC高速计数单元进行脉冲计数。所述测速编码器20常用的数字式转速测量方法包括M法(频率法)、T法(周期法)以及M/T(频率/周期法)。
需要说明的是,在本实施例中,所述测速编码器20用于所述电机10在高速或中速的情况,结合M法(频率法)、T法(周期法)或M/T(频率/周期法)进行测量,在低速或者超低速的情况下,所述电机10的转速测量切换至所述FPGA模块40。
所述信号调理电路30与所述测速编码器20连接,用于为所述电机10自适应选择测量通道,其包括测速编码器20或FPGA模块40。
所述FPGA模块40与所述信号调理电路30连接,所述FPGA模块40包括FPGA芯片401、晶振402、时钟计数器403、第一时间节点计数器404、第二时间节点计数器405、第三时间节点计数器406、第四时间节点计数器407、第一不清零计数器408、第二不清零计数器409、第三不清零计数器410以及控制器411。
其中,所述FPGA芯片401分别与所述信号调理电路30、晶振402、时钟计数器403、第一时间节点计数器404、第二时间节点计数器405、第三时间节点计数器406、第四时间节点计数器407、第一不清零计数器408、第二不清零计数器409以及第三不清零计数器410以及控制器 411连接。
在本实施例中,所述FPGA芯片401用于获取测速编码器脉冲,以预设采样周期对所述测速编码器脉冲进行采样,根据目标采样周期内的脉冲个数,确定计数器,根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,根据目标采样周期内的脉冲个数和所述目标采样周期的时间,计算电机转速。
所述晶振402为石英晶体振荡器,其与其他元件配合产生标准脉冲信号,该标准脉冲信号具有特定的频率和脉宽。
所述时钟计数器403用于在第一个所述预设采样周期到达时触发清零,根据预设时钟频率触发脉冲计数,记录周期计数脉冲T。例如,若预设采样周期为100us,所述时钟计数器403在到达100us时,触发清零,之后开始以100MHz的时钟频率触发脉冲计数,那么,在一个预设采样周期内的周期计数脉冲T等于100*10 ˉ6/(1/100*10 6)=10000个计数脉冲。
所述第一时间节点计数器404用于在第一个预设采样周期到达时触发清零,到第一个跳变沿到来时停止计数,记录第一计数脉冲t1。
所述第二时间节点计数器405、第三时间节点计数器406以及第四时间节点计数器407用于每当有脉冲到来时更新数值,分别记录第二计数脉冲t2、第三计数脉冲t3以及第四计数脉冲t4。需要说明的是,所述第二时间节点计数器405、第三时间节点计数器406以及第四时间节点计数器407是滚动刷新的,在有脉冲沿到来时刷新数值。例如,一个高电平对应的脉冲的上升沿对应所述第三时间节点计数器406,那么,该脉冲的下降沿对应所述第四时间节点计数器407,该脉冲的长度等于第四计数脉冲t4减去第三计数脉冲t3。
其中,所述第二计数脉冲t2不大于所述第三计数脉冲t3,所述第三计数脉冲t3不大于所述第四计数脉冲t4,所述第四计数脉冲t4不大于所述周期计数脉冲T。即t2<=t3<=t4<=T,可以理解,所述第三计数脉冲t3相较于所述第二计数脉冲t2相差一个脉冲沿对应的脉冲的长度,所述第四计数脉冲t4相较于所述第三计数脉冲t3相差一个脉冲沿 对应的脉冲的长度。
所述第一不清零计数器408、第二不清零计数器409以及第三不清零计数器410用于每当有脉冲到来时更新数值,分别记录第五计数脉冲t5、第六计数脉冲t6以及第七计数脉冲t7。即上一个预设采样周期的第五计数脉冲t5与下一个预设采样周期的第五计数脉冲t5相差一个预设采样周期对应的长度,即周期计数脉冲T。其中,所述第五计数脉冲t5不大于所述第六计数脉冲t6,所述第六计数脉冲t6不大于所述第七计数脉冲t7,所述第七计数脉冲t7不大于所述周期计数脉冲T。
所述控制器411可以是微处理器、脉宽调制模块、数字信号处理器、单片机、中央处理器等。
在一些实施例中,所述晶振402、时钟计数器403、第一时间节点计数器404、第二时间节点计数器405、第三时间节点计数器406、第四时间节点计数器407、第一不清零计数器408、第二不清零计数器409、第三不清零计数器410可以集成在所述FPGA芯片401内部。
本申请实施例提供的电机测速系统通过获取测速编码器脉冲,以预设采样周期对所述测速编码器脉冲进行采样,根据目标采样周期内的脉冲个数,确定计数器,根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,根据目标采样周期内的脉冲个数和所述目标采样周期的时间,计算电机转速。本申请实现了超低速下的电机测速,提高了低速时的电机测速精度。
请参阅图2,为本申请实施例提供的一种电机低速测量方法的方法流程图。如图2所示,所述方法包括:
S101:获取测速编码器脉冲。
电机转动输出的电流波形为连续的模拟量,通过脉宽调制模块提前触发,将电机转动输出转化为对应频率的一系列幅值相等的脉冲信号。
S102:以预设采样周期对所述测速编码器脉冲进行采样。
在本实施例中,所述预设采样周期Tt为100us,对处理后的电机速度波形进行采样。
S103:根据目标采样周期内的脉冲个数,确定计数器。
当所述目标采样周期内脉冲个数大于或等于2时,所述计数器包括时钟计数器403、第一时间节点计数器404、第二时间节点计数器405、第三时间节点计数器406以及第四时间节点计数器407。即当所述目标采样周期内脉冲个数大于或等于2时,选通所述时钟计数器403、第一时间节点计数器404、第二时间节点计数器405、第三时间节点计数器406以及第四时间节点计数器407,关闭第一不清零计数器408、第二不清零计数器409以及第三不清零计数器410。
当所述目标采样周期内脉冲个数小于2时,所述计数器包括时钟计数器403、第一不清零计数器408、第二不清零计数器409以及第三不清零计数器410。即当所述目标采样周期内脉冲个数小于2时,选通所述时钟计数器403、第一不清零计数器408、第二不清零计数器409以及第三不清零计数器410,关闭所述第一时间节点计数器404、第二时间节点计数器405、第三时间节点计数器406以及第四时间节点计数器407。
S104:根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间。
如图3所示,当所述目标采样周期内的脉冲个数不低于3时,所述根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,包括:
根据所述计数器,获取所述目标采样周期内完整的脉冲个数Mn与所述目标采样周期内完整的脉冲个数Mn前一个脉冲的长度Tm;以及,计算所述目标采样周期内第一个非完整脉冲的长度tn1、所述目标采样周期内最后一个非完整脉冲的长度tn2、所述目标采样周期内最后一个完整脉冲的长度Tn、所述目标采样周期内倒数第二个完整脉冲的长度Tn-1以及所述目标采样周期内完整的脉冲个数Mn后一个脉冲的长度Tn+1。其中,tn1=t1;tn2=T-t4;Tn=t4-t3;Tn-1=t3-t2;Tn+1=Tn+(Tn-Tn-1)=t2+2*t4–3*t3。
在本实施例中,用计数脉冲表征脉冲的长度,由于每一个计数脉冲的脉宽是固定的,计数脉冲的个数乘以单个计数脉冲的脉宽等于一个完 整或者部分脉冲的长度。
根据deltaP=(tn1/Tm)+(Mn)+(tn2/Tn+1),计算所述目标采样周期内的脉冲个数deltaP,所述目标采样周期的时间deltaT等于所述预设采样周期的时间。再根据前述计算结果,所述目标采样周期内的脉冲个数deltaP=(t1/Tm)+(Mn)+[T-t4/(t2+2*t4–3*t3)]。
如图4所示,当所述目标采样周期内的脉冲个数等于2时,所述根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,包括:
根据所述计数器,获取所述目标采样周期内完整的脉冲个数Mn和所述目标采样周期的上一个采样周期的第四计数脉冲t0,以及计算得到所述目标采样周期内第一个非完整脉冲的长度tn1、所述目标采样周期内最后一个非完整脉冲的长度tn2、所述目标采样周期内最后一个完整脉冲的长度Tn、所述目标采样周期内倒数第二个完整脉冲的长度Tn-1以及所述目标采样周期内完整的脉冲个数Mn后一个脉冲的长度Tn+1。其中,tn1=t3;tn2=T-t4;Tn=t4-t3;Tn-1=Tm=(t3+T-t0);Tn+1=Tn+(Tn-Tn-1)=2t4–3t3-T+t0。
需要说明的是,当所述目标采样周期内的脉冲个数等于2时,仅关注最后一个脉冲即可,此时,所述目标采样周期内完整的脉冲个数Mn为1。根据deltaP=(tn1/Tm)+(Mn)+(tn2/Tn+1),计算所述目标采样周期内的脉冲个数deltaP,所述目标采样周期的时间deltaT等于所述预设采样周期的时间。再根据前述计算结果,所述目标采样周期内的脉冲个数deltaP=[t3/(t3+T-t0)]+(Mn)+[T-t4/(2t4–3t3-T+t0)]。
如图5所示,当所述目标采样周期内的脉冲个数等于1时,所述根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,包括:
根据所述计数器,计算所述目标采样周期内的脉冲个数deltaP=1,所述目标采样周期的时间deltaT等于所述第七计数脉冲t7减去所述第六计数脉冲t6。
可以理解,所述目标采样周期的时间deltaT为当前采样周期对应的时间,当第一不清零计数器408、第二不清零计数器409以及第三不清零计数器410滚动更新数值,只要关注当前采样周期最后一个脉冲的长度即可,当前采样周期最后一个脉冲的长度deltaT=t7-t6。
当所述目标采样周期内所述完整的脉冲个数等于0时,所述方法还包括:设置脉冲标记和停止标记,当所述停止标记置为1时,则所述电机转速为0,当所述停止标记置为0时,则所述电机转速不为0;每当采样周期到来时,所述脉冲标记累计加1,每当所述目标采样周期内包括至少一个脉冲时,所述脉冲标记清0;检测所述脉冲标记的数值;若所述脉冲标记的数值大于预设阈值,则将所述停止标记置为1;若所述脉冲标记的数值小于预设阈值,则将所述停止标记置为0;根据v=deltaP/deltaT,计算所述电机转速。
具体的,在本实施例中,所述脉冲标记用IntCount表示,所述停止标记用ZeroFlag表示,每当采样周期到来时,脉冲标记IntCount加1,每当所述目标采样周期内包括至少一个脉冲时,所述脉冲标记IntCount清0。设置预设阈值为10,若脉冲标记IntCount大于10,则表示超过连续的10个采样周期没有脉冲,此时,将停止标记ZeroFlag置为1,表示电机的转速为0。若停止标记ZeroFlag等于0,则根据v=deltaP/deltaT,计算所述电机转速。
S105:根据目标采样周期内的脉冲个数和所述目标采样周期的时间,计算电机转速。
所述根据目标采样周期内的脉冲个数和所述目标采样周期的时间,计算电机转速,包括:根据v=deltaP/deltaT,计算所述电机转速。
本申请实施例提供的电机低速测量方法通过获取测速编码器脉冲,以预设采样周期对所述测速编码器脉冲进行采样,根据目标采样周期内的脉冲个数,确定计数器,根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,根据目标采样周期内的脉冲个数和所述目标采样周期的时间,计算电机转速。本申请实现了超低速下的电机测速,提高了低速时的电机测速精度。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (10)

  1. 一种电机低速测量方法,其特征在于,包括:
    获取测速编码器脉冲;以预设采样周期对所述测速编码器脉冲进行采样;
    根据目标采样周期内的脉冲个数,确定计数器;
    根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间;
    根据目标采样周期内的脉冲个数和所述目标采样周期的时间,计算电机转速。
  2. 根据权利要求1所述的方法,其特征在于,所述根据目标采样周期内的脉冲个数,确定计数器包括:
    当所述目标采样周期内脉冲个数大于或等于2时,所述计数器包括时钟计数器、第一时间节点计数器、第二时间节点计数器、第三时间节点计数器以及第四时间节点计数器;
    所述时钟计数器用于在第一个所述预设采样周期到达时触发清零,根据预设时钟频率触发脉冲计数,记录周期计数脉冲T;所述第一时间节点计数器用于在第一个预设采样周期到达时触发清零,到第一个跳变沿到来时停止计数,记录第一计数脉冲t1;所述第二时间节点计数器、第三时间节点计数器以及第四时间节点计数器用于每当有脉冲到来时更新数值,分别记录第二计数脉冲t2、第三计数脉冲t3以及第四计数脉冲t4;
    其中,所述第二计数脉冲t2不大于所述第三计数脉冲t3,所述第三计数脉冲t3不大于所述第四计数脉冲t4,所述第四计数脉冲t4不大于所述周期计数脉冲T。
  3. 根据权利要求2所述的方法,其特征在于,
    当所述目标采样周期内的脉冲个数不低于3时,所述根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,包括:
    根据所述计数器,获取所述目标采样周期内完整的脉冲个数Mn与 所述目标采样周期内完整的脉冲个数Mn前一个脉冲的长度Tm;以及,计算所述目标采样周期内第一个非完整脉冲的长度tn1、所述目标采样周期内最后一个非完整脉冲的长度tn2、所述目标采样周期内最后一个完整脉冲的长度Tn、所述目标采样周期内倒数第二个完整脉冲的长度Tn-1以及所述目标采样周期内完整的脉冲个数Mn后一个脉冲的长度Tn+1;
    其中,tn1=t1;tn2=T-t4;Tn=t4-t3;Tn-1=t3-t2;Tn+1=Tn+(Tn-Tn-1)=t2+2*t4–3*t3;
    根据deltaP=(tn1/Tm)+(Mn)+(tn2/Tn+1),计算所述目标采样周期内的脉冲个数deltaP,所述目标采样周期的时间deltaT等于所述预设采样周期的时间。
  4. 根据权利要求3所述的方法,其特征在于,所述根据目标采样周期内的脉冲个数和所述目标采样周期的时间,计算电机转速,包括:
    根据v=deltaP/deltaT,计算所述电机转速。
  5. 根据权利要求2所述的方法,其特征在于,
    当所述目标采样周期内的脉冲个数等于2时,所述根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,包括:
    根据所述计数器,获取所述目标采样周期内完整的脉冲个数Mn和所述目标采样周期的上一个采样周期的第四计数脉冲t0,以及计算得到所述目标采样周期内第一个非完整脉冲的长度tn1、所述目标采样周期内最后一个非完整脉冲的长度tn2、所述目标采样周期内最后一个完整脉冲的长度Tn、所述目标采样周期内倒数第二个完整脉冲的长度Tn-1以及所述目标采样周期内完整的脉冲个数Mn后一个脉冲的长度Tn+1;
    其中,tn1=t3;tn2=T-t4;Tn=t4-t3;Tn-1=Tm=(t3+T-t0);Tn+1=Tn+(Tn-Tn-1)=2t4–3t3-T+t0;
    根据deltaP=(tn1/Tm)+(Mn)+(tn2/Tn+1),计算所述目标采样周期内的脉冲个数deltaP,所述目标采样周期的时间deltaT等于所述预设采样周期的时间。
  6. 根据权利要求1所述的方法,其特征在于,所述根据目标采样 周期内的脉冲个数,确定计数器包括:
    当所述目标采样周期内脉冲个数小于2时,所述计数器包括时钟计数器、第一不清零计数器、第二不清零计数器以及第三不清零计数器;
    所述第一不清零计数器、第二不清零计数器以及第三不清零计数器用于每当有脉冲到来时更新数值,分别记录第五计数脉冲t5、第六计数脉冲t6以及第七计数脉冲t7;
    其中,所述第五计数脉冲t5不大于所述第六计数脉冲t6,所述第六计数脉冲t6不大于所述第七计数脉冲t7,所述第七计数脉冲t7不大于所述周期计数脉冲T。
  7. 根据权利要求6所述的方法,其特征在于,
    当所述目标采样周期内的脉冲个数等于1时,所述根据所述计数器,计算目标采样周期内的脉冲个数和所述目标采样周期的时间,包括:
    根据所述计数器,计算所述目标采样周期内的脉冲个数deltaP=1,所述目标采样周期的时间deltaT等于所述第七计数脉冲t7减去所述第六计数脉冲t6。
  8. 根据权利要求7所述的方法,其特征在于,
    当所述目标采样周期内所述完整的脉冲个数等于0时,所述方法还包括:
    设置脉冲标记和停止标记,当所述停止标记置为1时,则所述电机转速为0,当所述停止标记置为0时,则所述电机转速不为0;
    每当采样周期到来时,所述脉冲标记累计加1,每当所述目标采样周期内包括至少一个脉冲时,所述脉冲标记清0;
    检测所述脉冲标记的数值;
    若所述脉冲标记的数值大于预设阈值,则将所述停止标记置为1;
    若所述脉冲标记的数值小于预设阈值,则将所述停止标记置为0;
    根据v=deltaP/deltaT,计算所述电机转速。
  9. 一种电机测速系统,其特征在于,包括:
    电机;
    测速编码器,与所述电机连接;
    信号调理电路,与所述测速编码器连接;
    FPGA模块,与所述信号调理电路连接,用于执行权利要求1-8任一项所述的方法。
  10. 根据权利要求9所述的系统,其特征在于,所述FPGA模块包括FPGA芯片、晶振、时钟计数器、第一时间节点计数器、第二时间节点计数器、第三时间节点计数器、第四时间节点计数器、第一不清零计数器、第二不清零计数器、第三不清零计数器以及控制器;
    其中,所述FPGA芯片分别与所述信号调理电路、晶振、时钟计数器、第一时间节点计数器、第二时间节点计数器、第三时间节点计数器、第四时间节点计数器、第一不清零计数器、第二不清零计数器、第三不清零计数器以及控制器连接。
PCT/CN2019/128766 2018-12-29 2019-12-26 一种电机低速测量方法及电机测速系统 WO2020135603A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811636218.0A CN109682987A (zh) 2018-12-29 2018-12-29 一种电机低速测量方法及电机测速系统
CN201811636218.0 2018-12-29

Publications (1)

Publication Number Publication Date
WO2020135603A1 true WO2020135603A1 (zh) 2020-07-02

Family

ID=66191205

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/128766 WO2020135603A1 (zh) 2018-12-29 2019-12-26 一种电机低速测量方法及电机测速系统

Country Status (2)

Country Link
CN (1) CN109682987A (zh)
WO (1) WO2020135603A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269030B (zh) * 2020-10-30 2023-02-28 上海易咖智车科技有限公司 一种轮速信号处理方法、装置、设备及存储介质
CN113844499B (zh) * 2021-08-31 2023-09-26 通号城市轨道交通技术有限公司 列车自动驾驶系统ato测速方法及系统

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6474088A (en) * 1987-09-10 1989-03-20 Tsutomu Konishi Low speed detection system of motor
US4885710A (en) * 1987-06-25 1989-12-05 Delco Electronics Corporation Method and apparatus for low speed estimation
JPH05188067A (ja) * 1992-01-14 1993-07-27 Kobe Steel Ltd サーボモータの速度検出装置
JPH05188066A (ja) * 1992-01-14 1993-07-27 Kobe Steel Ltd サーボモータの速度検出装置
JP2000227437A (ja) * 1999-02-08 2000-08-15 Hitachi Ltd 回転速度検出装置
US6591200B1 (en) * 1998-06-16 2003-07-08 M.E.A. Motor Inspection Ltd. Method and system for performance testing of rotating machines
DE10359897A1 (de) * 2002-12-20 2004-07-22 Koyo Steering Europe (K.S.E.) System zur Erfassung einer sehr niedrigen Geschwindigkeit eines Kraftfahrzeugs
JP2007303844A (ja) * 2006-05-08 2007-11-22 Kohei Onishi 同期計数方法、同期計数プログラム並びに同期計数装置
CN101893457A (zh) * 2010-06-22 2010-11-24 南京航空航天大学 连续运动高精度全参数检测方法
CN102035455A (zh) * 2010-11-30 2011-04-27 中冶南方(武汉)自动化有限公司 一种变频器m/t测速方法
CN102914665A (zh) * 2012-09-25 2013-02-06 上海交通大学 电机转速测量和故障状态检测系统
CN103175979A (zh) * 2011-12-21 2013-06-26 北大方正集团有限公司 印刷设备的机械平台速度的检测方法和装置
CN103558407A (zh) * 2013-09-30 2014-02-05 天津瑞能电气有限公司 一种基于dsp正交编码的实时低速检测装置及方法
CN105738642A (zh) * 2016-02-03 2016-07-06 上海新源工业控制技术有限公司 一种四路并行采样的t法电机测速方法
CN106645780A (zh) * 2016-12-28 2017-05-10 深圳市英威腾电气股份有限公司 一种基于dsp的转速检测方法及系统
CN108181482A (zh) * 2017-12-29 2018-06-19 天津瑞能电气有限公司 基于虚拟正弦波的实时低速检测装置
CN108226560A (zh) * 2016-12-21 2018-06-29 杭州海康威视数字技术股份有限公司 一种获取电机低转速角速度的方法及装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3942124B2 (ja) * 1998-03-13 2007-07-11 東洋電機製造株式会社 パルス計数器
JP2005249620A (ja) * 2004-03-05 2005-09-15 Mitsubishi Electric Corp 回転数検出装置
CN1300590C (zh) * 2004-05-18 2007-02-14 桂林星辰电力电子有限公司 电机低速运行时使用脉冲编码器的测速方法
CN100443898C (zh) * 2007-02-06 2008-12-17 鲁东大学 一种利用转速测量装置测量旋转轴转速的方法
CN102323786B (zh) * 2011-07-01 2013-06-19 广西工学院 Arm+fpga组成的定时器装置及其实现方法
CN102590544A (zh) * 2012-03-14 2012-07-18 南京埃斯顿自动控制技术有限公司 一种伺服电机低速运行时的测速方法及装置
CN103033640B (zh) * 2012-12-04 2014-12-10 中国北方车辆研究所 一种运用fpga进行车速实时检测的方法
CN106932604A (zh) * 2017-03-09 2017-07-07 上海禹超电气有限公司 电机实时测速方法及系统
CN108535507B (zh) * 2018-02-08 2021-05-04 威科达(东莞)智能控制有限公司 用于增量式编码器测速的计算机存储介质

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4885710A (en) * 1987-06-25 1989-12-05 Delco Electronics Corporation Method and apparatus for low speed estimation
JPS6474088A (en) * 1987-09-10 1989-03-20 Tsutomu Konishi Low speed detection system of motor
JPH05188067A (ja) * 1992-01-14 1993-07-27 Kobe Steel Ltd サーボモータの速度検出装置
JPH05188066A (ja) * 1992-01-14 1993-07-27 Kobe Steel Ltd サーボモータの速度検出装置
US6591200B1 (en) * 1998-06-16 2003-07-08 M.E.A. Motor Inspection Ltd. Method and system for performance testing of rotating machines
JP2000227437A (ja) * 1999-02-08 2000-08-15 Hitachi Ltd 回転速度検出装置
DE10359897A1 (de) * 2002-12-20 2004-07-22 Koyo Steering Europe (K.S.E.) System zur Erfassung einer sehr niedrigen Geschwindigkeit eines Kraftfahrzeugs
JP2007303844A (ja) * 2006-05-08 2007-11-22 Kohei Onishi 同期計数方法、同期計数プログラム並びに同期計数装置
CN101893457A (zh) * 2010-06-22 2010-11-24 南京航空航天大学 连续运动高精度全参数检测方法
CN102035455A (zh) * 2010-11-30 2011-04-27 中冶南方(武汉)自动化有限公司 一种变频器m/t测速方法
CN103175979A (zh) * 2011-12-21 2013-06-26 北大方正集团有限公司 印刷设备的机械平台速度的检测方法和装置
CN102914665A (zh) * 2012-09-25 2013-02-06 上海交通大学 电机转速测量和故障状态检测系统
CN103558407A (zh) * 2013-09-30 2014-02-05 天津瑞能电气有限公司 一种基于dsp正交编码的实时低速检测装置及方法
CN105738642A (zh) * 2016-02-03 2016-07-06 上海新源工业控制技术有限公司 一种四路并行采样的t法电机测速方法
CN108226560A (zh) * 2016-12-21 2018-06-29 杭州海康威视数字技术股份有限公司 一种获取电机低转速角速度的方法及装置
CN106645780A (zh) * 2016-12-28 2017-05-10 深圳市英威腾电气股份有限公司 一种基于dsp的转速检测方法及系统
CN108181482A (zh) * 2017-12-29 2018-06-19 天津瑞能电气有限公司 基于虚拟正弦波的实时低速检测装置

Also Published As

Publication number Publication date
CN109682987A (zh) 2019-04-26

Similar Documents

Publication Publication Date Title
WO2020135603A1 (zh) 一种电机低速测量方法及电机测速系统
CN108540034B (zh) 一种永磁同步电机无传感器控制相位补偿方法及装置
CN109001629B (zh) 一种电机的反电动势测试方法
CN100454749C (zh) 用于控制无刷直流电机的装置和方法
CN201754551U (zh) 直流无刷电机及其控制系统
CN109617479A (zh) 一种低压大电流伺服驱动器
CN208028799U (zh) 无刷电机控制装置
CN109713953B (zh) 单相bldc电机无位置驱动装置
CN201349192Y (zh) 同步电动机转子位置测量与速度测控装置
CN106452214B (zh) 直流无刷电机的换相控制方法、换相控制器及直流无刷电机
CN107508512B (zh) 闭环步进电机的超低速预估器控制算法
CN2794026Y (zh) 开关偏磁调速电机
CN205407636U (zh) 交流永磁同步电机检测控制系统
CN108429504A (zh) 一种基于低成本位置传感器的开关磁阻电机转矩控制方法
CN201915750U (zh) 一体化门机直驱与矢量控制装置
CN204633666U (zh) 一种电动工具用高速开关磁阻电机控制装置
CN110611462B (zh) 无刷直流电机三段转速指示装置及指示方法
CN106787987A (zh) 一种同步永磁电机自动控制系统
CN201383788Y (zh) 一种简单的无刷直流电机反电动势过零点检测电路
CN109428455B (zh) 开关磁阻电机及其控制方法
CN111555685A (zh) 一种风机启动控制电路及其控制方法
Nemec et al. Design of an electronic odometer for DC motors
CN2239678Y (zh) 全数字反应式同步电机控制装置
CN104333286A (zh) 一种基于六脉冲算法实现霍尔传感器安装位置偏差的修正方法
Arif et al. Rotating magnetic field based instantaneous angular speed measurement of low speed rotating machines

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19903439

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19903439

Country of ref document: EP

Kind code of ref document: A1