Displacement sensor, and magnetic bearing displacement control method, device and system
By using the displacement sensing module, square wave conversion module and waveform detection module in the displacement sensor, and using the duty cycle value of the pulse width modulation signal to characterize the displacement, the problems of small range and low accuracy of the traditional displacement sensor are solved, and a higher Accurate displacement measurement.
Patent Information
- Application Number
- CN202410656448.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
AI Technical Summary
The voltage range of traditional displacement sensors is small, resulting in low displacement measurement accuracy and inability to effectively characterize displacement changes in complex environments.
A displacement sensor is designed. Through the displacement sensing module, square wave conversion module and waveform detection module, the duty cycle value of the pulse width modulation signal is used to characterize the displacement, which expands the range and improves the accuracy of displacement measurement.
Through the detection of the duty cycle value, the accuracy and stability of the displacement measurement are significantly improved, and the influence of the external environment on the measurement results is reduced.
Smart Images

Figure CN118602918A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automation control, and in particular to a displacement sensor, a magnetic bearing displacement control method, a device and a system. Background Art
[0002] Displacement sensors are widely used in industrial automation, robotics, aerospace and other fields. Displacement sensors are mainly used to measure the position change or mechanical displacement of an object and convert these physical quantities into electrical signals. Displacement sensors can convert various measured physical quantities (such as displacement, length, angle, etc.) into electrical quantities (such as voltage, current, resistance, etc.) for subsequent signal processing, display, recording and transmission.
[0003] For example, in a magnetic bearing control system, a displacement sensor can measure the displacement of the magnetic bearing rotor. Based on the displacement, the system can change the current of the electromagnetic coil to generate a corresponding electromagnetic force to control the magnetic bearing rotor to remain near the center position.
[0004] Traditional displacement sensors convert displacement changes into voltage changes and directly input them into the controller. However, due to the limitations of signal processing circuit design, traditional displacement sensors have a small voltage range, usually 0-5V, resulting in low signal resolution and sensitivity of the sensor output, which affects the displacement measurement accuracy. Summary of the invention
[0005] In view of this, in order to solve some or all of the above-mentioned technical problems, the embodiments of the present application provide a displacement sensor, a magnetic bearing displacement control method, device and system, an electronic device and a computer-readable storage medium.
[0006] In a first aspect, an embodiment of the present application provides a displacement sensor, which includes: a displacement sensing module, a square wave conversion module and a waveform detection module, wherein the displacement sensing module is connected to the square wave conversion module, and the square wave conversion module is connected to the waveform detection module;
[0007] The displacement sensing module is used to receive an input excitation signal, sense the displacement of the device under test based on the excitation signal, and output the sensing signal to the square wave conversion module;
[0008] The square wave conversion module is used to convert the sensing signal into a pulse width modulation signal, and output the pulse width modulation signal to the waveform detection module, wherein the duty cycle of the pulse width modulation signal corresponds to the displacement;
[0009] The waveform detection module is used to detect the duty cycle of the pulse width modulation signal and output the duty cycle value.
[0010] In a possible implementation, the displacement sensing module includes an oscillation circuit;
[0011] The oscillation circuit is used to oscillate in response to the excitation signal and output an oscillated induction signal, wherein the amplitude of the induction signal corresponds to the displacement.
[0012] In a possible implementation, the oscillation circuit includes an inductive inductor, and the inductive inductor is used to sense the displacement of the device under test to change the inductance value.
[0013] In one possible implementation, the square wave conversion module includes a waveform modulation unit and a comparator;
[0014] The waveform modulation unit is used to convert the opposite-polarity voltage value of the induced signal into the same-polarity voltage value to obtain a modulated signal;
[0015] The comparator is used to compare the modulated signal with a preset reference voltage and output a pulse width modulation signal in the form of a square wave.
[0016] In a possible implementation, the waveform modulation unit includes a multiplier, and the multiplier is used to receive the input sensing signal and the excitation signal, perform multiplication operation on the sensing signal and the excitation signal, and output a modulated signal.
[0017] In a second aspect, an embodiment of the present application provides a method for controlling displacement of a magnetic bearing, the method comprising: receiving a current duty cycle value sent by a displacement sensor, wherein the displacement sensor is a displacement sensor described in any embodiment of the first aspect above, and the current duty cycle value is a duty cycle value obtained by measuring the displacement of a magnetic bearing rotor by the displacement sensor;
[0018] Obtaining a pre-calibrated reference duty cycle value, wherein the reference duty cycle value is a duty cycle value corresponding to the magnetic bearing rotor at a target center position;
[0019] Compare the current duty cycle value with the reference duty cycle value to obtain a duty cycle difference;
[0020] Based on the duty cycle difference, a control signal for controlling the power amplifier to output a target current is generated, so that the magnetic coil on the magnetic bearing stator generates a corresponding magnetic force, so that the magnetic bearing rotor moves to the target center position.
[0021] In a possible implementation, before receiving the current duty cycle value sent by the displacement sensor, the method further includes:
[0022] Control the power amplifier to input the same magnetic coil current to a first magnetic coil current input terminal corresponding to a positive direction on a coordinate system of the magnetic bearing stator and a second magnetic coil current input terminal corresponding to a negative direction on the coordinate system, wherein the positive direction and the negative direction are on the same coordinate axis and in opposite directions;
[0023] Receiving a first duty cycle value and a second duty cycle value sent by the displacement sensor, wherein the first duty cycle value corresponds to the displacement of the magnetic bearing rotor under the action of the magnetic coil current input at the first magnetic coil current input terminal, and the second duty cycle value corresponds to the displacement of the magnetic bearing rotor under the action of the magnetic coil current input at the second magnetic coil current input terminal;
[0024] Based on the first duty cycle value and the second duty cycle value, a reference duty cycle value corresponding to the target center position of the magnetic bearing rotor is calculated.
[0025] In a third aspect, an embodiment of the present application provides a magnetic bearing displacement control system, the system comprising: a controller, a power amplifier, a magnetic bearing stator, a magnetic bearing rotor and the displacement sensor described in the first aspect above, the magnetic bearing stator is provided with a magnetic coil, the controller is connected to the power amplifier, and the magnetic coil is connected to the power amplifier;
[0026] The controller is used to execute the method described in the second aspect above, generate a control signal for controlling the power amplifier to output a target current, and send the control signal to the power amplifier;
[0027] The power amplifier outputs a target current to the magnetic coil based on the control signal.
[0028] In a fourth aspect, an embodiment of the present application provides a magnetic bearing displacement control device, the device comprising: a first receiving module, used to receive a current duty cycle value sent by a displacement sensor, wherein the displacement sensor is the displacement sensor described in the first aspect above, and the current duty cycle value is a duty cycle value obtained by measuring the displacement of the magnetic bearing rotor by the displacement sensor;
[0029] An acquisition module is used to acquire a pre-calibrated reference duty cycle value, wherein the reference duty cycle value is a duty cycle value corresponding to the magnetic bearing rotor at a target center position;
[0030] A first calculation module, used for comparing the current duty cycle value with the reference duty cycle value to obtain a duty cycle difference;
[0031] The generating module is used to generate a control signal for controlling the power amplifier to output a target current based on the duty cycle difference, so that the magnetic coil on the magnetic bearing stator generates a corresponding magnetic force and the magnetic bearing rotor moves to the target center position.
[0032] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the magnetic bearing displacement control method of the second aspect of the present application is implemented.
[0033] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a method as in any embodiment of the magnetic bearing displacement control method of the second aspect described above is implemented.
[0034] In a seventh aspect, an embodiment of the present application provides a computer program, which includes a computer readable code. When the computer readable code runs on a device, the processor in the device implements a method as in any embodiment of the magnetic bearing displacement control method of the second aspect described above.
[0035] The displacement sensor, magnetic bearing displacement control method, device and system provided in the embodiments of the present application are provided with a displacement sensing module, a square wave conversion module and a waveform detection module in the displacement sensor, wherein the displacement sensing module senses the displacement of the magnetic bearing rotor based on the input excitation signal to obtain a sensing signal, and the square wave conversion module converts the sensing signal into a pulse width modulation signal, wherein the duty cycle of the pulse width modulation signal corresponds to the displacement of the device under test, and the waveform detection module detects the duty cycle of the pulse width modulation signal and outputs the duty cycle value. Since the duty cycle has a range of 0-100%, compared with the prior art in which the displacement is characterized by voltage changes, the embodiment of the present application has a larger range of the displacement characterized by the duty cycle, so that the displacement measurement result is less affected by the external environment and the displacement measurement accuracy is higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0038] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0039] Figure 1 A schematic diagram of the structure of a displacement sensor provided in an embodiment of the present application;
[0040] Figure 2 A schematic diagram of the execution process of the oscillation circuit provided in an embodiment of the present application;
[0041] Figure 3A schematic diagram of the structure of an oscillator circuit provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of the structure of a square wave conversion module provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of the structure of another square wave conversion module provided in an embodiment of the present application;
[0044] Figure 6 A schematic flow chart of a magnetic bearing displacement control method provided in an embodiment of the present application;
[0045] Figure 7 A schematic diagram of a cross section of a magnetic bearing rotor and a magnetic bearing stator provided in an embodiment of the present application;
[0046] Figure 8 A schematic flow chart of another magnetic bearing displacement control method provided in an embodiment of the present application;
[0047] Fig. 9 A schematic diagram of the structure of a magnetic bearing displacement control system provided in an embodiment of the present application;
[0048] Fig.10 A schematic diagram of the execution process of the magnetic bearing displacement control system provided in an embodiment of the present application;
[0049] Fig.11 A schematic structural diagram of a magnetic bearing displacement control device provided in an embodiment of the present application;
[0050] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0051] Reference numerals:
[0052] 100-displacement sensor; 101-displacement sensing module; 1011-oscillation circuit; 102-square wave conversion module; 1021-waveform modulation unit; 1022-comparator; 103-waveform detection module; 901-controller; 902-power amplifier; 903-magnetic bearing stator; 9031-magnetic coil; 904-magnetic bearing rotor. DETAILED DESCRIPTION
[0053] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values described in these embodiments do not limit the scope of the present application.
[0054] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0055] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0056] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0057] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0058] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0059] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0060] Technologies, circuits, and devices known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, circuits, and devices should be considered as part of the specification.
[0061] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0062] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0063] In order to solve the technical problems of small measuring range and low displacement measurement accuracy of displacement sensors in the prior art, the present application provides a displacement sensor that can convert the voltage value representing the displacement into a duty cycle value, thereby increasing the measuring range of the measurement result and further improving the displacement measurement accuracy.
[0064] Figure 1 This is a structural schematic diagram of a displacement sensor 100 provided in an embodiment of the present application. The displacement sensor 100 can be applied to various devices and scenarios. The displacement sensor 100 specifically includes: a displacement sensing module 101, a square wave conversion module 102 and a waveform detection module 103. The displacement sensing module 101 is connected to the square wave conversion module 102, and the square wave conversion module 102 is connected to the waveform detection module 103.
[0065] In this embodiment, if Figure 1 As shown, the displacement sensing module 101 is used to receive an input excitation signal, sense the displacement of the device under test based on the excitation signal, and output a sensing signal to the square wave conversion module 102 .
[0066] The sensing signal indicates the change in the distance between the displacement sensing module 101 and the device under test. Figure 1 As shown, l represents the distance between the displacement sensing module 101 and the device under test.
[0067] The waveform of the excitation signal is usually a signal of various fixed frequencies and amplitudes. For example, the excitation signal may be a sine wave signal, a square wave signal, etc. The displacement sensing module 101 may include components such as inductors and capacitors, and the parameters of these components may change due to the displacement of the device under test. According to the change in the parameters, an induction signal may be generated under the action of the excitation signal.
[0068] For example, the displacement sensing module 101 may be provided with an inductor element, the inductance value of which changes with the distance between the inductor element and the device under test. The inductor element affects the excitation signal and outputs an oscillating signal in the form of a sinusoidal wave, the amplitude of which corresponds to the distance between the inductor and the device under test.
[0069] In this embodiment, the square wave conversion module 102 is used to convert the sensing signal into a pulse-width modulation (PWM) signal, and output the pulse-width modulation signal to the waveform detection module 103 .
[0070] Among them, the duty cycle of the pulse width modulation signal corresponds to the displacement. Since the sensing signal is usually a signal of a specific frequency, and the amplitude of the sensing signal corresponds to the displacement, the sensing signal can be converted into a square wave signal in various ways, and the amplitude of the sensing signal is related to the duty cycle of the square wave signal. For example, a comparator can be set to output a high level when the voltage value of the sensing signal is greater than a preset reference voltage, and output a low level when it is lower than the reference voltage; or, a voltage sampling circuit and a device with logic processing capabilities can be set to measure the voltage value of the sensing signal, and output a high level when it is greater than the reference voltage, and output a low level when it is lower than the reference voltage.
[0071] In this embodiment, the waveform detection module 103 is used to detect the duty cycle of the pulse width modulation signal and output the duty cycle value.
[0072] Specifically, the waveform detection module 103 may include a device with logic processing capabilities, such as a microcontroller (MCU, Microcontroller Unit). The waveform detection module 103 may include an analog-to-digital converter (ADC, Analog-to-Digital Converter), and the analog-to-digital converter may be arranged outside the microcontroller or inside the microcontroller. The analog-to-digital converter may convert the pulse width modulation signal of the analog quantity into a digital quantity, and the microcontroller may detect the digital quantity signal to obtain the duty cycle value.
[0073] The magnetic bearing displacement sensor provided in the embodiment of the present application is provided with a displacement sensing module, a square wave conversion module and a waveform detection module. The displacement sensing module senses the displacement of the magnetic bearing rotor based on the input excitation signal to obtain a sensing signal. The square wave conversion module converts the sensing signal into a pulse width modulation signal. The duty cycle of the pulse width modulation signal corresponds to the displacement of the device under test. The waveform detection module detects the duty cycle of the pulse width modulation signal and outputs the duty cycle value. Since the duty cycle has a range of 0-100%, compared with the prior art that characterizes the displacement by voltage change, the embodiment of the present application has a larger range of characterizing the displacement by the duty cycle, so that the displacement measurement result is less affected by the external environment and the displacement measurement accuracy is higher.
[0074] In some optional implementations of this embodiment, the displacement sensing module 101 includes an oscillation circuit 1011 .
[0075] The oscillation circuit 1011 is used to oscillate in response to the excitation signal and output an oscillated induction signal, wherein the amplitude of the induction signal corresponds to the displacement.
[0076] The oscillation circuit 1011 may be in various forms, such as an RLC oscillation circuit, an RC oscillation circuit, an LC oscillation circuit, etc. The parameters of specific components in the oscillation circuit may change as the distance between the displacement sensor and the device under test changes. Under the action of the oscillation circuit, the amplitude of the excitation signal changes, and an induction signal is obtained.
[0077] like Figure 2 As shown, the excitation signal V i The excitation signal is input into the oscillation circuit, and the induction signal V1 with the same frequency and phase as the excitation signal is output. The amplitude variation range of V1 is shown in the figure. omin ~V omax , that is, V omin ~V omax Indicates the displacement of the device under test.
[0078] In this embodiment, an oscillation circuit is set in the sensing module, and the oscillation circuit acts on the excitation signal. The output sensing signal is an oscillation signal of a specific frequency, and the amplitude of the oscillation signal corresponds to the displacement, so that a rapid response to the displacement of the device under test can be achieved. The amplitude of the output sensing signal can accurately represent the displacement of the device under test, thereby improving the efficiency and accuracy of displacement detection.
[0079] In some optional implementations of this embodiment, the oscillation circuit 1011 includes an inductive inductor, and the inductive inductor is used to sense the displacement of the device under test to change the inductance value.
[0080] Specifically, Figure 3 As shown, the oscillation circuit includes an inductor L, a capacitor C and a resistor R, forming an RLC oscillation circuit. The inductor L is the induced inductor, and its inductance value corresponds to the above displacement, that is, the change in the distance between the inductor L and the device under test causes the change in the inductance value. The change in the inductance value causes the amplitude of the output induced signal to change. The frequency and phase of the induced signal are usually the same as the frequency and phase of the excitation signal.
[0081] This embodiment realizes effective and flexible sensing of the displacement of the device under test by setting the inductive inductor, and the output sensing signal can accurately represent the displacement of the device under test, thereby further improving the accuracy and sensitivity of displacement detection.
[0082] In some optional implementations of this embodiment, such as Figure 4 As shown, the square wave conversion module 102 includes a waveform modulation unit 1021 and a comparator 1022 . The waveform modulation unit is connected to a first input terminal of the comparator 1022 . The second input terminal of the comparator 1022 is used to input a reference voltage.
[0083] The waveform modulation unit 1021 is used to convert the opposite-polarity voltage value of the induced signal into the same-polarity voltage value to obtain a modulated signal.
[0084] Specifically, the induced signal is usually a sinusoidal wave signal, that is, the voltage value is compared to the zero point voltage, including positive voltage and negative voltage.
[0085] like Figure 4 As shown, the waveform modulation unit 1021 can flip the waveform on the negative half axis of the sensing signal V1 to the positive half axis to obtain a modulated signal V2, and the amplitude range of V2 is V' omin ~V' omax , that is, V' omin ~V' omax Indicates the displacement of the device under test. Optional, V' omin Can be compared with the above V' omin Same or different, V' omax Can be compared with the above V' omax The same or different, that is, the waveform on the negative half axis of V1 can be flipped and then proportionally enlarged or reduced.
[0086] Optionally, the waveform modulation unit may use a full-wave rectifier circuit to implement a voltage value reversal function.
[0087] The comparator 1022 is used to compare the modulated signal with a preset reference voltage and output a pulse width modulation signal in the form of a square wave.
[0088] The above reference voltage can usually be compared with the above V' omin The same, that is, the minimum value of the amplitude of the waveform modulation unit 1021 is measured in advance, and then the displacement sensor is set to be the same as V' omin The same reference voltage (for example, the reference voltage can be set by resistor voltage division).
[0089] In this embodiment, a waveform modulation unit is provided so that the voltage values of the induced signals are all of the same polarity. A comparator is used to convert the amplitude of each half cycle of the induced signal into a square wave pulse signal, thereby helping to quickly and accurately use the duty cycle to represent the displacement of the device under test based on the high-density square wave pulse signal, thereby improving the displacement measurement accuracy.
[0090] In some optional implementations of this embodiment, such as Figure 5 As shown, the waveform modulation unit 1021 includes a multiplier, which is used to receive the input sensing signal V2 and the excitation signal V i , multiply the induced signal and the excitation signal, and output the modulated signal.
[0091] Specifically, the multiplier may be an analog multiplier. The principle and implementation of the analog multiplier are commonly used in the art and will not be described in detail here.
[0092] The voltage value of the output modulated signal at each time point is equal to the product of the excitation signal voltage and the induced signal voltage at the same time point (or the product multiplied by a coefficient). Since the frequency and phase of the excitation signal and the induced signal are the same, the modulated signal is Figure 5 As shown by V2 in the figure, the voltage on the negative half axis is reversed.
[0093] In this embodiment, a multiplier is provided to multiply the induction signal of the excitation signal, thereby flipping the negative half-axis voltage of the induction signal. The phase of the obtained modulated signal is highly consistent with the phases of the excitation signal and the induction signal, thereby further improving the accuracy of converting the induction signal into a square wave signal, and further improving the accuracy of displacement detection.
[0094] Figure 6 A flow chart of a magnetic bearing displacement control method provided in an embodiment of the present application. The method can be applied to dedicated controllers of various devices containing magnetic bearings, such as controllers for controlling motors such as air conditioners, refrigerators, robots, and industrial production equipment. It can also be applied to general electronic devices such as desktop computers, laptops, and smart phones. These electronic devices can obtain the duty cycle value representing the magnetic bearing rotor displacement generated by the displacement sensor through communication connection, execute the method based on the duty cycle value, and finally output a control signal for controlling the power amplifier.
[0095] In addition, the execution subject of the present method may be hardware or software. When the execution subject is hardware, the execution subject may be one or more of the electronic devices. For example, a single electronic device may execute the present method, or a plurality of electronic devices may cooperate with each other to execute the present method. When the execution subject is software, the present method may be implemented as a plurality of software or software modules, or as a single software or software module. No specific limitation is made herein.
[0096] like Figure 6 As shown, the method specifically includes:
[0097] Step 601, receiving the current duty cycle value sent by the displacement sensor.
[0098] In this embodiment, the displacement sensor is the displacement sensor described in the above embodiments, and the current duty cycle value is the duty cycle value obtained by the displacement sensor measuring the displacement of the magnetic bearing rotor. The displacement sensor measures the displacement of the magnetic bearing rotor in real time and generates a current duty cycle value representing the current displacement of the magnetic bearing rotor.
[0099] Step 602, obtaining a pre-calibrated reference duty cycle value.
[0100] In this embodiment, the reference duty cycle value is the duty cycle value corresponding to the magnetic bearing rotor at the target center position. The above target center position is the ideal position of the magnetic bearing rotor when rotating. Usually, the target center position is the position where the axis of the magnetic bearing rotor coincides with the axis of the magnetic bearing stator, that is, the center position of the magnetic bearing stator.
[0101] Step 603, comparing the current duty cycle value with the reference duty cycle value to obtain a duty cycle difference.
[0102] In this embodiment, it is assumed that the current duty cycle is η, the reference duty cycle is η0, and the duty cycle difference is Δη=η-η0.
[0103] Optional, such as Figure 7 As shown, it shows a schematic diagram of the cross section of the magnetic bearing rotor and the magnetic bearing stator. A rectangular coordinate system is constructed with the center point O of the magnetic bearing stator as the coordinate origin, including two coordinate axes x and y as shown in the figure.
[0104] Usually, the four directions x+, x-, y+, and y- correspond to a current input terminal respectively, and the four input currents can control the magnetic bearing rotor position in the four directions, so that the generated electromagnetic force keeps the magnetic bearing rotor suspended near the center point. Therefore, in this embodiment, a displacement sensor can be used to measure the displacement in the four directions to obtain the current duty cycle value η in the four directions. x+ , η x- , η y+ , η y- , and set the reference duty cycle values η corresponding to the two coordinate axes respectively x0 , η y0 , calculate the duty cycle differences corresponding to the four directions, including Δη x+ =η x+ -η x0 , Δη x- =η x- -η x0 , Δη y+ =η y+ -η y0 , Δη y- =η y- -η y0 .
[0105] Step 604: Based on the duty cycle difference, generate a control signal for controlling the power amplifier to output a target current, so that the magnetic coil on the magnetic bearing stator generates a corresponding magnetic force, so that the magnetic bearing rotor moves to the target center position.
[0106] In this embodiment, various algorithms can be used to generate control signals based on the duty cycle difference. For example, a proportional-integral-differential (PID) algorithm can be used to adjust the current output by the power amplifier based on the duty cycle difference. The corresponding relationship between different duty cycle differences and the current of the magnetic coil can also be preset. For example, the corresponding relationship can be represented by a table, and the execution subject of this method can search the table for the current value corresponding to the above duty cycle difference, and then generate the corresponding control signal.
[0107] The magnetic bearing displacement control method provided in the embodiment of the present application receives the current duty cycle value sent by the displacement sensor in the above embodiment, compares the current duty cycle value with the reference duty cycle value, obtains the duty cycle difference, and generates a control signal for controlling the power amplifier to output the target current based on the duty cycle difference, so that the magnetic coil on the magnetic bearing stator generates a corresponding magnetic force, so that the magnetic bearing rotor moves to the target center position, thereby keeping the magnetic bearing rotor at the target center position basically unchanged, and maintaining the stable operation of the magnetic bearing rotor. Compared with the existing magnetic bearing control system, the embodiment of the present application converts the output value of the displacement sensor from a voltage value to a duty cycle value, and the range of the duty cycle value is larger than the range of the voltage value, thereby improving the accuracy of the displacement measurement of the magnetic bearing rotor, and then controlling the position of the magnetic bearing rotor with higher accuracy, and improving the stability of the operation of the magnetic bearing rotor.
[0108] In some optional implementations of this embodiment, such as Figure 8 As shown, before step 601, the method further includes:
[0109] Step 605 , control the power amplifier to input the same magnetic coil current to a first magnetic coil current input terminal corresponding to a positive direction on the coordinate system of the magnetic bearing stator and a second magnetic coil current input terminal corresponding to a negative direction on the coordinate system.
[0110] Among them, the positive direction and the negative direction are on the same coordinate axis and in opposite directions.
[0111] like Figure 7 As shown, there are four magnetic coil current input terminals, corresponding to the four directions of x+, x-, y+, and y-. For the x-axis, the same magnetic coil current is input to the two first magnetic coil current input terminals corresponding to x+ and x- successively; similarly, for the y-axis, the same magnetic coil current is input to the two second magnetic coil current input terminals corresponding to y+ and y- successively.
[0112] Step 606: Receive a first duty cycle value and a second duty cycle value sent by the displacement sensor.
[0113] Among them, the first duty cycle value corresponds to the displacement of the magnetic bearing rotor under the action of the magnetic coil current input at the first magnetic coil current input terminal, and the second duty cycle value corresponds to the displacement of the magnetic bearing rotor under the action of the magnetic coil current input at the second magnetic coil current input terminal.
[0114] Continuing the above example, for the x-axis, the first duty cycle value is η' x+ , the second duty cycle is η' x- , for the y-axis, the first duty cycle value is η' y+ , the second duty cycle is η' y- .
[0115] Step 607: Calculate a reference duty cycle value corresponding to the target center position of the magnetic bearing rotor based on the first duty cycle value and the second duty cycle value.
[0116] Continuing with the above example, for the x-axis, the reference duty cycle value is η x0 =(η' x+ +η' x- ) / 2, for the y-axis, the reference duty cycle value is η y0 =(η' y+ +η' y- ) / 2.
[0117] This embodiment calibrates the reference duty cycle of the magnetic bearing rotor at the target center position by pre-inputting current in the positive and negative directions on the coordinate system of the magnetic bearing stator, thereby making the reference duty cycle compatible with the actual operating conditions of the magnetic bearing. The reference duty cycle can accurately represent the displacement of the magnetic bearing rotor when it is at the target center position, which helps to improve the control accuracy of controlling the position of the magnetic bearing rotor to maintain the target center position.
[0118] Fig. 9 A schematic diagram of a magnetic bearing displacement control system provided in an embodiment of the present application. The system specifically comprises: a controller 901, a power amplifier 902, a magnetic bearing stator 903, a magnetic bearing rotor 904 and a displacement sensor 100 described in any of the above embodiments.
[0119] A magnetic coil 9031 is provided on the magnetic bearing stator 903 , the controller 901 is connected to the power amplifier 902 , and the magnetic coil 9031 is connected to the power amplifier 902 .
[0120] The controller 901 is used to execute the magnetic bearing displacement control method described in the above embodiment, generate a control signal for controlling the power amplifier 902 to output a target current, and send the control signal to the power amplifier 902 .
[0121] The power amplifier 902 outputs a target current to the magnetic coil 9031 based on the control signal. Under the action of the target current, the magnetic coil 9031 generates an electromagnetic force, so that the magnetic bearing rotor 904 is suspended at the center of the magnetic bearing stator 903 .
[0122] The magnetic bearing displacement control system provided in this embodiment can be applied to magnetic levitation motors. Magnetic levitation motors have the advantages of high speed, no contact, no friction, and long service life. The key technology is the use of magnetic bearings to control the high-speed and stable operation of the rotor. Magnetic levitation motor technology is widely used in various fields, such as magnetic levitation air compressors, molecular pumps, and high energy density motors in industrial production.
[0123] The basic working principle of the traditional magnetic bearing displacement control system is: the displacement sensor detects the magnetic bearing rotor displacement in real time, and inputs the displacement signal to the controller in the form of voltage. The controller generates a control signal based on the deviation between the voltage corresponding to the real-time position of the rotor and the voltage corresponding to the center position of the rotor. The power amplifier changes the electromagnetic coil current according to the control signal to generate a controllable electromagnetic force to adjust the position of the rotor so that the rotor is suspended in the center position.
[0124] The magnetic bearing displacement control system provided in the embodiment of the present application uses the displacement sensor described in the above embodiment to output a duty cycle value representing the displacement amount. Since the duty cycle has a range of 0-100%, compared with the existing magnetic bearing displacement control system, the embodiment of the present application has a larger range of displacement amount represented by the duty cycle, thereby making the displacement measurement result of the magnetic bearing rotor more accurate, and the position control of the magnetic bearing rotor more accurate, thereby improving the stability of the magnetic bearing operation.
[0125] In combination with the above embodiments, reference Fig.10 , which shows a schematic diagram of the execution process of the magnetic bearing displacement control system provided in an embodiment of the present application, and the specific execution steps are as follows:
[0126] First, set the excitation signal to the input of the displacement sensor.
[0127] Then, set the duty cycle value η of the magnetic bearing rotor at the target center position of the magnetic bearing stator x0 , η y0 .
[0128] Then, current is input into the magnetic coil on the magnetic bearing stator, which generates magnetism and drives the magnetic bearing rotor to float.
[0129] Next, the displacement sensor detects the displacement of the magnetic bearing stator, generates an induction signal, and based on the induction signal, generates a duty cycle η representing the displacement corresponding to the coordinate axes x and y respectively. x , η y .
[0130] Then, determine η x Is it equal to η x0 , η y Is it equal to η y0 .
[0131] If so, control the power amplifier to maintain the current output current so that the magnetic bearing rotor is suspended at the target center position; otherwise, according to η x With η x0 The difference between y With η y0 The difference is used to adjust the magnetic coil current, and the displacement sensor continues to detect the displacement of the magnetic bearing rotor.
[0132] This cycle ensures that the magnetic bearing rotor remains at the target center position of the magnetic bearing stator.
[0133] Fig.11 A schematic diagram of the structure of a magnetic bearing displacement control device provided in an embodiment of the present application. Specifically comprising:
[0134] The first receiving module 1101 is used to receive a current duty cycle value sent by a displacement sensor, wherein the displacement sensor is the displacement sensor described in the above embodiment, and the current duty cycle value is a duty cycle value obtained by measuring the displacement of the magnetic bearing rotor by the displacement sensor;
[0135] An acquisition module 1102 is used to acquire a pre-calibrated reference duty cycle value, wherein the reference duty cycle value is a duty cycle value corresponding to the magnetic bearing rotor at a target center position;
[0136] A first calculation module 1103, configured to compare the current duty cycle value with the reference duty cycle value to obtain a duty cycle difference;
[0137] The generating module 1104 is used to generate a control signal for controlling the power amplifier to output a target current based on the duty cycle difference, so that the magnetic coil on the magnetic bearing stator generates a corresponding magnetic force and the magnetic bearing rotor moves to a target center position.
[0138] In some optional implementations of this embodiment, the device further includes:
[0139] A control module, used for controlling the power amplifier to input the same magnetic coil current to a first magnetic coil current input terminal corresponding to a positive direction on a coordinate system of the magnetic bearing stator and a second magnetic coil current input terminal corresponding to a negative direction on the coordinate system, wherein the positive direction and the negative direction are on the same coordinate axis and in opposite directions;
[0140] A second receiving module is used to receive a first duty cycle value and a second duty cycle value sent by the displacement sensor, wherein the first duty cycle value corresponds to the displacement of the magnetic bearing rotor under the action of the magnetic coil current input at the first magnetic coil current input terminal, and the second duty cycle value corresponds to the displacement of the magnetic bearing rotor under the action of the magnetic coil current input at the second magnetic coil current input terminal;
[0141] The second calculation module is used to calculate a reference duty cycle value corresponding to the target center position of the magnetic bearing rotor based on the first duty cycle value and the second duty cycle value.
[0142] The magnetic bearing displacement control device provided in this embodiment can be as follows Fig.11 The magnetic bearing displacement control device shown in can execute all the steps of the above magnetic bearing displacement control methods, thereby achieving the technical effects of the above magnetic bearing displacement control methods. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0143] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Fig.12 The electronic device 1200 shown includes: at least one processor 1201, a memory 1202, at least one network interface 1204 and other user interfaces 1203. The various components in the electronic device 1200 are coupled together via a bus system 1205. It is understood that the bus system 1205 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 1205 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 1205 is not described in detail. Fig.12 Various buses are labeled as bus system 1205.
[0144] The user interface 1203 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0145] It can be understood that the memory 1202 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memory 1202 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0146] In some embodiments, the memory 1202 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 12021 and an application program 12022 .
[0147] Among them, the operating system 12021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 12022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 12022.
[0148] In this embodiment, by calling the program or instruction stored in the memory 1202, specifically, the program or instruction stored in the application 12022, the processor 1201 is used to execute the method steps provided by each method embodiment, for example, including:
[0149] Receive a current duty cycle value sent by a displacement sensor, where the current duty cycle value is a duty cycle value obtained by measuring the displacement of the magnetic bearing rotor by the displacement sensor; obtain a pre-calibrated reference duty cycle value, where the reference duty cycle value is a duty cycle value corresponding to the magnetic bearing rotor at a target center position; compare the current duty cycle value with the reference duty cycle value to obtain a duty cycle difference; and based on the duty cycle difference, generate a control signal for controlling the power amplifier to output a target current, so that the magnetic coil on the magnetic bearing stator generates a corresponding magnetic force, so that the magnetic bearing rotor moves to the target center position.
[0150] The method disclosed in the above embodiment of the present application can be applied to the processor 1201, or implemented by the processor 1201. The processor 1201 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 1201. The above processor 1201 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1202, and the processor 1201 reads the information in the memory 1202 and completes the steps of the above method in combination with its hardware.
[0151] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.
[0152] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0153] The electronic device provided in this embodiment may be Fig.12 The electronic device shown in can execute all the steps of the magnetic bearing displacement control methods described above, thereby achieving the technical effects of the magnetic bearing displacement control methods described above. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0154] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0155] When one or more programs in the storage medium can be executed by one or more processors, the magnetic bearing displacement control method executed on the electronic device side can be implemented.
[0156] The processor is used to execute the program stored in the memory to implement the following steps of the magnetic bearing displacement control method performed on the electronic device side:
[0157] Receive a current duty cycle value sent by a displacement sensor, where the current duty cycle value is a duty cycle value obtained by measuring the displacement of the magnetic bearing rotor by the displacement sensor; obtain a pre-calibrated reference duty cycle value, where the reference duty cycle value is a duty cycle value corresponding to the magnetic bearing rotor at a target center position; compare the current duty cycle value with the reference duty cycle value to obtain a duty cycle difference; and based on the duty cycle difference, generate a control signal for controlling the power amplifier to output a target current, so that the magnetic coil on the magnetic bearing stator generates a corresponding magnetic force, so that the magnetic bearing rotor moves to the target center position.
[0158] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different circuits to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0159] The steps of the circuits or algorithms described in conjunction with the embodiments disclosed herein may be implemented using hardware, software modules executed by a processor, or a combination of the two. The software modules may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0160] It should be understood that the terms used in the text are only for the purpose of describing specific example embodiments, and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used in the text may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The steps, processes, and operations described in the text are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0161] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A displacement sensor, characterized in that: The displacement sensor comprises: a displacement sensing module, a square wave conversion module and a waveform detection module, wherein the displacement sensing module is connected to the square wave conversion module, and the square wave conversion module is connected to the waveform detection module; The displacement sensing module is used to receive an input excitation signal, sense the displacement of the device under test based on the excitation signal, and output a sensing signal to the square wave conversion module; The square wave conversion module is used to convert the sensing signal into a pulse width modulation signal, and output the pulse width modulation signal to the waveform detection module, wherein the duty cycle of the pulse width modulation signal corresponds to the displacement; The waveform detection module is used to detect the duty cycle of the pulse width modulation signal and output the duty cycle value.
2. The displacement sensor according to claim 1, characterized in that: The displacement sensing module includes an oscillation circuit; The oscillation circuit is used to perform an oscillation response to the excitation signal and output an oscillated induction signal, wherein the amplitude of the induction signal corresponds to the displacement.
3. The displacement sensor according to claim 2, characterized in that: The oscillation circuit includes an inductive inductor, and the inductive inductor is used to sense the displacement of the device under test to change the inductance value.
4. The displacement sensor according to claim 1, characterized in that: The square wave conversion module includes a waveform modulation unit and a comparator; The waveform modulation unit is used to convert the opposite-polarity voltage value of the induced signal into the same-polarity voltage value to obtain a modulated signal; The comparator is used to compare the modulated signal with a preset reference voltage and output a pulse width modulation signal in a square wave form.
5. The displacement sensor according to claim 4, characterized in that: The waveform modulation unit includes a multiplier, and the multiplier is used to receive the input sensing signal and the excitation signal, perform multiplication operation on the sensing signal and the excitation signal, and output the modulated signal.
6. A method for controlling displacement of a magnetic bearing, characterized in that: The method comprises: Receiving a current duty cycle value sent by a displacement sensor, wherein the displacement sensor is the displacement sensor according to any one of claims 1 to 5, and the current duty cycle value is a duty cycle value obtained by measuring the displacement of the magnetic bearing rotor by the displacement sensor; Obtaining a pre-calibrated reference duty cycle value, wherein the reference duty cycle value is a duty cycle value corresponding to a target center position of the magnetic bearing rotor at zero displacement; Comparing the current duty cycle value with the reference duty cycle value to obtain a duty cycle difference; Based on the duty cycle difference, a control signal for controlling the power amplifier to output a target current is generated, so that the magnetic coil on the magnetic bearing stator generates a corresponding magnetic force, so that the magnetic bearing rotor moves to the target center position.
7. The method according to claim 6, characterized in that Before receiving the current duty cycle value sent by the displacement sensor, the method further includes: Control the power amplifier to input the same magnetic coil current to a first magnetic coil current input terminal corresponding to a positive direction on a coordinate system of a magnetic bearing stator and a second magnetic coil current input terminal corresponding to a negative direction on the coordinate system, wherein the positive direction and the negative direction are on the same coordinate axis and in opposite directions; Receive a first duty cycle value and a second duty cycle value sent by the displacement sensor, wherein the first duty cycle value corresponds to the displacement of the magnetic bearing rotor under the action of the magnetic coil current input at the first magnetic coil current input terminal, and the second duty cycle value corresponds to the displacement of the magnetic bearing rotor under the action of the magnetic coil current input at the second magnetic coil current input terminal; Based on the first duty cycle value and the second duty cycle value, a reference duty cycle value corresponding to the magnetic bearing rotor at the target center position is calculated.
8. A magnetic bearing displacement control system, characterized in that: The system comprises: a controller, a power amplifier, a magnetic bearing stator, a magnetic bearing rotor and a displacement sensor according to any one of claims 1 to 5, wherein a magnetic coil is provided on the magnetic bearing stator, the controller is connected to the power amplifier, and the magnetic coil is connected to the power amplifier; The controller is used to execute the magnetic bearing displacement control method according to claim 6 or 7, generate a control signal for controlling the power amplifier to output a target current, and send the control signal to the power amplifier; The power amplifier outputs the target current to the magnetic coil based on the control signal.
9. A magnetic bearing displacement control device, characterized in that: The device comprises: A first receiving module, configured to receive a current duty cycle value sent by a displacement sensor, wherein the displacement sensor is the displacement sensor according to any one of claims 1 to 5, and the current duty cycle value is a duty cycle value obtained by measuring the displacement of the magnetic bearing rotor by the displacement sensor; An acquisition module, used to acquire a pre-calibrated reference duty cycle value, wherein the reference duty cycle value is a duty cycle value corresponding to the magnetic bearing rotor at a target center position; A first calculation module, configured to compare the current duty cycle value with the reference duty cycle value to obtain a duty cycle difference; A generating module is used to generate a control signal for controlling the power amplifier to output a target current based on the duty cycle difference, so that the magnetic coil on the magnetic bearing stator generates a corresponding magnetic force and the magnetic bearing rotor moves to the target center position.
10. An electronic device, characterized in that: include: Memory for storing computer programs; The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the magnetic bearing displacement control method described in claim 6 or 7 is implemented.
