Control system and method for realizing motor driving through touch screen
By using touch screens and multiple functional modules in the motor drive control system, users can easily select control modes and set parameters to achieve precise control of the motor, solving the problems of unintuitive user interface, inflexible control modes and relying on large equipment in the existing system, and simplification, efficiency and intelligence of motor drive control.
Patent Information
- Application Number
- CN202411956062.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-28
- Publication Date
- 2025-04-25
AI Technical Summary
The existing motor drive control systems lack an intuitive and easy-to-use user interface, cannot achieve flexible switching of multiple control modes, and rely on large-scale equipment, resulting in limited system flexibility, scalability and ease of use.
The control system for motor drive is realized through the touch screen, including a control box, a touch screen, a position sensor and a variety of functional modules, such as an open-loop control module, a closed-loop control module, a voltage control module, a random endurance test module and a response time measurement module. Users can select control modes and set parameters through the touch screen to achieve precise control of the motor.
It realizes the simplification, efficiency and intelligence of motor drive control, reduces operation difficulty, meets the needs of different application scenarios, reduces the demand for additional test equipment, and reduces the cost of the system.
Smart Images

Figure CN119891867A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor control, and more specifically to a control system for realizing motor drive through a touch screen. Background Art
[0002] Motor drive control is a common technical requirement in the field of industrial production and automation. Traditional motor drive control systems often rely on complex hardware circuits and specific control algorithms, which limits the flexibility, scalability and ease of use of the system. With the rapid development of embedded systems and microcontroller technology, people have begun to try to use these advanced technologies to simplify, efficiently and intelligently control motor drive control. However, the existing motor drive control systems still have the following deficiencies in terms of function, performance and user experience; for example: 1) Some control systems lack an intuitive and easy-to-use user interface, making it difficult for users to accurately control the motor; 2) Some control systems cannot achieve flexible switching of multiple control modes, limiting the scope of application of the system; 3) Some control systems rely on large equipment such as computers to achieve precise control of the motor, which not only increases unnecessary costs, but is also inconvenient to carry when debugging on business trips, greatly increasing the burden on engineers. Therefore, it is very necessary and commercially valuable to design a simplified, efficient and intelligent motor drive control system. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a control system and method for realizing motor drive through a touch screen, which can adapt to the requirements of different scenarios and make the motor drive control more simplified, efficient and intelligent.
[0004] In order to solve the above technical problems, the technical solutions adopted by the present invention are as follows.
[0005] A control system for realizing motor drive through a touch screen comprises a control box connected to a motor through a wiring harness for realizing motor control, a touch screen for realizing human-computer interaction and a switch button for opening and closing the control system are arranged at the front end of the control box, a power access port for connecting to a power source is arranged at the rear end of the control box, a control mechanism for realizing motor control, a motor drive module for driving the motor to operate according to set parameters and a power module for providing power are arranged inside the control box, an input end of the power module is connected to the power access port through the switch button, an output end of the switch power supply is connected to a power input end of the control mechanism, the control mechanism is electrically connected to the touch screen, an output end of the control mechanism is connected to an input end of the motor drive module, and an output end of the motor drive module is connected to an input end of the motor through a wiring harness; a position sensor for detecting motor status or motor shaft position information is arranged on the motor, and an output end of the position sensor is connected to an input end of the control mechanism.
[0006] To further optimize the technical solution, the control mechanism includes an open-loop control module for controlling the switching state of the motor, a closed-loop control module for making the motor reach the target position, a voltage control module for controlling the motor switch and speed, a random durability test module for performing durability tests on the motor, a response time measurement module for measuring the time required from the start of the motor to reaching the target position set by the user, and a controller for issuing control instructions according to the touch screen and position sensor signals, the touch screen is electrically connected to the controller, the output end of the position sensor is connected to the input end of the controller, the output end of the controller is respectively connected to the input ends of the open-loop control module, the closed-loop control module, the voltage control module, the random durability test module and the response time measurement module, and the output ends of the open-loop control module, the closed-loop control module, the voltage control module, the random durability test module and the response time measurement module are respectively connected to the input end of the motor drive module.
[0007] To further optimize the technical solution, the open-loop control module converts the PWM duty cycle set by the touch screen into a corresponding PWM signal and sends it to the motor drive module. The motor drive module controls the switching state of the motor according to the PWM signal to achieve open-loop control.
[0008] To further optimize the technical solution, the closed-loop control module calculates the deviation between the target position and the current position based on the target position information set by the user through the touch screen and the current position information of the motor fed back by the position sensor, and generates a corresponding adjustment PWM signal to send to the motor drive module. The motor drive module adjusts the PWM signal according to the control signal to enable the motor to accurately reach the target position.
[0009] To further optimize the technical solution, the voltage control module converts the target voltage value set through the touch screen into a corresponding voltage control signal and sends it to the motor drive module. The motor drive module adjusts the output voltage according to the voltage control signal, thereby controlling the switching or speed of the motor.
[0010] To further optimize the technical solution, the random endurance test module randomly selects a target position based on multiple target positions set by the user through the touch screen and the time interval of the random endurance test, and sends a control instruction to the motor drive module. The motor drive module drives the motor to randomly reach each target position within the set time interval, simulating the endurance test in actual work.
[0011] To further optimize the technical solution, the response time measurement module sends the control instruction to the motor drive module according to the starting position, target position and measured speed-to-idle ratio set by the user through the touch screen, starts the motor according to the set duty cycle, and starts timing when the starting position is reached, and stops timing when the target position is reached, and the recorded time is used as the response time of the motor.
[0012] To further optimize the technical solution, the control box is also provided with a speaker for voice broadcasting and a communication interface for communicating with a host computer, the input end of the speaker is connected to the output end of the controller, and the communication interface is electrically connected to the controller.
[0013] Further optimization of the technical solution, based on the control method of the control system, includes the following steps: S1. Connect the control box to the motor through the wiring harness, and then select the motor drive control mode through the touch screen; S2. According to the control mode selected on the touch screen, set the corresponding control parameters on the touch screen; S3. The controller receives the control instructions and parameters sent by the touch screen, sends them to the motor drive module and drives and controls the motor according to these instructions and parameters; S4. The position sensor feeds back the running status and position information of the motor in real time, and feeds back the information to the controller, which sends the feedback information to the touch screen for display and recording; S5. The system continues to run and monitors the status of the motor in real time.
[0014] Due to the adoption of the above technical scheme, the technical progress achieved by the present invention is as follows.
[0015] The present invention provides a control system that realizes motor drive through a touch screen, realizes human-computer interaction through the touch screen, and the user can easily select a control mode and input relevant parameters, thereby reducing the difficulty of operation. At the same time, a variety of functional modules are integrated to meet the needs of different application scenarios, while also reducing the need for additional testing equipment and reducing the cost of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a structural schematic diagram of the present invention; Figure 2 is a structural block diagram of the control mechanism of the present invention; Figure 3 This is a display interface diagram of the open-loop control of the present invention; Figure 4 This is a display interface diagram of the closed-loop control of the present invention; Figure 5 This is a display interface diagram of voltage control of the present invention; Figure 6 This is a display interface diagram of the random durability test of the present invention; Figure 7 This is a display interface diagram of the corresponding time test of the present invention.
[0017] Among them: 1. Control box, 2. Touch screen, 3. Speaker, 4. Communication interface, 5. Switch button, 6. Wiring harness, 7. Motor, 8. Motor shaft, 9. Position sensor. DETAILED DESCRIPTION
[0018] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0019] A control system that realizes motor drive through a touch screen, combined with Figure 1 As shown, it includes a control box 1, and the control box 1 is connected to the motor 7 through a wiring harness 6 to realize motor control. The front end of the control box 1 is provided with a touch screen 2, a speaker 3, a communication interface 4 and a switch button 5. The touch screen 2 is used to realize human-computer interaction, to receive control instructions for input, and can also display test results. The speaker 3 is used for voice broadcasting, the communication interface 4 is used to communicate with the host computer, and the switch button 5 is used to turn on and off the control system. The rear end of the control box is provided with a power access port to connect the control box to the power supply. The control box 1 is provided with a control mechanism, a motor drive module and a power module. The control module is used to realize motor control, the motor drive module is used to drive the motor to run according to the set parameters, and the power module is used to provide power supply. The input end of the power module is connected to the power access port through the switch button 5, and the output end of the switch power supply is connected to the power input end of the control mechanism. The control mechanism is electrically connected to the touch screen and the communication interface respectively, and the output end of the control mechanism is connected to the input end of the motor drive module and the speaker respectively. The output end of the motor drive module is connected to the input end of the motor through a wiring harness.
[0020] The motor 7 is provided with a position sensor 9 for detecting the motor state or the position information of the motor shaft 8. The output end of the position sensor is connected to the input end of the control mechanism.
[0021] The structural diagram of the control mechanism is as follows Figure 2 As shown, it includes an open-loop control module, a closed-loop control module, a voltage control module, a random endurance test module, a response time measurement module and a controller. The touch screen is electrically connected to the controller. The output end of the position sensor is connected to the input end of the controller. The output end of the controller is respectively connected to the input ends of the open-loop control module, the closed-loop control module, the voltage control module, the random endurance test module and the response time measurement module. The output ends of the open-loop control module, the closed-loop control module, the voltage control module, the random endurance test module and the response time measurement module are respectively connected to the input end of the motor drive module.
[0022] The open-loop control module is used to directly control the on / off state of the motor through the PWM duty cycle. The user sets the PWM duty cycle through the touch screen, and converts the set duty cycle into a corresponding PWM signal and sends it to the motor drive module. The motor drive module controls the on / off state of the motor according to the PWM signal to achieve open-loop control.
[0023] The closed-loop control module is used to adjust the PWM signal through the PID control algorithm according to the target position information set by the user and the current position information of the motor fed back by the sensor, so that the motor can reach the target position accurately. The user sets the target position through the touch screen, reads the position information fed back by the sensor, calculates the deviation between the target position and the current position through the PID control algorithm, and generates a corresponding control signal to send to the motor drive module. The motor drive module adjusts the PWM signal according to the control signal so that the motor can reach the target position accurately.
[0024] The voltage control module is used to control the motor drive module to adjust the output voltage according to the target voltage value set by the user, thereby controlling the switch or speed of the motor. The user sets the target voltage value through the touch screen, and the target voltage value is converted into a corresponding voltage control signal and sent to the motor drive module. The motor drive module adjusts the output voltage according to the voltage control signal, thereby controlling the switch or speed of the motor.
[0025] The random durability test module is used to randomly select a target position and control the motor to reach it according to multiple target positions and random durability test time intervals set by the user to perform durability tests. The user sets the time interval for the random durability test through the touch screen, randomly selects the target position according to the set time interval, and sends a control instruction to the motor drive module. The motor drive module drives the motor to randomly reach each target position within the set time interval to simulate the durability test in actual work. In addition, the user can also control the frequency of motor position changes by setting the random durability time interval to simulate different durability test scenarios.
[0026] The response time measurement module is used to start the motor with a certain duty cycle and measure the time required from the motor starting to reaching the target position set by the user. The user sets the starting position, target position, and measurement duty cycle and other parameters through the touch screen, and sends instructions to the motor driver module to start the motor according to the set duty cycle. When the motor reaches the starting position, the microcontroller clock starts timing until it reaches the target position, and the microcontroller clock stops timing, and the recorded time is used as the response time of the motor. The user can evaluate the performance of the motor by measuring multiple times and calculating statistical indicators such as the average value or standard deviation.
[0027] The control method based on the control system includes the following steps: S1. Connect the control box to the motor through the wiring harness, and then select the motor drive control mode through the touch screen; S2. According to the control mode selected on the touch screen, set the corresponding control parameters on the touch screen; S3. The controller receives the control instructions and parameters sent by the touch screen, sends them to the motor drive module and drives and controls the motor according to these instructions and parameters; S4. The position sensor feeds back the running status and position information of the motor in real time, and feeds back the information to the controller, which sends the feedback information to the touch screen for display and recording; S5. The system continues to run and monitors the status of the motor in real time.
[0028] When the present invention is implemented, the user selects a suitable control mode and sets corresponding control parameters on the touch screen according to actual needs.
[0029] For example, in the open-loop control mode, the user can set the PWM duty cycle on the touch screen 1, and the display interface is as follows: Figure 3 As shown, precise adjustment of motor speed or power is achieved.
[0030] In the closed-loop control mode, the user can input the desired motor position on the touch screen. The display interface is as follows: Figure 4 As shown, the system automatically adjusts the running state of the motor according to the PID algorithm until the motor reaches the target position.
[0031] In voltage control mode, the user can set the desired voltage value on the touch screen. The display interface is as follows: Figure 5 As shown, the system controls the motor drive according to this value.
[0032] In the random durability test mode, the user can set the time interval on the touch screen, and the interface is shown as follows: Figure 6 As shown, the system randomly changes the target position of the motor at set time intervals, thereby simulating the random load conditions of the motor in actual use.
[0033] In the response time measurement mode, the user can set the starting position, target position and PWM duty cycle on the touch screen. The display interface is as follows: Figure 7 As shown, the system controls the motor to move from the starting position to the target position according to the set duty cycle and displays the response time.
Claims
1. A control system for realizing motor drive through a touch screen, characterized in that: The invention comprises a control box (1) connected to a motor (7) via a wiring harness (6) for realizing motor control, wherein a touch screen (2) for realizing human-machine interaction and a switch button (5) for turning on and off the control system are arranged at the front end of the control box (1), and a power supply inlet for connecting to a power supply is arranged at the rear end of the control box. A control mechanism for realizing motor control, a motor drive module for driving the motor to operate according to set parameters, and a power supply module for providing power are arranged inside the control box (1), an input end of the power supply module is connected to the power supply inlet via the switch button (5), an output end of the switch power supply is connected to a power supply input end of the control mechanism, the control mechanism is electrically connected to the touch screen, an output end of the control mechanism is connected to an input end of the motor drive module, and an output end of the motor drive module is connected to an input end of the motor (7) via the wiring harness (6); a position sensor (9) for detecting motor status or motor shaft (8) position information is arranged on the motor (7), and an output end of the position sensor is connected to an input end of the control mechanism.
2. The control system for realizing motor drive through a touch screen according to claim 1, characterized in that: The control mechanism includes an open-loop control module for controlling the switching state of the motor, a closed-loop control module for making the motor reach a target position, a voltage control module for controlling the motor switch and speed, a random durability test module for performing durability tests on the motor, a response time measurement module for measuring the time required from the start of the motor to reaching the target position set by the user, and a controller for issuing control instructions according to the touch screen and position sensor signals. The touch screen is electrically connected to the controller, the output end of the position sensor is connected to the input end of the controller, the output end of the controller is respectively connected to the input ends of the open-loop control module, the closed-loop control module, the voltage control module, the random durability test module and the response time measurement module, and the output ends of the open-loop control module, the closed-loop control module, the voltage control module, the random durability test module and the response time measurement module are respectively connected to the input end of the motor drive module.
3. The control system for realizing motor drive through a touch screen according to claim 2, characterized in that: The open-loop control module converts the PWM duty cycle set by the touch screen into a corresponding PWM signal and sends it to the motor drive module. The motor drive module controls the switching state of the motor according to the PWM signal to achieve open-loop control.
4. The control system for realizing motor drive through a touch screen according to claim 2, characterized in that: The closed-loop control module calculates the deviation between the target position and the current position through the PID control algorithm based on the target position information set by the user through the touch screen and the current position information of the motor fed back by the position sensor, generates a corresponding adjustment PWM signal and sends it to the motor drive module. The motor drive module adjusts the PWM signal according to the control signal to enable the motor to accurately reach the target position.
5. The control system for realizing motor drive through a touch screen according to claim 2, characterized in that: The voltage control module converts the target voltage value set by the touch screen into a corresponding voltage control signal and sends it to the motor drive module. The motor drive module adjusts the output voltage according to the voltage control signal, thereby controlling the switching or speed of the motor.
6. The control system for realizing motor drive through a touch screen according to claim 2, characterized in that: The random endurance test module randomly selects a target position according to multiple target positions set by the user through the touch screen and the time interval of the random endurance test, and sends a control instruction to the motor drive module. The motor drive module drives the motor to randomly reach each target position within the set time interval to simulate the endurance test in actual work.
7. The control system for realizing motor drive through a touch screen according to claim 2, characterized in that: The response time measurement module sends a control instruction to the motor drive module according to the starting position, target position and measured duty cycle set by the user through the touch screen, starts the motor according to the set duty cycle, starts timing when the starting position is reached, and stops timing when the target position is reached, and the recorded time is used as the response time of the motor.
8. The control system for realizing motor drive through a touch screen according to claim 2, characterized in that: The control box (1) is also provided with a speaker (3) for voice broadcasting and a communication interface (4) for connecting to a host computer for communication, the input end of the speaker is connected to the output end of the controller, and the communication interface is electrically connected to the controller.
9. A control system for realizing motor drive through a touch screen according to any one of claims 1 to 8, characterized in that: The control method based on the control system includes the following steps: S1. Connect the control box to the motor through the wiring harness, and then select the motor drive control mode through the touch screen; S2. According to the control mode selected on the touch screen, set the corresponding control parameters on the touch screen; S3. The controller receives the control instructions and parameters sent by the touch screen, sends them to the motor drive module and drives and controls the motor according to these instructions and parameters; S4. The position sensor feeds back the running status and position information of the motor in real time, and feeds back the information to the controller, which sends the feedback information to the touch screen for display and recording; S5. The system continues to run and monitors the status of the motor in real time.