Servo driver based on single MCU architecture
Through the design of the servo driver based on a single MCU architecture, the problem of single function is solved, the compatibility of pulse type and EtherCAT bus type functions is realized, the scope of application is expanded, and the cost is reduced.
Patent Information
- Application Number
- CN202420135609.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2034-01-18
AI Technical Summary
The existing servo driver has a single function and is not compatible with pulse type and EtherCAT bus type functions, so its application range is limited.
The servo drive design is based on a single MCU architecture, including power module, control module, power module, feedback module and protection module. The MCU is the Renesas RZT2 series R9A07G075M22GBA chip, which supports EtherCAT functions and is compatible with pulse and EtherCAT bus functions.
It realizes two-in-one functions and has a wide range of applications. The control part only uses a single MCU architecture, which is simple and low-cost, saving the EtherCAT control chip.
Smart Images

Figure CN221688549U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of motor drivers, in particular to a servo driver based on a single MCU architecture. Background Art
[0002] Servo drives, or "servos" for short, are complex electronic systems used to control and drive various mechanical systems. Their main function is to receive instructions from the control system and convert these instructions into precise control of the mechanical system.
[0003] Traditional servo drives usually have only a single function, which distinguishes between pulse servo drives and bus servo drives. The function is single and the application scope is limited. The biggest difference between pulse servo and bus servo is the different control methods. Pulse servo drive: controls the operation of the motor through pulse signals, that is, converts the pulse signal into motor movement to achieve control of parameters such as motor position, speed and acceleration. EtherCAT bus servo drive: uses industrial computers, PLCs and other main control devices to communicate with servo controllers through bus control. Through bus communication, the main control device can remotely monitor and control the movement state of the motor, adjust the movement parameters in real time, and achieve precise control effects. Utility Model Content
[0004] The purpose of the embodiments of the utility model is to provide a servo driver based on a single MCU architecture and a control method thereof, so as to solve the problem of single function of the servo driver in the prior art.
[0005] In order to solve the above technical problems, the utility model provides a servo driver based on a single MCU architecture, which adopts the following technical solutions, including:
[0006] MCU, a power supply module, a control module, a power module, a feedback module and a protection module which are all electrically connected to the MCU, the MCU is used to control the control module, the power module, the feedback module and the protection module, the power supply module supplies power to the control module, the power module, the feedback module and the protection module, the control module is used to control the power module, the feedback module and the protection module, the power module is used to adjust the servo drive output and drive the motor according to the instruction of the control module, the feedback module is used to monitor the status of the servo motor in real time, and the protection module is used to protect the servo drive and the motor.
[0007] Preferably, the power module comprises: a flyback switching power supply and a power management chip.
[0008] Preferably, the control module comprises: a power supply circuit, a clock circuit, a reset circuit, a communication interface and a peripheral drive circuit which are electrically connected.
[0009] Preferably, the power module comprises: a driving circuit and an intelligent power module electrically connected.
[0010] Preferably, the feedback module comprises: an encoder signal receiving circuit.
[0011] Preferably, the protection module comprises: a bus voltage detection circuit, a current detection circuit and a temperature detection circuit.
[0012] Preferably, the bus voltage detection circuit comprises: a sampling circuit, a filtering circuit and an amplifying circuit.
[0013] Preferably, the current detection circuit comprises: a modulation chip NSI1306-M25 and a sampling resistor.
[0014] Preferably, the temperature detection circuit comprises: a PTC thermistor and an amplifier circuit.
[0015] Preferably, the MCU is: Renesas RZT2 series R9A07G075M22GBA chip.
[0016] Compared with the prior art, the utility model has the following beneficial effects: it not only has a port for receiving pulse instructions and related hardware circuits, but also has EtherCAT bus related hardware circuits, that is, it is compatible with pulse type and EtherCAT bus type functions, with two-in-one functions and a wide range of applications; the control part of the servo drive is implemented using only a single MCU architecture, which is simple to implement and low in cost; the MCU is selected as the Renesas RZT2 series R9A07G075M22GBA chip, which supports EtherCAT function internally, can save EtherCAT control chips, and has low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the scheme in the utility model, a brief introduction is given below to the drawings required for use in the description of the embodiments of the utility model. Obviously, the drawings described below are some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a structural schematic diagram of a servo driver based on a single MCU architecture of the utility model;
[0019] Figure 2 It is a functional block diagram of the servo driver based on a single MCU architecture of the utility model;
[0020] Figure 3 It is a schematic diagram of the interface of the servo driver based on a single MCU architecture of the utility model;
[0021] Figure 4 It is a schematic diagram of a preferred embodiment of the servo driver based on a single MCU architecture of the utility model. DETAILED DESCRIPTION
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present invention; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present invention or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0023] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0024] In order to enable those skilled in the art to better understand the solution of the utility model, the technical solution in the embodiment of the utility model will be clearly and completely described below in conjunction with the accompanying drawings.
[0025] It should be noted that the servo driver control method based on a single MCU architecture provided in the embodiment of the utility model is generally executed by a servo driver based on a single MCU architecture.
[0026] Embodiment 1
[0027] Please refer to Figure 1 , showing a schematic diagram of the structure of a servo driver based on a single MCU architecture of the utility model. A servo driver based on a single MCU architecture comprises:
[0028] MCU, power module, control module, power module, feedback module and protection module which are all electrically connected to the MCU, the MCU is used to control the control module, power module, feedback module and protection module, the power module supplies power to the control module, power module, feedback module and protection module, the control module is used to control the power module, feedback module and protection module, the power module is used to adjust the servo drive output and drive the motor according to the command of the control module, the feedback module is used to monitor the status of the servo motor in real time, and the protection module is used to protect the servo drive and the motor.
[0029] The power module includes: a flyback switching power supply and a power management chip. The power management chip includes but is not limited to DA9061. In this embodiment, the power management chip is selected as DA9061. DA9061 provides the power required by the servo driver circuit of this embodiment, such as +5V, +15V, -15V, +24V, +3.3V, +1.8V, +1.2V, +1.1V, etc.
[0030] The control module includes: a power supply circuit, a clock circuit, a reset circuit, a communication interface and a peripheral drive circuit which are electrically connected.
[0031] Power supply circuit: provides stable operating voltage for the entire MCU peripheral control module. The power supply circuit is generally composed of power supply chips, capacitors, inductors and other electronic components to provide reliable power for the MCU and other peripheral circuits.
[0032] Clock circuit: Provides clock signal for MCU so that MCU can work normally. Clock circuit can be composed of electronic components such as crystal oscillator, capacitor, inductor, etc. to provide a stable clock source for MCU.
[0033] Reset circuit: When an abnormal situation occurs in the MCU, it can restart the MCU and restore it to its initial state. The reset circuit can be composed of a reset chip to ensure that the MCU can be restarted reliably when encountering an abnormal situation.
[0034] Communication interface: used to realize data transmission and communication between MCU and other devices or modules. Common communication interfaces include UART, SPI, I2C, etc. These interfaces can realize data exchange and control between MCU and external devices.
[0035] Peripheral drive circuit: used to drive external devices or modules, such as LED, LCD, sensor, etc. Peripheral drive circuit can be composed of electronic components such as electronic switches and drivers, which can realize the control and drive of peripheral devices.
[0036] As a peripheral circuit of the MCU, the control module receives the sampling signal of the servo driver and the command signal from the external controller together with the MCU, and performs closed-loop control of the motor according to the feedback signal.
[0037] The power module includes: a driving circuit and an intelligent power module which are electrically connected.
[0038] The power module adjusts the servo driver output and drives the motor according to the instructions of the control module.
[0039] The feedback module includes: an encoder signal receiving circuit.
[0040] The encoder signal receiving circuit receives the signal output by the motor end encoder and transmits it to the control unit to monitor the status of the servo motor in real time.
[0041] The protection module includes: a bus voltage detection circuit, a current detection circuit and a temperature detection circuit.
[0042] Related signals, such as DC bus voltage detection signal, current detection signal, temperature detection signal, etc., are transmitted to the control module to protect the servo drive and motor from abnormal conditions such as overvoltage, overcurrent, overtemperature, etc.
[0043] In a specific implementation, the bus voltage detection circuit includes but is not limited to: a sampling circuit, a filtering circuit and an amplifying circuit.
[0044] The sampling circuit is a key part for obtaining discrete time samples of analog signals. The sampling circuit may include input interface, clock source, trigger, analog-to-digital converter, output interface, etc.
[0045] Input interface: It is the entrance of the sampling circuit and is responsible for receiving analog signals from various sources. The input interface usually contains buffers or isolation components to reduce the loading effect between the signal source and the sampling circuit.
[0046] Clock source: The core of the sampling circuit is the clock source, which generates a reference signal for synchronizing the sampling time. The clock source can be a quartz crystal oscillator, a ceramic resonator, or other types of oscillators. Its accuracy and stability directly affect the quality of sampling.
[0047] Trigger: A trigger is used to synchronize sampling operations. It receives a signal from a clock source and triggers a sampling operation at a specific point (such as a rising edge or a falling edge) in each clock cycle.
[0048] Analog-to-digital converter (ADC): This is a key component that converts analog signals into digital signals. An ADC usually contains a comparator and a quantizer to convert continuous analog signals into discrete digital values.
[0049] Output interface: The output interface is responsible for transmitting the digital signal to the subsequent processing circuit or system. This may include buffers, drivers or other types of interface circuits.
[0050] The working principle of the bus voltage detection circuit is: convert the DC voltage obtained after rectification and filtering of the servo drive AC input power into a corresponding electrical signal. The sampling circuit samples and quantizes the DC bus voltage, the filtering circuit filters the sampled voltage signal, the amplifier circuit amplifies the filtered voltage signal, and transmits the processed signal to the control module to measure and analyze the DC bus voltage.
[0051] In a specific implementation, the current detection circuit includes: a modulation chip NSI1306-M25 and a sampling resistor.
[0052] The working principle of the current detection circuit is: in the servo system, current control is the basis for achieving precise motion control. By monitoring the output current of the servo driver and feeding it back to the control module in real time, the control module makes adjustments based on the feedback information to stabilize the output current of the servo driver within the preset value. Current detection can effectively ensure the stable operation and production efficiency of the machine. The current detection circuit is mainly implemented by the high-performance Σ-Δ modulation chip NSI1306-M25 and the sampling resistor. The high-performance Σ-Δ modulation chip NSI1306-M25 is based on capacitive isolation technology, with its output and input separated, and a linear differential input signal range of ±250mV. The output current generates an analog signal through the sampling resistor, the analog signal input is amplified, and is continuously sampled by the second-order Σ-Δ modulator, and then converted into a high-speed, single-bit data stream, which is passed to the control module to measure and analyze the output current.
[0053] In a specific implementation, the temperature detection circuit includes: a PTC thermistor and an amplifier circuit.
[0054] The working principle of the temperature detection circuit is: the IGBT module temperature is converted into an analog voltage signal through a PTC thermistor, the amplifier circuit amplifies the analog voltage signal, and the processed signal is transmitted to the control module to measure and analyze the temperature.
[0055] The MCU may be, but is not limited to, a Renesas RZT2 series R9A07G075M22GBA chip. In this embodiment, the MCU is a Renesas RZT2 series R9A07G075M22GBA chip.
[0056] The R9A07G075M22GBA chip supports EtherCAT function internally. Therefore, compared with traditional solutions, it can save EtherCAT control chips and reduce costs.
[0057] Please refer to Figure 2 , shows a functional block diagram of a servo driver based on a single MCU architecture of the utility model. Figure 2As shown, when the rectifier circuit converts the input AC power through the rectifier circuit, the sine wave will be converted into DC power.
[0058] At the moment of power-on, the voltage across the capacitor will not change suddenly, but the current across the capacitor will change suddenly. At this time, the two ends of the capacitor are equivalent to a short circuit. The buffer circuit can suppress the impact current at the moment of power-on.
[0059] The filter circuit is used to eliminate the pulsating components in the DC power, making the output DC power more stable.
[0060] The braking circuit includes a braking resistor and a switching tube. The energy generated by the motor when it decelerates or stops is consumed through the braking circuit.
[0061] The switching power supply adopts a flyback switching power supply to provide the servo system with the required power supplies, such as +5V, +15V, -15V, +24V, +16V, etc.
[0062] The IGBT drive circuit drives the IGBT device to turn on and off according to the signal sent by the main control unit, so as to control the output of the three-phase inverter and then control the motor.
[0063] The temperature detection circuit collects the temperature of the IGBT module so that the MCU can make corresponding calculation controls according to the specific environment and output protection signals in time when abnormal conditions are detected.
[0064] The fan control circuit is used to control the operation and stop of the DC fan.
[0065] The bus voltage acquisition circuit is used to collect the DC bus voltage. The servo driver controls the speed and motion trajectory of the servo motor through the DC bus voltage, thereby achieving precise motion control.
[0066] The output current sampling circuit is used to collect and monitor the current changes of the motor, determine the operating status and load conditions of the motor, and thus adjust and control the servo controller to ensure the stable operation of the motor.
[0067] The digital input circuit is used to detect the status information of external devices, such as the signal input of the sensor.
[0068] The digital output circuit outputs signals related to the working status of the servo drive, or controls the working status of external devices, such as switches.
[0069] The encoder signal receiving circuit is used to receive the rotation position and rotation speed of the motor fed back by an external encoder.
[0070] Encoder signal frequency division output: The position pulse fed back by the encoder is output in the form of orthogonal pulses. That is, the original pulse signal is processed according to a certain frequency division ratio to obtain a higher-precision position and speed feedback signal, so that a closed-loop control is formed between the motor end, the servo drive end, and the external controller end.
[0071] Position command pulse input: The external controller provides the servo driver with target position information in the form of pulses to control the rotation angle of the motor so that the motor rotates according to the specified position.
[0072] EtherCat bus control: can communicate with external controllers to achieve more flexible and efficient control.
[0073] USB communication: realize communication between external host computer and servo drive.
[0074] Figure 3 This is a schematic diagram of the interface of the servo driver based on a single MCU architecture of the utility model. Figure 3 As shown, the servo driver based on a single MCU architecture of the utility model is provided with multiple interfaces, for example, it is connected with CN1, i.e., MiniUSB communication terminal, through a keyboard board, and can also be directly connected with CN2, i.e., control terminal, CN3, i.e., absolute / incremental encoder terminal, CN4, i.e., power terminal, CN5, i.e., EtherCat communication terminal (IN), and CN6, i.e., EtherCat communication terminal (OUT).
[0075] Figure 4 Schematic diagram of a preferred embodiment of the servo driver based on a single MCU architecture of the utility model. Figure 4 As shown, the positions of interfaces CN1 to CN6 are shown in the figure.
[0076] When the utility model implements control based on a servo driver with a single MCU architecture, the following steps are included:
[0077] Step S1, electrically connecting the MCU, the power module, the control module, the power module, the feedback module and the protection module.
[0078] Step S2: The control module receives a command signal from the MCU.
[0079] In step S3, the control module compares the command signal with the feedback signal from the feedback module to obtain an error signal.
[0080] Step S4: According to the error signal, the control module generates a control signal, and the control signal is used to adjust the speed and position of the motor.
[0081] Step S5: According to the control signal, the power module adjusts the output of the servo driver, and the servo driver drives the motor to operate.
[0082] Step S6, the MCU monitors the running status of the motor in real time and transmits the feedback signal to the control module.
[0083] In step S7, the control module performs closed-loop control according to the feedback signal, and dynamically adjusts the control signal according to the actual state under the protection of the protection module to achieve motion control of the motor.
[0084] Servo motor closed-loop control is a control method based on feedback mechanism, which mainly achieves the target output by measuring the output state of the motor and comparing it with the expected output. The closed-loop control mainly consists of three parts: from the inside to the outside, they are the current loop, the speed loop, and the position loop, which are inseparable.
[0085] Current loop: It is completely carried out inside the servo drive. It detects the output current of each phase of the motor from the drive and negatively feeds back the current setting to perform PID adjustment, so that the output current is as close to the set current as possible. The current loop mainly controls the motor torque.
[0086] Speed loop: Negative feedback PID adjustment is performed through the detected servo motor encoder signal. Its in-loop PID output is the setting of the current loop. Therefore, the speed loop control includes the speed loop and the current loop, that is, the current loop must be used in any mode. The current loop is the basis of control. While controlling the speed and position, the system is actually also controlling the current to achieve corresponding control of the speed and position.
[0087] Position loop: It is the link of position setting and adjustment. Its internal PID output speed loop setting. Its feedback signal can be taken from the motor encoder or the final load, which needs to be determined according to the actual situation. The internal output of the position control loop is the setting of the speed loop. In the position control mode, the system performs all three closed loop operations.
[0088] PID control is a linear control that forms a control quantity through linear combination of the proportion (P), integral (I), and differential (D) of the deviation between the given value and the actual output value to control the controlled object.
[0089] Implementing this embodiment has the following beneficial effects:
[0090] (1) Compared with the conventional servo drive which usually has only a single function and distinguishes between pulse type servo drive and bus type servo drive, the present embodiment not only has a port for receiving pulse instructions and related hardware circuits, but also has EtherCAT bus related hardware circuits, that is, it is compatible with pulse type and EtherCAT bus type functions, with two functions in one and a wide range of applications.
[0091] (2) In the prior art, the control part of a traditional AC servo drive usually includes a software function unit and a logic function unit. The former is implemented by an MCU (microcontroller unit) to complete functions such as position loop, speed loop, communication, keyboard detection, and display that require relatively low processing speed; the latter is implemented by an FPGA (field programmable gate array) to mainly complete tasks such as current loop, PWM (pulse width modulation) signal generation, and encoder signal processing that require large amounts of computation and high real-time performance. The dual-chip solution of MCU+FPGA involves a large amount of data interaction, which is difficult to implement and has high costs. The control part of the servo drive of the utility model embodiment is implemented using only a single MCU architecture. It is simple to implement and has low costs.
[0092] (3) The realization of the EtherCAT bus function of the traditional servo drive requires the involvement of the servo control system MCU, EtherCAT control chip, EtherCAT interface chip, network port, etc., while the MCU selected for the servo drive of the embodiment of the utility model is the Renesas RZT2 series R9A07G075M22GBA chip, which internally supports the EtherCAT function, which can save the EtherCAT control chip and reduce the cost.
[0093] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the utility model in essence or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the various embodiment methods of the utility model.
[0094] Obviously, the embodiments described above are only some embodiments of the utility model, rather than all embodiments. The preferred embodiments of the utility model are given in the accompanying drawings, but they do not limit the patent scope of the utility model. The utility model can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the utility model more thorough and comprehensive. Although the utility model is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to replace some of the technical features therein with equivalents. Any equivalent structure made using the contents of the utility model specification and the accompanying drawings, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the utility model.
Claims
1. A servo driver based on a single MCU architecture, characterized in that: include: MCU, a power supply module, a control module, a power module, a feedback module and a protection module which are all electrically connected to the MCU, the MCU is used to control the control module, the power module, the feedback module and the protection module, the power supply module supplies power to the control module, the power module, the feedback module and the protection module, the control module is used to control the power module, the feedback module and the protection module, the power module is used to adjust the servo drive output and drive the motor according to the instruction of the control module, the feedback module is used to monitor the status of the servo motor in real time, and the protection module is used to protect the servo drive and the motor.
2. The servo driver based on a single MCU architecture according to claim 1, characterized in that: The power supply module includes: a flyback switching power supply and a power management chip.
3. The servo driver based on a single MCU architecture according to claim 1, characterized in that: The control module includes: a power supply circuit, a clock circuit, a reset circuit, a communication interface and a peripheral driving circuit which are electrically connected.
4. The servo driver based on a single MCU architecture according to claim 1, characterized in that: The power module includes: a driving circuit and an intelligent power module which are electrically connected.
5. The servo driver based on a single MCU architecture according to claim 1, characterized in that: The feedback module includes: an encoder signal receiving circuit.
6. The servo driver based on a single MCU architecture according to claim 1, characterized in that: The protection module includes: a bus voltage detection circuit, a current detection circuit and a temperature detection circuit.
7. The servo driver based on a single MCU architecture according to claim 6, characterized in that: The bus voltage detection circuit comprises: a sampling circuit, a filtering circuit and an amplifying circuit.
8. The servo driver based on a single MCU architecture according to claim 6, characterized in that: The current detection circuit includes: a modulation chip NSI1306-M25 and a sampling resistor.
9. The servo driver based on a single MCU architecture according to claim 6, characterized in that: The temperature detection circuit comprises: a PTC thermistor and an amplifier circuit.
10. The servo driver based on a single MCU architecture according to any one of claims 1 to 9, characterized in that: The MCU is: Renesas RZT2 series R9A07G075M22GBA chip.
