Micro motor driver control system and method
By designing the micro motor driver control system, using PWM signal and PID control algorithms, the vibration and noise problems during high-speed operation of the micro motor are solved, precise control and high-precision position control are achieved, system stability and life are improved, and system stability and life are enhanced. Intelligent and fault handling capabilities.
Patent Information
- Application Number
- CN202410911985.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Micro motors are prone to vibration and noise when running at high speed, and traditional control methods are difficult to meet the requirements of high-precision position control, affecting the stability and life of the system.
A micro motor driver control system is designed, including input module, control module, feedback module, adjustment module, drive module, protection module and communication module. The motor speed and direction are adjusted through PWM signals, and the operating status is collected in real time. PID control algorithm is used. and protective measures to reduce vibration and noise, and improve system stability and life.
Accurate control of the motor speed and direction is achieved, vibration and noise during high-speed operation is reduced, the service life of the motor is improved, and the system intelligence and fault handling capabilities are improved through communication modules.
Smart Images

Figure CN118920952A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of driver control systems, and in particular to a micro motor driver control system and method. Background Art
[0002] The micro motor drive control system is a system used to control the operation of micro motors, including starting, stopping, adjusting speed, controlling direction and position, etc., to meet the needs of various application scenarios. The system is widely used in industrial automation, robotics, aerospace, automotive electronics, household appliances and other fields.
[0003] However, in practical applications, micromotors are prone to vibration and noise when running at high speeds, which not only affects the stability and life of the system, but may also interfere with the surrounding environment. In addition, when micromotors need to achieve high-precision position control, traditional control methods often fail to meet high-precision requirements, which is particularly important in fields such as precision instruments and robots.
[0004] In order to solve the above problems, a micro motor driver control system and method are proposed in the present application. Summary of the invention
[0005] (I) Purpose of the invention
[0006] In order to solve the technical problems existing in the background technology, the present invention proposes a micro motor driver control system and method, which realizes precise control of the motor speed and direction, improves the stability of the system, and enables the motor to have lower vibration and noise when running at high speed, thereby increasing the service life of the motor.
[0007] (II) Technical solution
[0008] To solve the above problems, the present invention provides a micro motor driver control system, comprising:
[0009] The input module is used to receive user control instructions, such as speed, direction and position.
[0010] A control module, which is connected to the input module and is used to generate a corresponding PWM (pulse width modulation) signal according to the instruction of the input module, so as to adjust the speed and direction of the motor;
[0011] Feedback module, used to collect the running status of the motor in real time, such as speed, position and current, and feed it back to the control module;
[0012] The regulation module adjusts the PWM signal according to the data of the feedback module to make the motor run in the set state;
[0013] The driving module is used to amplify the PWM signal generated by the control module to drive the motor to work.
[0014] The protection module is used to monitor the operating status of the motor, such as overcurrent and overheating, and take timely measures to protect the motor;
[0015] Communication module is used to realize data exchange with other systems, such as fault alarm and status query.
[0016] Display module, used to display the running status of the motor, such as speed, position and current.
[0017] Preferably, the input module comprises:
[0018] User interface, used to provide an intuitive operating interface, such as buttons, knobs, and touch screens, for users to input control commands;
[0019] Input circuits are used to convert physical input from the user into electrical signals, such as digital signals that can be recognized by the microcontroller.
[0020] Preferably, the control module includes:
[0021] Microcontroller (MCU): such as Arduino, STM32, used to process input signals and generate PWM signals according to the preset control algorithm;
[0022] Memory for storing control algorithm programs, parameter settings and system configurations;
[0023] The interface circuit is used to provide an interface for communicating with the feedback module and the adjustment module.
[0024] Preferably, the feedback module includes:
[0025] Speed sensors, such as Hall effect sensors and encoders, are used to detect the speed of the motor.
[0026] Position sensors, such as grating scales and magnetic sensors, are used to detect the current position of the motor.
[0027] Current sensors, such as current sensors, are used to monitor the current of a motor while it is running.
[0028] A / D converter converts the analog signal output by the sensor into a digital signal for processing by the microcontroller.
[0029] Preferably, the adjustment module includes:
[0030] A control algorithm processor, which is used to execute a PID (proportional-integral-differential) control algorithm or other advanced control algorithms to adjust the PWM signal;
[0031] A digital / analog converter (D / A converter) is used to convert the digital signal of the microcontroller into an analog signal for regulating the PWM signal.
[0032] Preferably, the driving module includes:
[0033] The power amplifier is used to amplify the PWM signal of the microcontroller to drive the motor.
[0034] The driving circuit is used to provide appropriate voltage and current to drive the power amplifier to work.
[0035] Preferably, the protection module includes:
[0036] The overcurrent protection circuit automatically disconnects the power supply when it detects that the motor current exceeds the set value to protect the motor from damage.
[0037] Overheat protection circuit, when the motor temperature exceeds the set value, the power supply is automatically disconnected to prevent the motor from overheating;
[0038] Fault detection circuits monitor the system for abnormal conditions, such as short circuits and open circuits.
[0039] Preferably, the communication module includes:
[0040] Communication interfaces, such as USART, I2C, SPI, are used to exchange data with other devices or systems.
[0041] Communication protocol processor, which executes specific communication protocols, such as Modbus, CAN, and ZigBee.
[0042] Preferably, the display module comprises:
[0043] Display screens, such as LCD and LED display screens, are used to display the operating status and parameters of the motor.
[0044] The display driving circuit is used to drive the display screen to display corresponding information.
[0045] A micro motor driver control method comprises the following steps:
[0046] S1. The user inputs control instructions through the input module, such as setting speed, direction and target position;
[0047] S2, the control module calculates the required PWM signal parameters according to the input instructions;
[0048] S3, the driving module receives the PWM signal, amplifies it and drives the motor to work;
[0049] S4, the feedback module collects the running status of the motor in real time, including speed, position and current information, and feeds it back to the control module;
[0050] S5, the regulating module adjusts the PWM signal according to the feedback data to achieve accurate control of the motor operation state;
[0051] S6, the protection module monitors the running status of the motor. If overcurrent or overheating is detected, it will immediately take measures to protect the motor and notify the user;
[0052] S7, the communication module is responsible for data exchange with other systems, including sending fault alarm signals and receiving status query requests;
[0053] S8. The display module displays the running status of the motor, including the current speed, position and current information, so that the user can understand the system operation status.
[0054] The above technical solution of the present invention has the following beneficial technical effects:
[0055] The input module receives the control parameters set by the user, generates the corresponding PWM signal, and then drives the motor to work. At the same time, the feedback module collects the running status of the motor in real time, compares it with the set value, and adjusts the PWM signal through the adjustment module to make the motor run in the set state. The protection module monitors the running status of the motor to ensure the safe operation of the system. The communication module realizes data exchange with other systems and improves the intelligence level of the system. The display module displays the running status of the motor, which is convenient for users to understand the system operation status. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 This is a schematic structural diagram of a micro motor driver control system proposed by the present invention.
[0057] Figure 2 The present invention is a flowchart of a micro motor driver control method. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.
[0059] like Figure 1-2 As shown, a micro motor driver control system proposed by the present invention comprises:
[0060] Input Module:
[0061] User interface: Provides an intuitive operating interface, such as buttons, knobs, and touch screens, for users to input control commands.
[0062] Input circuitry: Converts physical input from the user into electrical signals, such as digital signals, that can be recognized by the microcontroller.
[0063] Control Module:
[0064] Microcontroller (MCU): Such as Arduino, STM32, used to process input signals and generate PWM signals according to the preset control algorithm.
[0065] Memory: used to store control algorithm programs, parameter settings and system configurations.
[0066] Interface circuit: provides an interface for communication with the feedback module and the regulation module.
[0067] PWM signal generation algorithm: PWM_signal = Kp*error+Kd*(error-last_error), where Kp is the proportional coefficient, error is the difference between the set value and the actual value, Kd is the differential coefficient, and last_error is the error at the previous moment.
[0068] Feedback module:
[0069] Speed sensor: such as Hall effect sensor, encoder, used to detect the motor speed.
[0070] Position sensor: such as grating ruler and magnetic sensor, used to detect the current position of the motor.
[0071] Current sensor: Such as current sensor, used to monitor the current when the motor is running.
[0072] A / D converter: Converts the analog signal output by the sensor into a digital signal for processing by the microcontroller.
[0073] Speed closed-loop control algorithm: target_speed = Kv*(set_speed-actual_speed), where Kv is the speed control coefficient, set_speed is the set speed, and actual_speed is the actual speed.
[0074] Position closed-loop control algorithm: target_position = Kp*(set_position-actual_position), where Kp is the position control coefficient, set_position is the set position, and actual_position is the actual position.
[0075] Adjustment module:
[0076] Control algorithm processor: executes PID (proportional-integral-differential) control algorithm or other advanced control algorithms to adjust the PWM signal.
[0077] Digital / Analog Converter (D / A Converter): Converts the digital signal of the microcontroller into an analog signal for regulating the PWM signal.
[0078] Driver module:
[0079] Power amplifier: amplifies the PWM signal of the microcontroller to drive the motor.
[0080] Driving circuit: provides appropriate voltage and current to drive the power amplifier to work.
[0081] Protection module:
[0082] Overcurrent protection circuit: When it is detected that the motor current exceeds the set value, the power supply is automatically disconnected to protect the motor from damage.
[0083] Overheat protection circuit: When the motor temperature exceeds the set value, the power supply is automatically disconnected to prevent the motor from overheating.
[0084] Fault detection circuit: monitors the system for abnormal conditions, such as short circuits and open circuits.
[0085] Communication module:
[0086] Communication interface: such as USART, I2C, SPI, used to exchange data with other devices or systems.
[0087] Communication protocol processor: executes specific communication protocols, such as Modbus, CAN, and ZigBee.
[0088] Display module:
[0089] Display screen: such as LCD and LED display screen, used to display the running status and parameters of the motor.
[0090] Display driving circuit: drives the display screen to display corresponding information.
[0091] Input module connected to microcontroller (MCU):
[0092] Physical connection: Through physical interfaces, such as buttons and knobs, directly connected to the GPIO (general purpose input and output) pins of the MCU.
[0093] Circuit connection: The input signal is adjusted to a level that the MCU can recognize through a level conversion circuit (such as a current limiting resistor, pull-up / pull-down resistor).
[0094] Microcontroller (MCU) and feedback module connection:
[0095] Digital connection: Connect to the corresponding interface pins of the MCU through digital interfaces such as SPI, I2C, and UART.
[0096] Analog connection: Connect to the ADC (Analog to Digital Converter) pin of the MCU through an A / D converter.
[0097] Microcontroller (MCU) connected to the regulation module:
[0098] Digital connection: Connect to the corresponding interface pins of the MCU through the digital interface.
[0099] Analog connection: Connect to the DAC (Digital-to-Analog Converter) pin of the MCU through a D / A converter.
[0100] The connection between the adjustment module and the drive module:
[0101] Digital connection: Connect to the control pin of the driver module through the digital interface.
[0102] Analog connection: Connect to the adjustment pin of the driver module through an analog signal.
[0103] Connection between driver module and power amplifier:
[0104] Circuit connection: Connect to the input pin of the power amplifier through the driving circuit.
[0105] Control Connection: Connect to the control pin of the power amplifier through the control signal.
[0106] Protection module connected to MCU:
[0107] Circuit connection: Connect to the GPIO pin of the MCU or the dedicated protection interface through the protection circuit.
[0108] Communication module is connected to MCU:
[0109] Digital connection: Connect to the corresponding interface pins of the MCU through the digital interface.
[0110] Display module and MCU connection:
[0111] Digital connection: Connect to the corresponding interface pins of the MCU through the digital interface.
[0112] Circuit connection: Connect to the input pin of the display module through the driving circuit.
[0113] A micro motor driver control method comprises the following steps:
[0114] S1. The user inputs control instructions through the input module, such as setting speed, direction and target position;
[0115] S2, the control module calculates the required PWM signal parameters according to the input instructions;
[0116] S3, the driving module receives the PWM signal, amplifies it and drives the motor to work;
[0117] S4, the feedback module collects the running status of the motor in real time, including speed, position and current information, and feeds it back to the control module;
[0118] S5, the regulating module adjusts the PWM signal according to the feedback data to achieve accurate control of the motor operation state;
[0119] S6, the protection module monitors the running status of the motor. If overcurrent or overheating is detected, it will immediately take measures to protect the motor and notify the user;
[0120] S7, the communication module is responsible for data exchange with other systems, including sending fault alarm signals and receiving status query requests;
[0121] S8. The display module displays the running status of the motor, including the current speed, position and current information, so that the user can understand the system operation status.
[0122] In the present invention, the PWM signal generation algorithm is used to achieve precise control of the motor speed and direction, thereby improving the stability of the system; the closed-loop control algorithm is used to make the motor have lower vibration and noise when running at high speed, thereby increasing the service life of the motor. The protection module is used to timely detect and handle abnormal conditions in the operation of the motor, thereby ensuring the safe operation of the system. The addition of the communication module enables the system to have the ability to interact with other systems, thereby facilitating remote monitoring and fault diagnosis.
[0123] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.
Claims
1. A micro motor drive control system, characterized in that: include: An input module, used for receiving control instructions from users; A control module, which is connected to the input module and is used to generate corresponding PWM signals according to the instructions of the input module, so as to adjust the speed and direction of the motor; The feedback module is used to collect the running status of the motor in real time and feed it back to the control module; The regulation module adjusts the PWM signal according to the data of the feedback module to make the motor run in the set state; The driving module is used to amplify the PWM signal generated by the control module to drive the motor to work; The protection module is used to monitor the operating status of the motor, such as overcurrent and overheating, and take timely measures to protect the motor; Communication module, used to realize data exchange with other systems; The display module is used to display the running status of the motor.
2. A micro motor driver control system according to claim 1, characterized in that: The input modules include: User interface, used to provide an intuitive operating interface; Input circuitry, used to convert the user's physical input into electrical signals.
3. A micro motor driver control system according to claim 2, characterized in that: The control module includes: Microcontroller: used to process input signals and generate PWM signals according to the preset control algorithm; Memory for storing control algorithm programs, parameter settings and system configurations; The interface circuit is used to provide an interface for communicating with the feedback module and the adjustment module.
4. A micro motor driver control system according to claim 3, characterized in that: The feedback module includes: Speed sensor, used to detect the motor speed; Position sensor, used to detect the current position of the motor; Current sensor, used to monitor the current when the motor is running; A / D converter converts the analog signal output by the sensor into a digital signal for processing by the microcontroller.
5. A micro motor driver control system according to claim 4, characterized in that: The adjustment module includes: A control algorithm processor, used to execute the PID control algorithm and adjust the PWM signal; A digital / analog converter is used to convert the digital signal of the microcontroller into an analog signal for regulating the PWM signal.
6. A micro motor driver control system according to claim 5, characterized in that: The driver module includes: A power amplifier is used to amplify the PWM signal of the microcontroller to drive the motor; The driving circuit is used to provide appropriate voltage and current to drive the power amplifier to work.
7. A micro motor driver control system according to claim 6, characterized in that: The protection module includes: Overcurrent protection circuit, when it detects that the motor current exceeds the set value, it automatically disconnects the power supply to protect the motor from damage; Overheat protection circuit, when the motor temperature exceeds the set value, the power supply is automatically disconnected to prevent the motor from overheating; Fault detection circuit to monitor the system for abnormal conditions.
8. A micro motor driver control system according to claim 7, characterized in that: The communication module includes: Communication interface, used to exchange data with other devices or systems; Communication protocol processor, executes specific communication protocol.
9. A micro motor driver control system and method according to claim 8, characterized in that: The display module includes: Display screen, used to display the running status and parameters of the motor; The display driving circuit is used to drive the display screen to display corresponding information.
10. A micro motor driver control method, characterized in that: The following steps are involved: S1. The user inputs control instructions through the input module; S2, the control module calculates the required PWM signal parameters according to the input instructions; S3, the driving module receives the PWM signal, amplifies it and drives the motor to work; S4, the feedback module collects the running status of the motor in real time and feeds it back to the control module; S5, the regulating module adjusts the PWM signal according to the feedback data to achieve accurate control of the motor operation state; S6, the protection module monitors the running status of the motor. If overcurrent or overheating is detected, it will immediately take measures to protect the motor and notify the user; S7, the communication module is responsible for data exchange, including sending fault alarm signals and receiving status query requests; S8. The display module displays the running status of the motor, including the current speed, position and current information, so that the user can understand the system operation status.
