Motor driver and control method based on wireless communication
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TITANIUM TIGER ROBOT TECH (SHANGHAI) CO LTD
- Filing Date
- 2026-04-09
- Publication Date
- 2026-08-07
AI Technical Summary
[0004]1、多驱动器需大量电缆(电源线、编码器反馈线、通信线),布线密度高,易杂乱;
(1)采用无线通讯模组进行数据交互,解决了因使用有线通讯导致的布线密度高、线缆杂乱的问题,解决了新增或调整驱动器布局时需要重新布线,耗时耗力的问题,大幅减少了驱动器与控制系统之间的线缆数量,简化了设备结构,使生产线更加整洁,使得驱动器的安装、位置调整和系统扩展变得灵活、便捷,显著降低了安装与维护的时间和人力成本;
Smart Images

Figure CN122533459A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motor driver technology, and more specifically, to a motor driver and control method based on wireless communication. Background Technology
[0002] Modern motor drives mainly consist of a main control unit, a sensor unit, a power supply unit, a communication unit, and a motor drive unit. The communication methods include EtherCAT, EtherNET, CANbus, RS485, etc., but wired communication is the most common.
[0003] Based on wired communication, the following problems were found:
[0004] 1. Multiple drivers require a large number of cables (power lines, encoder feedback lines, communication lines), resulting in high wiring density and easy mess. 2. Adding a new drive or adjusting the drive layout requires rewiring, which is time-consuming and labor-intensive; 3. Wired networks need to reserve interfaces, as additional switches or repeaters may be required when expanding with new devices; 4. Conversion between different protocols (such as EtherCAT and PROFINET) requires a gateway, increasing complexity; 5. Signal attenuation is significant over long distances; 6. High-quality industrial cables (such as those that are resistant to bending and interference) are expensive; 7. Cable trays and drag chains occupy equipment space, affecting the compact design.
[0005] Patent application CN114629384A discloses a motor drive device and system based on wireless network control. The device includes a wireless controller and a motor driver, with the wireless controller connected to the motor driver. The wireless controller includes a processor and a wireless communication module. The processor includes a clock module for providing clock information to a token module; the token module for detecting whether a network motor has started via the wireless communication module; and a motor operation parameter module for outputting and displaying the operating parameters of the local motor. However, this patent cannot completely solve the existing technical problems, nor can it meet the needs of this invention. Summary of the Invention
[0006] In view of the deficiencies in the prior art, the purpose of this invention is to provide a motor driver and control method based on wireless communication.
[0007] The motor driver based on wireless communication provided by the present invention includes: a motor drive circuit, a power supply circuit, an MCU, an encoder circuit, a wireless communication circuit, and a real-time clock circuit. The power supply circuit includes a 48V power supply, a 12V power supply, a 5V power supply and a 3.3V power supply. The 48V power supply and the 12V power supply are connected to the motor drive circuit, the 5V power supply is connected to the encoder circuit, and the 3.3V power supply is connected to the MCU, the wireless communication circuit and the real-time clock circuit. The wireless communication circuit is connected to the MCU and the real-time clock circuit.
[0008] Preferably, the wireless communication circuit includes a wireless communication module, the wireless communication module having a first serial port pin, the first serial port pin being connected to the serial port pin of the MCU.
[0009] Preferably, the real-time clock circuit includes a real-time clock chip, the real-time clock chip having an I2C pin, the I2C pin being connected to the I2C pin of the wireless communication module.
[0010] Preferably, the wireless communication module includes an enable pin and a BOOT pin. The enable pin is connected to a 3.3V power supply through a first resistor, and the BOOT pin is connected to a 3.3V power supply through a second resistor and connected to ground through a first capacitor.
[0011] Preferably, the real-time clock circuit further includes a crystal oscillator, a load capacitor, a filter capacitor, a first diode, a second diode, and a battery. The first end of the crystal oscillator is connected to the first oscillation pin of the real-time clock chip, and the second end is connected to the second oscillation pin of the real-time clock chip. The first end of the load capacitor is grounded, and the second end is connected to the first end of the crystal oscillator. The first end of the filter capacitor is connected to the power supply pin of the real-time clock chip, and the second end is grounded. The anode of the first diode is connected to a 3.3V power supply, and the cathode is connected to the power supply pin of the real-time clock chip. The anode of the second diode is connected to the battery, and the cathode is connected to the power supply pin of the real-time clock chip.
[0012] Preferably, the first serial port pin of the wireless communication module includes a serial port transmit pin and a serial port receive pin, the serial port pin of the MCU includes a serial port receive pin and a serial port transmit pin, the serial port transmit pin of the wireless communication module is connected to the serial port receive pin of the MCU, and the serial port receive pin of the wireless communication module is connected to the serial port transmit pin of the MCU.
[0013] Preferably, the I2C pins of the real-time clock chip include an I2C clock pin and an I2C data pin, and the I2C pins of the wireless communication module include an I2C clock pin and an I2C data pin. The I2C clock pin of the real-time clock chip is connected to the I2C clock pin of the wireless communication module, and the I2C data pin of the real-time clock chip is connected to the I2C data pin of the wireless communication module.
[0014] Preferably, the wireless communication module type includes: Wi-Fi, Bluetooth, Zigbee, LoRa, NB-IoT, 4G / 5G, UWB, and NFC.
[0015] Preferably, the battery is a button cell battery.
[0016] The control method for a motor driver based on wireless communication according to the present invention includes the following steps: Step 1: Receive control commands from the outside via the wireless communication module; Step 2: The wireless communication module communicates with the MCU via serial bus, parallel bus, GPIO port, CAN or Ethernet connection to transmit the control commands to the MCU; Step 3: The MCU generates a drive signal according to the control command and controls the motor drive circuit to drive the motor to run; Step 4: Obtain the motor's operating status information through the MCU, and transmit the operating status information to the wireless communication module through the serial port communication; Step 5: Send the operating status information to an external device via the wireless communication module; Step 6: Continuously keep track of time using a real-time clock chip; Step 7: Obtain time information through I2C communication between the wireless communication module and the real-time clock chip. When the main power supply of the system fails, automatically switch to the backup battery to power the real-time clock chip to maintain its continuous timing.
[0017] Compared with the prior art, the present invention has the following beneficial effects: (1) The use of wireless communication modules for data interaction solves the problems of high wiring density and messy cables caused by wired communication, and solves the problem of rewiring when adding or adjusting the layout of the driver, which is time-consuming and labor-intensive. It greatly reduces the number of cables between the driver and the control system, simplifies the equipment structure, makes the production line cleaner, and makes the installation, position adjustment and system expansion of the driver more flexible and convenient, significantly reducing the time and manpower costs of installation and maintenance. (2) The introduction of a real-time clock chip and the use of a backup battery power supply circuit solves the problem that the system cannot continue to keep time after power failure, resulting in inaccurate recording of operating conditions. This ensures that the motor driver can still accurately record and maintain time information even when power is off, and adds an accurate timestamp to the operating data, thereby improving the reliability and accuracy of data recording. (3) An automatic power switching circuit composed of diodes (D5, D4) and a backup battery (BT1) was designed to solve the problem that the real-time clock circuit could not continue to work after the main power supply was cut off, and to solve the problem of reverse charging or current backflow from the main power supply to the backup battery; it realized seamless and automatic power switching between the main power supply and the backup battery of the real-time clock circuit, ensuring the continuous and uninterrupted timing function; by utilizing the unidirectional conductivity of the diode, the main power supply and the backup battery were effectively isolated, preventing the ineffective loss of energy and potential damage to the battery, and improving the reliability and life of the circuit. (4) By integrating wireless commands, motor drive and status feedback through MCU, the coordination problem between remote control command reception and motor drive control is solved, the problem of motor operation status cannot be remotely monitored in real time is solved, remote wireless precise control of motor is realized, and remote real-time monitoring and data acquisition of motor operation status are realized, providing support for data analysis and predictive maintenance. Attached Figure Description
[0018] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 For motor drive circuit; Figure 2 For real-time clock circuit; Figure 3 It is a wireless communication circuit. Detailed Implementation
[0019] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.
[0020] Example 1 This invention provides a motor driver based on wireless communication, comprising: a motor drive circuit, a power supply circuit, an MCU, an encoder circuit, a wireless communication circuit, and a real-time clock circuit; The power supply circuit includes a 48V power supply, a 12V power supply, a 5V power supply and a 3.3V power supply. The 48V power supply and the 12V power supply are connected to the motor drive circuit, the 5V power supply is connected to the encoder circuit, and the 3.3V power supply is connected to the MCU, the wireless communication circuit and the real-time clock circuit. The wireless communication circuit is connected to the MCU and the real-time clock circuit.
[0021] The wireless communication circuit includes a wireless communication module, which has a first serial port pin connected to the serial port pin of the MCU.
[0022] The real-time clock circuit includes a real-time clock chip, which has an I2C pin connected to the I2C pin of the wireless communication module.
[0023] The wireless communication module includes an enable pin and a BOOT pin. The enable pin is connected to a 3.3V power supply through a first resistor, and the BOOT pin is connected to a 3.3V power supply through a second resistor and connected to ground through a first capacitor.
[0024] The real-time clock circuit also includes a crystal oscillator, a load capacitor, a filter capacitor, a first diode, a second diode, and a battery. The first end of the crystal oscillator is connected to the first oscillation pin of the real-time clock chip, and the second end is connected to the second oscillation pin of the real-time clock chip. The first end of the load capacitor is grounded, and the second end is connected to the first end of the crystal oscillator. The first end of the filter capacitor is connected to the power supply pin of the real-time clock chip, and the second end is grounded. The anode of the first diode is connected to a 3.3V power supply, and the cathode is connected to the power supply pin of the real-time clock chip. The anode of the second diode is connected to the battery, and the cathode is connected to the power supply pin of the real-time clock chip.
[0025] The first serial port pin of the wireless communication module includes a serial port transmit pin and a serial port receive pin. The serial port pin of the MCU includes a serial port receive pin and a serial port transmit pin. The serial port transmit pin of the wireless communication module is connected to the serial port receive pin of the MCU, and the serial port receive pin of the wireless communication module is connected to the serial port transmit pin of the MCU.
[0026] The real-time clock chip has I2C pins including I2C clock pins and I2C data pins. The wireless communication module also has I2C pins including I2C clock pins and I2C data pins. The I2C clock pins of the real-time clock chip are connected to the I2C clock pins of the wireless communication module, and the I2C data pins of the real-time clock chip are connected to the I2C data pins of the wireless communication module.
[0027] The wireless communication module types include: Wi-Fi, Bluetooth, Zigbee, LoRa, NB-IoT, 4G / 5G, UWB, and NFC.
[0028] The battery is a button cell.
[0029] This invention provides a control method for a motor driver based on wireless communication, comprising the following steps: Step 1: Receive control commands from the outside via the wireless communication module; Step 2: The wireless communication module communicates with the MCU via serial bus, parallel bus, GPIO port, CAN or Ethernet connection to transmit the control commands to the MCU; Step 3: The MCU generates a drive signal according to the control command and controls the motor drive circuit to drive the motor to run; Step 4: Obtain the motor's operating status information through the MCU, and transmit the operating status information to the wireless communication module through the serial port communication; Step 5: Send the operating status information to an external device via the wireless communication module; Step 6: Continuously keep track of time using a real-time clock chip; Step 7: Obtain time information through I2C communication between the wireless communication module and the real-time clock chip. When the main power supply of the system fails, automatically switch to the backup battery to power the real-time clock chip to maintain its continuous timing.
[0030] In some specific embodiments, the MCU can be replaced by a CPU, FPGA, DSP, ASIC, or signal processor.
[0031] Example 2 The purpose of this invention is to provide a wireless communication motor driver, in view of existing motor drivers.
[0032] like Figures 1 to 3 The wireless communication motor driver provided by the present invention includes: a motor drive circuit, a power supply circuit, an MCU, an encoder circuit, a wireless communication circuit, and a real-time clock circuit. The power supply circuit is divided into 48V, 12V, 5V and 3.3V power supplies; the 48V and 12V power supplies power the motor drive circuit; the 5V power supply is connected to the encoder circuit to provide operating power; the 3.3V power supply is connected to the MCU, wireless communication circuit and real-time clock circuit to provide operating power.
[0033] Preferably, U9 is the Wi-Fi module of the communication circuit. One end of resistor R34 is connected to enable pin 3 of U9, and the other end is connected to the 3.3V power supply pin, keeping U9 constantly operational. One end of resistor R38 is connected to the 3.3V power supply, and the other end is connected to the BOOT pin of U9. One end of capacitor C48 is grounded, and the other end is connected to the BOOT pin. When powered on, current flows through resistor R38 to charge capacitor C48, pulling the BOOT pin of U9 low to 0V. At this time, U9 enters download mode and flashes new firmware to the chip through pins 34 and 35 of the serial port U9. When capacitor C48 is fully charged, the level of the BOOT pin will approach 3.3V, and U9 will run the previously flashed program normally from the internal SPI flash.
[0034] Pins 36 and 37 of the U9 are connected to the pins of the MCU for serial communication, enabling real-time information exchange.
[0035] U13 is a real-time clock chip. One end of crystal oscillator X1 is connected to pin 1 of U13, and the other end is connected to pin 2 of U13. Capacitor C59 is a load capacitor, with one end grounded and the other end connected to pin 1 of X1. Together with X1 and the internal circuitry, it forms a complete oscillator, ensuring that the oscillation frequency equals the nominal frequency of the crystal oscillator, protecting the crystal oscillator from damage or aging due to overdrive. It also helps the circuit start oscillating faster upon power-up. Pin 8 of U13 is the power supply pin, and capacitor C58 is used to filter out low-frequency interference. Diode D5 is placed near the power supply pin of U13, with one end connected to the power supply pin of U13 and the other end connected to 3.3V. Diode D4 is connected with one end of the power supply pin of U13 and the other end connected to the BT1 button battery. When the 3.3V supply is applied, current flows through diode D5 to the power supply pin of U13 to provide the operating voltage for U13. Due to the unidirectional conductivity of diode D5, current does not flow into the battery. When the power is off, the real-time clock chip U13 still needs to continue to work. At this time, the button battery BT1 provides battery power, and the current flows into the power supply pin of U13 through diode D4. Because of its unidirectional conductivity, diode D5 only provides the operating voltage to U13.
[0036] Pins 5 and 6 of U13 are connected to pins 30 and 31 of U9 for I2C communication. Even when the motor is powered off, it can still accurately calculate time and can be used to set alarms remotely via an app to wake the device from sleep mode, achieving low-power operation.
[0037] Those skilled in the art will understand that, in addition to implementing the system, apparatus, and their modules provided by this invention in purely computer-readable program code, the same program can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system, apparatus, and their modules provided by this invention can be considered a hardware component, and the modules included therein for implementing various programs can also be considered structures within the hardware component; alternatively, modules for implementing various functions can be considered both software programs implementing the method and structures within the hardware component.
[0038] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.
Claims
1. A motor driver based on wireless communication, characterized in that, include: Motor drive circuit, power supply circuit, MCU, encoder circuit, wireless communication circuit and real-time clock circuit; The power supply circuit includes a 48V power supply, a 12V power supply, a 5V power supply and a 3.3V power supply. The 48V power supply and the 12V power supply are connected to the motor drive circuit, the 5V power supply is connected to the encoder circuit, and the 3.3V power supply is connected to the MCU, the wireless communication circuit and the real-time clock circuit. The wireless communication circuit is connected to the MCU and the real-time clock circuit.
2. The motor driver based on wireless communication according to claim 1, characterized in that, The wireless communication circuit includes a wireless communication module, which has a first serial port pin connected to the serial port pin of the MCU.
3. The motor driver based on wireless communication according to claim 2, characterized in that, The real-time clock circuit includes a real-time clock chip, which has an I2C pin connected to the I2C pin of the wireless communication module.
4. The motor driver based on wireless communication according to claim 2, characterized in that, The wireless communication module includes an enable pin and a BOOT pin. The enable pin is connected to a 3.3V power supply through a first resistor, and the BOOT pin is connected to a 3.3V power supply through a second resistor and connected to ground through a first capacitor.
5. The motor driver based on wireless communication according to claim 1, characterized in that, The real-time clock circuit also includes a crystal oscillator, a load capacitor, a filter capacitor, a first diode, a second diode, and a battery. The first end of the crystal oscillator is connected to the first oscillation pin of the real-time clock chip, and the second end is connected to the second oscillation pin of the real-time clock chip. The first end of the load capacitor is grounded, and the second end is connected to the first end of the crystal oscillator. The first end of the filter capacitor is connected to the power supply pin of the real-time clock chip, and the second end is grounded. The anode of the first diode is connected to a 3.3V power supply, and the cathode is connected to the power supply pin of the real-time clock chip. The anode of the second diode is connected to the battery, and the cathode is connected to the power supply pin of the real-time clock chip.
6. The motor driver based on wireless communication according to claim 2, characterized in that, The first serial port pin of the wireless communication module includes a serial port transmit pin and a serial port receive pin. The serial port pin of the MCU includes a serial port receive pin and a serial port transmit pin. The serial port transmit pin of the wireless communication module is connected to the serial port receive pin of the MCU, and the serial port receive pin of the wireless communication module is connected to the serial port transmit pin of the MCU.
7. The motor driver based on wireless communication according to claim 2, characterized in that, The real-time clock chip has I2C pins including I2C clock pins and I2C data pins. The wireless communication module also has I2C pins including I2C clock pins and I2C data pins. The I2C clock pins of the real-time clock chip are connected to the I2C clock pins of the wireless communication module, and the I2C data pins of the real-time clock chip are connected to the I2C data pins of the wireless communication module.
8. The motor driver based on wireless communication according to claim 2, characterized in that, The wireless communication module types include: Wi-Fi, Bluetooth, Zigbee, LoRa, NB-IoT, 4G / 5G, UWB, and NFC.
9. The motor driver based on wireless communication according to claim 5, characterized in that, The battery is a button cell.
10. A control method for a motor driver based on wireless communication according to any one of claims 1 to 9, characterized in that, Includes the following steps: Step 1: Receive control commands from the outside via the wireless communication module; Step 2: The wireless communication module communicates with the MCU via serial bus, parallel bus, GPIO port, CAN or Ethernet connection to transmit the control commands to the MCU; Step 3: The MCU generates a drive signal according to the control command and controls the motor drive circuit to drive the motor to run; Step 4: Obtain the motor's operating status information through the MCU, and transmit the operating status information to the wireless communication module through the serial port communication; Step 5: Send the operating status information to an external device via the wireless communication module; Step 6: Continuously keep track of time using a real-time clock chip; Step 7: Obtain time information through I2C communication between the wireless communication module and the real-time clock chip. When the main power supply of the system fails, automatically switch to the backup battery to power the real-time clock chip to maintain its continuous timing.
Citation Information
Patent Citations
Motor driving equipment and system based on wireless network control
CN114629384A