CN116404941B - A motor control method, device and readable storage medium - Google Patents
A motor control method, device and readable storage medium Download PDFInfo
- Publication number
- CN116404941B CN116404941B CN202310673392.7A CN202310673392A CN116404941B CN 116404941 B CN116404941 B CN 116404941B CN 202310673392 A CN202310673392 A CN 202310673392A CN 116404941 B CN116404941 B CN 116404941B
- Authority
- CN
- China
- Prior art keywords
- current
- analog
- phase motor
- switching element
- phase
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P23/00—Arrangements or methods for the control of AC motors characterised by a control method other than vector control
- H02P23/14—Estimation or adaptation of motor parameters, e.g. rotor time constant, flux, speed, current or voltage
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02M—APPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
- H02M1/00—Details of apparatus for conversion
- H02M1/08—Circuits specially adapted for the generation of control voltages for semiconductor devices incorporated in static converters
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02M—APPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
- H02M7/00—Conversion of AC power input into DC power output; Conversion of DC power input into AC power output
- H02M7/42—Conversion of DC power input into AC power output without possibility of reversal
- H02M7/44—Conversion of DC power input into AC power output without possibility of reversal by static converters
- H02M7/48—Conversion of DC power input into AC power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode
- H02M7/53—Conversion of DC power input into AC power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal
- H02M7/537—Conversion of DC power input into AC power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only, e.g. single switched pulse inverters
- H02M7/5387—Conversion of DC power input into AC power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only, e.g. single switched pulse inverters in a bridge configuration
- H02M7/53871—Conversion of DC power input into AC power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only, e.g. single switched pulse inverters in a bridge configuration with automatic control of output voltage or current
- H02M7/53875—Conversion of DC power input into AC power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only, e.g. single switched pulse inverters in a bridge configuration with automatic control of output voltage or current with analogue control of three-phase output
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P27/00—Arrangements or methods for the control of AC motors characterised by the kind of supply voltage
- H02P27/04—Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage
- H02P27/06—Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage using DC to AC converters or inverters
- H02P27/08—Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage using DC to AC converters or inverters with pulse width modulation
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Electric Motors In General (AREA)
Abstract
本申请提供了一种电机控制方法、装置和可读存储介质,涉及电机控制技术领域。该方法包括:在电机控制过程中,在开关元件的当前开关周期内同时触发N(N为2或3)个模数转换器采样三相电机的电流得到N个电流值,在相邻的下一个开关周期内,根据N个电流值控制开关元件动作,以通过驱动电路控制三相电机运行。在电流采样过程中N个模数转换器同时动作,可以使获取到的三相电流的电流值的采样时刻之间的偏差接近或等于零,从而可以使获取到的电流值可以较为准确的表征三相电机的状态,这样在根据三相电流的电流值控制三相电机运行时,可以使三相电机具有较高的稳定性。
This application provides a motor control method, device and readable storage medium, relating to the technical field of motor control. The method includes: during the motor control process, N (N is 2 or 3) analog-to-digital converters are simultaneously triggered during the current switching cycle of the switching element to sample the current of the three-phase motor to obtain N current values. Within a switching cycle, the action of the switching element is controlled according to N current values to control the operation of the three-phase motor through the drive circuit. During the current sampling process, N analog-to-digital converters operate simultaneously, which can make the deviation between the sampling moments of the obtained current values of the three-phase current close to or equal to zero, so that the obtained current values can more accurately represent the three-phase current values. In this way, when controlling the operation of the three-phase motor according to the current value of the three-phase current, the three-phase motor can have higher stability.
Description
技术领域Technical field
本申请涉及电机控制技术领域,特别涉及一种电机控制方法、装置和可读存储介质。The present application relates to the field of motor control technology, and in particular to a motor control method, device and readable storage medium.
背景技术Background technique
目前,三相电机的控制系统中主要包括控制器、驱动电路和三相电机。控制器可以对三相电机的三相电流进行采样得到电流值,并根据采样得到的电流值控制驱动电路中的开关元件动作,以通过驱动电路控制三相电机运行。At present, the three-phase motor control system mainly includes a controller, a drive circuit and a three-phase motor. The controller can sample the three-phase current of the three-phase motor to obtain the current value, and control the action of the switching element in the drive circuit based on the sampled current value to control the operation of the three-phase motor through the drive circuit.
相关技术中,控制器在对三相电流进行采样的过程中,三相电流的采样时刻之间可能会存在偏差,导致采样得到的三相电流的电流值可能不是同一时刻的电流值,无法准确表征三相电机的状态。这样,在根据采样得到的电流值控制三相电机运行时,会导致三相电机的稳定性较差。In related technologies, during the process of sampling three-phase currents by the controller, there may be deviations between the sampling times of the three-phase currents. As a result, the sampled current values of the three-phase currents may not be the current values at the same time and cannot be accurate. Characterizes the status of the three-phase motor. In this way, when controlling the operation of the three-phase motor based on the sampled current value, the stability of the three-phase motor will be poor.
发明内容Contents of the invention
本申请实施例提供了一种电机控制方法、装置和可读存储介质,能够使获取到的三相电流的电流值的采样时刻之间的偏差接近或等于零,有利于提高三相电机的稳定性。Embodiments of the present application provide a motor control method, device and readable storage medium, which can make the deviation between the sampling moments of the obtained current values of the three-phase current close to or equal to zero, which is beneficial to improving the stability of the three-phase motor. .
第一方面,提供了一种电机控制方法,所述方法包括:In a first aspect, a motor control method is provided, which method includes:
在开关元件的当前开关周期内,同时触发N个模数转换器采样三相电机的电流得到N个电流值,所述开关元件位于所述三相电机的驱动电路内,每个模数转换器分别对所述三相电机的其中一相电流进行采样,所述N为2或3;During the current switching cycle of the switching element, N analog-to-digital converters are simultaneously triggered to sample the current of the three-phase motor to obtain N current values. The switching element is located in the drive circuit of the three-phase motor. Each analog-to-digital converter Sampling one phase current of the three-phase motor respectively, and the N is 2 or 3;
在相邻的下一个开关周期内,根据所述N个电流值控制所述开关元件动作,以通过所述驱动电路控制所述三相电机运行。In the next adjacent switching period, the action of the switching element is controlled according to the N current values to control the operation of the three-phase motor through the drive circuit.
本申请实施例中,在电流采样过程中N个模数转换器同时动作,可以使获取到的三相电流的电流值的采样时刻之间的偏差接近或等于零,从而可以使获取到的三相电流的电流值可以较为准确的表征三相电机的状态,这样在根据三相电流的电流值控制三相电机运行时,可以使三相电机具有较高的稳定性。In the embodiment of the present application, during the current sampling process, N analog-to-digital converters operate simultaneously, which can make the deviation between the sampling times of the obtained current values of the three-phase current close to or equal to zero, so that the obtained three-phase current can be The current value of the current can more accurately characterize the state of the three-phase motor, so that when controlling the operation of the three-phase motor based on the current value of the three-phase current, the three-phase motor can have higher stability.
同时,在三相电机的控制过程中,并不需要通过算法减小采样得到的三相电流的电流值之间的时间偏差,可以降低控制器的计算量,从而可以降低控制器的功耗。At the same time, during the control process of the three-phase motor, there is no need to use an algorithm to reduce the time deviation between the current values of the three-phase currents sampled, which can reduce the calculation amount of the controller, thereby reducing the power consumption of the controller.
在一些实施例中,所述同时触发N个模数转换器采样三相电机的电流得到N个电流值,包括: 在第一时刻同时触发所述N个模数转换器采样所述三相电机的电流得到所述N个电流值,所述第一时刻位于所述开关元件的状态切换时刻之后、且与所述状态切换时刻之间间隔预设时长。In some embodiments, triggering N analog-to-digital converters simultaneously to sample the current of the three-phase motor to obtain N current values includes: simultaneously triggering the N analog-to-digital converters to sample the three-phase motor at the first moment. The N current values are obtained from the current, and the first moment is located after the state switching moment of the switching element and is separated by a preset time length from the state switching moment.
本申请实施例中,在开关元件的状态切换之后,间隔预设时长同时触发N个模数转换器对三相电机的电流进行采样,可以获取到三相电机在达到稳定状态时的电流值,从而获取到可以准确表征电机状态的电流值,进而可以提高在根据电流值控制三相电机运行时三相电机的稳定性。In the embodiment of this application, after the state of the switching element is switched, N analog-to-digital converters are simultaneously triggered at a preset time interval to sample the current of the three-phase motor, and the current value of the three-phase motor when it reaches a stable state can be obtained. In this way, a current value that can accurately characterize the state of the motor is obtained, thereby improving the stability of the three-phase motor when controlling the operation of the three-phase motor based on the current value.
在一些实施例中,所述状态切换时刻为所述当前开关周期内所述开关元件的状态第一次发生切换的时刻。In some embodiments, the state switching moment is the moment when the state of the switching element switches for the first time in the current switching cycle.
本申请实施例中,在开关元件的状态第一次发生切换后间隔预设时长对三相电机的电流进行采样,可以在开关周期的起始阶段控制模数转换器对三相电机的电流进行采样,可以简化电流采样过程。In the embodiment of the present application, the current of the three-phase motor is sampled at a preset time interval after the state of the switching element is switched for the first time. The analog-to-digital converter can be controlled to sample the current of the three-phase motor at the beginning of the switching cycle. Sampling can simplify the current sampling process.
在一些实施例中,所述在第一时刻同时触发所述N个模数转换器采样所述三相电机的电流得到所述N个电流值,包括:通过触发波触发所述N个模数转换器在所述第一时刻采样所述三相电机的电流得到所述N个电流值,所述触发波由所述开关元件的基准波延迟所述预设时长后得到。In some embodiments, triggering the N analog-to-digital converters simultaneously at the first moment to sample the current of the three-phase motor to obtain the N current values includes: triggering the N analog-to-digital converters through a trigger wave The converter samples the current of the three-phase motor at the first moment to obtain the N current values, and the trigger wave is obtained by delaying the reference wave of the switching element for the preset time period.
本申请实施例中,通过延迟开关元件的基准波得到可以同时触发N个模数转换器动作的触发波,通过触发波触发N个模数转换器同时对三相电机的电流进行采样,控制过程比较简单,并且可以较为准确地控制采样时间,从而可以提高电流采样的准确性,进而可以提高三相电机控制过程中的稳定性。In the embodiment of the present application, a trigger wave that can simultaneously trigger the action of N analog-to-digital converters is obtained by delaying the reference wave of the switching element. The N analog-to-digital converters are triggered by the trigger wave to simultaneously sample the current of the three-phase motor. The control process It is relatively simple and can control the sampling time more accurately, which can improve the accuracy of current sampling and thus improve the stability of the three-phase motor control process.
在一些实施例中,所述预设时长大于或等于30微秒。In some embodiments, the preset time period is greater than or equal to 30 microseconds.
其中,当预设时长∆t大于或等于30微秒时,可以使得N个模数转换器在三相电机进入稳定状态之后对三相电机的电流进行采样,从而可以获取到三相电机在达到稳定状态时的电流值,进而可以提高三相电机控制过程中的稳定性。Among them, when the preset time Δt is greater than or equal to 30 microseconds, N analog-to-digital converters can be used to sample the current of the three-phase motor after the three-phase motor enters a stable state, so that the current of the three-phase motor can be obtained. The current value in the steady state can improve the stability of the three-phase motor control process.
在一些实施例中,所述预设时长小于或等于50微秒。In some embodiments, the preset time period is less than or equal to 50 microseconds.
其中,当预设时长∆t小于或等于50微秒时,可以使得N个模数转换器可以在开关元件发生状态切换之后及时对三相电机的电流进行采样,可以提高电流采样的及时性和有效性。Among them, when the preset time Δt is less than or equal to 50 microseconds, N analog-to-digital converters can sample the current of the three-phase motor in time after the switching element switches state, which can improve the timeliness and accuracy of current sampling. effectiveness.
在一些实施例中,所述同时触发N个模数转换器采样三相电机的电流得到N个电流值,包括: 在所述开关元件的状态切换时刻同时触发所述N个模数转换器采样所述三相电机的电流,以得到所述N个电流值。In some embodiments, the simultaneous triggering of N analog-to-digital converters to sample the current of the three-phase motor to obtain N current values includes: simultaneously triggering the N analog-to-digital converters to sample at the state switching moment of the switching element. The current of the three-phase motor is used to obtain the N current values.
本申请实施例中,在开关元件的状态切换时刻同时触发N个模数转换器对三相电机的电流进行采样,可以简化电流采样过程。In the embodiment of the present application, N analog-to-digital converters are simultaneously triggered to sample the current of the three-phase motor at the moment when the switching element switches state, which can simplify the current sampling process.
在一些实施例中,所述状态切换时刻为所述当前开关周期内所述开关元件的状态第一次发生切换的时刻。In some embodiments, the state switching moment is the moment when the state of the switching element switches for the first time in the current switching cycle.
本申请实施例中,在开关元件的状态第一次发生切换时对三相电机的电流进行采样,可以在开关周期的起始时刻控制模数转换器对三相电机的电流进行采样,可以简化电流采样过程。In the embodiment of the present application, the current of the three-phase motor is sampled when the state of the switching element is switched for the first time. The analog-to-digital converter can be controlled to sample the current of the three-phase motor at the beginning of the switching cycle, which can simplify Current sampling process.
在一些实施例中,所述在所述开关元件的状态切换时刻同时触发所述N个模数转换器采样所述三相电机的电流,包括:通过所述开关元件的基准波同时触发所述N个模数转换器对所述三相电机的电流进行采样。In some embodiments, simultaneously triggering the N analog-to-digital converters to sample the current of the three-phase motor at the moment of state switching of the switching element includes: simultaneously triggering the N analog-to-digital converters through the reference wave of the switching element. N analog-to-digital converters sample the current of the three-phase motor.
本申请实施例中,通过开关元件的基准波同时触发N个模数转换器对三相电机的电流进行采样,控制过程比较简单,可以简化电流采样过程。In the embodiment of the present application, N analog-to-digital converters are simultaneously triggered by the reference wave of the switching element to sample the current of the three-phase motor. The control process is relatively simple and can simplify the current sampling process.
第二方面,提供了一种电机控制装置,所述装置包括:In a second aspect, a motor control device is provided, which device includes:
触发模块,用于在开关元件的当前开关周期内,同时触发N个模数转换器采样三相电机的电流得到N个电流值,所述开关元件位于所述三相电机的驱动电路内,每个模数转换器分别对所述三相电机的其中一相电流进行采样,所述N为2或3;The trigger module is used to simultaneously trigger N analog-to-digital converters to sample the current of the three-phase motor to obtain N current values during the current switching cycle of the switching element. The switching element is located in the drive circuit of the three-phase motor. Analog-to-digital converters respectively sample one phase current of the three-phase motor, and the N is 2 or 3;
控制模块,用于在相邻的下一个开关周期内,根据所述N个电流值控制所述开关元件动作,以通过所述驱动电路控制所述三相电机运行。A control module, configured to control the action of the switching element according to the N current values in the next adjacent switching cycle, so as to control the operation of the three-phase motor through the drive circuit.
在一些实施例中,所述触发模块具体用于在第一时刻同时触发所述N个模数转换器采样所述三相电机的电流得到所述N个电流值,所述第一时刻位于所述开关元件的状态切换时刻之后、且与所述状态切换时刻之间间隔预设时长。In some embodiments, the triggering module is specifically configured to simultaneously trigger the N analog-to-digital converters to sample the current of the three-phase motor to obtain the N current values at the first moment. There is a preset time interval between the state switching moment of the switching element and the state switching moment.
在一些实施例中,所述状态切换时刻为所述当前开关周期内所述开关元件的状态第一次发生切换的时刻。In some embodiments, the state switching moment is the moment when the state of the switching element switches for the first time in the current switching cycle.
在一些实施例中,所述触发模块具体用于通过触发波触发所述N个模数转换器在所述第一时刻采样所述三相电机的电流得到所述N个电流值,所述触发波由所述开关元件的基准波延迟所述预设时长后得到。In some embodiments, the trigger module is specifically configured to trigger the N analog-to-digital converters to sample the current of the three-phase motor at the first moment to obtain the N current values through a trigger wave. The wave is obtained by delaying the reference wave of the switching element by the preset time period.
在一些实施例中,所述预设时长大于或等于30微秒。In some embodiments, the preset time period is greater than or equal to 30 microseconds.
在一些实施例中,所述预设时长小于或等于50微秒。In some embodiments, the preset time period is less than or equal to 50 microseconds.
在一些实施例中,所述触发模块具体用于在所述开关元件的状态切换时刻同时触发所述N个模数转换器采样所述三相电机的电流,以得到所述N个电流值。In some embodiments, the triggering module is specifically configured to simultaneously trigger the N analog-to-digital converters to sample the current of the three-phase motor at the moment of state switching of the switching element to obtain the N current values.
在一些实施例中,所述状态切换时刻为所述当前开关周期内所述开关元件的状态第一次发生切换的时刻。In some embodiments, the state switching moment is the moment when the state of the switching element switches for the first time in the current switching cycle.
在一些实施例中,所述触发模块具体用于通过所述开关元件的基准波同时触发所述N个模数转换器对所述三相电机的电流进行采样。In some embodiments, the triggering module is specifically configured to simultaneously trigger the N analog-to-digital converters to sample the current of the three-phase motor through the reference wave of the switching element.
第三方面,提供了一种可读存储介质,所述可读存储介质上存储有计算机程序,当所述计算机程序在电机控制装置上运行时,使得所述电机控制装置执行前述第一方面所提供的电机控制方法。In a third aspect, a readable storage medium is provided. A computer program is stored on the readable storage medium. When the computer program is run on a motor control device, the motor control device causes the motor control device to execute the aforementioned first aspect. Provided motor control methods.
第四方面,提供了一种电机控制装置,包括:处理器;存储器;以及计算机程序,其中所计算机程序被存储在所述存储器中,当所述计算机程序被所述处理器执行时,使得所述电机控制装置执行前述第一方面所提供的电机控制方法。In a fourth aspect, a motor control device is provided, including: a processor; a memory; and a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, the computer program causes the computer program to The motor control device executes the motor control method provided in the first aspect.
第五方面,提供了一种计算机程序产品,包括:计算机程序代码,当所述计算机程序代码在电机控制装置上运行时,使得所述电机控制装置执行前述第一方面所提供的电机控制方法。In a fifth aspect, a computer program product is provided, including: computer program code. When the computer program code is run on a motor control device, it causes the motor control device to execute the motor control method provided in the first aspect.
第六方面,提供了一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的电机控制装置执行前述第一方面中所提供的电机控制方法。A sixth aspect provides a chip, including: a processor for calling and running a computer program from a memory, so that a motor control device installed with the chip executes the motor control method provided in the first aspect.
可以理解地,上述第二方面、第四方面提供的电机控制装置、第三方面提供的可读存储介质、第五方面提供的计算机程序产品以及第六方面提供的芯片均用于执行前述第一方面所提供的电机控制方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。It can be understood that the motor control device provided by the second aspect and the fourth aspect, the readable storage medium provided by the third aspect, the computer program product provided by the fifth aspect, and the chip provided by the sixth aspect are all used to execute the aforementioned first aspect. The motor control method provided by the aspect, therefore, the beneficial effects it can achieve can be referred to the beneficial effects in the corresponding method provided above, and will not be described again here.
附图说明Description of the drawings
图1示出了相关技术中的一种电机控制系统的结构示意图。Figure 1 shows a schematic structural diagram of a motor control system in the related art.
图2示出了相关技术中的一种电机控制系统的时序图。FIG. 2 shows a timing diagram of a motor control system in the related art.
图3示出了本申请实施例提供的一种电机控制方法的步骤流程图。Figure 3 shows a step flow chart of a motor control method provided by an embodiment of the present application.
图4示出了本申请实施例提供的一种电机控制系统的结构示意图。FIG. 4 shows a schematic structural diagram of a motor control system provided by an embodiment of the present application.
图5示出了本申请实施例提供的一种电机控制系统的时序图。FIG. 5 shows a timing diagram of a motor control system provided by an embodiment of the present application.
图6示出了本申请实施例提供的另一种电机控制系统的时序图。Figure 6 shows a timing diagram of another motor control system provided by an embodiment of the present application.
图7示出了本申请实施例提供的另一种电机控制系统的时序图。FIG. 7 shows a timing diagram of another motor control system provided by an embodiment of the present application.
图8示出了本申请实施例提供的另一种电机控制系统的结构示意图。FIG. 8 shows a schematic structural diagram of another motor control system provided by an embodiment of the present application.
图9示出了本申请实施例提供的一种电机控制装置的结构示意图。FIG. 9 shows a schematic structural diagram of a motor control device provided by an embodiment of the present application.
图10示出了本申请实施例提供的一种电机控制装置的结构框图。Figure 10 shows a structural block diagram of a motor control device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。The technical solutions in this application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments.
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures and technologies are provided to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
本文中术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。The term "comprising" as used herein indicates the presence of described features, integers, steps, operations, elements and/or components but does not exclude the presence of one or more other features, integers, steps, operations, elements, components and/or collections thereof existence or addition. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized. Hereinafter, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this article is just an association relationship that describes related objects, indicating that three relationships can exist. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. B these three situations. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.
图1示出了相关技术中的一种电机控制系统的结构示意图。如图1所示,电机控制系统中主要包括控制器11、驱动电路12和三相电机13。驱动电路12可以为三相桥式逆变电路(也可以称为逆变器),包括第一开关元件121和第二开关元件122组成的第一桥臂,第三开关元件123和第四开关元件124组成的第二桥臂,以及由第五开关元件125和第六开关元件126组成的第三桥臂。Figure 1 shows a schematic structural diagram of a motor control system in the related art. As shown in Figure 1, the motor control system mainly includes a controller 11, a drive circuit 12 and a three-phase motor 13. The driving circuit 12 may be a three-phase bridge inverter circuit (also called an inverter), including a first bridge arm composed of a first switching element 121 and a second switching element 122, a third switching element 123 and a fourth switch. The second bridge arm is composed of the element 124, and the third bridge arm is composed of the fifth switching element 125 and the sixth switching element 126.
其中,开关元件例如绝缘栅双极型晶体管(insulated gate bipolartransistor,IGBT)和绝缘栅型场效应管(metal oxide semiconductor,MOS),但不限于此。第一开关元件121、第三开关元件123、第五开关元件125也可以称为驱动电路12的上桥臂,上桥臂的一端连接直流电源的正极,另一端连接三相电机13。第二开关元件122、第四开关元件124和第六开关元件126也可以称为下桥臂,下桥臂的一端连接直流电源的负极,另一端连接三相电机13。The switching elements include, but are not limited to, insulated gate bipolar transistors (IGBTs) and insulated gate field effect transistors (metal oxide semiconductors, MOSs). The first switching element 121 , the third switching element 123 , and the fifth switching element 125 can also be called the upper arm of the driving circuit 12 . One end of the upper arm is connected to the positive electrode of the DC power supply, and the other end is connected to the three-phase motor 13 . The second switching element 122 , the fourth switching element 124 and the sixth switching element 126 can also be called a lower bridge arm. One end of the lower bridge arm is connected to the negative pole of the DC power supply, and the other end is connected to the three-phase motor 13 .
控制器11可以是微控制单元(micro controller unit,MCU),控制器11的6个输出引脚分别连接驱动电路12中对应的一个开关元件的控制端,用于向6个开关元件输出脉冲宽度调制(pulse width modulation,PWM)波,以控制开关元件导通或截止,控制器11向开关元件输出的PWM波可以称为控制波。The controller 11 may be a micro controller unit (MCU). The six output pins of the controller 11 are respectively connected to the control end of a corresponding switching element in the drive circuit 12 for outputting pulse widths to the six switching elements. Modulate (pulse width modulation, PWM) wave to control the switching element to be on or off. The PWM wave output by the controller 11 to the switching element can be called a control wave.
控制器11内包括一个或多个模数转换器(analog to digital converter,ADC),模数转换器可以对模拟信号进行采样,以将模拟信号转换为数字信号。模数转换器通常包括多个通道,可以配置每个通道对应控制器11的一个输入引脚,通过通道对应的输入引脚对1路模拟信号进行采样。The controller 11 includes one or more analog to digital converters (analog to digital converters, ADC), which can sample analog signals to convert the analog signals into digital signals. The analog-to-digital converter usually includes multiple channels, each channel can be configured to correspond to an input pin of the controller 11, and an analog signal is sampled through the input pin corresponding to the channel.
相关技术中,主要通过控制器11中包括的1个模数转换器的3个通道分别对三相电机13的三相电流进行采样。如图1所示,控制器11中包括第一模数转换器111,将第一模数转换器111的3个通道配置为控制器11的3个输入引脚,3个输入引脚分别连接驱动电路12中的3个下桥臂。在三相电机的运行过程中,第一模数转换器111的3个通道分别对三相电机13的一相电流进行采样,可以采样得到三相电流的3个电流值。In the related art, the three-phase currents of the three-phase motor 13 are mainly sampled through three channels of an analog-to-digital converter included in the controller 11 . As shown in Figure 1, the controller 11 includes a first analog-to-digital converter 111. The three channels of the first analog-to-digital converter 111 are configured as three input pins of the controller 11, and the three input pins are connected respectively. The three lower arms in the drive circuit 12. During the operation of the three-phase motor, the three channels of the first analog-to-digital converter 111 respectively sample one phase current of the three-phase motor 13, and three current values of the three-phase current can be sampled.
图2示出了相关技术中的一种电机控制系统的时序图。图2中横坐标为时间t,纵坐标为电压U。第一曲线21、第二曲线22和第三曲线23分别为三相电机13的三相电压。在三相电机的控制过程中,控制器11的内部生成开关元件的基准波24,基准波24为PWM波,基准波24用于触发6个输出引脚分别向对应的开关元件输出控制波,第一控制波25为下桥臂的控制波,第二控制波26为上桥臂的控制波。FIG. 2 shows a timing diagram of a motor control system in the related art. In Figure 2, the abscissa is time t, and the ordinate is voltage U. The first curve 21 , the second curve 22 and the third curve 23 are respectively the three-phase voltages of the three-phase motor 13 . During the control process of the three-phase motor, the controller 11 internally generates the reference wave 24 of the switching element. The reference wave 24 is a PWM wave. The reference wave 24 is used to trigger the six output pins to output control waves to the corresponding switching elements respectively. The first control wave 25 is the control wave of the lower bridge arm, and the second control wave 26 is the control wave of the upper bridge arm.
其中,开关元件在对应控制波的高电平期间为导通状态,在对应控制波的低电平期间为截止状态,使得基准波24可以控制驱动电路12中的开关元件周期性导通和截止。基准波24的周期T即开关元件的开关周期,在每个开关周期内,开关元件先导通再截止或者先截止再导通。Among them, the switching element is in a conductive state during a high-level period corresponding to the control wave, and is in a cut-off state during a low-level period corresponding to the control wave, so that the reference wave 24 can control the switching element in the driving circuit 12 to be periodically turned on and off. . The period T of the reference wave 24 is the switching period of the switching element. In each switching period, the switching element is first turned on and then turned off or first turned off and then turned on.
同时,控制器11向第一模数转换器111输出基准波24,通过基准波24的上升沿触发第一模数转换器111在每个开关周期内进行1次采样,将流过下桥臂的模拟电流转换为数字形式的电流值,实现对三相电流的采样。At the same time, the controller 11 outputs the reference wave 24 to the first analog-to-digital converter 111. The rising edge of the reference wave 24 triggers the first analog-to-digital converter 111 to perform one sampling in each switching cycle, and the signal flowing through the lower bridge arm is The analog current is converted into a digital current value to realize the sampling of three-phase current.
其中,由于模数转换器的硬件原因,在触发模数转换器对三相电流进行采样时,模数转换器的多个通道分别在不同的时刻进行电流采样,使得模数转换器中各个通道之间的采样时刻之间存在较大的时间偏差。Among them, due to the hardware reasons of the analog-to-digital converter, when the analog-to-digital converter is triggered to sample the three-phase current, multiple channels of the analog-to-digital converter perform current sampling at different times, so that each channel in the analog-to-digital converter There is a large time deviation between the sampling moments.
例如,控制器11在通过基准波24的上升沿触发第一模数转换器111开始对三相电流进行采样时,第一模数转换器111的3个通道会分别在第一采样时刻t1(第一采样时刻为开关周期的起始时刻)、第二采样时刻t2和第三采样时刻t3对三相电流进行采样,使得采样得到的三相电流的3个电流值并不是同一时刻的电流值,3个电流值的采样时刻之间存在较大的时间偏差,从而导致采样得到的三相电流的电流值无法准确表征三相电机13的状态,这样在根据三相电流的电流值控制三相电机13运行时,会导致三相电机13的稳定性较差。For example, when the controller 11 triggers the first analog-to-digital converter 111 to start sampling the three-phase current through the rising edge of the reference wave 24, the three channels of the first analog-to-digital converter 111 will respectively be at the first sampling time t1 ( The first sampling time is the starting time of the switching cycle), the second sampling time t2 and the third sampling time t3 sample the three-phase current, so that the three current values of the three-phase current sampled are not the current values at the same time. , there is a large time deviation between the sampling moments of the three current values, resulting in that the sampled current values of the three-phase current cannot accurately represent the state of the three-phase motor 13. In this way, the three-phase current values are controlled based on the current values of the three-phase currents. When the motor 13 is running, the stability of the three-phase motor 13 will be poor.
为了解决三相电流的采样时刻不统一的问题,通常会通过算法来修正采样得到的三相电流的电流值,以减小三相电流的电流值之间的时间偏差,使采样得到的三相电流的电流值尽可能的等同于同一时刻采样得到的电流值。但是,算法修正效果较差,修正得到的三相电流的电流值之间的时间偏差仍旧存在,无法准确表征三相电机的状态。In order to solve the problem of inconsistent sampling times of three-phase currents, algorithms are usually used to correct the current values of the three-phase currents sampled to reduce the time deviation between the current values of the three-phase currents, so that the sampled three-phase currents are The current value of the current is as equal as possible to the current value sampled at the same time. However, the correction effect of the algorithm is poor, and the time deviation between the corrected current values of the three-phase current still exists, and the state of the three-phase motor cannot be accurately represented.
为了解决上述技术问题,本申请实施例提供一种电机控制方法,在电机控制过程中,在开关元件的当前开关周期内同时触发N(N为2或3)个模数转换器对三相电机的电流进行采样,每个模数转换器对三相电机13的一相电流进行采样,可以采样得到三相电流的3个电流值,或者在采样得到两相电流的2个电流值之后通过2个电流值计算得到另一相电流的电流值。然后,在相邻的下一个开关周期内根据三相电流的3个电流值控制开关元件动作,通过驱动电路控制三相电机运行。In order to solve the above technical problems, embodiments of the present application provide a motor control method. During the motor control process, N (N is 2 or 3) analog-to-digital converters are simultaneously triggered within the current switching cycle of the switching element to control the three-phase motor. The current is sampled. Each analog-to-digital converter samples one phase current of the three-phase motor 13, and can sample 3 current values of the three-phase current, or obtain 2 current values of the two-phase current through 2 Calculate the current value of the other phase current to obtain the current value of the other phase current. Then, in the next adjacent switching cycle, the switching element action is controlled according to the three current values of the three-phase current, and the three-phase motor operation is controlled through the drive circuit.
在电流采样过程中,N个模数转换器同时动作,可以使获取到的三相电流的电流值的采样时刻之间的偏差接近或等于零,从而可以使获取到的三相电流的电流值可以较为准确的表征三相电机的状态,这样在根据三相电流的电流值控制三相电机运行时,可以使三相电机具有较高的稳定性。During the current sampling process, N analog-to-digital converters operate simultaneously, which can make the deviation between the sampling moments of the obtained current values of the three-phase current close to or equal to zero, so that the obtained current values of the three-phase current can be It can more accurately represent the status of the three-phase motor, so that the three-phase motor can have higher stability when controlling the operation of the three-phase motor according to the current value of the three-phase current.
相比于通过算法减小三相电流的电流值之间的时间偏差的方式,可以准确减小采样得到的三相电流的电流值之间的时间偏差。同时,在三相电机的控制过程中,并不需要通过算法减小采样得到的三相电流的电流值之间的时间偏差,可以降低控制器的计算量,从而可以降低控制器的功耗。Compared with the method of reducing the time deviation between the current values of the three-phase current through an algorithm, the time deviation between the sampled current values of the three-phase current can be accurately reduced. At the same time, during the control process of the three-phase motor, there is no need to use an algorithm to reduce the time deviation between the current values of the three-phase currents sampled, which can reduce the calculation amount of the controller, thereby reducing the power consumption of the controller.
图3示出了本申请实施例提供的一种电机控制方法的步骤流程图。如图3所示,该方法可以由控制器执行,包括步骤31和步骤32。Figure 3 shows a step flow chart of a motor control method provided by an embodiment of the present application. As shown in Figure 3, the method can be executed by the controller, including step 31 and step 32.
步骤31、在开关元件的当前开关周期内,同时触发N个模数转换器采样三相电机的电流得到N个电流值。Step 31: During the current switching cycle of the switching element, trigger N analog-to-digital converters at the same time to sample the current of the three-phase motor to obtain N current values.
其中,开关元件位于三相电机的驱动电路内,每个模数转换器分别对三相电机的其中一相电流进行采样,N为2或3。Among them, the switching element is located in the drive circuit of the three-phase motor, and each analog-to-digital converter samples one phase current of the three-phase motor, and N is 2 or 3.
图4示出了本申请实施例提供的一种电机控制系统的结构示意图。如图4所示,控制器11中包括第一模数转换器111、第二模数转换器112和第三模数转换器113,每个模数转换器对应的输入引脚分别连接驱动电路12中的一个下桥臂。FIG. 4 shows a schematic structural diagram of a motor control system provided by an embodiment of the present application. As shown in Figure 4, the controller 11 includes a first analog-to-digital converter 111, a second analog-to-digital converter 112 and a third analog-to-digital converter 113. The corresponding input pin of each analog-to-digital converter is connected to the driving circuit respectively. One of the lower bridge arms in 12.
在一些实施例中,控制器11可以在开关元件的状态切换时刻同时触发N个模数转换器采样三相电机的电流,以得到N个电流值。例如,在电机控制过程中,控制器11可以向模数转换器输出开关元件的基准波24,通过基准波24同时触发N个模数转换器对三相电机13的电流进行采样。In some embodiments, the controller 11 can simultaneously trigger N analog-to-digital converters to sample the current of the three-phase motor at the moment when the switching element switches state to obtain N current values. For example, during the motor control process, the controller 11 can output the reference wave 24 of the switching element to the analog-to-digital converter, and use the reference wave 24 to simultaneously trigger N analog-to-digital converters to sample the current of the three-phase motor 13 .
图5示出了本申请实施例提供的一种电机控制系统的时序图。如图5所示,控制器11内部生成基准波24,基准波24触发第二开关元件122、第四开关元件124和第六开关元件126对应的3个输出引脚的电平跳变,生成第一控制波25,同时基准波24触发第一开关元件121、第三开关元件123和第五开关元件125对应的3个输出引脚的电平跳变,生成第二控制波26。FIG. 5 shows a timing diagram of a motor control system provided by an embodiment of the present application. As shown in Figure 5, the controller 11 internally generates a reference wave 24. The reference wave 24 triggers the level transitions of the three output pins corresponding to the second switching element 122, the fourth switching element 124 and the sixth switching element 126, generating The first control wave 25 and the reference wave 24 trigger the level transitions of the three output pins corresponding to the first switching element 121 , the third switching element 123 and the fifth switching element 125 to generate the second control wave 26 .
在当前开关周期T1内的起始时刻t4,第一控制波25跳变为低电平,可以使第二开关元件122、第四开关元件124和第六开关元件126截止。同时,在起始时刻t4,第二控制波26可以使第一开关元件121、第三开关元件123和第五开关元件125导通,从而使驱动电路12内开关元件的状态在起始时刻t4发生第一次切换。At the starting time t4 in the current switching period T1, the first control wave 25 jumps to a low level, which can turn off the second switching element 122, the fourth switching element 124 and the sixth switching element 126. At the same time, at the starting time t4, the second control wave 26 can turn on the first switching element 121, the third switching element 123 and the fifth switching element 125, so that the state of the switching elements in the driving circuit 12 is at the starting time t4. The first switch occurs.
在当前开关周期T1内的中间时刻t5,第一控制波25跳变为高电平,可以使第二开关元件122、第四开关元件124和第六开关元件126导通。同时,第二控制波26跳变为低电平,可以使第一开关元件121、第三开关元件123和第五开关元件125截止,从而使驱动电路12内开关元件的状态在中间时刻t5发生第二次切换。At the intermediate time t5 in the current switching period T1, the first control wave 25 jumps to a high level, which can turn on the second switching element 122, the fourth switching element 124 and the sixth switching element 126. At the same time, the second control wave 26 jumps to a low level, which can turn off the first switching element 121, the third switching element 123 and the fifth switching element 125, so that the state of the switching elements in the driving circuit 12 occurs at the intermediate time t5. Second switch.
同样的,在相邻的下一开关周期T2,第一控制波25和第二控制波26重复上述流程,可以使开关元件的状态在每个开关周期循环导通和截止,从而可以实现对三相电机13的控制。Similarly, in the next adjacent switching period T2, the first control wave 25 and the second control wave 26 repeat the above process, which can cause the state of the switching element to cycle on and off in each switching period, thereby realizing three-dimensional switching. Control of phase motor 13.
其中,在当前开关周期T1内,驱动电路12内开关元件的状态在起始时刻t4发生第一次切换,在中间时刻t5发生第二次切换,起始时刻t4和中间时刻t5可以称为开关元件的状态切换时刻。Among them, in the current switching period T1, the state of the switching element in the driving circuit 12 switches for the first time at the starting time t4, and the second switching occurs at the intermediate time t5. The starting time t4 and the intermediate time t5 can be called switches. The state switching time of the component.
在一些实施例中,模数转换器可以设置为上升沿触发,可以通过基准波24的上升沿触发模数转换器对三相电机13的电流进行采样。如图5所示,当模数转换器为上升沿触发时,基准波24输入第一模数转换器111、第二模数转换器112和第三模数转换器113之后,可以在起始时刻t4同时触发第一模数转换器111、第二模数转换器112和第三模数转换器113对所连接的下桥臂的电流进行取样、保持、量化和编码,完成对三相电流的一次采样,得到每相电流的电流值。In some embodiments, the analog-to-digital converter can be set to rising edge triggering, and the rising edge of the reference wave 24 can trigger the analog-to-digital converter to sample the current of the three-phase motor 13 . As shown in Figure 5, when the analog-to-digital converter is a rising edge trigger, after the reference wave 24 is input to the first analog-to-digital converter 111, the second analog-to-digital converter 112, and the third analog-to-digital converter 113, it can be started At time t4, the first analog-to-digital converter 111, the second analog-to-digital converter 112, and the third analog-to-digital converter 113 are simultaneously triggered to sample, hold, quantize, and encode the current of the connected lower arm to complete the three-phase current analysis. A sampling is performed to obtain the current value of each phase current.
其中,当通过基准波24的上升沿触发模数转换器对三相电机13的电流进行采样时,可以在开关元件的状态发生第一次切换时同时触发N个模数转换器对三相电机13的电流进行采样。Among them, when the rising edge of the reference wave 24 triggers the analog-to-digital converter to sample the current of the three-phase motor 13, N analog-to-digital converters can be triggered to sample the three-phase motor 13 at the same time when the state of the switching element is switched for the first time. 13 currents are sampled.
本申请实施例中,在开关元件的状态切换时刻同时触发N个模数转换器对三相电机的电流进行采样,可以简化电流采样过程。在开关元件的状态第一次发生切换时对三相电机的电流进行采样,可以在开关周期的起始时刻控制模数转换器对三相电机的电流进行采样,可以简化电流采样过程。In the embodiment of the present application, N analog-to-digital converters are simultaneously triggered to sample the current of the three-phase motor at the moment when the switching element switches state, which can simplify the current sampling process. The current of the three-phase motor is sampled when the state of the switching element switches for the first time. The analog-to-digital converter can be controlled to sample the current of the three-phase motor at the beginning of the switching cycle, which can simplify the current sampling process.
本申请实施例中,通过开关元件的基准波同时触发N个模数转换器对三相电机的电流进行采样,控制过程比较简单,可以简化电流采样过程。In the embodiment of the present application, N analog-to-digital converters are simultaneously triggered by the reference wave of the switching element to sample the current of the three-phase motor. The control process is relatively simple and can simplify the current sampling process.
在另一些实施例中,模数转换器可以设置为下降沿触发,可以通过基准波24的下降沿触发模数转换器对三相电机13的电流进行采样。如图5所示,当模数转换器为下降沿触发时,基准波24输入第一模数转换器111、第二模数转换器112和第三模数转换器113之后,可以在中间时刻t5同时触发第一模数转换器111、第二模数转换器112和第三模数转换器113对所连接的下桥臂的电流进行取样、保持、量化和编码,完成对三相电流的一次采样,得到每相电流的电流值。In other embodiments, the analog-to-digital converter may be set to fall-edge triggering, and the falling edge of the reference wave 24 may trigger the analog-to-digital converter to sample the current of the three-phase motor 13 . As shown in Figure 5, when the analog-to-digital converter is falling edge triggered, after the reference wave 24 is input to the first analog-to-digital converter 111, the second analog-to-digital converter 112, and the third analog-to-digital converter 113, it can be t5 simultaneously triggers the first analog-to-digital converter 111, the second analog-to-digital converter 112, and the third analog-to-digital converter 113 to sample, hold, quantize, and encode the current of the connected lower bridge arm to complete the analysis of the three-phase current. After one sampling, the current value of each phase current is obtained.
其中,当通过基准波24的下降沿触发模数转换器对三相电机13的电流进行采样时,可以在开关元件的状态发生第二次切换时触发N个模数转换器对三相电机13的电流进行采样。Among them, when the analog-to-digital converter is triggered by the falling edge of the reference wave 24 to sample the current of the three-phase motor 13, N analog-to-digital converters can be triggered to sample the current of the three-phase motor 13 when the state of the switching element is switched for the second time. The current is sampled.
实际应用中,也可以通过基准波24在起始时刻t4或中间时刻t5同时触发控制器11中的2个模数转换器对三相电流中的两相电流进行采样,以得到三相电机13的两相电流的2个电流值。In practical applications, the reference wave 24 can also be used to simultaneously trigger two analog-to-digital converters in the controller 11 at the starting time t4 or the intermediate time t5 to sample two of the three-phase currents to obtain the three-phase motor 13 2 current values of the two-phase current.
本实施例中,在同时触发N个模数转换器对三相电流进行采样的过程中,在模数转换器包括多个通道的情况下,每相电流对应的模数转换器的通道数相同。例如,可以使用第一模数转换器111的第2个通道对三相电流中的第一相电流进行采样,使用第二模数转换器112的第2个通道对三相电流中的第二相电流进行采样,使用第三模数转换器113的第2个通道对三相电流中的第三相电流进行采样。In this embodiment, in the process of simultaneously triggering N analog-to-digital converters to sample three-phase currents, when the analog-to-digital converters include multiple channels, the number of channels of the analog-to-digital converters corresponding to each phase current is the same. . For example, the second channel of the first analog-to-digital converter 111 can be used to sample the first phase current of the three-phase current, and the second channel of the second analog-to-digital converter 112 can be used to sample the second phase current of the three-phase current. The phase current is sampled, and the second channel of the third analog-to-digital converter 113 is used to sample the third phase current of the three-phase current.
其中,N个模数转换器使用相同的通道对电流进行采样,可以降低不同模数转换器的采样时刻之间的偏差,可以降低采样得到的N个电流值的采样时刻之间的时间偏差,提高三相电机的稳定性。Among them, N analog-to-digital converters use the same channel to sample the current, which can reduce the deviation between the sampling moments of different analog-to-digital converters, and can reduce the time deviation between the sampling moments of the sampled N current values. Improve the stability of three-phase motors.
可以理解的是,模数转换器也可以只有一个通道,当模数转换器只有一个通道时,每个模数转换器可以直接对三相电机的其中一相电流进行采样。It can be understood that the analog-to-digital converter can also have only one channel. When the analog-to-digital converter has only one channel, each analog-to-digital converter can directly sample one phase current of the three-phase motor.
步骤32、在相邻的下一个开关周期内,根据N个电流值控制开关元件动作,以通过驱动电路控制三相电机运行。Step 32: In the next adjacent switching cycle, control the action of the switching element according to the N current values to control the operation of the three-phase motor through the drive circuit.
本实施例中,控制器11在采样得到三相电机13在当前开关周期T1内的三相电流的3个电流值之后,可以根据三相电流的3个电流值调整基准波24在相邻的下一个开关周期T2内的占空比,通过调整基准波24的占空比可以调节6路控制波在相邻的下一个开关周期T2内的占空比,从而可以调整驱动电路12中上桥臂和下桥臂的导通时间,进而可以通过驱动电路12控制三相电机13运行。In this embodiment, after the controller 11 samples and obtains the three current values of the three-phase current of the three-phase motor 13 in the current switching period T1, the controller 11 can adjust the reference wave 24 according to the three current values of the three-phase current. The duty cycle in the next switching cycle T2 can be adjusted by adjusting the duty cycle of the reference wave 24 to adjust the duty cycle of the 6 control waves in the next adjacent switching cycle T2, thereby adjusting the upper bridge in the driving circuit 12 The conduction time of the three-phase motor 13 can be controlled by the drive circuit 12 to control the operation of the three-phase motor 13 .
可以理解的是,控制器11在采样得到三相电机13在当前开关周期T1内的两相电流的电流值之后,可以根据两相电流的电流值计算得到另外一相电流的电流值,从而得到三相电机13在当前开关周期T1内的三相电流的3个电流值。It can be understood that, after the controller 11 samples the current values of the two-phase currents of the three-phase motor 13 in the current switching period T1, it can calculate the current value of the other phase current based on the current values of the two-phase currents, thus obtaining Three current values of the three-phase current of the three-phase motor 13 in the current switching period T1.
如图3所示,控制器11可以循环执行步骤31和步骤32,在当前开关周期T1内同时触发2或3个模数转换器进行电流采样,获取三相电机13在当前开关周期T1内三相电流的电流值,并在相邻的下一个开关周期T2内根据获取到的电流值控制驱动电路12内的开关元件动作,以控制三相电机13运行。具体根据三相电流的电流值控制开关元件动作的方法可以根据需求具体设置。As shown in Figure 3, the controller 11 can execute steps 31 and 32 cyclically, simultaneously triggering 2 or 3 analog-to-digital converters for current sampling in the current switching period T1, and obtain the three-phase current of the three-phase motor 13 in the current switching period T1. The current value of the phase current is obtained, and in the next adjacent switching period T2, the switching elements in the drive circuit 12 are controlled according to the obtained current value to control the operation of the three-phase motor 13. Specifically, the method of controlling the action of the switching element according to the current value of the three-phase current can be specifically set according to the requirements.
可选地,同时触发N个模数转换器采样三相电机的电流得到N个电流值的步骤可以包括:Optionally, the step of simultaneously triggering N analog-to-digital converters to sample the current of the three-phase motor to obtain N current values may include:
在第一时刻同时触发N个模数转换器采样三相电机的电流得到N个电流值,第一时刻位于开关元件的状态切换时刻之后、且与状态切换时刻之间间隔预设时长。At the first moment, N analog-to-digital converters are simultaneously triggered to sample the current of the three-phase motor to obtain N current values. The first moment is located after the state switching moment of the switching element and is separated by a preset time period from the state switching moment.
在一些实施例中,控制器11可以将开关元件的基准波延迟预设时长得到触发波,向N个模数转换器输出触发波,通过触发波同时触发N个模数转换器在第一时刻采样三相电机13的电流得到N个电流值。In some embodiments, the controller 11 can delay the reference wave of the switching element for a preset time to obtain a trigger wave, output the trigger wave to N analog-to-digital converters, and simultaneously trigger the N analog-to-digital converters at the first moment through the trigger wave. The current of the three-phase motor 13 is sampled to obtain N current values.
图6示出了本申请实施例提供的另一种电机控制系统的时序图。如图6所示,控制器11在生成基准波24之后,在通过基准波24产生6路控制波的同时,可以将基准波24延迟预设时长∆t生成触发波27。触发波27的上升沿与基准波24的上升沿之间间隔预设时长∆t,触发波27的跳边沿(包括上升沿和下降沿)与基准波24的跳变沿之间间隔预设时长∆t。Figure 6 shows a timing diagram of another motor control system provided by an embodiment of the present application. As shown in FIG. 6 , after the controller 11 generates the reference wave 24 , while generating six control waves through the reference wave 24 , the controller 11 can delay the reference wave 24 by a preset time period Δt to generate the trigger wave 27 . The interval between the rising edge of the trigger wave 27 and the rising edge of the reference wave 24 is a preset time length Δt, and the interval between the jumping edge of the trigger wave 27 (including the rising edge and the falling edge) and the jumping edge of the reference wave 24 is a preset time length. Δt.
在一些实施例中,模数转换器可以设置为上升沿触发,可以通过触发波27的上升沿触发模数转换器对三相电机13的电流进行采样。如图6所述,当模数转换器为上升沿触发时,触发波27输入第一模数转换器111、第二模数转换器112和第三模数转换器113之后,可以在第一时刻t6同时触发第一模数转换器111、第二模数转换器112和第三模数转换器113对所连接的下桥臂的电流进行取样、保持、量化和编码,完成对三相电流的一次采样,得到每相电流的电流值。In some embodiments, the analog-to-digital converter can be set to rising edge triggering, and the rising edge of the trigger wave 27 can trigger the analog-to-digital converter to sample the current of the three-phase motor 13 . As shown in Figure 6, when the analog-to-digital converter is a rising edge trigger, after the trigger wave 27 is input to the first analog-to-digital converter 111, the second analog-to-digital converter 112 and the third analog-to-digital converter 113, the trigger wave 27 can be At time t6, the first analog-to-digital converter 111, the second analog-to-digital converter 112, and the third analog-to-digital converter 113 are simultaneously triggered to sample, hold, quantize, and encode the current of the connected lower bridge arm to complete the three-phase current A sampling is performed to obtain the current value of each phase current.
其中,当通过触发波27的上升沿触发模数转换器对三相电机13的电流进行采样时,第一时刻t6位于起始时刻t4之后、且与起始时刻t4之间间隔预设时长∆t,可以在开关元件的状态发生第一次切换之后的第一时刻t6触发N个模数转换器对三相电机13的电流进行采样。Among them, when the analog-to-digital converter is triggered by the rising edge of the trigger wave 27 to sample the current of the three-phase motor 13, the first time t6 is located after the starting time t4, and is separated by a preset time period Δ from the starting time t4. t, N analog-to-digital converters can be triggered to sample the current of the three-phase motor 13 at the first time t6 after the first switching of the state of the switching element.
图7示出了本申请实施例提供的另一种电机控制系统的时序图。如图7所示,模数转换器可以设置为下降沿触发,可以通过触发波27的下降沿触发模数转换器对三相电机13的电流进行采样。如图7所述,当模数转换器为下降沿触发时,触发波27输入第一模数转换器111、第二模数转换器112和第三模数转换器113之后,可以在第一时刻t6同时触发第一模数转换器111、第二模数转换器112和第三模数转换器113对所连接的下桥臂的电流进行取样、保持、量化和编码,完成对三相电流的一次采样,得到每相电流的电流值。FIG. 7 shows a timing diagram of another motor control system provided by an embodiment of the present application. As shown in FIG. 7 , the analog-to-digital converter can be set to fall edge triggering, and the falling edge of the trigger wave 27 can trigger the analog-to-digital converter to sample the current of the three-phase motor 13 . As shown in Figure 7, when the analog-to-digital converter is a falling edge trigger, after the trigger wave 27 is input to the first analog-to-digital converter 111, the second analog-to-digital converter 112, and the third analog-to-digital converter 113, the trigger wave 27 can be At time t6, the first analog-to-digital converter 111, the second analog-to-digital converter 112, and the third analog-to-digital converter 113 are simultaneously triggered to sample, hold, quantize, and encode the current of the connected lower bridge arm to complete the three-phase current A sampling is performed to obtain the current value of each phase current.
其中,当通过触发波27的下降沿触发模数转换器对三相电机13的电流进行采样时,第一时刻t6位于中间时刻t5之后、且与中间时刻t5之间间隔预设时长∆t,可以在开关元件的状态发生第二次切换之后的第一时刻t6触发N个模数转换器对三相电机13的电流进行采样。Among them, when the analog-to-digital converter is triggered by the falling edge of the trigger wave 27 to sample the current of the three-phase motor 13, the first time t6 is located after the intermediate time t5 and is separated by a preset time period Δt from the intermediate time t5. N analog-to-digital converters can be triggered to sample the current of the three-phase motor 13 at the first time t6 after the second switching of the state of the switching element.
实际应用中,当开关元件的状态刚发生切换时,三相电机13的状态并不稳定,此时获取的三相电流的电流值的准确性较低,根据此时的电流值控制三相电机13运行时, 三相电机13的稳定性较低。可以根据实际需求调节预设时长∆t的大小,以在三相电机13达到稳定之后,触发模数转换器采样获取三相电机13的电流值。In practical applications, when the state of the switching element is just switched, the state of the three-phase motor 13 is not stable. The accuracy of the current value of the three-phase current obtained at this time is low. The three-phase motor is controlled according to the current value at this time. When 13 is running, the stability of the three-phase motor 13 is low. The preset time length Δt can be adjusted according to actual needs, so that after the three-phase motor 13 reaches stability, the analog-to-digital converter is triggered to sample and obtain the current value of the three-phase motor 13 .
本申请实施例中,在开关元件的状态切换之后,间隔预设时长同时触发N个模数转换器对三相电机的电流进行采样,可以获取到三相电机在达到稳定状态时的电流值,从而获取到可以准确表征电机状态的电流值,进而可以提高在根据电流值控制三相电机运行时三相电机的稳定性。In the embodiment of this application, after the state of the switching element is switched, N analog-to-digital converters are simultaneously triggered at a preset time interval to sample the current of the three-phase motor, and the current value of the three-phase motor when it reaches a stable state can be obtained. In this way, a current value that can accurately characterize the state of the motor is obtained, thereby improving the stability of the three-phase motor when controlling the operation of the three-phase motor based on the current value.
其中,在开关元件的状态第一次发生切换后间隔预设时长对三相电机的电流进行采样,可以在开关周期的起始阶段控制模数转换器对三相电机的电流进行采样,可以简化电流采样过程。Among them, the current of the three-phase motor is sampled at a preset time interval after the state of the switching element is switched for the first time. The analog-to-digital converter can be controlled to sample the current of the three-phase motor at the beginning of the switching cycle, which can simplify Current sampling process.
本申请实施例中,通过延迟开关元件的基准波得到可以同时触发N个模数转换器动作的触发波,通过触发波触发N个模数转换器同时对三相电机的电流进行采样,控制过程比较简单,并且可以较为准确地控制采样时间,从而可以提高电流采样的准确性,进而可以提高三相电机控制过程中的稳定性。In the embodiment of the present application, a trigger wave that can simultaneously trigger the action of N analog-to-digital converters is obtained by delaying the reference wave of the switching element. The N analog-to-digital converters are triggered by the trigger wave to simultaneously sample the current of the three-phase motor. The control process It is relatively simple and can control the sampling time more accurately, which can improve the accuracy of current sampling and thus improve the stability of the three-phase motor control process.
在一些实施例中,预设时长∆t大于或等于30微秒(μs)。例如,预设时长∆t可以为30微秒、32微秒、35微秒、40微秒、45微秒、48微秒等,但不限于此。In some embodiments, the preset time period Δt is greater than or equal to 30 microseconds (μs). For example, the preset time period Δt can be 30 microseconds, 32 microseconds, 35 microseconds, 40 microseconds, 45 microseconds, 48 microseconds, etc., but is not limited thereto.
其中,当预设时长∆t大于或等于30微秒时,可以使得N个模数转换器在三相电机进入稳定状态之后对三相电机的电流进行采样,从而可以获取到三相电机在达到稳定状态时的电流值,进而可以提高三相电机控制过程中的稳定性。Among them, when the preset time Δt is greater than or equal to 30 microseconds, N analog-to-digital converters can be used to sample the current of the three-phase motor after the three-phase motor enters a stable state, so that the current of the three-phase motor can be obtained. The current value in the steady state can improve the stability of the three-phase motor control process.
在一些实施例中,预设时长∆t小于或等于50微秒(μs)。例如,预设时长∆t可以为50微秒、48微秒、45微秒、40微秒等,但不限于此。In some embodiments, the preset time period Δt is less than or equal to 50 microseconds (μs). For example, the preset time period Δt can be 50 microseconds, 48 microseconds, 45 microseconds, 40 microseconds, etc., but is not limited thereto.
其中,当预设时长∆t小于或等于50微秒时,可以使得N个模数转换器可以在开关元件发生状态切换之后及时对三相电机的电流进行采样,可以提高电流采样的及时性和有效性。Among them, when the preset time Δt is less than or equal to 50 microseconds, N analog-to-digital converters can sample the current of the three-phase motor in time after the switching element switches state, which can improve the timeliness and accuracy of current sampling. effectiveness.
图8示出了本申请实施例提供的另一种电机控制系统的结构示意图。如图8所示,电机控制系统中还可以包括设置在控制器11外部的第四模数转换器14、第五模数转换器15和第六模数转换器16。FIG. 8 shows a schematic structural diagram of another motor control system provided by an embodiment of the present application. As shown in FIG. 8 , the motor control system may also include a fourth analog-to-digital converter 14 , a fifth analog-to-digital converter 15 , and a sixth analog-to-digital converter 16 provided outside the controller 11 .
其中,控制器11的一个输出引脚与第四模数转换器14的触发端连接,用于向第四模数转换器14输出基准波24或触发波27,控制器11一个输入引脚与第四模数转换器14的通信端连接,用于获取第四模数转换器14采样得到的电流值。同样的,第五模数转换器15和第六模数转换器16的触发端和通信端分别与控制器11连接。Among them, one output pin of the controller 11 is connected to the trigger end of the fourth analog-to-digital converter 14 for outputting the reference wave 24 or the trigger wave 27 to the fourth analog-to-digital converter 14, and one input pin of the controller 11 is connected to the trigger terminal of the fourth analog-to-digital converter 14. The communication end of the fourth analog-to-digital converter 14 is connected and used to obtain the current value sampled by the fourth analog-to-digital converter 14 . Similarly, the trigger terminal and the communication terminal of the fifth analog-to-digital converter 15 and the sixth analog-to-digital converter 16 are respectively connected to the controller 11 .
在对三相电机13的电流进行采样的过程中,控制器11在生成基准波24之后,可以向位于控制器11外部的第四模数转换器14、第五模数转换器15和第六模数转换器16的触发端同时输出基准波24,以同时触发第四模数转换器14、第五模数转换器15和第六模数转换器16对三相电流进行采样,得到3个电流值。在输出基准波24之后,控制器11可以通过第四模数转换器14、第五模数转换器15和第六模数转换器16的通信端从第四模数转换器14、第五模数转换器15和第六模数转换器16读取采样得到的电流值。During the process of sampling the current of the three-phase motor 13 , after generating the reference wave 24 , the controller 11 may send signals to the fourth analog-to-digital converter 14 , the fifth analog-to-digital converter 15 and the sixth analog-to-digital converter 15 located outside the controller 11 . The trigger end of the analog-to-digital converter 16 outputs the reference wave 24 at the same time to simultaneously trigger the fourth analog-to-digital converter 14, the fifth analog-to-digital converter 15, and the sixth analog-to-digital converter 16 to sample the three-phase current to obtain three current value. After outputting the reference wave 24 , the controller 11 may receive signals from the fourth analog-to-digital converter 14 , the fifth analog-to-digital converter 14 , and the sixth analog-to-digital converter 16 through the communication terminals of the fourth analog-to-digital converter 14 , the fifth analog-to-digital converter 15 , and the sixth analog-to-digital converter 16 . The digital converter 15 and the sixth analog-to-digital converter 16 read the sampled current value.
或者,在对三相电机13的电流进行采样的过程中,控制器11在生成延迟基准波24得到触发波27之后,可以向第四模数转换器14、第五模数转换器15和第六模数转换器16的触发端同时输出触发波27,以在第一时刻同时触发第四模数转换器14、第五模数转换器15和第六模数转换器16对三相电流进行采样,得到3个电流值。在输出触发波27之后,控制器11可以通过第四模数转换器14、第五模数转换器15和第六模数转换器16的通信端从第四模数转换器14、第五模数转换器15和第六模数转换器16读取采样得到的电流值。Alternatively, during the process of sampling the current of the three-phase motor 13 , after generating the delayed reference wave 24 to obtain the trigger wave 27 , the controller 11 may send signals to the fourth analog-to-digital converter 14 , the fifth analog-to-digital converter 15 and the third analog-to-digital converter 15 . The triggering ends of the six analog-to-digital converters 16 simultaneously output the trigger wave 27 to simultaneously trigger the fourth analog-to-digital converter 14, the fifth analog-to-digital converter 15, and the sixth analog-to-digital converter 16 to conduct the three-phase current processing at the first moment. Sampling, get 3 current values. After outputting the trigger wave 27 , the controller 11 can receive signals from the fourth analog-to-digital converter 14 , the fifth analog-to-digital converter 14 , and the sixth analog-to-digital converter 16 through the communication terminals of the fourth analog-to-digital converter 14 , the fifth analog-to-digital converter 15 , and the sixth analog-to-digital converter 16 . The digital converter 15 and the sixth analog-to-digital converter 16 read the sampled current value.
图9示出了本申请实施例提供的一种电机控制装置的结构示意图。如图9所示,电机控制装置9包括触发模块91和控制模块92。FIG. 9 shows a schematic structural diagram of a motor control device provided by an embodiment of the present application. As shown in FIG. 9 , the motor control device 9 includes a trigger module 91 and a control module 92 .
触发模块91,用于在开关元件的当前开关周期内,同时触发N个模数转换器采样三相电机的电流得到N个电流值,开关元件位于三相电机的驱动电路内,每个模数转换器分别对三相电机的其中一相电流进行采样,N为2或3;The trigger module 91 is used to simultaneously trigger N analog-to-digital converters to sample the current of the three-phase motor to obtain N current values during the current switching cycle of the switching element. The switching element is located in the drive circuit of the three-phase motor, and each analog-to-digital converter is The converter samples one phase current of the three-phase motor respectively, and N is 2 or 3;
控制模块92,用于在相邻的下一个开关周期内,根据N个电流值控制开关元件动作,以通过驱动电路控制三相电机运行。The control module 92 is used to control the action of the switching element according to the N current values in the next adjacent switching cycle to control the operation of the three-phase motor through the drive circuit.
在一些实施例中,触发模块91具体用于在第一时刻同时触发N个模数转换器采样三相电机的电流得到N个电流值,第一时刻位于开关元件的状态切换时刻之后、且与状态切换时刻之间间隔预设时长。In some embodiments, the trigger module 91 is specifically configured to simultaneously trigger N analog-to-digital converters to sample the current of the three-phase motor to obtain N current values at the first moment, which is located after the state switching moment of the switching element and is the same as the state switching moment of the switching element. There is a preset time interval between status switching moments.
在一些实施例中,状态切换时刻为当前开关周期内开关元件的状态第一次发生切换的时刻。In some embodiments, the state switching moment is the moment when the state of the switching element switches for the first time in the current switching cycle.
在一些实施例中,触发模块91具体用于通过触发波触发N个模数转换器在第一时刻采样三相电机的电流得到N个电流值,触发波由开关元件的基准波延迟预设时长后得到。In some embodiments, the trigger module 91 is specifically configured to trigger N analog-to-digital converters through a trigger wave to sample the current of the three-phase motor at the first moment to obtain N current values. The trigger wave is delayed by the reference wave of the switching element for a preset period of time. get later.
在一些实施例中,预设时长大于或等于30微秒。In some embodiments, the preset time period is greater than or equal to 30 microseconds.
在一些实施例中,预设时长小于或等于50微秒。In some embodiments, the preset time period is less than or equal to 50 microseconds.
在一些实施例中,触发模块91具体用于在开关元件的状态切换时刻同时触发N个模数转换器采样三相电机的电流,以得到N个电流值。In some embodiments, the trigger module 91 is specifically configured to simultaneously trigger N analog-to-digital converters to sample the current of the three-phase motor at the moment when the switching element switches state, so as to obtain N current values.
在一些实施例中,状态切换时刻为当前开关周期内开关元件的状态第一次发生切换的时刻。In some embodiments, the state switching moment is the moment when the state of the switching element switches for the first time in the current switching cycle.
在一些实施例中,触发模块91具体用于通过开关元件的基准波同时触发N个模数转换器对三相电机的电流进行采样。In some embodiments, the trigger module 91 is specifically configured to simultaneously trigger N analog-to-digital converters to sample the current of the three-phase motor through the reference wave of the switching element.
图10示出了本申请实施例提供的一种电机控制装置的结构框图。如图10所示,电机控制装置10包括处理器101以及存储器102,上述各个器件可以通过一个或者多个总线104连接。Figure 10 shows a structural block diagram of a motor control device provided by an embodiment of the present application. As shown in FIG. 10 , the motor control device 10 includes a processor 101 and a memory 102 , and each of the above devices can be connected through one or more buses 104 .
电机控制装置10还包括计算机程序103,计算机程序103被存储在存储器102中,当该计算机程序103被处理器101执行时,使得电机控制装置10执行上述图3所示的电机控制方法。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应实体器件的功能描述,在此不再赘述。The motor control device 10 also includes a computer program 103. The computer program 103 is stored in the memory 102. When the computer program 103 is executed by the processor 101, the motor control device 10 is caused to execute the motor control method shown in FIG. 3 above. All relevant content of each step involved in the above method embodiments can be quoted from the functional description of the corresponding physical device, and will not be described again here.
本申请实施例还提供一种可读存储介质,该可读存储介质包括计算机程序,当其在计算机上运行时,使得该计算机执行上述方法实施例提供的方法。Embodiments of the present application also provide a readable storage medium, which includes a computer program that, when run on a computer, causes the computer to execute the method provided by the above method embodiment.
本申请实施例还提供一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得该计算机执行上述方法实施例提供的方法。Embodiments of the present application also provide a computer program product containing instructions, which when the computer program product is run on a computer, causes the computer to execute the method provided by the above method embodiment.
本申请实施例还提供一种芯片系统,包括存储器和处理器,该存储器用于存储计算机程序,该处理器用于从存储器中调用并运行该计算机程序,使得安装有该芯片系统的电机控制装置执行上述方法实施例提供的方法。Embodiments of the present application also provide a chip system, including a memory and a processor. The memory is used to store a computer program. The processor is used to call and run the computer program from the memory, so that the motor control device installed with the chip system executes The method provided by the above method embodiment.
其中,该芯片系统可以包括用于发送信息或数据的输入电路或者接口,以及用于接收信息或数据的输出电路或者接口。The chip system may include an input circuit or interface for sending information or data, and an output circuit or interface for receiving information or data.
应理解,本申请实施例中,该处理器可以为中央处理单元(central processingunit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(digital signalprocessor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits ( application specific integrated circuit (ASIC), ready-made field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
还应理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的随机存取存储器(random accessmemory,RAM)可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。It should also be understood that the memory in the embodiments of the present application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Among them, non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM), which acts as an external cache. By way of illustration, but not limitation, many forms of random access memory (RAM) are available, such as static random access memory (static RAM, SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory Access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (direct rambus RAM, DR RAM).
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310673392.7A CN116404941B (en) | 2023-06-08 | 2023-06-08 | A motor control method, device and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310673392.7A CN116404941B (en) | 2023-06-08 | 2023-06-08 | A motor control method, device and readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116404941A CN116404941A (en) | 2023-07-07 |
| CN116404941B true CN116404941B (en) | 2024-02-13 |
Family
ID=87010930
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310673392.7A Active CN116404941B (en) | 2023-06-08 | 2023-06-08 | A motor control method, device and readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116404941B (en) |
Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5736948A (en) * | 1995-03-20 | 1998-04-07 | Hitachi, Ltd. | Semiconductor integrated circuit device and control system |
| EP1244133A2 (en) * | 2001-03-20 | 2002-09-25 | Eni Technology, Inc. | Broadband design of a probe analysis system |
| KR20040048506A (en) * | 2002-12-03 | 2004-06-10 | 현대자동차주식회사 | Method of fixing optimum sampling time to control integrated generator starter in vehicle |
| DE102005028605A1 (en) * | 2005-06-21 | 2007-01-04 | Robert Bosch Gmbh | Method of measuring current with a shunt such as for measuring a phase current in a star configuration alternating current machine especially for vehicles |
| CN201130369Y (en) * | 2007-12-20 | 2008-10-08 | 陕西海泰电子有限责任公司 | A Multi-channel Synchronous Data Acquisition Card Based on VXI Bus |
| DE102012111922A1 (en) * | 2012-12-07 | 2014-06-12 | Zf Lenksysteme Gmbh | Method for measuring phase current value of electric motor in electronic power steering system of motor vehicle, involves amplifying current-dependent voltage with adjustable gain factor, and automatically adjusting gain factor |
| CN205880047U (en) * | 2016-06-28 | 2017-01-11 | 浙江涵普电力科技有限公司 | System for realize multiloop voltage and many loop current synchronous sampling |
| JP2020058230A (en) * | 2016-01-27 | 2020-04-09 | 富士電機株式会社 | Current detector |
| CN111220844A (en) * | 2020-01-20 | 2020-06-02 | 东风汽车集团有限公司 | Non-contact three-phase current detection system |
| KR102122576B1 (en) * | 2018-12-26 | 2020-06-12 | 주식회사 현대케피코 | Apparatus and Method for controlling drive of motor |
| CN112543026A (en) * | 2020-12-10 | 2021-03-23 | 杭州万高科技股份有限公司 | System, method, device and medium for synchronously sampling multiple paths of signals |
| WO2022087897A1 (en) * | 2020-10-28 | 2022-05-05 | 深圳市大疆创新科技有限公司 | Electric motor control method and apparatus, and movable platform |
| CN116094409A (en) * | 2023-01-31 | 2023-05-09 | 重庆长安汽车股份有限公司 | TC 397-based motor drive control system and method |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7834574B2 (en) * | 2007-11-26 | 2010-11-16 | Gm Global Technology Operations, Inc. | Phase current sampling and regulating apparatus and methods, and electric motor drive systems |
| JP5116785B2 (en) * | 2010-02-25 | 2013-01-09 | 株式会社日立製作所 | AC motor drive device and motor vehicle |
| DE102019208497A1 (en) * | 2019-06-12 | 2020-12-17 | Robert Bosch Gmbh | Method for determining a rotor position of an electrical, rotating machine and an electrical, rotating machine for carrying out such a method |
| US11650231B2 (en) * | 2021-06-15 | 2023-05-16 | Infineon Technologies Austria Ag | On resistance current sensing for power conversion devices |
-
2023
- 2023-06-08 CN CN202310673392.7A patent/CN116404941B/en active Active
Patent Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5736948A (en) * | 1995-03-20 | 1998-04-07 | Hitachi, Ltd. | Semiconductor integrated circuit device and control system |
| EP1244133A2 (en) * | 2001-03-20 | 2002-09-25 | Eni Technology, Inc. | Broadband design of a probe analysis system |
| KR20040048506A (en) * | 2002-12-03 | 2004-06-10 | 현대자동차주식회사 | Method of fixing optimum sampling time to control integrated generator starter in vehicle |
| DE102005028605A1 (en) * | 2005-06-21 | 2007-01-04 | Robert Bosch Gmbh | Method of measuring current with a shunt such as for measuring a phase current in a star configuration alternating current machine especially for vehicles |
| CN201130369Y (en) * | 2007-12-20 | 2008-10-08 | 陕西海泰电子有限责任公司 | A Multi-channel Synchronous Data Acquisition Card Based on VXI Bus |
| DE102012111922A1 (en) * | 2012-12-07 | 2014-06-12 | Zf Lenksysteme Gmbh | Method for measuring phase current value of electric motor in electronic power steering system of motor vehicle, involves amplifying current-dependent voltage with adjustable gain factor, and automatically adjusting gain factor |
| JP2020058230A (en) * | 2016-01-27 | 2020-04-09 | 富士電機株式会社 | Current detector |
| CN205880047U (en) * | 2016-06-28 | 2017-01-11 | 浙江涵普电力科技有限公司 | System for realize multiloop voltage and many loop current synchronous sampling |
| KR102122576B1 (en) * | 2018-12-26 | 2020-06-12 | 주식회사 현대케피코 | Apparatus and Method for controlling drive of motor |
| CN111220844A (en) * | 2020-01-20 | 2020-06-02 | 东风汽车集团有限公司 | Non-contact three-phase current detection system |
| WO2022087897A1 (en) * | 2020-10-28 | 2022-05-05 | 深圳市大疆创新科技有限公司 | Electric motor control method and apparatus, and movable platform |
| CN112543026A (en) * | 2020-12-10 | 2021-03-23 | 杭州万高科技股份有限公司 | System, method, device and medium for synchronously sampling multiple paths of signals |
| CN116094409A (en) * | 2023-01-31 | 2023-05-09 | 重庆长安汽车股份有限公司 | TC 397-based motor drive control system and method |
Non-Patent Citations (1)
| Title |
|---|
| 谈欣柏.《大学物理实验》.天津大学出版社,2000,第177页. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116404941A (en) | 2023-07-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109804539B (en) | Transistor drive circuit and motor drive control device | |
| TW588503B (en) | Adaptive compensation of dead time for inverter and converter | |
| CN103986402B (en) | Motor control device | |
| EP3109990B1 (en) | Semiconductor devices and methods for dead time optimization | |
| JP2003164159A (en) | Current detection device for three-phase inverter | |
| US20050213654A1 (en) | Apparatus and method for digital phase control of a pulse width modulation generator for microprocessor/DSP in integrated circuits | |
| CN108696231B (en) | Controller for multiphase motor | |
| US20220255424A1 (en) | Half-bridge power circuit, controller therefor, and method for controlling the same | |
| CN101420218A (en) | Method and circuit used for parallel IGBT dynamic flow equalization | |
| CN104617830B (en) | Counter electromotive force zero-cross detection method and method of brushless DC motor, and phase-changing signal output method and circuit | |
| CN105548676B (en) | A kind of list resistor current method of sampling and air-conditioning equipment | |
| CN107534397A (en) | A kind of IGBT parameter identification methods, dead-zone compensation method and inverter | |
| US10916643B2 (en) | Semiconductor device, method for controlling semiconductor device, and control circuit for semiconductor device | |
| CN116404941B (en) | A motor control method, device and readable storage medium | |
| JP2004531196A (en) | Multi-stage switch circuit | |
| CN116317640A (en) | Device for enabling inverter to switch between modes and control method thereof | |
| CN110557073A (en) | motor control device, control method thereof, and program | |
| JP2018029258A (en) | Transistor drive circuit | |
| CN117639536A (en) | Inverter pulse width modulation control method, device, electronic equipment and storage medium | |
| JPH04156286A (en) | Microcomputer | |
| CN117674562B (en) | Control method, device, converter and control system of phase-shifted full-bridge converter | |
| CN118337100A (en) | Current sampling method, motor control system | |
| CN118573073B (en) | Low-noise single-resistor sampling method and device and three-phase motor | |
| US12254212B2 (en) | Result register with readout counter value | |
| US12355462B2 (en) | Gate driver circuit for sampling without a triggering point |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |