High-precision control method and system for brushless motor of printer
By processing and correcting the multiple Hall signals and PWM speed regulation signals of brushless motors, the current is generated and adjusted to accurately adjust the motor speed, which solves the problem of speed instability caused by MCU clock accuracy and periodic capture errors, and realizes the printing head Consistency in movement speed and improvement in image quality.
Patent Information
- Application Number
- CN202411209618.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing brushless motor control technology, the clock accuracy and periodic capture error of the MCU lead to unstable motor speed, which cannot ensure the consistent movement speed of the print head, affecting image clarity and color saturation.
By collecting multiple Hall signals at the motor rotor position, a real-time speed signal waveform is formed and pre-processed. It is combined with the PWM speed regulation signal for periodic and phase correction, and generate and adjust current to accurately adjust the motor speed to ensure the speed and the expected speed and speed Consistent.
High-precision control of the speed of brushless motors is achieved, ensuring that the printhead moves at different positions consistently, and improving image clarity and color saturation.
Smart Images

Figure CN119070670A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of brushless motor control, and in particular to a high-precision control method and system for a brushless motor of a printer. Background Art
[0002] When printing images and text, printers need precise ink droplet ejection or drum rotation speed to ensure image clarity. Brushless motors are usually used to drive key components such as print head movement and paper delivery. If the motor speed is unstable or inaccurate, it will cause the print head to move at different speeds in different positions. For example, in an inkjet printer, the print head moves on the paper at a certain speed and ejects ink droplets. If the motor speed fluctuates, the print head movement speed will vary, which may make the ink drop spacing uneven, thus affecting the image clarity and color saturation. In laser printers, the drum rotation speed also needs to be precisely controlled to ensure uniform exposure of the laser on the drum, so as to obtain high-quality printing results.
[0003] In the prior art, the PWM speed regulation signal is usually captured periodically and converted into the expected speed. Then the MCU (single-chip microcomputer) inside the brushless driver takes the expected speed as the target value of the speed loop, performs PID calculation, and then controls the output waveform of the brushless driver to make the motor speed basically stable near the expected speed. However, in the above scheme, when the MCU inside the brushless driver periodically captures the speed regulation PWM signal, the generated expected speed value has a certain error due to the influence of the MCU's maximum timer frequency and MCU clock accuracy. Secondly, the speed loop will bring certain errors and fluctuations, and it is impossible to ensure that the motor speed is completely consistent with the expected speed. Summary of the invention
[0004] In order to solve the above-mentioned problem, the present invention provides a high-precision control method for a brushless motor of a printer, the method comprising: forming a multi-channel Hall signal by collecting signals of the motor rotor position, and forming a real-time speed signal waveform representing the motor speed by processing the multi-channel Hall signal through a first preprocessing method; periodically collecting the PWM speed regulation signal of the motor, and then processing it into an expected speed signal waveform through a second preprocessing method; performing waveform correction on the real-time speed signal waveform with the expected speed signal waveform as a reference, adjusting the deviation between the real-time speed signal waveform and the expected speed signal waveform to form an adjustment current, and adjusting the speed of the motor by inputting the adjustment current into the motor.
[0005] Furthermore, the first preprocessing method is to input multiple Hall signals into an XOR gate circuit, and form a real-time speed signal waveform representing the motor speed according to the number and time of changes in the output signal of the XOR gate circuit.
[0006] Furthermore, the second preprocessing method calculates the time interval between two adjacent PWM speed control signals to form the time T, and calculates it through the formula: n=60 / (T*P), where n is the expected speed and P is the number of motor poles. The calculated expected speed is then simulated and output to form an expected speed signal waveform.
[0007] Furthermore, the real-time speed signal waveform is corrected with reference to the expected speed signal waveform, that is, the periods of the expected speed signal waveform and the real-time speed signal waveform are compared to form a period deviation adjustment current, and the motor speed is adjusted by controlling the output period deviation adjustment current.
[0008] Furthermore, the real-time speed signal waveform is corrected with reference to the expected speed signal waveform, that is, the waveform phases of the expected speed signal waveform and the real-time speed signal waveform are compared to form a phase deviation adjustment current, and the motor speed is adjusted by controlling the output phase deviation adjustment current.
[0009] Furthermore, the real-time speed signal waveform is corrected with reference to the expected speed signal waveform, that is, the period and waveform phase of the expected speed signal waveform and the real-time speed signal waveform are compared simultaneously to form a total deviation adjustment current, and the motor speed is adjusted by outputting the total deviation adjustment current.
[0010] Furthermore, the total deviation adjustment current includes comparing the periods of the expected speed signal waveform and the real-time speed signal waveform to form a period deviation adjustment current, and comparing the waveform phases of the expected speed signal waveform and the real-time speed signal waveform to form a phase deviation adjustment current. The total deviation adjustment current satisfies the following formula: total deviation adjustment current = period deviation adjustment current + (phase deviation adjustment current / 8).
[0011] The present application also provides a high-precision control system for a brushless motor of a printer, comprising a Hall sensor module, the Hall sensor module being used to generate a corresponding Hall signal according to changes in a magnetic field during the rotation of the brushless motor; a first waveform generating module, the first waveform generator being used to process multiple Hall signals to form a real-time speed signal waveform representing the motor speed; a PWM speed regulation signal module, the PWM speed regulation signal module being used to send a PWM speed regulation signal; a second waveform generating module, the second waveform generator being used to periodically collect the PWM speed regulation signal of the motor and then process it into an expected speed signal waveform; and a comparison and correction module, the comparison and correction module being used to adjust the deviation between the real-time speed signal waveform and the expected speed signal waveform to form an adjustment current.
[0012] Furthermore, the comparison and correction module includes a waveform period correction unit and a waveform phase correction unit. The waveform period correction unit is used to compare the waveform phases of the expected speed signal waveform and the real-time speed signal waveform to form a phase deviation adjustment current. The waveform phase correction unit is used to compare the waveform phases of the expected speed signal waveform and the real-time speed signal waveform to form a phase deviation adjustment current.
[0013] Compared with the prior art, the present invention has the following beneficial effects:
[0014] The present application performs waveform correction on the real-time speed signal waveform with reference to the expected speed signal waveform, and adjusts the deviation between the real-time speed signal waveform and the expected speed signal waveform to form an adjustment current, so that it can achieve more accurate adjustment of the speed of the brushless motor in the printer field.
[0015] Additional aspects and advantages of the present invention will be given in part in the description which follows, and in part will be obvious from the description which follows, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0017] Figure 1 A flowchart of a high-precision control method for a brushless motor of a printer according to the present invention;
[0018] Figure 2 It is a schematic diagram of a high-precision control system for a brushless motor of a printer according to the present invention; DETAILED DESCRIPTION
[0019] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] The present invention is described in more detail. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. It should be noted that when an element is described as "fixed to" another element, it can be directly on the other element, or there can be one or more centered elements therebetween. When an element is described as "connected to" another element, it can be directly connected to the other element, or there can be one or more centered elements therebetween.
[0021] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, vertical, horizontal" and "top, bottom" are usually based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description. Unless otherwise stated, these directional words 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, and therefore cannot be understood as limiting the scope of protection of the present invention; the directional words "inside and outside" refer to the inside and outside relative to the outline of each component itself. In the description of the present invention, it should be noted that the use of words such as "first" and "second" to define components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above words have no special meaning, and therefore cannot be understood as limiting the scope of protection of the present invention. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0022] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0023] In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0024] The preferred embodiments of the present invention will now be further described with reference to the accompanying drawings.
[0025] Embodiment 1:
[0026] like Figure 1 As shown, a high-precision control method for a brushless motor of a printer includes the following steps: first, a multi-channel Hall signal is formed by collecting the signal of the motor rotor position, and a real-time speed signal waveform representing the motor speed is formed by processing the multi-channel Hall signal through an XOR function.
[0027] Specifically, multiple Hall signals are first collected from multiple Hall sensors of the motor. These signals are usually square wave signals, and the changes in their high and low levels correspond to different positions of the motor rotor. Multiple Hall signals are input into the XOR gate circuit. Due to the characteristics of the XOR gate, when any Hall signal changes, the output of the XOR gate will change. By counting the output signal of the XOR gate, the number of signal changes can be obtained. This number is related to the rotation angle of the motor rotor, because the change of the Hall signal is caused by the rotation of the rotor. According to the number and time of signal changes, the speed of the motor can be calculated. For example, the output signal of the XOR gate can be counted within a certain period of time, and then the speed can be calculated based on the counting result and time. The speed calculation formula is usually: speed = number of signal changes / time × number of signal changes per motor rotation.
[0028] For example: Assume that the motor has three Hall sensors, which output signals A, B, and C respectively. When the motor rotor rotates, these three signals will change continuously. Input these three signals into a three-input XOR gate. When any signal changes, the output of the XOR gate will change from low level to high level or from high level to low level. If the output of the XOR gate changes 100 times within 1 second, and the three Hall sensors will produce 6 signal changes for each rotation of the motor (assuming). Then the speed of the motor is: Speed = 100 / 1×(1 / 6) = 16.67 rpm.
[0029] Further on the basis of the above steps, in the second step, the PWM speed control signal of the motor is periodically collected, and then processed into the expected speed signal waveform through a processing method. Specifically, the time interval between two adjacent PWM speed control signals is calculated to form the time T, and the formula is used for calculation: n=60 / (T*P), wherein n is the expected speed and P is the number of motor pole pairs. Then the calculated expected speed is simulated and output to form the expected speed signal waveform.
[0030] Further on the basis of the above steps, in the third step, the real-time speed signal waveform is corrected with reference to the expected speed signal waveform, and the deviation between the real-time speed signal waveform and the expected speed signal waveform is adjusted to form an adjustment current, that is, the periods of the expected speed signal waveform and the real-time speed signal waveform are compared to form a period deviation adjustment current, and the motor speed is adjusted by outputting the period deviation adjustment current. When the period of the real-time speed signal waveform is smaller than the expected speed signal waveform, it indicates that the motor speed is faster than expected. At this time, the motor is decelerated by outputting the period deviation adjustment current; when the period of the real-time speed signal waveform is larger than the expected speed signal waveform, it indicates that the motor speed is slower than expected. At this time, the motor is accelerated by outputting the period deviation adjustment current.
[0031] The present application performs waveform correction on the real-time speed signal waveform with reference to the expected speed signal waveform, and adjusts the deviation between the real-time speed signal waveform and the expected speed signal waveform to form an adjustment current, so that it can achieve more accurate adjustment of the speed of the brushless motor in the printer field.
[0032] The present invention also provides a second embodiment. Compared with the first embodiment, the difference of the second embodiment is that, in the third step, the real-time speed signal waveform is corrected with reference to the expected speed signal waveform, and the deviation between the real-time speed signal waveform and the expected speed signal waveform is adjusted to form an adjustment current. It is also possible to compare the period and waveform phase of the expected speed signal waveform and the real-time speed signal waveform at the same time to form a total deviation adjustment current, and the motor speed is adjusted by outputting the total deviation adjustment current. When the rising edge or falling edge of the real-time speed signal waveform is located to the left of the rising edge or falling edge of the expected speed signal waveform and does not exceed half a cycle, it is called that the real-time speed signal wave is ahead of the expected speed signal waveform. At this time, the motor is decelerated by outputting the phase deviation adjustment current; when the rising edge or falling edge of the real-time speed signal waveform is located to the right of the rising edge or falling edge of the expected speed signal waveform and does not exceed half a cycle, it is called that the real-time speed signal wave lags behind the expected speed signal waveform. At this time, the motor is accelerated by outputting the phase deviation adjustment current.
[0033] The present invention also provides a third embodiment. Compared with the first and second embodiments, the difference of the third embodiment is that, in the third step, the waveform of the real-time speed signal waveform is corrected with reference to the expected speed signal waveform, and the deviation between the real-time speed signal waveform and the expected speed signal waveform is adjusted to form an adjustment current. The period and waveform phase of the expected speed signal waveform and the real-time speed signal waveform can also be compared simultaneously to form a total deviation adjustment current, and the motor speed is adjusted by outputting the total deviation adjustment current. The total deviation adjustment current includes comparing the period of the expected speed signal waveform and the real-time speed signal waveform to form a period deviation adjustment current, and comparing the waveform phase of the expected speed signal waveform and the real-time speed signal waveform to form a phase deviation adjustment current, and the total deviation adjustment current satisfies the following formula: total deviation adjustment current = period deviation adjustment current + (phase deviation adjustment current / 8). Compared with the first and second embodiments, the third embodiment combines the period signal deviation and the phase signal deviation for comprehensive consideration, wherein the period signal deviation has a high weight and the phase signal deviation has a low weight. After PID control, it is finally ensured that the real-time speed signal waveform is consistent with the expected speed signal waveform and is completely synchronized, thereby realizing high-precision control of the brushless motor.
[0034] The present application also provides a high-precision control system for a brushless motor of a printer, such as Figure 2As shown, it includes a Hall sensor module, which is used to generate a corresponding Hall signal according to the change of the magnetic field during the rotation of the brushless motor; a first waveform generating module, which is used to process multiple Hall signals to form a real-time speed signal waveform representing the motor speed; a PWM speed regulation signal module, which is used to send a PWM speed regulation signal; a second waveform generating module, which is used to periodically collect the PWM speed regulation signal of the motor and then process it into an expected speed signal waveform; a comparison and correction module, which is used to adjust the deviation between the real-time speed signal waveform and the expected speed signal waveform to form an adjustment current, and transmit the adjustment current to the motor.
[0035] Further on the basis of the above embodiment, the comparison and correction module includes a waveform period correction unit and a waveform phase correction unit. The waveform period correction unit is used to compare the waveform phase of the expected speed signal waveform and the real-time speed signal waveform to form a phase deviation adjustment current. The waveform phase correction unit is used to compare the waveform phase of the expected speed signal waveform and the real-time speed signal waveform to form a phase deviation adjustment current.
[0036] The details of the exemplary embodiments described above are not limited to the embodiments described above, and the invention may be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be regarded as exemplary and non-restrictive in all respects, and the scope of the invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the invention.
Claims
1. A high-precision control method for a printer brushless motor, characterized in that: The method comprises: forming a multi-channel Hall signal by collecting signals of the motor rotor position, and forming a real-time speed signal waveform representing the motor speed by processing the multi-channel Hall signal through a first preprocessing method; periodically collecting the PWM speed regulation signal of the motor, and then processing it into an expected speed signal waveform through a second preprocessing method; performing waveform correction on the real-time speed signal waveform with the expected speed signal waveform as a reference, adjusting the deviation between the real-time speed signal waveform and the expected speed signal waveform to form an adjustment current, and adjusting the speed of the motor by inputting the adjustment current into the motor.
2. The high-precision control method for a brushless motor of a printer according to claim 1, characterized in that: The first preprocessing method is to input multiple Hall signals into an XOR gate circuit, and form a real-time speed signal waveform representing the motor speed according to the number and time of changes in the output signal of the XOR gate circuit.
3. The high-precision control method for a brushless motor of a printer according to claim 1, characterized in that: The second preprocessing method calculates the time interval between two adjacent PWM speed regulation signals to form the time T, and calculates it through the formula: n=60 / (T*P), where n is the expected speed and P is the number of motor pole pairs. The calculated expected speed is then simulated and output to form an expected speed signal waveform.
4. The high-precision control method for a brushless motor of a printer according to claim 1, characterized in that: The waveform of the real-time speed signal waveform is corrected with reference to the expected speed signal waveform, that is, the periods of the expected speed signal waveform and the real-time speed signal waveform are compared to form a period deviation adjustment current, and the motor speed is adjusted by outputting the period deviation adjustment current.
5. The high-precision control method for a brushless motor of a printer according to claim 1, characterized in that: The waveform of the real-time speed signal waveform is corrected with reference to the expected speed signal waveform, that is, the waveform phase of the expected speed signal waveform and the real-time speed signal waveform are compared to form a phase deviation adjustment current, and the motor speed is adjusted by controlling the output phase deviation adjustment current.
6. The high-precision control method for a brushless motor of a printer according to claim 1, characterized in that: The real-time speed signal waveform is corrected with reference to the expected speed signal waveform, that is, the period and waveform phase of the expected speed signal waveform and the real-time speed signal waveform are compared simultaneously to form a total deviation adjustment current, and the motor speed is adjusted by outputting the total deviation adjustment current.
7. The high-precision control method for a brushless motor of a printer according to claim 6, characterized in that: The total deviation adjustment current includes comparing the periods of the expected speed signal waveform and the real-time speed signal waveform to form a period deviation adjustment current, and comparing the waveform phases of the expected speed signal waveform and the real-time speed signal waveform to form a phase deviation adjustment current. The total deviation adjustment current satisfies the following formula: total deviation adjustment current = period deviation adjustment current + (phase deviation adjustment current / 8).
8. A high-precision control system for a printer brushless motor, characterized in that: The invention comprises a Hall sensor module, which is used to generate a corresponding Hall signal according to the change of the magnetic field during the rotation of the brushless motor; a first waveform generating module, which is used to process multiple Hall signals to form a real-time speed signal waveform representing the motor speed; a PWM speed regulation signal module, which is used to send out a PWM speed regulation signal; a second waveform generating module, which is used to periodically collect the PWM speed regulation signal of the motor and then process it into an expected speed signal waveform; and a comparison and correction module, which is used to adjust the deviation between the real-time speed signal waveform and the expected speed signal waveform to form an adjustment current, and transmit the adjustment current to the motor.
9. The high-precision control system for a brushless motor of a printer according to claim 9, characterized in that: The comparison and correction module includes a waveform period correction unit and a waveform phase correction unit. The waveform period correction unit is used to compare the waveform phases of the expected speed signal waveform and the real-time speed signal waveform to form a phase deviation adjustment current. The waveform phase correction unit is used to compare the waveform phases of the expected speed signal waveform and the real-time speed signal waveform to form a phase deviation adjustment current.
Citation Information
Patent Citations
Low-speed highly precise control system for magnetic suspending flying wheel electromotor based on n Hall sensors
CN101188393A
Method for detecting speed of permanent-magnetic synchronous motor
CN102778580A
Non-contact PMSM test device and velocity measurement method thereof
CN109901067A
Motor speed regulation method, motor speed regulation device, storage medium, water pump and vehicle
CN118337099A
Motor hall position sigual detection circuitry
CN208226830U
