WO2017107645A1 - Phase current signal sampling method and apparatus, electric motor controller and electric vehicle - Google Patents

Phase current signal sampling method and apparatus, electric motor controller and electric vehicle Download PDF

Info

Publication number
WO2017107645A1
WO2017107645A1 PCT/CN2016/103205 CN2016103205W WO2017107645A1 WO 2017107645 A1 WO2017107645 A1 WO 2017107645A1 CN 2016103205 W CN2016103205 W CN 2016103205W WO 2017107645 A1 WO2017107645 A1 WO 2017107645A1
Authority
WO
WIPO (PCT)
Prior art keywords
sampling
analog signal
output
sensor
signal acquisition
Prior art date
Application number
PCT/CN2016/103205
Other languages
French (fr)
Chinese (zh)
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 WO2017107645A1 publication Critical patent/WO2017107645A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0092Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring current only
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/64Electric machine technologies in electromobility

Abstract

A phase current signal sampling method and apparatus, an electric motor controller (401) and an electric vehicle. The method comprises: collecting an output of a sensor by means of a multi-path analogue signal collection channel, and acquiring a plurality of sampling signals (S101), wherein the sensor is used to sense a phase current output by an electric motor controller (401) and output the sampling signals; and acquiring a sampling result of the phase current according to the plurality of sampling signals (S102).

Description

相电流信号采样方法和装置、电机控制器及电动汽车Phase current signal sampling method and device, motor controller and electric vehicle 技术领域Technical field
本发明涉及信号采集领域,具体而言,涉及一种相电流信号采样方法和装置、电机控制器及电动汽车。The invention relates to the field of signal acquisition, and in particular to a phase current signal sampling method and device, a motor controller and an electric vehicle.
背景技术Background technique
电动汽车是一种由车载动力电池供电、电机驱动的绿色环保交通工具,电动汽车是汽车工业的发展方向,也是当前重点鼓励和发展的技术产品。电动汽车的核心技术之一就是电机及电机控制器的技术,目前电动汽车多采用永磁同步电机作为电机,电机控制器通过将动力电池的直流电源逆变为变频交流电,驱动交流的电机输出转矩。在数字化的交流电机控制中,精确的相电流采集和处理是实现高性能闭环控制系统的关键,如果没有准确的相电流信号,就不能实现高效的闭环控制。对相电流检测的时间在电机控制程序的脉冲宽度调制(Pulse-Width Modulation,简称PWM)中断周期中,通过霍尔电流传感器利用霍尔原理将电流信号经过电磁转换为电压信号,将电压信号输入到电机控制器的模拟信号采集端口,经过模拟信号采样和数据处理,将输入的电压信号值转换为实际的相电流值,用于实现电机控制程序的算法以及故障诊断处理等。相关技术中,霍尔电流传感器输出的电压信号仅调用一次采集转换处理,由于绝缘栅双极型晶体管(Insulated Gate Bipolar Transistor,简称IGBT)等功率器件开关频率较高,功率器件的开通、关断都会影响电流波形,且低压采集电路易受到干扰,这些都会导致采集转换后获取到的用于电机控制算法的三相电流信号数据失真,达不到高精度的闭环控制的精度要求。Electric vehicles are green and environmentally-friendly vehicles powered by on-board power batteries and driven by electric motors. Electric vehicles are the development direction of the automobile industry, and are also the technical products that are currently encouraged and developed. One of the core technologies of electric vehicles is the technology of electric motors and motor controllers. At present, electric motors mostly use permanent magnet synchronous motors as motors. The motor controllers convert the DC power supply of the power battery into variable frequency alternating current, and drive the output of the AC motor. Moment. In digital AC motor control, accurate phase current acquisition and processing is the key to achieving a high performance closed loop control system. Without accurate phase current signals, efficient closed loop control cannot be achieved. The phase current detection time is in the Pulse-Width Modulation (PWM) interrupt cycle of the motor control program, and the Hall signal is used to electromagnetically convert the current signal into a voltage signal through the Hall current sensor, and the voltage signal is input. To the analog signal acquisition port of the motor controller, after the analog signal sampling and data processing, the input voltage signal value is converted into the actual phase current value, which is used to implement the algorithm of the motor control program and the fault diagnosis processing. In the related art, the voltage signal output by the Hall current sensor is only called once for the acquisition conversion process, and the power device is turned on and off due to the high switching frequency of the power device such as the insulated gate bipolar transistor (IGBT). It will affect the current waveform, and the low-voltage acquisition circuit is susceptible to interference. These will cause the three-phase current signal data obtained by the motor control algorithm after the acquisition and conversion to be distorted, which cannot meet the precision requirements of high-precision closed-loop control.
针对相关技术中相电流信号采样精度较低的问题,目前尚未提出有效的解决方案。In view of the low sampling accuracy of the phase current signal in the related art, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明的主要目的在于提供一种相电流信号采样方法和装置、电机控制器及电动汽车,以解决相关技术中相电流信号采样精度较低的问题。The main object of the present invention is to provide a phase current signal sampling method and device, a motor controller and an electric vehicle to solve the problem of low sampling accuracy of phase current signals in the related art.
为了实现上述目的,根据本发明的一个方面,提供了一种相电流信号采样方法。该方法包括:通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号,其中,传感器用于感应电机控制器输出的相电流,输出采样信号;以及根据多个采样信号获取相电流的采样结果。In order to achieve the above object, according to an aspect of the present invention, a phase current signal sampling method is provided. The method comprises: acquiring the output of the sensor through a multi-channel analog signal acquisition channel to obtain a plurality of sampling signals, wherein the sensor is used for sensing the phase current output by the motor controller, outputting the sampling signal; and acquiring the phase current according to the plurality of sampling signals. Sampling results.
进一步地,传感器为霍尔电流传感器,用于感应电机控制器输出的相电流,输出电压信号,通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号包括:通过多路 模拟信号采集通道采集霍尔电流传感器的输出,获取多个电压采样信号,根据多个采样信号获取相电流的采样结果包括:对多个电压采样信号进行计算,获取相电流的采样结果。Further, the sensor is a Hall current sensor for sensing the phase current output by the motor controller, outputting a voltage signal, collecting the output of the sensor through a multi-channel analog signal acquisition channel, and acquiring a plurality of sampling signals including: The analog signal acquisition channel collects the output of the Hall current sensor, acquires a plurality of voltage sampling signals, and obtains sampling results of the phase currents according to the plurality of sampling signals, including: calculating a plurality of voltage sampling signals, and obtaining sampling results of the phase currents.
进一步地,传感器为霍尔电流传感器,相电流为三相电流,多路模拟信号采集通道包括三组模拟信号采集通道,通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号包括:通过三组模拟信号采集通道分别采集三个霍尔电流传感器的输出,获取三组电压采样信号,其中,三个霍尔电流传感器用于分别感应电机控制器输出的三相电流,输出电压信号。Further, the sensor is a Hall current sensor, and the phase current is a three-phase current. The multi-channel analog signal acquisition channel includes three sets of analog signal acquisition channels, and the output of the sensor is collected through a multi-channel analog signal acquisition channel, and multiple sampling signals are obtained: The output of three Hall current sensors is respectively collected through three sets of analog signal acquisition channels, and three sets of voltage sampling signals are obtained. Among them, three Hall current sensors are used to respectively induce three-phase currents output by the motor controller and output voltage signals.
进一步地,通过三组模拟信号采集通道分别采集三个霍尔电流传感器的输出,获取三组电压采样信号包括:在三组模拟信号采集通道中的每组模拟信号采集通道中分别选取一个模拟信号采集通道,得到三个模拟信号采集通道;通过三个模拟信号采集通道按照第一预设顺序分别采集三个霍尔电流传感器的输出,获取第一预设顺序电压采样信号;以及通过三个模拟信号采集通道按照第二预设顺序分别采集三个霍尔电流传感器的输出,获取第二预设顺序电压采样信号。Further, three sets of analog current signal acquisition channels respectively acquire the output of three Hall current sensors, and three sets of voltage sampling signals are obtained: one analog signal is selected in each of the three sets of analog signal acquisition channels. The acquisition channel obtains three analog signal acquisition channels; the output of three Hall current sensors are respectively acquired by the three analog signal acquisition channels according to the first preset sequence, and the first preset sequence voltage sampling signal is obtained; and three simulations are obtained. The signal acquisition channel separately acquires the outputs of the three Hall current sensors according to the second preset sequence, and acquires the second preset sequence voltage sampling signal.
进一步地,通过多路模拟信号采集通道采集传感器的输出包括:在PWM中断周期内的预设采样时刻开始采集传感器的输出,其中,预设采样时刻为PWM中断周期内的以下时刻:
Figure PCTCN2016103205-appb-000001
其中,T为PWM中断周期的时长,t为由获取多个采样信号到获取相电流的时长。
Further, collecting the output of the sensor through the multi-channel analog signal acquisition channel comprises: starting the acquisition of the output of the sensor at a preset sampling time in the PWM interrupt period, wherein the preset sampling time is the following time in the PWM interrupt period:
Figure PCTCN2016103205-appb-000001
Where T is the duration of the PWM interrupt period and t is the length of time from which multiple sampled signals are acquired to the phase current.
进一步地,传感器为霍尔电流传感器,通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号包括:通过第一模拟信号采集通道对霍尔电流传感器的输出进行两次采集,获取第一电压采样信号和第二电压采样信号;以及通过第二模拟信号采集通道对霍尔电流传感器的输出进行两次采集,获取第三电压采样信号和第四电压采样信号,根据多个采样信号获取相电流的采样结果包括:对第一电压采样信号、第二电压采样信号、第三电压采样信号和第四电压采样信号进行排序;去掉第一电压采样信号、第二电压采样信号、第三电压采样信号和第四电压采样信号中的最大值和最小值,得到两个电压采样信号中间值;对两个电压采样信号中间值取平均值,得到电压采样信号平均值;以及将电压采样信号平均值转换为电流值,获取相电流的采样结果。Further, the sensor is a Hall current sensor, and the output of the sensor is collected through a multi-channel analog signal acquisition channel, and acquiring a plurality of sampling signals includes: acquiring the output of the Hall current sensor twice through the first analog signal acquisition channel, and acquiring the first a voltage sampling signal and a second voltage sampling signal; and acquiring the output of the Hall current sensor twice through the second analog signal acquisition channel, acquiring the third voltage sampling signal and the fourth voltage sampling signal, and acquiring according to the plurality of sampling signals The sampling result of the phase current includes: sorting the first voltage sampling signal, the second voltage sampling signal, the third voltage sampling signal, and the fourth voltage sampling signal; removing the first voltage sampling signal, the second voltage sampling signal, and the third voltage The maximum value and the minimum value of the sampling signal and the fourth voltage sampling signal are obtained to obtain intermediate values of the two voltage sampling signals; averaging the intermediate values of the two voltage sampling signals to obtain an average value of the voltage sampling signals; and averaging the voltage sampling signals The value is converted to a current value to obtain a sampling result of the phase current.
为了实现上述目的,根据本发明的一个方面,提供了一种相电流信号采样装置。该装置包括:传感器,套装在电机控制器的输出电缆上,用于感应电机控制器输出的相电流,输出采样信号;采样芯片,通过多路模拟信号采集通道与传感器的输出相连接,用于采集传感器的输出并获取多个采样信号;以及控制芯片,与采样芯片相连接,用于根据多个采样信号获取相电流的采样结果。In order to achieve the above object, according to an aspect of the present invention, a phase current signal sampling device is provided. The device comprises: a sensor, which is arranged on the output cable of the motor controller, is used for sensing the phase current output by the motor controller, and outputs a sampling signal; the sampling chip is connected to the output of the sensor through a multi-channel analog signal acquisition channel, and is used for The output of the sensor is acquired and a plurality of sampling signals are acquired; and a control chip is connected to the sampling chip for acquiring a sampling result of the phase current according to the plurality of sampling signals.
进一步地,传感器为霍尔电流传感器。 Further, the sensor is a Hall current sensor.
进一步地,电机控制器的输出电缆包括第一相电流电缆、第二相电流电缆和第三相电流电缆,多路模拟信号采集通道包括第一组模拟信号采集通道、第二组模拟信号采集通道和第三组模拟信号采集通道,霍尔电流传感器包括:第一霍尔电流传感器,套装在第一相电流电缆上,通过第一组模拟信号采集通道与控制芯片相连接,用于感应电机控制器输出的第一相电流,输出第一电压信号;第二霍尔电流传感器,套装在第二相电流电缆上,通过第二组模拟信号采集通道与控制芯片相连接,用于感应电机控制器输出的第二相电流,输出第二电压信号;以及第三霍尔电流传感器,套装在第三相电流电缆上,通过第三组模拟信号采集通道与控制芯片相连接,用于感应电机控制器输出的第三相电流,输出第三电压信号。Further, the output cable of the motor controller comprises a first phase current cable, a second phase current cable and a third phase current cable, and the multi-channel analog signal acquisition channel comprises a first group of analog signal acquisition channels and a second group of analog signal acquisition channels. And a third group of analog signal acquisition channels, the Hall current sensor comprises: a first Hall current sensor, which is arranged on the first phase current cable, and is connected to the control chip through the first group of analog signal acquisition channels for induction motor control The first phase current outputted by the device outputs a first voltage signal; the second Hall current sensor is disposed on the second phase current cable and is connected to the control chip through the second group of analog signal acquisition channels for the induction motor controller The output second phase current outputs a second voltage signal; and the third Hall current sensor is disposed on the third phase current cable and is connected to the control chip through the third group of analog signal acquisition channels for the induction motor controller The outputted third phase current outputs a third voltage signal.
进一步地,采样芯片包括:多个模拟信号采集接口,通过多路模拟信号采集通道与传感器的输出相连接,用于采集传感器输出的采样信号,其中,多个模拟信号采集接口与多路模拟信号采集通道一一对应。Further, the sampling chip comprises: a plurality of analog signal acquisition interfaces, which are connected to the output of the sensor through a plurality of analog signal acquisition channels, and are used for collecting sampling signals output by the sensor, wherein the plurality of analog signal acquisition interfaces and the multi-channel analog signals The acquisition channels correspond one-to-one.
进一步地,传感器为霍尔电流传感器,用于感应相电流输出电压信号,多路模拟信号采集通道包括第一路模拟信号采集通道和第二路模拟信号采集通道,多个模拟信号采集接口包括:第一模拟信号采集接口,通过第一路模拟信号采集通道与霍尔电流传感器的输出相连接,用于采集霍尔电流传感器输出的电压信号获取第一电压采样信号;以及第二模拟信号采集接口,通过第二路模拟信号采集通道与霍尔电流传感器的输出相连接,用于采集霍尔电流传感器输出的电压信号获取第二电压采样信号。Further, the sensor is a Hall current sensor for sensing a phase current output voltage signal, and the multi-channel analog signal acquisition channel includes a first analog signal acquisition channel and a second analog signal acquisition channel, and the plurality of analog signal acquisition interfaces include: The first analog signal acquisition interface is connected to the output of the Hall current sensor through the first analog signal acquisition channel, and is used for acquiring the voltage signal output by the Hall current sensor to obtain the first voltage sampling signal; and the second analog signal acquisition interface The second analog signal acquisition channel is connected to the output of the Hall current sensor for collecting the voltage signal output by the Hall current sensor to obtain the second voltage sampling signal.
为了实现上述目的,根据本发明的一个方面,提供了一种电机控制器。该电机控制器包括:采样芯片,通过多路模拟信号采集通道与传感器的输出相连接,用于采集传感器的输出并获取多个采样信号,其中,传感器用于感应电机控制器输出的相电流并输出采样信号;以及控制芯片,与采样芯片相连接,用于根据多个采样信号获取相电流的采样结果。In order to achieve the above object, according to an aspect of the invention, a motor controller is provided. The motor controller comprises: a sampling chip connected to the output of the sensor through a plurality of analog signal acquisition channels for acquiring the output of the sensor and acquiring a plurality of sampling signals, wherein the sensor is used for sensing the phase current output by the motor controller and And outputting the sampling signal; and the control chip is connected to the sampling chip, and is configured to obtain the sampling result of the phase current according to the plurality of sampling signals.
为了实现上述目的,根据本发明的一个方面,提供了一种电动汽车。该电动汽车包括本发明的相电流信号采样装置或者电机控制器。In order to achieve the above object, according to an aspect of the invention, an electric vehicle is provided. The electric vehicle includes the phase current signal sampling device or motor controller of the present invention.
本发明通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号,其中,传感器用于感应电机控制器输出的相电流,输出采样信号;以及根据多个采样信号获取相电流的采样结果,解决了相关技术中相电流信号采样精度较低的问题,进而达到了提高相电流信号采样精度的效果。The invention acquires a plurality of sampling signals by collecting the output of the sensor through a multi-channel analog signal acquisition channel, wherein the sensor is used for sensing the phase current output by the motor controller, outputting the sampling signal; and obtaining the sampling result of the phase current according to the plurality of sampling signals The invention solves the problem that the sampling precision of the phase current signal is low in the related art, thereby achieving the effect of improving the sampling precision of the phase current signal.
附图说明DRAWINGS
构成本申请的一部分的附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中: The accompanying drawings, which are incorporated in the claims In the drawing:
图1是根据本发明第一实施例的相电流信号采样方法的流程图;1 is a flow chart of a phase current signal sampling method according to a first embodiment of the present invention;
图2是根据本发明实施例的相电流信号采样方法的采样时刻的示意图;2 is a schematic diagram of sampling timings of a phase current signal sampling method according to an embodiment of the present invention;
图3是根据本发明第二实施例的相电流信号采样方法的流程图;3 is a flow chart of a phase current signal sampling method according to a second embodiment of the present invention;
图4是根据本发明实施例的相电流信号采样方法采用的相电流信号采样装置的示意图;以及4 is a schematic diagram of a phase current signal sampling device employed by a phase current signal sampling method according to an embodiment of the present invention;
图5是根据本发明实施例的相电流信号采样装置的示意图。Figure 5 is a schematic illustration of a phase current signal sampling device in accordance with an embodiment of the present invention.
具体实施方式detailed description
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is an embodiment of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope shall fall within the scope of the application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or order. It should be understood that the data so used may be interchanged where appropriate to facilitate the embodiments of the present application described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
本发明的实施例提供了一种相电流信号采样方法。Embodiments of the present invention provide a phase current signal sampling method.
图1是根据本发明第一实施例的相电流信号采样方法的流程图。如图1所示,该方法包括以下步骤:1 is a flow chart of a phase current signal sampling method in accordance with a first embodiment of the present invention. As shown in Figure 1, the method includes the following steps:
步骤S101,通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号。Step S101: Acquire an output of the sensor through a multi-channel analog signal acquisition channel to obtain a plurality of sampling signals.
模拟信号采集通道用于采集传感器输出的模拟信号,得到数字信号。模拟信号采集通道可以是采样芯片的采样接口与传感器进行线连接,采集传感器输出的信号,获取采样信号。传感器用于感应电机控制器输出的相电流,输出采样信号。传感器可以套装在电机控制器的输出电缆上,电机控制器输出三相电流驱动电机运行,以星型连接的电机为例,相电流等于线电流,传感器可以直接套装在电机控制器的线电流电缆上,感应相电流输出采样信号。传感器可以是电流转换电压电路,将相电流转换为电压信号输出,优选地,传感器可以采用霍尔电流传感器,感应相电流信号,经过电磁转换后输出电压信号。一个传感器对应着一个相电流,通过多路模拟信号采集通道采集一个传感器的输出,可以提高样本 数。多路模拟信号采集通道采集传感器的输出可以获取多个采样信号,多个采样信号的数量与多路模拟信号采集通道的数量和采用多路模拟信号采集通道对传感器进行采集的次数有关,例如,采用两路模拟信号采集通道采集传感器的输出,每一路模拟信号采集通道对传感器的输出进行两次采集,则可以对传感器感应的相电流获取到四个采样信号。The analog signal acquisition channel is used to acquire the analog signal output by the sensor to obtain a digital signal. The analog signal acquisition channel may be a sampling interface of the sampling chip and a line connection of the sensor, collecting the signal output by the sensor, and acquiring the sampling signal. The sensor is used to sense the phase current output from the motor controller and output the sampling signal. The sensor can be set on the output cable of the motor controller. The motor controller outputs three-phase current to drive the motor to run. Take the star-connected motor as an example. The phase current is equal to the line current. The sensor can directly fit the line current cable of the motor controller. On, the sense phase current outputs a sampling signal. The sensor may be a current conversion voltage circuit that converts the phase current into a voltage signal output. Preferably, the sensor may use a Hall current sensor to sense the phase current signal and output the voltage signal after electromagnetic conversion. One sensor corresponds to one phase current, and the output of one sensor is collected through multiple analog signal acquisition channels, which can improve the sample. number. The output of the multi-channel analog signal acquisition channel acquisition sensor can acquire a plurality of sampling signals, and the number of the plurality of sampling signals is related to the number of multi-channel analog signal acquisition channels and the number of times the multi-channel analog signal acquisition channel collects the sensors, for example, The output of the sensor is collected by two analog signal acquisition channels, and each of the analog signal acquisition channels collects the output of the sensor twice, and four sampling signals can be obtained for the phase current sensed by the sensor.
步骤S102,根据多个采样信号获取相电流的采样结果。Step S102, acquiring a sampling result of the phase current according to the plurality of sampling signals.
在获取多个采样信号之后,根据多个采样信号获取相电流的采样结果。根据多个采样信号获取相电流的采样结果包括对多个采样信号进行计算,获取相电流的采样结果。对多个采样信号进行计算的方法可以是对实验数据进行数据处理的常用方法,也可以是预先确定的处理方法。具体而言,如果对一个相电流采集的多个采样信号的数量超过三个,可以首先将采集到的多个采样信号进行排序,去掉多个采样信号中的最大值和最小值,将多个采样信号中剩余的采样信号取平均值,得到采样信号平均值。该采样信号可以是电流信号,也可以是电压信号,如果是电压信号,则需要将电压采样信号平均值转换为电流值,获取到最终的相电流的采样结果。相电流信号在采样时易受开关频率较大的功率器件开关管的影响,可能会产生波形的波动,通过对同一相电流采集多个采样信号,并且去掉多个采样信号中的最大值和最小值,可以有效的去除干扰。可选地,根据多个采样信号获取相电流的采样结果还可以是对多个采样信号直接取平均值,得到采样信号平均值,如果采样信号不是电流值,则将采样信号平均值转换成电流值,得到相电流的采样结果。本发明不限制对多个采样信号进行计算的具体算法,根据具体情况而定。After acquiring a plurality of sampling signals, sampling results of the phase currents are obtained according to the plurality of sampling signals. The sampling result of acquiring the phase current according to the plurality of sampling signals includes calculating a plurality of sampling signals to obtain a sampling result of the phase current. The method of calculating a plurality of sampling signals may be a common method of performing data processing on experimental data, or may be a predetermined processing method. Specifically, if the number of the plurality of sampling signals collected for one phase current exceeds three, the collected plurality of sampling signals may be first sorted, and the maximum value and the minimum value of the plurality of sampling signals are removed, and the plurality of sampling signals are removed. The remaining sampling signals in the sampled signal are averaged to obtain an average value of the sampled signals. The sampling signal may be a current signal or a voltage signal. If it is a voltage signal, the average value of the voltage sampling signal needs to be converted into a current value, and the sampling result of the final phase current is obtained. The phase current signal is susceptible to the switching of the power device with a large switching frequency during sampling, which may cause waveform fluctuations. By collecting multiple sampling signals for the same phase current, and removing the maximum and minimum of multiple sampling signals. Value can effectively remove interference. Optionally, the sampling result of acquiring the phase current according to the plurality of sampling signals may further be: directly averaging the plurality of sampling signals to obtain an average value of the sampling signal, and if the sampling signal is not the current value, converting the average value of the sampling signal into a current. The value gives the sampling result of the phase current. The present invention does not limit the specific algorithm for calculating a plurality of sampled signals, depending on the circumstances.
优选地,通过多路模拟信号采集通道采集传感器的输出是在PWM中断周期内,可以先确定出采集传感器的采样时刻,在PWM中断周期内的该采样时刻开始采集传感器的输出。采样时刻可以是通过以下公式计算得到的:Preferably, the output of the sensor is collected through the multi-channel analog signal acquisition channel during the PWM interrupt period, and the sampling moment of the acquisition sensor may be determined first, and the output of the sensor is started at the sampling moment in the PWM interruption period. The sampling instant can be calculated by the following formula:
Figure PCTCN2016103205-appb-000002
Figure PCTCN2016103205-appb-000002
其中,T为PWM中断周期的时长,t为由获取多个采样信号到获取相电流的时长,也即,t为对根据预先确定的采样操作计算出的信号采样和数据处理的总时长,t可以由执行采样和数据处理操作的芯片的单位工作时间来确定。Where T is the duration of the PWM interrupt period, and t is the length of time from the acquisition of the plurality of sampled signals to the acquisition of the phase current, that is, t is the total duration of the signal sampling and data processing calculated according to the predetermined sampling operation, t This can be determined by the unit operating time of the chip that performs the sampling and data processing operations.
图2是根据本发明实施例的相电流信号采样方法的采样时刻的示意图,如图2所示,PWM中断周期的时长为Tpwm,记中心点时刻为t2,t2时刻为Tpwm/2,t1时刻作为采样时刻,在t1时刻开始触发相电流信号的采集和转换操作,相电流信号的采集和转换操作由电机控制器的主控芯片执行,电机控制器主控芯片对一路模拟信号采集通道进行一次模拟信号采集和转换的时间为ts,预先确定的采样操作中包括对六路模拟信号采集通道各采集和转换两次,则由获取多个采样信号到获取相电流的采样结果的时长约为12*ts,由此可得 t1时刻为(t2-6*ts),t1时刻在PWM中断周期的中心点时刻t2之前,获取相电流的采样结果的时刻在t3时刻,t3时刻为(t2+6*ts)。在PWM中断周期的中心时刻附近,功率器件开关管对相电流波形的影响较小,相电流较稳定,通过确定出在PWM中断周期中心点附近的采样时刻,并在采样时刻开始进行相电流信号的采集和转换,可以避开功率器件开关管对相电流波形的影响,采集到的相电流值更准确。2 is a schematic diagram of sampling timing of a phase current signal sampling method according to an embodiment of the present invention. As shown in FIG. 2, the duration of the PWM interrupt period is Tpwm, the center point time is t2, and the time t2 is Tpwm/2, time t1. As the sampling moment, the phase current signal acquisition and conversion operation is triggered at the time t1. The phase current signal acquisition and conversion operation is performed by the main control chip of the motor controller, and the motor controller main control chip performs once for one analog signal acquisition channel. The time for analog signal acquisition and conversion is ts. The predetermined sampling operation includes collecting and converting the six analog signal acquisition channels twice, and the sampling result of acquiring multiple sampling signals to obtain the phase current is about 12*. Ts, thus available The time t1 is (t2-6*ts), and the time t1 is before the center point time t2 of the PWM interruption period, the time at which the sampling result of the phase current is acquired is at time t3, and the time t3 is (t2+6*ts). Near the center of the PWM interrupt period, the power device switching tube has less influence on the phase current waveform, and the phase current is relatively stable. By determining the sampling time near the center point of the PWM interrupt period, and starting the phase current signal at the sampling time. The acquisition and conversion can avoid the influence of the switching circuit of the power device on the phase current waveform, and the collected phase current value is more accurate.
优选地,通过三个霍尔电流传感器分别感应电机控制器输出的三相电流,每个霍尔电流传感器对应一个相电流。多路模拟信号采集通道包括三组模拟信号采集通道,每组模拟信号采集通道包括多路模拟信号采集通道,每组模拟信号采集通道对应采集一个霍尔电流传感器的输出,也即,每组模拟信号采集通道采集得到一个相电流的多个电压采样信号,对多个电压采样信号进行计算得到该相电流的采样结果。优选地,可以通过预设顺序对三相电流进行采样,具体而言,在三组模拟信号采集通道中的每组模拟信号采集通道中分别选取一路模拟信号采集通道,得到三路模拟信号采集通道,通过三路模拟信号采集通道按照第一预设顺序分别采集三个霍尔电流传感器的输出,获取第一预设顺序电压采样信号,再通过三路模拟信号采集通道按照第二预设顺序分别采集三个霍尔电流传感器的输出,获取第二预设顺序电压采样信号。举例来说,三组模拟信号采集通道中每组模拟信号采集通道分别包括两路模拟信号采集通道,选取每组模拟信号采集通道中两路模拟信号采集通道的其中之一,得到A、B、C三路模拟信号采集通道,用于分别采集A、B、C三个霍尔电流传感器的输出,也即分别采集三相电流,在PWM中断周期内进行采样时,A、B、C三路模拟信号采集通道是按序采集的,顺序为模拟信号采集通道A、模拟信号采集通道B、模拟信号采集通道C分别对A、B、C三个霍尔电流传感器的输出采集一次,得到第一顺序的三相电流的电压采样信号,然后再按序通过模拟信号采集通道C、模拟信号采集通道B、模拟信号采集通道A分别对C、B、A三个霍尔电流传感器的输出采集一次,得到第二顺序的三相电流的电压采样信号。得到电压采样信号之后,对各相电流分别对应的多个电压采样信号进行计算,得到各相电流的采样结果。在PWM中断周期内进行采样时,由于受到功率器件的干扰影响,不同时刻相电流的波形可能是不同的,通过变换顺序采集三相电流的值,可以一定程度上分散功率器件的干扰对同一相电流产生的影响,对同一相电流采集到的多个采样信号更能反映总体情况。Preferably, the three-phase currents output by the motor controller are respectively induced by three Hall current sensors, and each of the Hall current sensors corresponds to one phase current. The multi-channel analog signal acquisition channel includes three sets of analog signal acquisition channels, each set of analog signal acquisition channels includes multiple analog signal acquisition channels, and each set of analog signal acquisition channels correspondingly collects the output of one Hall current sensor, that is, each group of simulations The signal acquisition channel acquires a plurality of voltage sampling signals of one phase current, and calculates a sampling result of the phase current by calculating a plurality of voltage sampling signals. Preferably, the three-phase current can be sampled by a preset sequence. Specifically, one analog signal acquisition channel is selected in each of the three sets of analog signal acquisition channels to obtain three analog signal acquisition channels. The three-channel analog signal acquisition channel respectively collects the outputs of the three Hall current sensors according to the first preset sequence, acquires the first preset sequence voltage sampling signal, and then separately passes the three-way analog signal acquisition channels according to the second preset sequence. The outputs of the three Hall current sensors are acquired to obtain a second preset sequential voltage sampling signal. For example, each of the three sets of analog signal acquisition channels includes two analog signal acquisition channels, and one of the two analog signal acquisition channels in each set of analog signal acquisition channels is selected to obtain A, B, C three-way analog signal acquisition channel, used to separately collect the output of three Hall current sensors A, B, C, that is, separately collect three-phase current, when sampling in the PWM interrupt period, A, B, C three way The analog signal acquisition channel is sequentially acquired. The sequence is analog signal acquisition channel A, analog signal acquisition channel B, and analog signal acquisition channel C. The output of the three Hall current sensors A, B, and C are collected once and get the first. The sequential three-phase current voltage sampling signal is then sequentially collected through the analog signal acquisition channel C, the analog signal acquisition channel B, and the analog signal acquisition channel A for the output of the three Hall current sensors C, B, and A, respectively. A voltage sampling signal of the second sequence of three phase currents is obtained. After the voltage sampling signal is obtained, a plurality of voltage sampling signals corresponding to the respective phase currents are calculated to obtain sampling results of the respective phase currents. When sampling during the PWM interrupt period, the waveform of the phase current may be different at different times due to the interference of the power device. By calculating the value of the three-phase current by changing the order, the interference of the power device can be dispersed to some extent to the same phase. The effect of current generation, the multiple sampling signals collected by the same phase current can better reflect the overall situation.
该实施例提供的相电流信号采样方法,通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号,其中,传感器用于感应电机控制器输出的相电流,输出采样信号;以及根据多个采样信号获取相电流的采样结果,解决了相关技术中相电流信号采样精度较低的问题,进而达到了提高相电流信号采样精度的效果。The phase current signal sampling method provided by the embodiment obtains a plurality of sampling signals by acquiring the output of the sensor through a multi-channel analog signal acquisition channel, wherein the sensor is used for sensing the phase current output by the motor controller, and outputting the sampling signal; The sampling signal obtains the sampling result of the phase current, which solves the problem that the sampling precision of the phase current signal is low in the related art, thereby achieving the effect of improving the sampling precision of the phase current signal.
图3是根据本发明第二实施例的相电流信号采样方法的流程图。该实施例可以作为上 述第一实施例的优选实施方式。3 is a flow chart of a phase current signal sampling method in accordance with a second embodiment of the present invention. This embodiment can be used as A preferred embodiment of the first embodiment is described.
图4是根据本发明实施例的相电流信号采样方法采用的相电流信号采样装置的示意图。图4中所示的相电流信号采样装置可以用于执行本发明第二实施例的相电流信号采样方法。如图4所示,相电流信号采样装置包括电机控制器401,电机402,霍尔电流传感器A,霍尔电流传感器B和霍尔电流传感器C。4 is a schematic diagram of a phase current signal sampling device employed by a phase current signal sampling method in accordance with an embodiment of the present invention. The phase current signal sampling means shown in Fig. 4 can be used to perform the phase current signal sampling method of the second embodiment of the present invention. As shown in FIG. 4, the phase current signal sampling means includes a motor controller 401, a motor 402, a Hall current sensor A, a Hall current sensor B, and a Hall current sensor C.
电机控制器401包括模拟信号采集接口AD0,模拟信号采集接口AD1,模拟信号采集接口AD2,模拟信号采集接口AD3,模拟信号采集接口AD4,模拟信号采集接口AD5,相电流U输出接口,相电流V输出接口,相电流W输出接口。电机控制器401通过线电缆将三相电流U、V、W输出到电机402,用于驱动电机402。霍尔电流传感器A,霍尔电流传感器B,霍尔电流传感器C分别套装在三相电流U、V、W对应的线电缆上,用于分别感应三相电流U、V、W的相电流信号输出电压信号。AD0和AD1对霍尔电流传感器A的输出进行采集,AD2和AD3对霍尔电流传感器B的输出进行采集,AD4和AD5对霍尔电流传感器C的输出进行采集。The motor controller 401 includes an analog signal acquisition interface AD0, an analog signal acquisition interface AD1, an analog signal acquisition interface AD2, an analog signal acquisition interface AD3, an analog signal acquisition interface AD4, an analog signal acquisition interface AD5, a phase current U output interface, and a phase current V. Output interface, phase current W output interface. The motor controller 401 outputs the three-phase currents U, V, W to the motor 402 through a wire cable for driving the motor 402. Hall current sensor A, Hall current sensor B, and Hall current sensor C are respectively set on the line cables corresponding to the three-phase currents U, V, and W for respectively sensing the phase current signals of the three-phase currents U, V, and W. Output voltage signal. AD0 and AD1 collect the output of Hall current sensor A, AD2 and AD3 collect the output of Hall current sensor B, and AD4 and AD5 collect the output of Hall current sensor C.
如图3所示,该实施例的相电流信号采样方法包括以下步骤:As shown in FIG. 3, the phase current signal sampling method of this embodiment includes the following steps:
步骤S301,按顺序通过模拟信号采集接口AD0、AD2、AD4分别对霍尔电流传感器A、B、C的输出进行采集,获取三相电流对应的电压采样信号U1、V1、W1。In step S301, the outputs of the Hall current sensors A, B, and C are respectively collected through the analog signal acquisition interfaces AD0, AD2, and AD4, and the voltage sampling signals U1, V1, and W1 corresponding to the three-phase currents are obtained.
步骤S302,按顺序通过模拟信号采集接口AD4、AD2、AD0分别对霍尔电流传感器C、B、A的输出进行采集,获取三相电流对应的电压采样信号W2、V2、U2。In step S302, the outputs of the Hall current sensors C, B, and A are respectively collected through the analog signal acquisition interfaces AD4, AD2, and AD0, and the voltage sampling signals W2, V2, and U2 corresponding to the three-phase currents are obtained.
步骤S303,按顺序通过模拟信号采集接口AD1、AD3、AD5分别对霍尔电流传感器A、B、C的输出进行采集,获取三相电流对应的电压采样信号U3、V3、W3。In step S303, the outputs of the Hall current sensors A, B, and C are respectively collected through the analog signal acquisition interfaces AD1, AD3, and AD5, and the voltage sampling signals U3, V3, and W3 corresponding to the three-phase currents are obtained.
步骤S304,按顺序通过模拟信号采集接口AD5、AD3、AD1分别对霍尔电流传感器C、B、A的输出进行采集,获取三相电流对应的电压采样信号W4、V4、U4。In step S304, the outputs of the Hall current sensors C, B, and A are respectively collected through the analog signal acquisition interfaces AD5, AD3, and AD1, and the voltage sampling signals W4, V4, and U4 corresponding to the three-phase currents are obtained.
步骤S305,对各相电流的采样信号进行排序。U相电流的采样信号为U1、U2、U3、U4,V相电流的采样信号为V1、V2、V3、V4,W相电流的采样信号为W1、W2、W3、W4。各相电流分别采集了四个采样信号,对各相电流的四个采样信号进行排序。Step S305, sorting the sampling signals of the phase currents. The sampling signals of the U-phase current are U1, U2, U3, and U4, and the sampling signals of the V-phase current are V1, V2, V3, and V4, and the sampling signals of the W-phase current are W1, W2, W3, and W4. Four sampling signals are collected for each phase current, and four sampling signals of each phase current are sorted.
步骤S306,在对各相电流的采样信号进行排序之后,去掉各相电流的采样信号中的最大值和最小值。去掉最大值和最小值可以去除受干扰较严重的采样信号,减小受干扰严重的采样信号对采样结果的影响。Step S306, after sorting the sampling signals of the phase currents, the maximum value and the minimum value of the sampling signals of the phase currents are removed. Removing the maximum and minimum values can remove the more severely interfered sampling signals and reduce the influence of the heavily interfered sampling signals on the sampling results.
步骤S307,对各相电流保留的采样信号取平均值,得到各相电流的采样信号平均值。Step S307, averaging the sampling signals retained by the respective phase currents to obtain an average value of the sampling signals of the respective phase currents.
步骤S308,将各相电流的采样信号平均值转换为电流值,得到各相电流的采样结果。采样结果可以用于电机控制。In step S308, the average value of the sampling signals of the respective phase currents is converted into a current value, and the sampling result of each phase current is obtained. The sampling results can be used for motor control.
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算 机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowchart of the accompanying drawings may be in a calculation such as a set of computer executable instructions. The steps are performed in a machine system, and although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
本发明的实施例还提供了一种相电流信号采样装置。需要说明的是,本发明实施例的相电流信号采样装置可以用于执行本发明的相电流信号采样方法。Embodiments of the present invention also provide a phase current signal sampling device. It should be noted that the phase current signal sampling device of the embodiment of the present invention can be used to perform the phase current signal sampling method of the present invention.
图5是根据本发明实施例的相电流信号采样装置的示意图。如图5所示,该装置包括传感器10,采样芯片20和控制芯片30。Figure 5 is a schematic illustration of a phase current signal sampling device in accordance with an embodiment of the present invention. As shown in FIG. 5, the device includes a sensor 10, a sampling chip 20, and a control chip 30.
传感器10套装在电机控制器的输出电缆上,用于感应电机控制器输出的相电流,输出采样信号。采样芯片20通过多路模拟信号采集通道与传感器10的输出相连接,用于采集传感器10的输出并获取多个采样信号。控制芯片30与采样芯片20相连接,用于根据多个采样信号获取相电流的采样结果。The sensor 10 is set on the output cable of the motor controller for sensing the phase current output by the motor controller and outputting the sampling signal. The sampling chip 20 is connected to the output of the sensor 10 through a plurality of analog signal acquisition channels for acquiring the output of the sensor 10 and acquiring a plurality of sampling signals. The control chip 30 is connected to the sampling chip 20 for acquiring the sampling result of the phase current according to the plurality of sampling signals.
优选地,传感器10为霍尔电流传感器。Preferably, sensor 10 is a Hall current sensor.
优选地,电机控制器的输出电缆包括第一相电流电缆、第二相电流电缆和第三相电流电缆,多路模拟信号采集通道包括第一组模拟信号采集通道、第二组模拟信号采集通道和第三组模拟信号采集通道,霍尔电流传感器包括三个霍尔电流传感器,其中,第一霍尔电流传感器套装在第一相电流电缆上,通过第一组模拟信号采集通道与控制芯片相连接,用于感应电机控制器输出的第一相电流,输出第一电压信号;第二霍尔电流传感器套装在第二相电流电缆上,通过第二组模拟信号采集通道与控制芯片相连接,用于感应电机控制器输出的第二相电流,输出第二电压信号;第三霍尔电流传感器套装在第三相电流电缆上,通过第三组模拟信号采集通道与控制芯片相连接,用于感应电机控制器输出的第三相电流,输出第三电压信号。Preferably, the output cable of the motor controller comprises a first phase current cable, a second phase current cable and a third phase current cable, and the multi-channel analog signal acquisition channel comprises a first group of analog signal acquisition channels and a second group of analog signal acquisition channels. And the third group of analog signal acquisition channels, the Hall current sensor comprises three Hall current sensors, wherein the first Hall current sensor is set on the first phase current cable, and the first group of analog signal acquisition channels and the control chip are The connection is used for sensing the first phase current of the motor controller output, and outputting the first voltage signal; the second Hall current sensor is set on the second phase current cable, and is connected to the control chip through the second group of analog signal acquisition channels, a second phase current for sensing the output of the motor controller, and outputting a second voltage signal; the third Hall current sensor is disposed on the third phase current cable, and is connected to the control chip through the third group of analog signal acquisition channels, and is used for The third phase current output by the induction motor controller outputs a third voltage signal.
优选地,采样芯片20包括多个模拟信号采集接口,通过多路模拟信号采集通道与传感器的输出相连接,用于采集传感器输出的采样信号,其中,多个模拟信号采集接口与多路模拟信号采集通道一一对应。Preferably, the sampling chip 20 includes a plurality of analog signal acquisition interfaces, and is connected to the output of the sensor through a plurality of analog signal acquisition channels for collecting sampling signals output by the sensor, wherein the plurality of analog signal acquisition interfaces and the plurality of analog signals The acquisition channels correspond one-to-one.
优选地,传感器10为霍尔电流传感器,用于感应相电流输出电压信号,多路模拟信号采集通道包括第一路模拟信号采集通道和第二路模拟信号采集通道,多个模拟信号采集接口包括第一模拟信号采集接口和第二模拟信号采集接口。第一模拟信号采集接口通过第一路模拟信号采集通道与霍尔电流传感器的输出相连接,用于采集霍尔电流传感器输出的电压信号获取第一电压采样信号。第二模拟信号采集接口通过第二路模拟信号采集通道与霍尔电流传感器的输出相连接,用于采集霍尔电流传感器输出的电压信号获取第二电压采样信号。Preferably, the sensor 10 is a Hall current sensor for sensing a phase current output voltage signal, and the multi-channel analog signal acquisition channel includes a first analog signal acquisition channel and a second analog signal acquisition channel, and the plurality of analog signal acquisition interfaces include The first analog signal acquisition interface and the second analog signal acquisition interface. The first analog signal acquisition interface is connected to the output of the Hall current sensor through the first analog signal acquisition channel, and is used for acquiring the voltage signal output by the Hall current sensor to obtain the first voltage sampling signal. The second analog signal acquisition interface is connected to the output of the Hall current sensor through the second analog signal acquisition channel, and is used for acquiring the voltage signal output by the Hall current sensor to obtain the second voltage sampling signal.
本发明的实施例还提供了一种电机控制器。该电机控制器包括采样芯片和控制芯片。采样芯片通过多路模拟信号采集通道与传感器的输出相连接,用于采集传感器的输出并获 取多个采样信号,其中,传感器用于感应电机控制器输出的相电流并输出采样信号。控制芯片与采样芯片相连接,用于根据多个采样信号获取相电流的采样结果。Embodiments of the present invention also provide a motor controller. The motor controller includes a sampling chip and a control chip. The sampling chip is connected to the output of the sensor through a multi-channel analog signal acquisition channel, and is used to acquire the output of the sensor and obtain A plurality of sampling signals are taken, wherein the sensor is used to sense the phase current output by the motor controller and output the sampling signal. The control chip is connected to the sampling chip and is configured to acquire sampling results of the phase currents according to the plurality of sampling signals.
本发明的实施例还提供了一种电动汽车。该电动汽车包括本发明实施例的相电流信号采样装置或者电机控制器。Embodiments of the present invention also provide an electric vehicle. The electric vehicle includes a phase current signal sampling device or a motor controller of an embodiment of the present invention.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in a storage device by a computing device, or they may be fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims (13)

  1. 一种相电流信号采样方法,其特征在于,包括:A phase current signal sampling method, comprising:
    通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号,其中,所述传感器用于感应电机控制器输出的相电流,输出采样信号;以及Acquiring a plurality of sampling signals by acquiring the output of the sensor through a multi-channel analog signal acquisition channel, wherein the sensor is used to sense a phase current output by the motor controller, and output a sampling signal;
    根据所述多个采样信号获取所述相电流的采样结果。And acquiring a sampling result of the phase current according to the plurality of sampling signals.
  2. 根据权利要求1所述的方法,其特征在于,所述传感器为霍尔电流传感器,用于感应所述电机控制器输出的相电流,输出电压信号,The method according to claim 1, wherein the sensor is a Hall current sensor for sensing a phase current output by the motor controller, and outputting a voltage signal.
    通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号包括:通过所述多路模拟信号采集通道采集所述霍尔电流传感器的输出,获取多个电压采样信号,Acquiring the output of the sensor through the multi-channel analog signal acquisition channel, acquiring the plurality of sampling signals includes: collecting the output of the Hall current sensor through the multi-channel analog signal acquisition channel, and acquiring a plurality of voltage sampling signals,
    根据所述多个采样信号获取所述相电流的采样结果包括:对所述多个电压采样信号进行计算,获取所述相电流的采样结果。Acquiring the sampling result of the phase current according to the plurality of sampling signals includes: calculating the plurality of voltage sampling signals, and acquiring sampling results of the phase currents.
  3. 根据权利要求1-2任一项所述的方法,其特征在于,所述传感器为霍尔电流传感器,所述相电流为三相电流,所述多路模拟信号采集通道包括三组模拟信号采集通道,通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号包括:The method according to any one of claims 1-2, wherein the sensor is a Hall current sensor, the phase current is a three-phase current, and the multi-channel analog signal acquisition channel comprises three sets of analog signal acquisition. The channel collects the output of the sensor through a multi-channel analog signal acquisition channel, and acquires multiple sampling signals including:
    通过所述三组模拟信号采集通道分别采集三个霍尔电流传感器的输出,获取三组电压采样信号,其中,所述三个霍尔电流传感器用于分别感应所述电机控制器输出的所述三相电流,输出电压信号。Acquiring three outputs of the Hall current sensor through the three sets of analog signal acquisition channels to obtain three sets of voltage sampling signals, wherein the three Hall current sensors are respectively used to sense the output of the motor controller Three-phase current, output voltage signal.
  4. 根据权利要求3所述的方法,其特征在于,通过所述三组模拟信号采集通道分别采集三个所述霍尔电流传感器的输出,获取三组电压采样信号包括:The method according to claim 3, wherein three outputs of the Hall current sensors are respectively acquired through the three sets of analog signal acquisition channels, and the three sets of voltage sampling signals are obtained:
    在所述三组模拟信号采集通道中的每组模拟信号采集通道中分别选取一个模拟信号采集通道,得到三个模拟信号采集通道;Selecting one analog signal acquisition channel in each of the three sets of analog signal acquisition channels to obtain three analog signal acquisition channels;
    通过所述三个模拟信号采集通道按照第一预设顺序分别采集所述三个霍尔电流传感器的输出,获取第一预设顺序电压采样信号;以及Acquiring, by the three analog signal acquisition channels, the outputs of the three Hall current sensors according to a first preset sequence to obtain a first preset sequence voltage sampling signal;
    通过所述三个模拟信号采集通道按照第二预设顺序分别采集所述三个霍尔电流传感器的输出,获取第二预设顺序电压采样信号。And acquiring, by the three analog signal acquisition channels, the outputs of the three Hall current sensors according to a second preset sequence, and acquiring a second preset sequence voltage sampling signal.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,通过多路模拟信号采集通道采集传感器的输出包括:The method according to any one of claims 1 to 4, wherein the output of the acquisition sensor through the multi-channel analog signal acquisition channel comprises:
    在PWM中断周期内的预设采样时刻开始采集所述传感器的输出,The output of the sensor is started at a preset sampling time within the PWM interrupt period,
    其中,所述预设采样时刻为所述PWM中断周期内的以下时刻:The preset sampling time is the following time in the PWM interrupt period:
    Figure PCTCN2016103205-appb-100001
    Figure PCTCN2016103205-appb-100001
    其中,T为所述PWM中断周期的时长,t为由获取所述多个采样信号到获取所述相电流的时长。Where T is the duration of the PWM interrupt period, and t is the duration from which the plurality of sampled signals are acquired to obtain the phase current.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述传感器为霍尔电流传感器,The method according to any one of claims 1 to 5, wherein the sensor is a Hall current sensor,
    通过多路模拟信号采集通道采集传感器的输出,获取多个采样信号包括:通过第一模拟信号采集通道对所述霍尔电流传感器的输出进行两次采集,获取第一电压采样信号和第二电压采样信号;以及通过第二模拟信号采集通道对所述霍尔电流传感器的输出进行两次采集,获取第三电压采样信号和第四电压采样信号,Acquiring the output of the sensor through the multi-channel analog signal acquisition channel, and acquiring the plurality of sampling signals includes: acquiring the output of the Hall current sensor twice through the first analog signal acquisition channel, and acquiring the first voltage sampling signal and the second voltage Sampling the signal; and collecting the output of the Hall current sensor twice through the second analog signal acquisition channel to obtain the third voltage sampling signal and the fourth voltage sampling signal,
    根据所述多个采样信号获取所述相电流的采样结果包括:对所述第一电压采样信号、所述第二电压采样信号、所述第三电压采样信号和所述第四电压采样信号进行排序;去掉所述第一电压采样信号、所述第二电压采样信号、所述第三电压采样信号和所述第四电压采样信号中的最大值和最小值,得到两个电压采样信号中间值;对所述两个电压采样信号中间值取平均值,得到电压采样信号平均值;以及将所述电压采样信号平均值转换为电流值,获取所述相电流的采样结果。Acquiring the sampling result of the phase current according to the plurality of sampling signals includes: performing the first voltage sampling signal, the second voltage sampling signal, the third voltage sampling signal, and the fourth voltage sampling signal Sorting; removing the maximum value and the minimum value of the first voltage sampling signal, the second voltage sampling signal, the third voltage sampling signal, and the fourth voltage sampling signal to obtain an intermediate value of two voltage sampling signals And averaging the intermediate values of the two voltage sampling signals to obtain an average value of the voltage sampling signals; and converting the average value of the voltage sampling signals into current values to obtain sampling results of the phase currents.
  7. 一种相电流信号采样装置,其特征在于,包括:A phase current signal sampling device, comprising:
    传感器,套装在电机控制器的输出电缆上,用于感应所述电机控制器输出的相电流,输出采样信号;a sensor, disposed on an output cable of the motor controller, for sensing a phase current output by the motor controller, and outputting a sampling signal;
    采样芯片,通过多路模拟信号采集通道与所述传感器的输出相连接,用于采集所述传感器的输出并获取多个采样信号;以及a sampling chip connected to an output of the sensor through a plurality of analog signal acquisition channels for acquiring an output of the sensor and acquiring a plurality of sampling signals;
    控制芯片,与所述采样芯片相连接,用于根据所述多个采样信号获取所述相电流的采样结果。And a control chip connected to the sampling chip, configured to acquire a sampling result of the phase current according to the plurality of sampling signals.
  8. 根据权利要求7所述的装置,其特征在于,所述传感器为霍尔电流传感器。The device of claim 7 wherein said sensor is a Hall current sensor.
  9. 根据权利要求8所述的装置,其特征在于,所述电机控制器的输出电缆包括第一相电流电缆、第二相电流电缆和第三相电流电缆,所述多路模拟信号采集通道包括第一组模拟信号采集通道、第二组模拟信号采集通道和第三组模拟信号采集通道,所述霍尔电流传感器包括:The apparatus according to claim 8 wherein said output cable of said motor controller comprises a first phase current cable, a second phase current cable and a third phase current cable, said plurality of analog signal acquisition channels comprising A set of analog signal acquisition channels, a second set of analog signal acquisition channels, and a third set of analog signal acquisition channels, the Hall current sensors comprising:
    第一霍尔电流传感器,套装在所述第一相电流电缆上,通过所述第一组模拟信号采集通道与所述控制芯片相连接,用于感应所述电机控制器输出的第一相电流,输出第一电压信号;a first Hall current sensor, disposed on the first phase current cable, connected to the control chip through the first set of analog signal acquisition channels, for sensing a first phase current output by the motor controller , outputting a first voltage signal;
    第二霍尔电流传感器,套装在所述第二相电流电缆上,通过所述第二组模拟信号采集通道与所述控制芯片相连接,用于感应所述电机控制器输出的第二相电流,输出第二电压信号;以及a second Hall current sensor, disposed on the second phase current cable, connected to the control chip through the second set of analog signal acquisition channels, for sensing a second phase current output by the motor controller , outputting a second voltage signal;
    第三霍尔电流传感器,套装在所述第三相电流电缆上,通过所述第三组模拟信号采集 通道与所述控制芯片相连接,用于感应所述电机控制器输出的第三相电流,输出第三电压信号。a third Hall current sensor, disposed on the third phase current cable, and collected by the third group of analog signals The channel is connected to the control chip for sensing a third phase current output by the motor controller and outputting a third voltage signal.
  10. 根据权利要求7-9任一项所述的装置,其特征在于,所述采样芯片包括:The apparatus according to any one of claims 7-9, wherein the sampling chip comprises:
    多个模拟信号采集接口,通过所述多路模拟信号采集通道与所述传感器的输出相连接,用于采集所述传感器输出的采样信号,其中,所述多个模拟信号采集接口与所述多路模拟信号采集通道一一对应。a plurality of analog signal acquisition interfaces connected to the output of the sensor through the multi-channel analog signal acquisition channel for collecting sampling signals output by the sensor, wherein the plurality of analog signal acquisition interfaces and the plurality of The analog signal acquisition channels of the road correspond one-to-one.
  11. 根据权利要求10所述的装置,其特征在于,所述传感器为霍尔电流传感器,用于感应所述相电流输出电压信号,所述多路模拟信号采集通道包括第一路模拟信号采集通道和第二路模拟信号采集通道,所述多个模拟信号采集接口包括:The device according to claim 10, wherein the sensor is a Hall current sensor for sensing the phase current output voltage signal, and the multi-channel analog signal acquisition channel comprises a first analog signal acquisition channel and The second analog signal acquisition channel, the multiple analog signal acquisition interfaces include:
    第一模拟信号采集接口,通过所述第一路模拟信号采集通道与所述霍尔电流传感器的输出相连接,用于采集所述霍尔电流传感器输出的电压信号获取第一电压采样信号;以及The first analog signal acquisition interface is connected to the output of the Hall current sensor through the first analog signal acquisition channel, and is configured to acquire a voltage signal output by the Hall current sensor to obtain a first voltage sampling signal;
    第二模拟信号采集接口,通过所述第二路模拟信号采集通道与所述霍尔电流传感器的输出相连接,用于采集所述霍尔电流传感器输出的电压信号获取第二电压采样信号。The second analog signal acquisition interface is connected to the output of the Hall current sensor through the second analog signal acquisition channel, and is configured to acquire a voltage signal output by the Hall current sensor to obtain a second voltage sampling signal.
  12. 一种电机控制器,其特征在于,包括:A motor controller, comprising:
    采样芯片,通过多路模拟信号采集通道与传感器的输出相连接,用于采集所述传感器的输出并获取多个采样信号,其中,所述传感器用于感应所述电机控制器输出的相电流并输出采样信号;以及a sampling chip connected to an output of the sensor through a plurality of analog signal acquisition channels for acquiring an output of the sensor and acquiring a plurality of sampling signals, wherein the sensor is configured to sense a phase current output by the motor controller and Output sampling signal;
    控制芯片,与所述采样芯片相连接,用于根据所述多个采样信号获取所述相电流的采样结果。And a control chip connected to the sampling chip, configured to acquire a sampling result of the phase current according to the plurality of sampling signals.
  13. 一种电动汽车,其特征在于,包括权利要求7至11中任一项所述的相电流信号采样装置或者权利要求12所述的电机控制器。 An electric vehicle characterized by comprising the phase current signal sampling device according to any one of claims 7 to 11 or the motor controller according to claim 12.
PCT/CN2016/103205 2015-12-25 2016-10-25 Phase current signal sampling method and apparatus, electric motor controller and electric vehicle WO2017107645A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510997315.2A CN105548657B (en) 2015-12-25 2015-12-25 The phase current signal method of sampling and device, electric machine controller and electric car
CN201510997315.2 2015-12-25

Publications (1)

Publication Number Publication Date
WO2017107645A1 true WO2017107645A1 (en) 2017-06-29

Family

ID=55827978

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103205 WO2017107645A1 (en) 2015-12-25 2016-10-25 Phase current signal sampling method and apparatus, electric motor controller and electric vehicle

Country Status (2)

Country Link
CN (1) CN105548657B (en)
WO (1) WO2017107645A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654217A (en) * 2020-06-01 2020-09-11 河北冀研能源科学技术研究院有限公司 Active power control method of heat supply network head station asynchronous generator set based on current control
CN111796134A (en) * 2019-04-08 2020-10-20 深圳市瑞能实业股份有限公司 Current sampling failure judgment method and device for multiphase circuit
CN112540211A (en) * 2020-12-04 2021-03-23 上海辛格林纳新时达电机有限公司 Current checking method and system, upper computer and storage medium
CN114977965A (en) * 2022-06-29 2022-08-30 广东高标电子科技有限公司 Electric vehicle phase current calculation method and electric vehicle

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105548657B (en) * 2015-12-25 2019-02-26 北京新能源汽车股份有限公司 The phase current signal method of sampling and device, electric machine controller and electric car
CN106546809B (en) * 2016-12-06 2019-09-13 深圳拓邦股份有限公司 It is a kind of based on without filtering phase current sampling circuit control method and device
CN107561340A (en) * 2017-07-27 2018-01-09 中国船舶重工集团公司第七二四研究所 A kind of wide temperature drift of AC servo driver electric current is moved from correcting detection method
CN109752652B (en) * 2017-11-07 2021-02-02 上海大郡动力控制技术有限公司 Phase current sampling method for permanent magnet synchronous motor
CN111308170B (en) * 2018-12-12 2022-11-08 浙江盾安人工环境股份有限公司 Motor phase current sampling method and device
CN110780107B (en) * 2019-11-29 2022-03-22 杭州富阳中恒电气有限公司 Current sampling control method and device for three-phase converter, electronic equipment and medium
CN111123774B (en) * 2019-12-19 2021-09-07 上海宇航系统工程研究所 Motor current acquisition method and system applied to deep space detection antenna servo controller
CN111426868B (en) * 2020-04-23 2022-03-29 合肥巨一动力系统有限公司 Controller current sampling system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101565003A (en) * 2009-06-08 2009-10-28 奇瑞汽车股份有限公司 Motor controller of electric automobile and control method thereof
CN102045014A (en) * 2010-11-29 2011-05-04 辽宁工业大学 Brushless DC motor controller for four-wheel independently driven electric automobile and control method thereof
US20120217909A1 (en) * 2011-02-25 2012-08-30 Long Wu Synchronization of Position and Current Measurements in an Electric Motor Control Application using an FPGA
CN102914691A (en) * 2012-10-19 2013-02-06 冶金自动化研究设计院 Device with adaptive function and method for detecting three-phase alternating current voltage and current
CN103248294A (en) * 2013-04-28 2013-08-14 天津大学 Position sensor-free double closed-loop speed regulation control method for brushless DC motor
CN204334400U (en) * 2015-01-26 2015-05-13 武汉理工大学 A kind of signal sampling device controlled for motor in electric automobile
CN105548657A (en) * 2015-12-25 2016-05-04 北京新能源汽车股份有限公司 Phase current signal sampling method and apparatus thereof, motor controller and electric automobile
CN205263170U (en) * 2015-12-25 2016-05-25 北京新能源汽车股份有限公司 Phase electric current signal sampling device, machine controller and electric automobile

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201118513Y (en) * 2007-10-31 2008-09-17 广西工学院 Efficiency optimization control system for three-phase inductance electromotor
CN101834558A (en) * 2009-12-28 2010-09-15 南昌大学 Vector controller of alternating current asynchronous motor
CN102490614B (en) * 2011-11-15 2013-08-14 上海三运电机控制技术有限公司 Comprehensive protection control method for controller drive system of electric automobile
CN203027182U (en) * 2013-01-29 2013-06-26 黑龙江科技学院 Controller of direct-current servo motors
CN105007009B (en) * 2015-07-27 2017-10-20 河海大学常州校区 Salient Motor Direct Torque Control device and method based on terminal sliding mode

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101565003A (en) * 2009-06-08 2009-10-28 奇瑞汽车股份有限公司 Motor controller of electric automobile and control method thereof
CN102045014A (en) * 2010-11-29 2011-05-04 辽宁工业大学 Brushless DC motor controller for four-wheel independently driven electric automobile and control method thereof
US20120217909A1 (en) * 2011-02-25 2012-08-30 Long Wu Synchronization of Position and Current Measurements in an Electric Motor Control Application using an FPGA
CN102914691A (en) * 2012-10-19 2013-02-06 冶金自动化研究设计院 Device with adaptive function and method for detecting three-phase alternating current voltage and current
CN103248294A (en) * 2013-04-28 2013-08-14 天津大学 Position sensor-free double closed-loop speed regulation control method for brushless DC motor
CN204334400U (en) * 2015-01-26 2015-05-13 武汉理工大学 A kind of signal sampling device controlled for motor in electric automobile
CN105548657A (en) * 2015-12-25 2016-05-04 北京新能源汽车股份有限公司 Phase current signal sampling method and apparatus thereof, motor controller and electric automobile
CN205263170U (en) * 2015-12-25 2016-05-25 北京新能源汽车股份有限公司 Phase electric current signal sampling device, machine controller and electric automobile

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111796134A (en) * 2019-04-08 2020-10-20 深圳市瑞能实业股份有限公司 Current sampling failure judgment method and device for multiphase circuit
CN111796134B (en) * 2019-04-08 2023-03-14 深圳市瑞能实业股份有限公司 Current sampling failure judgment method and device for multiphase circuit
CN111654217A (en) * 2020-06-01 2020-09-11 河北冀研能源科学技术研究院有限公司 Active power control method of heat supply network head station asynchronous generator set based on current control
CN111654217B (en) * 2020-06-01 2023-09-22 河北建投能源科学技术研究院有限公司 Active power control method for asynchronous generator set of heat supply network head station based on current control
CN112540211A (en) * 2020-12-04 2021-03-23 上海辛格林纳新时达电机有限公司 Current checking method and system, upper computer and storage medium
CN114977965A (en) * 2022-06-29 2022-08-30 广东高标电子科技有限公司 Electric vehicle phase current calculation method and electric vehicle
CN114977965B (en) * 2022-06-29 2023-11-17 广东高标智能科技股份有限公司 Electric vehicle phase current calculation method and electric vehicle

Also Published As

Publication number Publication date
CN105548657A (en) 2016-05-04
CN105548657B (en) 2019-02-26

Similar Documents

Publication Publication Date Title
WO2017107645A1 (en) Phase current signal sampling method and apparatus, electric motor controller and electric vehicle
CN105981293B (en) Power conversion device
CN108282124A (en) The rotor position angle compensation method of motor vector controlled
CN105763109B (en) A kind of phase change control method of DC brushless motor, the control system for non-brush direct currunt electromotors
CN104380594B (en) Power conversion device
CN104242768A (en) Finite control set model predictive control method for multi-motor control system
JP2011523340A (en) Space vector based synchronous modulation method and system
CN109239635B (en) Permanent magnet synchronous motor rotary transformer zero calibration system and calibration method
CN104767434A (en) Rotor phase commutation position detection and phase commutation control method for brushless direct current motor
CN101718843A (en) Stator winding phase sequence, corresponding relation determining method of stator winding phase sequence and coder and device
CN102594249A (en) Velocity sensorless vector control method for single bus current detection of three-phase alternating-current motor
CN103904974B (en) A kind of motor control assembly of electric automobile
CN203135771U (en) Three-to-three conduction brushless direct-current motor control system
Czerwinski et al. Examination of electromagnetic noises and practical operations of a PMSM motor driven by a DSP and controlled by means of field oriented control
CN102608438B (en) Method for determining corresponding relation of phase sequence of stator winding and encoder
CN205263170U (en) Phase electric current signal sampling device, machine controller and electric automobile
CN107340472A (en) A kind of detection means and method of stepper motor motion state
US10359472B2 (en) Automatic identification of the type of motor
CN104333287A (en) Method for measuring code execution time of pulse width modulation strategy of DSP vector control system
CN104362909A (en) Brushless direct-current motor controller
CN102621405B (en) Device for detecting stator winding phase sequence and encoder output level
CN110718995B (en) Current detection method and detection system for multi-phase switched reluctance motor
CN106411221A (en) Current checking and control device for motor wide speed
CN105897073A (en) Speed regulation system of switch reluctance machine
JP6465236B1 (en) Control device, control method, control system, learning device, and model data generation method

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: 16877456

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: 16877456

Country of ref document: EP

Kind code of ref document: A1