Dynamic calibration method for bias voltage in motor single-resistor sampling

By judging the bias voltage collection window within the PWM cycle in the motor drive system and performing low-pass filtering processing, the problem of bias voltage changes under dynamic conditions with the single-resistor sampling method is solved, and real-time calibration and calibration of the motor drive system are realized. Accuracy improved.

CN118694239APending Publication Date: 2024-09-24X SIGNAL INTEGRATED CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410939449.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The single-resistor sampling method in the existing motor control system has bias voltage changes under dynamic conditions, resulting in inaccurate calibration and the inability to adapt to changes in temperature and time in real time.

Method used

By obtaining the high-level duration of the motor's three-phase drive PWM signal, comparing the size relationship of each phase's PWM signal, it is judged whether there is a bias voltage acquisition window within the PWM cycle, and the sampling voltage is obtained within the window for conversion, and low-pass filtering is used The controller processes the bias voltage and calibrates the system in real time.

Benefits of technology

Real-time detection and dynamic calibration of the sampling bias voltage of the motor drive system are realized, which avoids the problem of incorrect calibration of fixed bias voltage and improves the accuracy and adaptability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694239A
    Figure CN118694239A
Patent Text Reader

Abstract

The invention discloses a dynamic calibration method for bias voltage in motor single-resistor sampling. The method comprises the steps that S100, the high-level duration of a motor three-phase driving PWM signal in a PWM period is acquired; s101, comparing the size relation of the lengths Tu, Tv and Tw of the PWM signals of each phase at a high level in a PWM period to determine the maximum time length Tmax, the minimum time length Tmin and the intermediate time length Tmid. S102, acquiring a sampling time window Twin determined by a motor driving hardware circuit, and judging whether a current PWM period has an acquisition window of the bias voltage Voffset or not based on the sampling time window duration Twin, the maximum duration Tmax, the minimum duration Tmin and the intermediate duration Tmid; and S103, when the judgment result of the step S102 is that the acquisition window of the bias voltage Voffset exists in the PWM period, the sampling voltage Vsns is acquired and converted in the last Twin time length of the PWM period, and the conversion result is the bias voltage Voffset of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor control, and in particular to a dynamic calibration method for bias voltage in single-resistance sampling of a motor. Background Art

[0002] In the existing motor control, the current value of each phase of the motor needs to be collected. In order to save costs, it is usually used Figure 1 The single resistor sampling scheme shown in FIG. 1 is to use a sampling resistor to connect the common terminal of the lower tube of the three-phase inverter and the ground. In this single resistor sampling circuit, when the U, V, and W phase pulse width modulation (PWM) waveforms applied to the three-phase inverter are in different combinations, the current I flowing through the sampling resistor sns It reflects the phase current of different phases. Since the direction of the phase current can be positive or negative, the sampling voltage V on the sampling resistor sns There is also the possibility of being above or below the ground GND level. In order to collect negative voltage, the original V sns Voltage use Figure 1 The summing circuit shown in the figure boosts the analog-to-digital converter (ADC) reference voltage V ref half of the voltage Vsns' after processing. sns +V ref / 2. Since the sampling resistor with appropriate resistance value will be selected in the application to ensure V sns The range is [-V ref / 2,V ref / 2], so the processed voltage V sns ' must be positive. In subsequent processing, only V sns 'Convert the value based on subtracting V ref / 2 to get the original voltage V sns The conversion result.

[0003] Due to the non-ideality of the sampling circuit, there will be a certain bias voltage in the system, resulting in V sns There is a certain deviation between the actual conversion value and the theoretical conversion value. In order to eliminate the influence of the bias voltage, the bias voltage calibration method before delivery is often used, that is, during the factory test phase, a predetermined known DC voltage (usually 0) is applied to the input end of the current sampling circuit, and then the actual value of the known voltage is obtained through the analog-to-digital converter ADC. At this time, the bias voltage of the system is the actual value of the known voltage minus the theoretical value. The bias voltage is stored as a calibration value, and then stored in V sns Subtract the calibration value from the actual conversion value to get V snsHowever, during the actual operation of the system, the bias voltage is not a constant, and its value will change with time or temperature. Therefore, the calibration value obtained before leaving the factory is not accurate.

[0004] It can be seen that a new dynamic calibration method suitable for bias voltage in single-resistance sampling of motors is needed in the art. Summary of the invention

[0005] The present invention provides a dynamic calibration method for bias voltage in motor single resistor sampling. The method can detect the sampled bias voltage in the motor drive system in real time, thereby avoiding the defect of incorrect calibration caused by relying solely on a fixed bias voltage preset at the factory.

[0006] Based on the above technical objectives, the present invention provides a method for dynamically calibrating the bias voltage in motor single resistance sampling, the method comprising:

[0007] S100, obtaining the high level duration of the motor three-phase drive PWM signal within one PWM cycle;

[0008] S101, compare the high level duration T of each phase PWM signal in one PWM cycle u , T v , T w to determine the maximum duration T max , minimum duration T min and the middle duration T mid .

[0009] S102, obtaining a sampling time window T determined by the motor drive hardware circuit win , based on the sampling time window length T win , maximum duration T max , minimum duration T min and the middle duration T mid To determine whether there is a bias voltage V in the current PWM cycle offset The collection window;

[0010] S103, when the result of step S102 is that there is a bias voltage V in the PWM cycle offset The acquisition window is set to the last T of the PWM cycle. win Get the sample voltage V within the time length sns And convert it, the conversion result is the bias voltage V of the system offset .

[0011] In one embodiment, the determination process includes: when the value T pwm -T max -T win , Tpwm -T mid -2*T win and T pwm -T min -3*T win When all three are positive, it means there is a bias voltage V offset If any of the above three values ​​is less than zero, there is no bias voltage V offset The collection window.

[0012] In one embodiment, the bias voltage V collected within a PWM cycle is offset It is sent to a low-pass filter, and the filter output result is the bias voltage calibration value finally used.

[0013] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0015] Figure 1 It is a schematic diagram of the current sampling circuit structure of a three-phase motor in the prior art;

[0016] Figure 2 is a schematic diagram of the phase current flow direction of the three-phase inverter in the present invention;

[0017] Figure 3 It is a schematic diagram of the motor drive PWM signal waveform in the present invention;

[0018] Figure 4 It is a flow chart of the method for dynamic calibration of bias voltage in single resistor sampling in the present invention. DETAILED DESCRIPTION

[0019] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings.

[0020] It should be understood that when an element or layer is referred to as "on ...", "adjacent to ...", "connected to" or "coupled to" other elements or layers, it can be directly on, adjacent to, connected to or coupled to other elements or layers, or there can be intervening elements or layers. On the contrary, when an element is referred to as "directly on ...", "directly adjacent to ...", "directly connected to" or "directly coupled to" other elements or layers, there is no intervening element or layer. It should be understood that although the terms first, second, third, etc. can be used to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the teachings of the present invention, the first element, component, region, layer or part discussed below can be represented as the second element, component, region, layer or part. And when the second element, component, region, layer or part is discussed, it does not indicate that the present invention necessarily has the first element, component, region, layer or part.

[0021] Spatially relative terms such as "under", "beneath", "below", "under", "above", "above", etc., may be used here for convenience of description to describe the relationship between an element or feature shown in the figure and other elements or features. It should be understood that in addition to the orientation shown in the figure, the spatial relationship terms are intended to also include different orientations of the device in use and operation. For example, if the device in the accompanying drawings is turned over, then the elements or features described as "under other elements" or "under it" or "under it" will be oriented as "on" other elements or features. Therefore, the exemplary terms "under" and "under" may include both upper and lower orientations. The device can be oriented otherwise (rotated 90 degrees or other orientations) and the spatial descriptors used herein are interpreted accordingly.

[0022] The purpose of the terms used herein is only to describe specific embodiments and is not intended to be limiting of the present invention. When used herein, the singular forms "one", "an" and "said / the" are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "consisting of" and / or "comprising", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.

[0023] Example 1

[0024] like Figure 2The schematic diagram of the phase current flow in the three-phase inverter shown in the figure shows that according to Kirchhoff's current law, the sum of the three-phase (U, V, W) currents of the motor is zero, that is, I u +I v +I w = 0. Similarly, using Kirchhoff's current law to analyze the node connected to the upper end of the sampling resistor, we have I u '+I v '+I w '+I sns =0. When the lower tubes of the three-phase inverter are all turned on and the upper tubes are all turned off, according to the flow direction of the phase current in the system, I u '=I u ,I v '=I v ,I w '=I w , so in this scenario, the current flowing through the sampling resistor I sns is 0. If the ADC collects the voltage across the sampling resistor at this time, the conversion result is the actual bias voltage of the system. Figure 2 The combination state in which the lower switches in the three-phase inverter are all turned on and the upper switches are all turned off is called the bias voltage V of the motor drive system. offset The collection window.

[0025] It can be seen from this that how to determine the bias voltage V of the motor drive system offset The acquisition window is the focus of the present invention. Figure 3 The schematic diagram of the PWM signal waveform applied to the three-phase inverter during the three-phase motor driving process of the present invention is shown in FIG. The process of the dynamic calibration method of the bias voltage in the single resistor sampling of the present invention is as follows: Figure 4 As shown, the dynamic calibration method of the bias voltage in the single resistor sampling includes:

[0026] S100, obtaining the high level duration in one PWM cycle of the three-phase drive PWM signal of the motor. The high level duration in one PWM cycle of the PWM signal of the U phase is recorded as T u ; The high level duration of the V-phase PWM signal within one PWM cycle is recorded as T v The high level duration of the W-phase PWM signal within one PWM cycle is recorded as T w The PWM signal is a PWM signal of an upper switch tube of a three-phase inverter driving a three-phase motor.

[0027] S101, compare the high level duration T of each phase PWM signal in one PWM cycle u , T v , T w The maximum duration is T max, the minimum duration is recorded as T min , the middle time is recorded as T mid .

[0028] S102, obtaining a sampling time window T determined by the motor drive hardware circuit win , based on the sampling time window length T win , maximum duration T max , minimum duration T min and the middle duration T mid To determine whether there is a bias voltage V in the current PWM cycle offset The judgment process includes: when the value T pwm -T max -T win , T pwm -T mid -2*T win and T pwm -T min -3*T win When all three are positive, it means there is a bias voltage V offset If any of the above three values ​​is less than zero, there is no bias voltage V offset The collection window.

[0029] S103, when the result of step S102 is that there is a bias voltage V in the PWM cycle offset The acquisition window is set to the last T of the PWM cycle. win Get the sample voltage V within the time length sns And convert it, the conversion result is the bias voltage V of the system offset If the result of step S102 is that there is no bias voltage V offset The acquisition window is set to 0, and the bias voltage V is abandoned in this PWM cycle. offset Collection of.

[0030] In the present invention, in order to avoid the influence of single sampling error, the bias voltage V collected in one PWM cycle is offset The low-pass filter outputs the bias voltage calibration value, V offset_filt When current flows through the sampling resistor, if the resistance of the sampling resistor is R sns , the voltage conversion result is V sns_adc , then the actual sampling current value is (V sns_adc –V offset_filt ) / R sns .

[0031] The present invention may be a system, method and / or computer program product at any possible level of integrated technical detail. The computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon for causing a processor to perform various aspects of the present invention.

[0032] A computer readable storage medium may be a tangible device that can retain and store instructions used by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer readable storage media includes the following: a portable computer floppy disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device such as a punch card or a raised structure in a groove on which instructions are recorded, and any suitable combination of the above. A computer readable storage medium, as used herein, should not be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted by a wire.

[0033] The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a corresponding computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable storage medium within the corresponding computing / processing device.

[0034] The computer-readable program instructions for performing the operation of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, configuration data for integrated circuits, or source code or object code written in any combination of one or more programming languages ​​and process programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer by any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., by using the Internet of an Internet service provider). In certain embodiments, the electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) may execute the computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit, thereby performing aspects of the present invention.

[0035] Various aspects of the present invention are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It is understood that each block of the flowchart illustration and / or block diagram, and the combination of blocks in the flowchart illustration and / or block diagram, can be implemented by computer-readable program instructions.

[0036] These computer-readable program instructions may be provided to a processor of a computer or other programmable data processing device to produce a machine so that the instructions executed by the processor of the computer or other programmable data processing device create instructions for implementing the flowcharts and / or block diagrams. Figure 1 These computer-readable program instructions may also be stored in a computer-readable storage medium capable of booting a computer, a programmable data processing device and / or other device that operates in a specific manner, so that the computer-readable storage medium having the instructions stored therein includes a manufactured product that includes instructions that implement aspects of the functions / actions specified in the flowchart and / or block diagram blocks.

[0037] Computer readable program instructions may also be loaded into a computer, other programmable data processing device, or other device to cause a series of operating steps to be performed on the computer, other programmable devices or other devices for producing a computer-implemented process, so that the instructions executed on the computer, other programmable device or other device implement the functions / actions specified in the flowchart and / or block diagram blocks.

[0038] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, segment or portion of an instruction, which includes one or more executable instructions for implementing a specified logical function. In some optional implementations, the functions indicated in the block may occur outside the order indicated in the figure. For example, in fact, two blocks shown in succession can be completed as a step, and depending on the functions involved, they can be executed concurrently, substantially concurrently, in a partially or fully time-overlapping manner, or sometimes these blocks can be executed in reverse order. It will also be noted that each block of the block diagram and / or flowchart illustration, as well as the combination of blocks in the block diagram and / or flowchart illustration, can be implemented by a dedicated hardware-based system that performs a specified function or action or performs a combination of dedicated hardware and computer instructions.

[0039] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, apparatuses (devices) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0040] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0041] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

Claims

1. A dynamic calibration method for bias voltage in motor single resistance sampling, characterized in that: The method comprises: S100, obtaining the high level duration of the motor three-phase drive PWM signal within one PWM cycle; S101, compare the high level duration T of each phase PWM signal in one PWM cycle u , T v , T w to determine the maximum duration T max , minimum duration T min and the middle duration T mid ; S102, obtaining a sampling time window T determined by the motor drive hardware circuit win , based on the sampling time window length T win , maximum duration T max , minimum duration T min and the middle duration T mid To determine whether there is a bias voltage V in the current PWM cycle offset The collection window; S103, when the result of step S102 is that there is a bias voltage V in the PWM cycle offset The acquisition window is set to the last T of the PWM cycle. win Get the sample voltage V within the time length sns And convert it, the conversion result is the bias voltage V of the system offset .

2. The method according to claim 1, characterized in that For whether there is a bias voltage V offset The collection window judgment process includes: when the value T pwm -T max -T win 、T pwm -T mid -2*T win and T pwm -T min -3*T win When all three are positive, it means there is a bias voltage V offset If any of the above three values ​​is less than zero, there is no bias voltage V offset The collection window.

3. The method according to claim 1, characterized in that The bias voltage V collected within a PWM cycle offset It is sent to a low-pass filter, and the filter output result is the bias voltage calibration value finally used.

4. A computer-readable storage medium having computer instructions stored thereon, wherein: When the computer instruction is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.

5. A three-phase motor drive system, wherein the three-phase motor drive system calibrates a bias voltage using the dynamic calibration method for bias voltage according to any one of claims 1 to 3.