INFORMATION ACQUISITION DEVICE AND INFORMATION ACQUISITION METHOD FOR PULSATING VOLTAGE
20250138064 ยท 2025-05-01
Inventors
Cpc classification
G01R19/2509
PHYSICS
G01R19/003
PHYSICS
G01R19/0053
PHYSICS
International classification
G01R19/255
PHYSICS
G01R19/00
PHYSICS
Abstract
The present invention provides an information acquisition device and method for a pulsating voltage. The device uses a signal isolation circuit to receive a switch-controlling voltage of a motor driver and outputs a logic voltage. When a signal processing module receives the logic voltage from the signal isolation circuit, the signal processing module starts a counter and determines whether a rising or falling edge is present in the logic voltage. When determining that a first rising edge, a first falling edge, and a second rising edge are respectively present in the logic voltage, the signal processing module respectively stores a value of the counter as a first counter value, a second counter value, and a third counter value, and proceeds to calculate a voltage duty cycle of a motor-switching period based on the counter values. The present invention calculates the voltage duty cycle with improved accuracy.
Claims
1. An information acquisition device for a pulsating voltage, comprising: a signal isolation circuit, utilized for receiving a switch-controlling voltage of a motor driver, and outputting a logic voltage based on the switch-controlling voltage of the motor driver; and a signal processing module, electrically connected to the signal isolation circuit; wherein when the signal processing module receives the logic voltage from the signal isolation circuit, the signal processing module starts a counter, and determines whether a rising edge or a falling edge is present in the logic voltage; wherein when the signal processing module determines that the rising edge is present in the logic voltage for a first time, the signal processing module stores a value of the counter as a first counter value; wherein when the signal processing module determines that the falling edge is present in the logic voltage for a first time, the signal processing module stores the value of the counter as a second counter value, then resets the counter and starts the counter again; wherein when the signal processing module determines that the rising edge is present in the logic voltage for a second time, the signal processing module stores the value of the counter as a third counter value; wherein the signal processing module then calculates a voltage duty cycle of a motor-switching period based on the first counter value, the second counter value, and the third counter value.
2. The information acquisition device as claimed in claim 1, wherein the signal processing module uses the following formula for calculating the voltage duty cycle:
3. The information acquisition device as claimed in claim 1, wherein the signal processing module is utilized to receive a carrier voltage of a converter of the motor driver; wherein the carrier voltage is periodic, and the signal processing module detects a maximum carrier voltage from the carrier voltage and proceeds to calculate an averaged voltage value needed for a motor model by multiplying the voltage duty cycle by the maximum carrier voltage.
4. The information acquisition device as claimed in claim 1, wherein the signal isolation circuit stores an upper voltage threshold and a lower voltage threshold, with the upper voltage threshold being greater than the lower voltage threshold; wherein when the switch-controlling voltage received by the signal isolation circuit is between the upper voltage threshold and the lower voltage threshold, the signal isolation circuit outputs the logic voltage that has been noise-filtered to the signal processing module.
5. The information acquisition device as claimed in claim 1, further comprising: a voltage divider, electrically connected to the signal isolation circuit; wherein when the voltage divider receives a motor-switch voltage from a converter of the motor driver, the voltage divider divides the motor-switch voltage into the switch-controlling voltage of a lower voltage value, and the voltage divider outputs the switch-controlling voltage to the signal isolation circuit.
6. The information acquisition device as claimed in claim 1, wherein the signal processing module is an enhanced capture module within a digital signal processor.
7. An information acquisition method for a pulsating voltage, executed by a signal processing module, and comprising the following steps: when receiving a logic voltage from a signal isolation circuit, starting a counter, and determining whether a rising edge or a falling edge is present in the logic voltage; when determining that the rising edge is present in the logic voltage for a first time, storing a value of the counter as a first counter value; when determining that the falling edge is present in the logic voltage for a first time, storing the value of the counter as a second counter value, then resetting the counter and starting the counter again; when determining that the rising edge is present in the logic voltage for a second time, storing the value of the counter as a third counter value; and calculating a voltage duty cycle of a motor-switching period based on the first counter value, the second counter value, and the third counter value.
8. The information acquisition method as claimed in claim 7, wherein the step of calculating the voltage duty cycle of the motor-switching period based on the first counter value, the second counter value, and the third counter value uses the following formula to calculate the voltage duty cycle:
9. The information acquisition method as claimed in claim 8, further comprising the following steps: receiving a carrier voltage from a converter of a motor driver, wherein the carrier voltage is periodic; detecting a maximum carrier voltage from the carrier voltage; and calculating an averaged voltage value needed for a motor model by multiplying the voltage duty cycle by the maximum carrier voltage.
10. The information acquisition method as claimed in claim 7, wherein the signal isolation circuit stores an upper voltage threshold and a lower voltage threshold, with the upper voltage threshold being greater than the lower voltage threshold; wherein when a switch-controlling voltage received by the signal isolation circuit is between the upper voltage threshold and the lower voltage threshold, the signal isolation circuit outputs the logic voltage that has been noise-filtered to the signal processing module.
11. The information acquisition method as claimed in claim 7, wherein when a voltage divider receives a motor-switch voltage from a converter of a motor driver, the voltage divider divides the motor-switch voltage into a switch-controlling voltage of a lower voltage value, and the voltage divider outputs the switch-controlling voltage to the signal isolation circuit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
DETAILED DESCRIPTION OF THE INVENTION
[0030] The present invention provides an information acquisition device for a pulsating voltage and an information acquisition method for a pulsating voltage.
[0031] With reference to
[0032] In an embodiment of the present invention, the external device 2 is a motor driver, and the motor driver includes a converter 4. As such, the motor driver is a device under test (DUT). An electronic motor emulator (EME) 6 is electrically connected to both the external device 2 and the information acquisition device 1. More particularly, the EME 6 includes a motor model 3, and the EME 6 senses an electric signal from the converter of the DUT through the help of the information acquisition device 1, and then uses the sensed electrical signal for the motor model 3 to simulate different electric signals for emulating the motor driver. For example, the EME 6 simulates that when the converter 4 is given electricity for switching switches, how much average voltage is needed to sustain such switching operation. For example, the information acquisition device 1 senses a motor-switch voltage from the converter 4 of the DUT that switches between zero volt (V) and 350 volts, and the motor-switch voltage is a square wave for controlling the conductions of the switches of the converter 4. However, a voltage duty cycle of a motor-switching period for controlling the switching operation of the converter 4 is still unknown for the EME 6, and therefore an averaged voltage value required for the EME 6 to have the motor model 3 to emulate electric signals for the DUT is still unknown.
[0033] With reference to
[0034] In an embodiment, an electrical resistance of the first resistor 31 is 68-folds more than an electrical resistance of the second resistor 32. As such, the motor-switch voltage is divided with a ratio of 1:69 into the switch-controlling voltage of roughly 5V by the voltage divider 30. The voltage divider 30 further outputs the switch-controlling voltage to the signal isolation circuit 10, and thus, the switch-controlling voltage is a square wave voltage that switches between 0V and 5V.
[0035] The signal isolation circuit 10 stores an upper voltage threshold and a lower voltage threshold, with the upper voltage threshold being greater than the lower voltage threshold. In the present embodiment, the upper voltage threshold is 3.5V, and the lower voltage threshold is 1.5V. When the switch-controlling voltage received by the signal isolation circuit 10 is between the upper voltage threshold and the lower voltage threshold, the signal isolation circuit 10 outputs the logic voltage that has been noise-filtered to the signal processing module 20.
[0036] Furthermore, when the switch-controlling voltage is between the upper voltage threshold and the lower voltage threshold, the motor-switch voltage has a hysteresis voltage of roughly between 105V and 245V. This means that when the signal isolation circuit 10 outputs the logic voltage that has been noise-filtered to the signal processing module 20, the motor-switch voltage is the hysteresis voltage of roughly between 105V and 245V.
[0037] The logic voltage is a transistor-transistor logic (TTL) signal, as the upper voltage threshold and the lower voltage threshold are both respectively set by different transistors executing different voltage-dependent operations with different voltage thresholds. Furthermore, the signal isolation circuit 10 may be an integrated circuit (IC) chip, and the circuit designs of the IC chip are free to be of any kind as long as the IC chip satisfies the aforementioned functionality required of the signal isolation circuit 10.
[0038] The signal isolation circuit 10 of the present invention is able to filter voltage noise as the signal isolation circuit 10 is able to tolerate the switch-controlling voltage with up to 3.5V of voltage fluctuations, or rather an equivalent of tolerating the motor-switch voltage with up to 245V of voltage fluctuations. Furthermore, a noise filtering ability of the signal isolation circuit 10 of the present invention is better than a noise filtering ability of the traditional method mentioned in prior art. Using the traditional method mentioned in prior art, when peripheral components of an analog-to-digital converter (ADC) receive 3V of maximum voltage and also use 12-bits resolution for noise-filtering, merely a noise voltage of 0.732 millivolt (mV) is enough to affect and compromise the noise filtering ability of the traditional method, yielding a noisy voltage signal. In other words, the present invention has a higher noise tolerance than prior art. The present invention tolerates voltage fluctuations up to 70% of the maximum voltage value received, as 3.5V divided by 5V of the maximum switch-controlling voltage equals 70%. In contrast, the prior art only tolerates voltage fluctuations up to 24.4% of the maximum voltage value received, as 0.732V divided by 3V of maximum voltage equals 24.4%. As such, the present invention has a better noise filtering ability in comparison to prior art.
[0039] Very importantly, the motor-switch voltage and the switch-controlling voltage have identical phases, as the two voltages differ only because of the voltage divider 30. Furthermore, the switch-controlling voltage and the logic voltage are also identical, with the only difference being that when the switch-controlling voltage fluctuates outside of the voltage range between the upper voltage threshold and the lower voltage threshold, the signal isolation circuit 10 outputs the logic voltage with different voltage values. In other words, even if the signal isolation circuit 10 of the present invention causes time delay when filtering voltage noises, such time delay caused by the signal isolation circuit 10 of the present invention has a fixed amount of time delay, rather than a time delay caused by phase changes for filtering noise as detailed in prior art. The time delay of the present invention is fixed, because time is fixed for the logic voltage to transition between a higher voltage value and a lower voltage value.
[0040] The signal processing module 20 is electrically connected to the signal isolation circuit 10. In an embodiment, the signal processing module 20 is an enhanced capture module (eCAP module) within a digital signal processor (DSP). In other embodiments, the signal processing module 20 may also be any other type of module with signal capturing ability, signal processing ability, and counting and computing abilities.
[0041] When the signal processing module 20 receives the logic voltage from the signal isolation circuit 10, the signal processing module 20 starts counting a counter from zero, and further the signal processing module 20 determines whether a rising edge or a falling edge is present in the logic voltage.
[0042] When the signal processing module 20 determines that the rising edge is present in the logic voltage for a first time, the signal processing module 20 stores a value of the counter as a first counter value. When the signal processing module determines that the falling edge is present in the logic voltage for a first time, the signal processing module 20 stores the value of the counter as a second counter value, then resets the counter to zero and starts the counter again. When the signal processing module 20 determines that the rising edge is present in the logic voltage for a second time, the signal processing module 20 stores the value of the counter as a third counter value. Lastly, the signal processing module 20 then calculates the voltage duty cycle of the motor-switching period based on the first counter value, the second counter value, and the third counter value. In an embodiment, the signal processing module 20 may store the value of the counter as a zeroth counter value when the counter first begins counting from zero. The signal processing module 20 may also store the value of the counter as a zeroing counter value when the signal processing module 20 determines that the falling edge is present in the logic voltage for the first time.
[0043] With reference to
[0044]
[0045] Furthermore, the signal processing module 20 calculates the voltage duty cycle according to the following derived formula:
wherein D represents the voltage duty cycle, C.sub.1 represents the first counter value C.sub.1, C.sub.2 represents the second counter value C.sub.2, and C.sub.3 represents the third counter value C.sub.3. Evidently, according to the formula, the voltage duty cycle is calculatable without needing the zeroth counter value C.sub.0 and the zeroing counter value C. The following paragraphs will demonstrate how the formula is derived.
[0046] First, according to the zeroth counter value C.sub.0, the first counter value C.sub.1, the second counter value C.sub.2, the zeroing counter value C, and the third counter value C.sub.3 stored by the signal processing module 20, the following relations May be written:
wherein, within the formula, C.sub.0 represents the zeroth counter value C.sub.0, Cc represents the zeroing counter value C, C.sub.10 represents a difference between the first counter value C.sub.1 and the zeroth counter value C.sub.0, C.sub.21 represents a difference between the second counter value C.sub.2 and the first counter value C.sub.1, and C.sub.3C represents a difference between the third counter value C.sub.3 and the zeroing counter value C. Furthermore, since a time duration between when the first time the rising edge appears and when the first time the falling edge appears in the logic voltage corresponds to when the square wave of the converter 4 is switched on, the difference between the second counter value C.sub.2 and the first counter value C.sub.1 can also be recognized as C.sub.ON, wherein C.sub.ON corresponds to a time duration of positive amplitude in a period of the voltage duty cycle.
[0047] Furthermore, a full period of the voltage duty cycle can be written as the following:
wherein C.sub.S represents the full period of the voltage duty cycle, also known as a total amount of time needed for the converter 4 to do a cycle of switching the switches. The formula is formulated such that, C.sub.S, or the full period of the voltage duty cycle, includes half of time of C.sub.10 and half of time of C.sub.3c.
[0048] Lastly, by utilizing all of the formulas listed above, the voltage duty cycle can be derived as the following:
[0049] After the signal processing module 20 finishes calculating the voltage duty cycle, the signal processing module 20 proceeds to output the voltage duty cycle to the motor model 3 of the EME 6, for providing the motor model 3 accurate electrical values for further calculations.
[0050] In an embodiment, the signal processing module 20 is also obtains the carrier voltage directly from the external device 2. The signal processing module 20 detects a maximum carrier voltage from the carrier voltage, and proceeds to calculate the averaged voltage value needed for the motor model 3 by multiplying the voltage duty cycle by the maximum carrier voltage. The signal processing module 20 may then output the averaged voltage value to the motor model 3, allowing the EME 6 to use the motor model 3 to emulate a sustainable voltage for the converter 4.
[0051] With reference to
[0052] Since the carrier voltage is periodic and symmetric in its waveform, with reference to
[0053] With reference to
[0054] Step S1: when receiving a logic voltage from a signal isolation circuit, starting a counter.
[0055] Step S2: determining whether a rising edge is present in the logic voltage for a first time; when determining the rising edge is absent in the logic voltage for the first time, executing step S2.
[0056] Step S3: when determining the rising edge is present in the logic voltage for the first time, storing the value of the counter as a first counter value.
[0057] Step S4: determining whether a falling edge is present in the logic voltage for a first time; when determining the falling edge is absent in the logic voltage for the first time, executing step S4.
[0058] Step S5: when determining the falling edge is present in the logic voltage for the first time, storing the value of the counter as a second counter value, then resetting the counter and starting the counter again.
[0059] Step S6: determining whether the rising edge is present in the logic voltage for a second time; when determining the rising edge is absent in the logic voltage for the second time, executing step S6.
[0060] Step S7: when determining the rising edge is present in the logic voltage for the second time, storing the value of the counter as a third counter value.
[0061] Step S8: calculating a voltage duty cycle of a motor-switching period based on the first counter value, the second counter value, and the third counter value.
[0062] In an embodiment, the signal processing module 20 uses multiple flags to determine whether the rising edge or the falling edge has appeared for the first time or for the second time. For example, when the signal processing module 20 determines that the rising edge has not appeared even once according to a flag, then logically the signal processing module 20 would know the next rising edge appearance would be a first-time appearance of the rising edge. When the signal processing module 20 determines that the rising edge has appeared once but not twice according to another flag, then logically the signal processing module 20 would know the next rising edge appearance would be a second-time appearance of the rising edge. Similar logic applies to the signal processing module 20's understanding of a number of appearances of the falling edge. Furthermore, the calculation of the voltage duty cycle mentioned in step S8 has been thoroughly explored in previous parts of the detailed description, and therefore is hereby omitted for conciseness in descriptions.
[0063] With reference to
[0064] Step S9: receiving a carrier voltage from a converter of a motor driver, wherein the carrier voltage is periodic.
[0065] Step S10: detecting a maximum carrier voltage from the carrier voltage.
[0066] Step S11: calculating an averaged voltage value needed for a motor model by multiplying the voltage duty cycle by the maximum carrier voltage.