A rotary transformer simulator and method, motor simulation system
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIHANG UNIV
- Filing Date
- 2022-09-20
- Publication Date
- 2026-06-09
Smart Images

Figure CN115561630B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the technical field of motor simulation systems, specifically relating to a resolver simulator and method, and a motor simulation system. Background Technology
[0002] Currently, testing motor drivers physically requires developers to invest significant manpower, resources, and capital, increasing costs and extending production cycles. Furthermore, existing technologies for physical testing suffer from system complexity and inflexible parameter adjustments. To overcome these shortcomings of traditional motor driver testing, researchers both domestically and internationally have utilized power hardware-in-the-loop simulation technology to simulate the electrical characteristics of motors using power electronic devices—in other words, motor simulation systems.
[0003] In controlling an actual motor, a motor simulation system needs to acquire the motor rotor angle information in real time through a resolver simulator connected coaxially to the motor, thereby achieving accurate control of the current in each phase of the motor. Since there is no actual rotating shaft structure in the motor simulation system, the calculated rotor angle information must be simulated using a resolver simulator to mimic the output signal of a real resolver simulator. Currently, resolver simulators often use Digital Signal Processing (DSP) to multiply the received excitation signal by the calculated sine and cosine values of the rotor angle, then output the result using Pulse Width Modulation (PWM), and finally send it back to the motor driver through a filtering circuit. This method requires a very small calculation step size in the motor simulation system, but the filtering circuit suffers from phase delay and waveform distortion, resulting in a relatively large calculation step size for the motor simulation system, significantly increasing system cost and design complexity. Summary of the Invention
[0004] The purpose of this invention is to provide a resolver simulator and method, and a motor simulation system, to avoid problems such as phase delay and waveform distortion caused by filtering circuits, thereby improving the operating performance and simulation accuracy of the resolver simulator and reducing the solution step size of the resolver simulator.
[0005] To achieve the above objectives, the present invention provides a resolver simulator. It includes: a differential-to-single-ended circuit, a signal input circuit, a multiplication circuit, and a single-ended-to-differential circuit. The differential-to-single-ended circuit outputs two excitation single-ended signals based on an excitation differential signal. The signal input circuit outputs a sine and cosine analog signal of the rotor angle based on a PWM digital signal of the rotor angle's sine and cosine. The multiplication circuit generates a sine and cosine analog signal containing the excitation signal. The single-ended-to-differential circuit generates a sine and cosine differential signal containing the excitation signal.
[0006] Both the differential-to-single-ended circuit and the signal input circuit have two signal output terminals. The signal input terminal of the differential-to-single-ended circuit is electrically connected to the excitation signal output terminal of the resolver simulator of the external motor driver. Each signal output terminal of the differential-to-single-ended circuit and the corresponding signal output terminal of the signal input circuit are electrically connected to the signal input terminal of the corresponding multiplication circuit. The signal output terminal of each multiplication circuit is electrically connected to the signal input terminal of the corresponding single-ended-to-differential circuit.
[0007] Compared with existing technologies, in the resolver simulator provided by this invention, the signal input terminal of the differential-to-single-ended circuit is electrically connected to the resolver simulator excitation signal output terminal of the external motor driver. The differential-to-single-ended circuit has two signal output terminals; therefore, it can output two excitation single-ended signals based on the excitation differential signal, which can be divided into a first excitation single-ended signal and a second excitation single-ended signal. The signal input circuit can output sine and cosine analog signals based on the PWM digital signal of the rotor angle sine and cosine. Since the signal input circuit also has two signal output terminals, each signal output terminal of the differential-to-single-ended circuit and the corresponding signal output terminal of the signal input circuit are electrically connected to the signal input terminal of the corresponding multiplication circuit, and the signal output terminal of each multiplication circuit is electrically connected to the signal input terminal of the corresponding single-ended-to-differential circuit. Based on this, one multiplication circuit can output a sine signal containing the excitation signal based on the sine analog signal and the first excitation single-ended signal, and the other multiplication circuit can output a cosine signal containing the excitation signal based on the cosine analog signal and the second excitation single-ended signal. The single-ended to differential circuit generates a sine-cosine differential signal containing the excitation signal based on the sine signal and the cosine signal containing the excitation signal. Therefore, the resolver simulator provided by this invention can simulate the working process of a resolver simulator.
[0008] During the operation of the resolver simulator, the signal input circuit outputs sinusoidal and cosine analog signals of the rotor angle at the rising edge of the PWM digital signal representing the rotor angle's sine and cosine values. Therefore, the phase delay and waveform distortion of the sinusoidal and cosine analog signals output by the signal output circuit are relatively small. At this point, the sinusoidal and cosine analog signals are multiplied by two single-ended excitation signals input into two multiplication circuits, outputting a sine signal containing the excitation signal and a cosine signal containing the excitation signal. Then, based on the sine and cosine signals containing the excitation signal, two single-ended to differential circuits generate a sine-cosine differential signal containing the excitation signal. This process reduces the resolver simulator's calculation step size, improves its operating performance and simulation accuracy, and avoids problems such as phase delay and waveform distortion caused by filtering circuits.
[0009] This invention also provides a resolver simulator simulation method, which applies a differential-to-single-ended circuit, a signal input circuit, a multiplication circuit, and a single-ended-to-differential circuit to a resolver simulator. The method includes:
[0010] The differential-to-single-ended circuit uses the aforementioned differential-to-single-ended circuit to output a first excitation single-ended signal and a second excitation single-ended signal based on the excitation differential signal.
[0011] The signal input circuit utilizes the PWM digital signal based on the sine and cosine of the rotor angle to output the sine analog signal and the cosine analog signal of the rotor angle at the rising edge of the PWM digital signal.
[0012] The first multiplication circuit outputs a sinusoidal signal containing the excitation signal based on the sinusoidal analog signal and the first excitation single-ended signal, and the second multiplication circuit outputs a cosine signal containing the excitation signal based on the cosine analog signal and the second excitation single-ended signal.
[0013] A first single-ended to differential circuit is used to output a sinusoidal differential signal containing the excitation signal based on the sinusoidal signal containing the excitation signal, and a second single-ended to differential circuit is used to output a sinusoidal differential signal containing the excitation signal based on the sinusoidal signal containing the excitation signal.
[0014] Compared with the prior art, the refractive simulator simulation method provided by the present invention has the same beneficial effects as the refractive simulator provided above, and will not be repeated here.
[0015] The present invention also provides a motor simulation system, comprising:
[0016] A digital signal processor and a resolver simulator, wherein the resolver simulator is the resolver simulator described in the above technical solution;
[0017] The signal output terminal of the external motor driver is electrically connected to the signal input terminal of the resolver simulator, the signal output terminal of the resolver simulator is electrically connected to the signal input terminal of the external motor driver, and the signal output terminal of the digital signal processor is electrically connected to the signal input terminal of the resolver simulator.
[0018] The digital signal processor is used to provide the resolver simulator with PWM digital signals of rotor angle sine and cosine.
[0019] The external motor driver is used to provide excitation differential signals to the resolver simulator;
[0020] The resolver simulator is used to provide the external motor driver with a sine-cosine differential signal containing the excitation signal, based on the PWM digital signal of the rotor angle sine and cosine and the excitation differential signal.
[0021] Compared with the prior art, the motor simulation system provided by the present invention has the same beneficial effects as the resolver simulator described in the above technical solution, and will not be repeated here. Attached Figure Description
[0022] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:
[0023] Figure 1 A schematic diagram of the circuit structure of a motor simulation system according to an exemplary embodiment of the present invention is shown;
[0024] Figure 2 A schematic diagram of the circuit structure of a resolver simulator according to an exemplary embodiment of the present invention is shown;
[0025] Figure 3 A schematic flowchart of a spinner simulator simulation method according to an exemplary embodiment of the present invention is shown. Detailed Implementation
[0026] To make the technical problems to be solved, the technical solutions, and the beneficial effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention.
[0027] It should be noted that when a component is referred to as being "fixed to" or "set on" another component, it can be directly on or indirectly on that other component. When a component is referred to as being "connected to" another component, it can be directly connected to or indirectly connected to that other component.
[0028] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified. "Several" means one or more, unless otherwise explicitly specified.
[0029] In the description of this invention, it should be understood that the terms "upper", "lower", "front", "rear", "left", "right", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.
[0030] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0031] Currently, in traditional methods, the testing and evaluation of motor drives requires connecting the motor and its mechanical load to assess its control performance. Using physical testing methods demands significant investment of manpower, resources, and capital from developers, increasing costs and extending production cycles. Furthermore, this approach suffers from system complexity and inflexible parameter adjustments. Therefore, the application of various simulation testing methods to assist physical testing during the design and development of motor drives has become a consensus among developers. To overcome the shortcomings of traditional motor drive testing, scholars both domestically and internationally have utilized power hardware-in-the-loop simulation technology to simulate the electrical characteristics of motors using power electronic devices, thus creating motor simulation systems.
[0032] However, in the process of controlling an actual motor using a motor simulation system, it is necessary to obtain the motor rotor angle information in real time through a resolver simulator connected coaxially to the motor, thereby achieving accurate control of the current in each phase of the motor. In a motor simulation system, since there is no actual rotating shaft structure, the calculated rotor angle information needs to be simulated using a resolver simulator to mimic the output signal of a real resolver simulator. Currently, resolver simulators often use a DSP to multiply the received excitation signal by the calculated sine and cosine values of the rotor angle, outputting the result via PWM or similar methods, and then sending it back to the motor driver through a filtering circuit. This method requires a very small calculation step size in the motor simulation system, significantly increasing system cost and design complexity.
[0033] To address the aforementioned issues, this invention proposes a motor simulation system that can measure the period and pulse width of the PWM input signal through a chip in the PWM digital-to-analog converter sub-circuit, and update the voltage output PWM digital-to-analog converter sub-circuit after each corresponding rising edge of the PWM input. This improves the operating performance and simulation accuracy of the motor simulation system, reduces the calculation step size of the motor simulation system, and avoids problems such as phase delay and waveform distortion caused by the filtering circuit.
[0034] Figure 1 A schematic diagram of the circuit structure of a motor simulation system according to an exemplary embodiment of the present invention is shown. Figure 1As shown, the circuit structure 100 of an exemplary embodiment of the present invention includes a motor driver 101, a digital signal processor 102, and a resolver simulator simulation circuit 103. The digital signal processor 102 and the resolver simulator simulation circuit 103 belong to the motor simulation system 104. The signal output terminal of the motor driver 101 is electrically connected to the signal input terminal of the resolver simulator simulation circuit 103. The signal output terminal of the digital signal processor 102 is electrically connected to the signal input terminal of the resolver simulator simulation circuit 103. The signal output terminal of the resolver simulator simulation circuit 103 is electrically connected to the signal input terminal of the motor driver 101. The motor driver 101 is used to provide an excitation differential signal to the resolver simulator simulation circuit 103. The digital signal processor 102 is used to provide a PWM digital signal of rotor angle sine and cosine to the resolver simulator simulation circuit 103. The resolver simulator simulation circuit 103 is used to provide a sine and cosine differential signal containing the excitation signal to the motor driver 101 based on the PWM digital signal of rotor angle sine and cosine and the excitation differential signal.
[0035] Figure 2 A schematic diagram of the circuit structure of a resolver simulator according to an exemplary embodiment of the present invention is shown. Figure 2 As shown, the circuit structure 200 of a resolver simulator according to an exemplary embodiment of the present invention includes: a differential-to-single-ended circuit 202, a signal input circuit 201, a multiplication circuit 203, and a single-ended-to-differential circuit 204. The differential-to-single-ended circuit 202 is used to output two excitation single-ended signals based on the excitation differential signal. The signal input circuit 201 is used to output a sine and cosine analog signal of the rotor angle based on the PWM digital signal of the rotor angle sine and cosine. The multiplication circuit 203 is used to generate a sine and cosine analog signal containing the excitation signal. The single-ended-to-differential circuit 204 is used to generate a sine and cosine differential signal containing the excitation signal.
[0036] In the exemplary embodiment of this invention, both the differential-to-single-ended circuit and the signal input circuit have two signal output terminals. The signal input terminal of the differential-to-single-ended circuit is electrically connected to the excitation signal output terminal of the resolver simulator of the external motor driver. Each signal output terminal of the differential-to-single-ended circuit and the corresponding signal output terminal of the signal input circuit are electrically connected to the signal input terminal of the corresponding multiplication circuit. The signal output terminal of each multiplication circuit is electrically connected to the signal input terminal of the corresponding single-ended-to-differential circuit. For ease of explanation, the multiplication circuit is defined as the first multiplication circuit and the second multiplication circuit, and the single-ended-to-differential circuit is defined as the first single-ended-to-differential circuit and the second single-ended-to-differential circuit. It should be understood that the resolver simulator in the exemplary embodiment of this invention can be a rotary transformer simulator.
[0037] In specific implementation, a differential-to-single-ended circuit is used to output a first excitation single-ended signal and a second excitation single-ended signal based on the excitation differential signal; a signal input circuit is used to output a sine analog signal and a cosine analog signal of the rotor angle based on the PWM signal of the rotor angle sine and cosine; a first multiplication circuit is used to output a sine signal containing the excitation signal based on the sine analog signal and the first excitation single-ended signal; a second multiplication circuit is used to output a cosine signal containing the excitation signal based on the cosine analog signal and the second excitation single-ended signal; a first single-ended-to-differential circuit is used to output a sine differential signal containing the excitation signal based on the sine signal containing the excitation signal; and a second single-ended-to-differential circuit is used to output a cosine differential signal containing the excitation signal based on the cosine signal containing the excitation signal.
[0038] As can be seen from the above, during the operation of the resolver simulator, the signal input circuit outputs sinusoidal and cosine analog signals of the rotor angle at the rising edge of the PWM digital signal of the rotor angle. Therefore, the phase delay and waveform distortion of the sinusoidal and cosine analog signals output by the signal output circuit are relatively small. At this time, the sinusoidal and cosine analog signals are multiplied by two single-ended excitation signals input into two multiplication circuits, outputting a sine signal containing the excitation signal and a cosine signal containing the excitation signal. Then, based on the sine and cosine signals containing the excitation signal, two single-ended to differential circuits generate a sine-cosine differential signal containing the excitation signal, thereby improving the operating performance and simulation accuracy of the resolver simulator, reducing the solver step size, and avoiding problems such as phase delay and waveform distortion caused by the filtering circuit. Furthermore, through innovative design of the resolver simulator's circuit structure, the designed resolver simulator has excellent operating performance and high simulation accuracy, effectively meeting the performance requirements of the resolver simulator during motor driver testing.
[0039] In one alternative embodiment, the differential-to-single-ended circuit includes two differential-to-single-ended circuits, with the signal output terminal of each differential-to-single-ended circuit electrically connected to the signal input terminal of the corresponding multiplication circuit; and the signal input terminal of each differential-to-single-ended circuit electrically connected to the excitation signal output terminal of the resolver simulator of the external motor driver.
[0040] When the motor driver outputs a differential excitation signal, the differential excitation signal can be input into two differential-to-single-terminal circuits. The two differential-to-single-terminal circuits output single-ended excitation signals respectively, which are then input into the corresponding multiplication circuits, resulting in higher signal accuracy and less signal interference.
[0041] In one alternative embodiment, the signal input circuit includes a signal acquisition sub-circuit and two PWM digital-to-analog converter sub-circuits; the signal output terminal of the signal acquisition sub-circuit is electrically connected to the signal input terminal of the corresponding PWM digital-to-analog converter sub-circuit, and the signal output terminal of each digital-to-analog converter sub-circuit is electrically connected to the signal input terminal of the corresponding multiplication circuit. For ease of explanation, the two PWM digital-to-analog converter sub-circuits are defined as the first PWM digital-to-analog converter sub-circuit and the second PWM digital-to-analog converter sub-circuit.
[0042] In this embodiment of the invention, the signal input circuit outputs a sine analog signal and a cosine analog signal of the rotor angle based on the sine and cosine PWM digital signal of the rotor angle. Then, the signal acquisition sub-circuit acquires the sine and cosine PWM digital signals of the rotor angle to the first PWM digital-to-analog converter sub-circuit and the second PWM digital-to-analog converter sub-circuit. The sine analog signal is acquired by the first PWM digital-to-analog converter sub-circuit at the rising edge of the PWM digital signal, and the cosine analog signal is acquired by the second PWM digital-to-analog converter sub-circuit at the rising edge of the PWM digital signal.
[0043] In one example, a signal acquisition sub-circuit acquires both a sine and cosine PWM signal of the rotor angle and inputs them into a signal input circuit. A first PWM analog-to-digital converter in the signal input circuit receives the sine PWM signal and outputs a biased analog sine PWM signal of the rotor angle; a second PWM analog-to-digital converter in the signal input circuit receives the cosine PWM signal of the rotor angle and outputs a biased analog cosine PWM signal of the rotor angle.
[0044] In practical applications, the first and second PWM digital-to-analog converter sub-circuits can be implemented using filters. However, this method introduces capacitors, causing phase delay and waveform distortion, which in turn leads to deviations in the angle information calculated by the decoding circuit. In this embodiment of the invention, the first and second PWM digital-to-analog converter sub-circuits measure the period and pulse width of the PWM input signal using a chip, and update the voltage output digital-to-analog converter after each corresponding rising edge of the PWM input. This operation significantly reduces delay, and based on the first and second PWM digital-to-analog converter sub-circuits, the resolver simulator can achieve good operating performance, improve simulation accuracy, and ensure that the simulation error is less than 0.5%.
[0045] The signal acquisition sub-circuit described above can be a PWM to analog voltage chip, and the PWM digital-to-analog converter sub-circuit can be a PWM to analog circuit. The signal acquired by the PWM to analog voltage chip is a digital signal, and the two PWM digital-to-analog converter sub-circuits are used to convert the digital signal into an analog signal.
[0046] In an alternative embodiment, the signal input circuit may further include two debiasing sub-circuits. The signal input terminal of each debiasing sub-circuit is electrically connected to the signal output terminal of a corresponding PWM digital-to-analog converter sub-circuit, and the signal output terminal of each debiasing sub-circuit is electrically connected to the signal input terminal of a corresponding multiplication circuit. The debiasing sub-circuit can be a subtraction circuit used to remove bias from the signal. For ease of definition, the two debiasing sub-circuits are defined as a first debiasing sub-circuit and a second debiasing sub-circuit, and the two multiplication circuits are defined as a first multiplication circuit and a second multiplication circuit.
[0047] Specifically, the signal input circuit further includes a first debiasing sub-circuit and a second debiasing sub-circuit. The signal input terminal of the first debiasing sub-circuit is electrically connected to the signal output terminal of the first PWM digital-to-analog converter sub-circuit, and the signal output terminal of the first debiasing sub-circuit is electrically connected to the signal input terminal of the first multiplication circuit. The signal input terminal of the second debiasing sub-circuit is electrically connected to the signal output terminal of the second PWM digital-to-analog converter sub-circuit, and the signal output terminal of the second debiasing sub-circuit is electrically connected to the signal input terminal of the second multiplication circuit. The first debiasing sub-circuit provides the first multiplication circuit with an analog signal without a sine value of the biased rotor angle; the second debiasing sub-circuit provides the second multiplication circuit with an analog signal without a cosine value of the biased rotor angle.
[0048] In one alternative embodiment, the resolver simulator provided by this invention further includes two multiplication circuits. The first multiplication circuit outputs a sine signal containing the excitation signal based on a sinusoidal analog signal and a first excitation single-ended signal. The second multiplication circuit outputs a cosine signal containing the excitation signal based on a cosine analog signal and a second excitation single-ended signal.
[0049] In one example, the signal input terminal of the first multiplication circuit is electrically connected to the signal output terminal of the first debiasing sub-circuit and the signal output terminal of the differential-to-single-ended circuit; the signal input terminal of the second multiplication circuit is electrically connected to the signal output terminal of the second debiasing sub-circuit and the signal output terminal of the differential-to-single-ended circuit; the signal output terminal of the first multiplication circuit is electrically connected to the signal input terminal of the first single-ended-to-differential circuit; and the signal output terminal of the second multiplication circuit is electrically connected to the signal input terminal of the second single-ended-to-differential circuit.
[0050] In an optional embodiment, the motor simulator provided by this invention further includes two signal enhancement sub-circuits; the signal input terminal of each signal enhancement sub-circuit is electrically connected to the signal output terminal of a corresponding multiplication circuit, and the signal output terminal of each signal enhancement sub-circuit is electrically connected to the signal input terminal of a corresponding single-ended to differential circuit. For ease of explanation, the two signal enhancement sub-circuits are defined as a first signal enhancement sub-circuit and a second signal enhancement sub-circuit.
[0051] In one example, the signal input terminal of the first signal enhancement sub-circuit is electrically connected to the signal output terminal of the first multiplier circuit, and the signal output terminal of the first signal enhancement sub-circuit is electrically connected to the signal input terminal of the first single-ended to differential circuit; the signal input terminal of the second signal enhancement sub-circuit is electrically connected to the signal output terminal of the second multiplier circuit, and the signal output terminal of the second single-ended to differential circuit is electrically connected to the signal input terminal of the second single-ended to differential circuit; the signal output terminals of both the first and second signal enhancement sub-circuits are also electrically connected to the signal input terminal of the motor driver. It should be understood that the first and second signal enhancement sub-circuits can be proportional amplifier circuits.
[0052] In one optional embodiment, the resolver simulator provided by this invention further includes a first single-ended to differential circuit and a second single-ended to differential circuit. The signal output terminal of the first single-ended to differential circuit is electrically connected to the signal input terminal of the motor driver, and the signal output terminal of the second single-ended to differential circuit is also electrically connected to the signal input terminal of the motor driver. The motor driver calculates rotor position information based on the sinusoidal differential signal containing the excitation signal output by the first single-ended to differential circuit and the cosine differential signal containing the excitation signal output by the second single-ended to differential circuit. It should be understood that the differential to single-ended circuit receives a differential signal at its signal input terminal and outputs a single-ended signal at its signal output terminal, primarily implemented using a subtraction circuit; the single-ended to differential circuit receives a single-ended signal at its signal input terminal and outputs a differential signal at its signal output terminal, primarily implemented using an inverting circuit.
[0053] Figure 3 A schematic flowchart illustrating an exemplary embodiment of the present invention using a spinner simulator is shown. Figure 3 As shown, the resolver simulator simulation method of the exemplary embodiment of the present invention can apply a resolver simulator simulation method with differential-to-single-ended circuit, signal input circuit, first multiplication circuit, second multiplication circuit, first single-ended-to-differential circuit, and second single-ended-to-differential circuit. The method includes:
[0054] Step 301: Use a differential-to-single-ended circuit to output a first excitation single-ended signal and a second excitation single-ended signal based on the excitation differential signal;
[0055] Step 302: Using the signal input circuit based on the PWM digital signal of the rotor angle sine and cosine, output the sine analog signal of the rotor angle and the cosine analog signal of the rotor angle at the rising edge of the PWM digital signal of the rotor angle sine and cosine; it should be understood that in practical applications, steps 301 and 302 can be performed simultaneously.
[0056] Step 303: Using the first multiplication circuit based on the sinusoidal analog signal and the first excitation single-ended signal, output a sinusoidal signal containing the excitation signal; using the second multiplication circuit based on the cosine analog signal and the second excitation single-ended signal, output a cosine signal containing the excitation signal.
[0057] Step 304: Use the first single-ended to differential circuit to output a sinusoidal differential signal containing the excitation signal based on the sinusoidal signal containing the excitation signal, and use the second single-ended to differential circuit to output a sinusoidal differential signal containing the excitation signal based on the sinusoidal signal containing the excitation signal.
[0058] In one alternative, when the differential-to-single-ended circuit includes two differential-to-single-ended terminal circuits, the differential-to-single-ended circuit is used to output a first excitation single-ended signal and a second excitation single-ended signal based on the excitation differential signal.
[0059] In one alternative embodiment, when the signal input circuit includes a signal acquisition sub-circuit, a first PWM digital-to-analog converter sub-circuit, and a second PWM digital-to-analog converter sub-circuit, the signal input circuit outputs a sinusoidal analog signal of the rotor angle and a cosine analog signal of the rotor angle based on the PWM digital signal of the rotor angle, including:
[0060] Step 3021: Use the signal acquisition sub-circuit to acquire PWM digital signals that provide rotor angle sine and cosine to the first PWM digital-to-analog converter sub-circuit and the second PWM digital-to-analog converter sub-circuit;
[0061] Step 3022: Acquire a sinusoidal analog signal using the first PWM digital-to-analog converter circuit at the rising edge of the PWM digital signal;
[0062] Step 3023: Acquire a cosine analog signal using the second PWM digital-to-analog converter circuit at the rising edge of the PWM digital signal;
[0063] Step 3024: Use the first debiasing sub-circuit to provide the first multiplication circuit with a simulated rotor angle sine value;
[0064] Step 3025: Use the second debiasing sub-circuit to provide the second multiplication circuit with an analog signal of the rotor angle cosine value.
[0065] In one alternative approach, a first multiplication circuit is used to output a sinusoidal signal containing the excitation signal based on a sinusoidal analog signal and a first excitation single-ended signal, and a second multiplication circuit is used to output a cosine signal containing the excitation signal based on a cosine analog signal and a second excitation single-ended signal. It should be understood that in practical applications, steps 3022 and 3023 can be performed simultaneously, and steps 3024 and 3025 can be performed simultaneously.
[0066] In one alternative embodiment, the resolver simulator simulation method further includes a first signal amplification sub-circuit and a second signal amplification sub-circuit. The first signal amplification sub-circuit amplifies the sinusoidal signal containing the excitation signal; the second signal amplification sub-circuit amplifies the cosine signal containing the excitation signal.
[0067] In one alternative approach, the rotor position information is calculated using a motor driver based on a sinusoidal differential signal containing the excitation signal and a cosine differential signal containing the excitation signal.
[0068] In one alternative approach, the analog signal for the sine value of the rotor angle can be set to sinθ, the analog signal for the cosine value of the rotor angle can be set to cosθ, where θ is the electrical angle of the rotor in the resolver simulator; and the single-ended excitation signal can be set to sinωt, where ω is the frequency of the excitation signal.
[0069] In one example, the positive terminal signal of the sinusoidal differential and the positive terminal signal of the cosine differential can be:
[0070]
[0071] Wherein, S3 is the positive terminal signal of the sinusoidal differential signal, S2 is the positive terminal signal of the cosine differential signal, and E0 is the peak-to-peak value of the excitation differential signal.
[0072] In one example, the negative signals at the sine differential terminals and the negative signals at the cosine differential terminals can be:
[0073]
[0074] Wherein, S1 is the negative terminal signal of the sinusoidal differential signal, and S4 is the negative terminal signal of the cosine differential signal.
[0075] In one example, the resolver simulator designed based on the resolver simulator simulation method satisfies the resolver simulator principle equation:
[0076]
[0077] The present invention provides a simulation method for a resolver simulator, the advantages and effects of which are that through the innovative design of the resolver simulator simulation method, the designed resolver simulator has good operating performance and high system accuracy, and can effectively meet the performance requirements of the motor simulation system and resolver simulator in the motor driver testing process.
[0078] Although the invention has been described herein in conjunction with various embodiments, those skilled in the art will understand and implement other variations of the disclosed embodiments by reviewing the accompanying drawings, the disclosure, and the appended claims in carrying out the claimed invention. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0079] Although the invention has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made therein without departing from the spirit and scope of the invention. Accordingly, this specification and drawings are merely exemplary descriptions of the invention as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. Clearly, those skilled in the art can make various alterations and modifications to the invention without departing from its spirit and scope. Thus, if such modifications and modifications of the invention fall within the scope of the claims and their equivalents, the invention is also intended to include such modifications and modifications.
Claims
1. A resolver simulator, characterized in that, include: The circuit includes a differential-to-single-ended converter, a signal input circuit, a multiplication circuit, and a single-ended-to-differential converter. The differential-to-single-ended converter is used to output two excitation single-ended signals based on the excitation differential signal. The signal input circuit is used to output sine and cosine analog signals of the rotor angle based on the PWM digital signal of the rotor angle sine and cosine. The multiplication circuit is used to generate sine and cosine analog signals containing the excitation signal. The single-ended-to-differential converter is used to generate sine and cosine differential signals containing the excitation signal. Both the differential-to-single-ended circuit and the signal input circuit have two signal output terminals. The signal input terminal of the differential-to-single-ended circuit is electrically connected to the excitation signal output terminal of the resolver simulator of the external motor driver. Each signal output terminal of the differential-to-single-ended circuit and the corresponding signal output terminal of the signal input circuit are electrically connected to the signal input terminal of the corresponding multiplication circuit. The signal output terminal of each multiplication circuit is electrically connected to the signal input terminal of the corresponding single-ended-to-differential circuit. The signal input circuit includes a signal acquisition sub-circuit, a first PWM digital-to-analog converter sub-circuit, and a second PWM digital-to-analog converter sub-circuit. The signal output terminal of the signal acquisition sub-circuit is electrically connected to the signal input terminal of the corresponding PWM digital-to-analog converter sub-circuit; the signal acquisition sub-circuit is used to acquire PWM digital signals that provide rotor angle sine and cosine to the first PWM digital-to-analog converter sub-circuit and the second PWM digital-to-analog converter sub-circuit, and to acquire a sine analog signal using the first PWM digital-to-analog converter sub-circuit at the rising edge of the PWM digital signal, and to acquire a cosine analog signal using the second PWM digital-to-analog converter sub-circuit at the rising edge of the PWM digital signal. The signal input circuit further includes two debiasing sub-circuits. The signal input terminal of each debiasing sub-circuit is electrically connected to the signal output terminal of the corresponding PWM digital-to-analog converter sub-circuit, and the signal output terminal of each debiasing sub-circuit is electrically connected to the signal input terminal of the corresponding multiplication circuit.
2. The resolver simulator according to claim 1, characterized in that, The differential-to-single-ended circuit includes two differential-to-single-ended circuits. The signal output terminal of each differential-to-single-ended circuit is electrically connected to the signal input terminal of the corresponding multiplication circuit. The signal input terminal of each differential-to-single-ended circuit is electrically connected to the excitation signal output terminal of the resolver simulator of the external motor driver.
3. The resolver simulator according to claim 1, characterized in that, The resolver simulator also includes two signal enhancement sub-circuits; The signal input terminal of each of the signal enhancement sub-circuits is electrically connected to the signal output terminal of the corresponding multiplication circuit, and the signal output terminal of each of the signal enhancement sub-circuits is electrically connected to the signal input terminal of the corresponding single-ended to differential circuit.
4. A method for simulation using a resolver simulator, characterized in that, include: A resolver simulator employing a differential-to-single-ended circuit, a signal input circuit, a first multiplication circuit, a second multiplication circuit, a first single-ended-to-differential circuit, and a second single-ended-to-differential circuit, wherein the method includes: The differential-to-single-ended circuit uses the aforementioned differential-to-single-ended circuit to output a first excitation single-ended signal and a second excitation single-ended signal based on the excitation differential signal. The signal input circuit utilizes the PWM digital signal based on the sine and cosine of the rotor angle to output the sine analog signal and the cosine analog signal of the rotor angle at the rising edge of the PWM digital signal. The first multiplication circuit outputs a sine signal containing the excitation signal based on the sinusoidal analog signal and the first excitation single-ended signal, and the second multiplication circuit outputs a cosine signal containing the excitation signal based on the cosine analog signal and the second excitation single-ended signal. The first single-ended to differential circuit outputs a sinusoidal differential signal containing the excitation signal based on the sinusoidal signal containing the excitation signal, and the second single-ended to differential circuit outputs a sinusoidal differential signal containing the excitation signal based on the sinusoidal signal containing the excitation signal. The signal input circuit includes a signal acquisition sub-circuit, a first PWM digital-to-analog converter sub-circuit, and a second PWM digital-to-analog converter sub-circuit. The step of using the signal input circuit to output a sine analog signal of the rotor angle and a cosine analog signal of the rotor angle based on the PWM digital signal of the rotor angle includes: The signal acquisition sub-circuit is used to acquire PWM digital signals that provide rotor angle sine and cosine to the first PWM digital-to-analog converter sub-circuit and the second PWM digital-to-analog converter sub-circuit; The sinusoidal analog signal is acquired using the first PWM digital-to-analog converter sub-circuit at the rising edge of the PWM digital signal; The cosine analog signal is acquired using the second PWM digital-to-analog converter sub-circuit at the rising edge of the PWM digital signal; The signal input circuit further includes a first debiasing sub-circuit and a second debiasing sub-circuit; the step of using the signal input circuit to output a sine analog signal of the rotor angle and a cosine analog signal of the rotor angle based on the PWM digital signal of the rotor angle further includes: The first debiasing sub-circuit is used to provide the first multiplication circuit with a simulated rotor angle sinusoidal signal. The second debiasing sub-circuit provides the second multiplication circuit with an analog signal of the rotor angle cosine value.
5. The spinner simulator simulation method according to claim 4, characterized in that, The resolver simulator simulation also includes a first signal enhancement sub-circuit and a second signal enhancement sub-circuit; The signal input terminal of the first signal enhancement sub-circuit is electrically connected to the signal output terminal of the first multiplication circuit, and the signal output terminal of the first signal enhancement sub-circuit is electrically connected to the signal input terminal of the first single-ended to differential circuit. The signal input terminal of the second signal enhancement sub-circuit is electrically connected to the signal output terminal of the second multiplication circuit, and the signal output terminal of the second signal enhancement sub-circuit is electrically connected to the signal input terminal of the second single-ended to differential circuit.
6. A motor simulation system, characterized in that, include: A digital signal processor and a resolver simulator, wherein the resolver simulator is the resolver simulator according to any one of claims 1 to 3; The signal output terminal of the external motor driver is electrically connected to the signal input terminal of the resolver simulator, the signal output terminal of the resolver simulator is electrically connected to the signal input terminal of the external motor driver, and the signal output terminal of the digital signal processor is electrically connected to the signal input terminal of the resolver simulator. The digital signal processor is used to provide the resolver simulator with PWM digital signals of rotor angle sine and cosine. The external motor driver is used to provide excitation differential signals to the resolver simulator; The resolver simulator is used to provide the external motor driver with a sine-cosine differential signal containing the excitation signal, based on the PWM digital signal of the rotor angle sine and cosine and the excitation differential signal.