Motor remote control circuit based on wireless serial port
Through the remote control circuit of the motor based on the wireless serial port, the inefficiency and safety risks caused by software bugs in on-site debugging are solved, and the rapid debugging and safety control of motors and mechanical equipment are realized.
Patent Information
- Application Number
- CN202510492690.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2025-07-18
Smart Images

Figure CN120342419A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of electronic control technology, and particularly to a motor remote control circuit based on a wireless serial port. Background Art
[0002] Field commissioning refers to a series of testing, adjustment, and optimization work carried out for the actual operating environment after the installation of equipment or systems to ensure that the equipment or systems can operate normally and meet the expected performance requirements.
[0003] During field commissioning, it is necessary to verify the equipment performance: ensure that the equipment or system can work properly in the actual operating environment and meet the design and user requirements; discover and solve problems: discover potential faults or problems through actual operation and solve them in a timely manner; optimize the system performance: adjust parameters or configurations according to the actual on-site situation to make the equipment or system reach the best operating state.
[0004] However, during the process of field commissioning, it often happens that the software is not written well or there are bugs in the software, etc., which makes it impossible to continue the test. This will not only cause low debugging efficiency, but also may lead to out-of-control operation of the equipment and injury to the test personnel. Summary of the Invention
[0005] Therefore, the embodiments of the present invention provide a motor remote control circuit based on a wireless serial port to solve the technical problems in the prior art that it is easy to have unwritten software or bugs, resulting in the inability to continue the test, low debugging efficiency, and possible out-of-control operation of the equipment.
[0006] To achieve the above object, the embodiments of the present invention provide the following technical solutions:
[0007] According to the first aspect of the embodiments of the present invention, there is provided a motor remote control circuit based on a wireless serial port. The motor remote control circuit is composed of a microprocessor minimum system, a motor drive chip circuit, a power supply circuit, a wireless transceiver module interface circuit, a voltage stabilization circuit, an IO control interface circuit, and an AD sampling circuit, and specifically includes:
[0008] The microprocessor minimum system is composed of a remote microprocessor minimum system and a remote control microprocessor minimum system, and the wireless transceiver module interface circuit is composed of a wireless serial port module;
[0009] The remote microprocessor minimum system is connected to the IO control interface circuit, the motor drive chip circuit, and the first wireless transceiver module interface circuit. When the first wireless transceiver module interface circuit receives a remote control instruction, the remote microprocessor minimum system decodes the remote control instruction through a high-performance processor and outputs corresponding commands to the IO interface, sends them to the motor drive chip circuit through the IO interface, and drives the motor through the motor drive chip circuit;
[0010] The minimum system of the remote control microprocessor is connected to the AD sampling circuit and the interface circuit of the second wireless transceiver module. The low-power processor of the minimum system of the remote control microprocessor samples the resistance value of the joystick as a digital signal, encodes the digital signal and adds CRC check, and sends the encoded digital signal with CRC check to the remote end through the interface circuit of the second wireless transceiver module;
[0011] The power supply circuit is connected to the peripheral voltage stabilizing circuit, and supplies power to the remote end and the remote control end respectively, so that the remote end and the remote control end operate normally.
[0012] Further, the motor drive chip circuit is composed of 3 DC motor drive chip circuits and 1 stepper motor drive chip circuit.
[0013] Further, the minimum system of the remote end microprocessor is composed of a high-performance processor, filter capacitors, a reset capacitor, resistors and connectors, specifically including:
[0014] Pin 1 of the high-performance processor is connected to +3.3V voltage, filter capacitor CVDD1 and filter capacitor CVDD2 at the same time. The other ends of the filter capacitor CVDD1 and filter capacitor CVDD2 are grounded respectively. Pins 2 and 3 are left unconnected. Pin 4 is connected to one end of the reset capacitor, and the other end of the reset capacitor is grounded. Pin 5 is connected to +3.3V voltage. Pins 6, 7, 8, 9, 10, 11, 12, 13 are left unconnected. Pins 14 and 15 are connected to the first DC motor drive chip circuit. Pin 16 is grounded. Pin 17 is connected to +3.3V voltage, filter capacitor CDVV3 and filter capacitor CVDD4 at the same time. The other ends of the filter capacitor CDVV3 and filter capacitor CVDD4 are grounded. Pins 18 and 19 are connected to the second DC motor drive chip circuit. Pins 20 and 21 are connected to the third DC motor drive chip circuit. Pin 22 is left unconnected. Pins 23 and 24 are connected to pins 1 and 2 of the connector. Pins 25, 26, 27, 28 are left unconnected. Pin 29 is connected to resistor RSDA. The other end of the resistor RSDA is connected to resistor RSCL and +3.3V voltage at the same time. The other end of the resistor RSCL is connected to pin 30. Pins 31 and 32 are grounded together. Pin 3 of the connector is grounded;
[0015] Among them, the resistor RSDA and the resistor RSCL are pull-up resistors of the IIC interface.
[0016] Further, the first input interface (IN1) and the second input interface (IN2) of the first DC motor drive chip circuit are connected to the 14th and 15th pins of the high-performance processor. The EP interface and the GND interface are grounded respectively. The VM interface is connected to the +5V voltage and the voltage stabilizing capacitor C82 at the same time. The other end of the voltage stabilizing capacitor C82 is grounded. The VCC interface and the NSLEEP interface are connected to +3.3V and the voltage stabilizing capacitor C81 at the same time. The other end of the voltage stabilizing capacitor C81 is grounded. The first output interface and the second output interface are connected to the DC motor;
[0017] The first input interface (IN1) and the second input interface (IN2) of the second DC motor drive chip circuit are connected to the 18th and 19th pins of the high-performance processor. The EP interface and the GND interface are grounded respectively. The VM interface is connected to the +5V voltage and the voltage stabilizing capacitor C84 at the same time. The other end of the voltage stabilizing capacitor C84 is grounded. The VCC interface and the NSLEEP interface are connected to +3.3V and the voltage stabilizing capacitor C83 at the same time. The other end of the voltage stabilizing capacitor C83 is grounded. The first output interface and the second output interface are connected to the DC motor;
[0018] The first input interface (IN1) and the second input interface (IN2) of the third DC motor drive chip circuit are connected to the 20th and 21st pins of the high-performance processor. The EP interface and the GND interface are grounded respectively. The VM interface is connected to the +5V voltage and the voltage stabilizing capacitor C86 at the same time. The other end of the voltage stabilizing capacitor C86 is grounded. The VCC interface and the NSLEEP interface are connected to +3.3V and the voltage stabilizing capacitor C85 at the same time. The other end of the voltage stabilizing capacitor C85 is grounded. The first output interface and the second output interface are connected to the DC motor.
[0019] Further, the stepper motor drive chip circuit is composed of a stepper motor drive chip, a capacitor and a resistor, and specifically includes:
[0020] Pin 1 of the stepper motor drive chip is connected to OA2, pin 2 is connected to capacitor C2300CAP, the other end of capacitor C2300CAP is connected to +5V voltage, pin 3 is connected to resistor R2300-1, the other end of resistor R2300-1 is grounded, pin 4 is connected to resistor R2300-2, the other end of resistor R2300-2 is grounded, pin 5 is grounded, pins 6, 7 and 8 are respectively connected to +3.3V, pins 9 and 10 are connected to the same +3.3V, pin 11 is connected to both +3.3V and capacitor C2300VIO, the other end of capacitor C2300VIO is grounded, pin 12 is left open, pin 13 is connected to capacitor C2300-1.8, the other end of capacitor C2300-1.8 is grounded, pin 14 is grounded, pin 15 is connected to OA4, pin 16 is connected to resistor R2300-150m2, the other end of resistor R2300-150m2 is grounded, pin 17 is connected to OA3, pin 18 is connected to both +5V and capacitor C2300VS, the other end of capacitor C2300VS is grounded, pin 19 is connected to OA1, pin 20 is connected to resistor R2300-150m1, the other end of resistor R2300-150m1 is grounded, and pin 21 is grounded.
[0021] Further, the IO control interface circuit is also connected to a 7-channel LED output circuit to visually display the status of the remote end through the on / off of the LED lights.
[0022] Further, the low-power processor of the remote control microprocessor minimum system is connected to a sampling resistor. At the same time, the low-power processor is also connected to a filter capacitor, a wireless serial port module, an internal voltage stabilizing circuit and an LED display circuit. The wireless serial port module is composed of 2 voltage stabilizing capacitors. The internal voltage stabilizing circuit includes 2 voltage stabilizing output capacitors and a voltage stabilizing chip. The LED display circuit is composed of 1 LED, a field effect transistor and a resistor for displaying the status of the remote control. The voltage sampling and voltage dividing resistor of the LED display circuit is connected to the low-power processor.
[0023] Further, the AD sampling circuit is composed of two joystick sampling resistors for simultaneously sampling 8 channels, specifically including:
[0024] Pin 1 of the first joystick sampling resistor is left open, pins 2 and 3 are grounded, pin 4 is simultaneously connected to pin 10, pin 4 of the second joystick sampling resistor, the low-power processor and the voltage stabilizing chip. Pin 5 is connected to the low-power processor. Pins 6, 7 and 8 are grounded. Pin 9 is connected to the low-power processor. Pin 10 is simultaneously connected to pin 4, the voltage stabilizing chip, the low-power processor, pin 4 of the second joystick sampling resistor and pin 10. Pins 11, 12 and 13 are respectively grounded. Pin 14 is simultaneously left open and connected to the low-power processor;
[0025] Pin 1 of the second rocker sampling resistor is left unconnected, pins 2 and 3 are grounded, pin 4 is connected to pin 10, pin 4 of the first rocker sampling resistor, pin 10, the low-power processor, and the voltage regulator chip simultaneously. Pin 5 is connected to the low-power processor. Pins 6, 7, and 8 are grounded. Pin 9 is connected to the low-power processor. Pin 10 is connected to pin 4, the voltage regulator chip, the low-power processor, pin 4 of the second rocker sampling resistor, and pin 10 simultaneously. Pins 11 and 12 are grounded respectively. Pin 13 is left unconnected. Pin 14 is connected to the low-power processor.
[0026] Further, the power supply circuit is regulated by a voltage regulator chip. The remote control power supply circuit is powered by a +3.3V detachable battery and supplies power to the microcontroller through 2 output filter capacitors.
[0027] The remote power supply circuit is powered by USB and smooths the voltage fluctuation through 2 5V voltage regulator capacitors.
[0028] Further, the wireless module also includes a peripheral voltage regulation circuit, which is regulated by a 2.2 μF capacitor. One end of the capacitor is connected to +3.3V and the other end is grounded.
[0029] The embodiments of the present invention have the following advantages:
[0030] In the embodiments of the present invention, the rocker command is sent by remote control, and after the receiving circuit decodes it, a control command is sent to the corresponding motor, improving the on-site debugging efficiency. At the same time, during the test process, since there is a certain risk of out-of-control when the device is running, the tester can send an emergency stop command and other commands through remote control to maintain the safety of the test process and the tester. The embodiments of the present invention solve the problem of difficult on-site debugging, can quickly debug the motor and mechanical equipment, greatly improve the on-site work efficiency, and effectively ensure the continuity of the debugging and testing work. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only exemplary, and for those of ordinary skill in the art, other implementation drawings can be obtained by extending according to the provided drawings without creative efforts.
[0032] The structures, proportions, sizes, etc. illustrated in this specification are only used to cooperate with the content disclosed in the specification for those familiar with this technology to understand and read, and are not used to limit the limited conditions for the implementation of the present invention. Therefore, they do not have technical substantive significance. Any modification of the structure, change of the proportional relationship, or adjustment of the size, without affecting the effects that the present invention can produce and the purposes that can be achieved, should still fall within the scope that the technical content disclosed in the present invention can cover.
[0033] Figure 1 Schematic diagram of the logic structure of a motor remote control circuit based on a wireless serial port provided by an embodiment of the present invention;
[0034] Figure 2 Schematic diagram of the microprocessor minimum system circuit in a motor remote control circuit based on a wireless serial port provided by an embodiment of the present invention;
[0035] Figure 3 Schematic diagram of the stepper motor drive circuit in a motor remote control circuit based on a wireless serial port provided by an embodiment of the present invention;
[0036] Figure 4 Schematic diagram of the 7-channel LED output circuit in a motor remote control circuit based on a wireless serial port provided by an embodiment of the present invention;
[0037] Figure 5 Schematic diagram of the remote control end circuit in a motor remote control circuit based on a wireless serial port provided by an embodiment of the present invention;
[0038] Figure 6 Schematic diagram of the power supply circuit in a motor remote control circuit based on a wireless serial port provided by an embodiment of the present invention;
[0039] Figure 7 Schematic diagram of the peripheral voltage stabilizing circuit in a motor remote control circuit based on a wireless serial port provided by another embodiment of the present invention. Specific embodiments
[0040] The following specific embodiments illustrate the implementation manners of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0041] During on-site debugging, it is necessary to verify the device performance: ensure that the device or system can work properly in the actual operating environment and meet the design and user requirements; discover and solve problems: through actual operation, discover potential faults or problems and solve them in time; optimize the system performance: according to the actual on-site situation, adjust parameters or configurations to make the device or system reach the best operating state.
[0042] However, during the on-site debugging process, it often happens that the software is not written well or there are bugs in the software, etc., which makes it impossible to continue the test. This will not only cause low debugging efficiency, but also may lead to out-of-control operation of the device and injury to the test personnel.
[0043] To solve the above technical problems that during on-site debugging, it is easy to have unwritten software or bugs, resulting in the inability to continue testing, low debugging efficiency, and possible out-of-control operation of the equipment.
[0044] Reference Figure 1 , an embodiment of the present invention discloses a motor remote control circuit based on a wireless serial port. The system includes: The motor remote control circuit consists of a microprocessor minimum system, a motor drive chip circuit, a power supply circuit, a wireless transceiver module interface circuit, a voltage stabilization circuit, an IO control interface circuit, and an AD sampling circuit. Specifically, it includes:
[0045] The microprocessor minimum system consists of a remote microprocessor minimum system and a remote control microprocessor minimum system. The wireless transceiver module interface circuit is composed of a wireless serial port module;
[0046] The remote microprocessor minimum system is connected to the IO control interface circuit, the motor drive chip circuit, and the first wireless transceiver module interface circuit. When the first wireless transceiver module interface circuit receives a remote control instruction, the remote microprocessor minimum system decodes the remote control instruction through a high-performance processor and outputs corresponding commands to the IO interface, sends them to the motor drive chip circuit through the IO interface, and drives the motor through the motor drive chip circuit;
[0047] The remote control microprocessor minimum system is connected to the AD sampling circuit and the second wireless transceiver module interface circuit. The low-power processor of the remote control microprocessor minimum system samples the resistance rod amount of the joystick as a digital signal, encodes and adds CRC check to the digital signal, and sends the encoded and CRC-checked digital signal to the remote end through the second wireless transceiver module interface circuit;
[0048] The power supply circuit is connected to the peripheral voltage stabilization circuit and supplies power to the remote end and the remote control end respectively to enable the normal operation of the remote end and the remote control end.
[0049] Further, the motor drive chip circuit is composed of a 3-channel DC motor drive chip circuit and a 1-channel stepper motor drive chip circuit.
[0050] The overall circuit consists of three parts: a microprocessor minimum system (one set for the remote control and one set for the remote end), a power supply circuit (the same for the remote control and the remote end), and a wireless transceiver module interface circuit (the same for the remote control and the remote end).
[0051] Further, reference Figure 2 , the remote microprocessor minimum system is composed of a high-performance processor, a filter capacitor, a reset capacitor, a resistor, and a connector. Specifically, it includes:
[0052] Pin 1 of the high-performance processor is connected to +3.3V voltage, filter capacitor CVDD1, and filter capacitor CVDD2 at the same time. The other ends of the filter capacitor CVDD1 and the filter capacitor CVDD2 are grounded respectively. Pins 2 and 3 are left unconnected. Pin 4 is connected to one end of the reset capacitor, and the other end of the reset capacitor is grounded. Pin 5 is connected to +3.3V voltage. Pins 6, 7, 8, 9, 10, 11, 12, and 13 are left unconnected respectively. Pins 14 and 15 are connected to the first DC motor drive chip circuit. Pin 16 is grounded. Pin 17 is connected to +3.3V voltage, filter capacitor CDVV3, and filter capacitor CVDD4 at the same time. The other ends of the filter capacitor CDVV3 and the filter capacitor CVDD4 are grounded. Pins 18 and 19 are connected to the second DC motor drive chip circuit. Pins 20 and 21 are connected to the third DC motor drive chip circuit. Pin 22 is left unconnected. Pins 23 and 24 are connected to pins 1 and 2 of the connector. Pins 25, 26, 27, and 28 are left unconnected. Pin 29 is connected to the resistor RSDA. The other end of the resistor RSDA is connected to the resistor RSCL and +3.3V voltage at the same time. The other end of the resistor RSCL is connected to pin 30. Pins 31 and 32 are grounded together. Pin 3 of the connector is grounded;
[0053] Among them, the resistors RSDA and RSCL are pull-up resistors of the IIC interface.
[0054] The high-performance processor uses a high-performance processor of STMicroelectronics. This part is responsible for decoding remote control instructions and outputting corresponding commands to the IO port. The circuit uses the internal crystal oscillator of the chip as the clock source. Figure 2 Among them, CVDD1, CVDD2, CVDD3, and CVDD4 are filter capacitors of the minimum system, CNRST is the reset capacitor, RSCL and RSDA are pull-up resistors of the IIC interface, and a 128-byte EEPROM is externally connected at the far end as a storage chip for firmware data, which is used to store offsets, speed limits, etc. C81, C82, C83, C84, C85, and C86 are voltage-regulating capacitors of the DC motor drive chip. C2300XX is the capacitor of the stepper motor drive chip. The stepper motor is driven by a TDA series drive chip to drive a small stepper motor, which can be directly replaced with a control chip with higher power, improving the reusability of the circuit. In terms of IO control, 7-way LED outputs are connected to intuitively display the status at the far end.
[0055] Further, refer to Figure 2, the first input interface (IN1) and the second input interface (IN2) of the first DC motor drive chip circuit are connected to the 14th and 15th pins of the high-performance processor. The EP interface and the GND interface are respectively grounded. The VM interface is connected to +5V voltage and a voltage-stabilizing capacitor C82 at the same time. The other end of the voltage-stabilizing capacitor C82 is grounded. The VCC interface and the NSLEEP interface are connected to +3.3V and a voltage-stabilizing capacitor C81 at the same time. The other end of the voltage-stabilizing capacitor C81 is grounded. The first output interface and the second output interface are connected to the DC motor;
[0056] , the first input interface (IN1) and the second input interface (IN2) of the second DC motor drive chip circuit are connected to the 18th and 19th pins of the high-performance processor. The EP interface and the GND interface are respectively grounded. The VM interface is connected to +5V voltage and a voltage-stabilizing capacitor C84 at the same time. The other end of the voltage-stabilizing capacitor C84 is grounded. The VCC interface and the NSLEEP interface are connected to +3.3V and a voltage-stabilizing capacitor C83 at the same time. The other end of the voltage-stabilizing capacitor C83 is grounded. The first output interface and the second output interface are connected to the DC motor;
[0057] , the first input interface (IN1) and the second input interface (IN2) of the third DC motor drive chip circuit are connected to the 20th and 21st pins of the high-performance processor. The EP interface and the GND interface are respectively grounded. The VM interface is connected to +5V voltage and a voltage-stabilizing capacitor C86 at the same time. The other end of the voltage-stabilizing capacitor C86 is grounded. The VCC interface and the NSLEEP interface are connected to +3.3V and a voltage-stabilizing capacitor C85 at the same time. The other end of the voltage-stabilizing capacitor C85 is grounded. The first output interface and the second output interface are connected to the DC motor.
[0058] Further, referring to Figure 3 , the stepper motor drive chip circuit is composed of a stepper motor drive chip, capacitors and resistors, and specifically includes:
[0059] Pin 1 of the stepper motor drive chip is connected to OA2, pin 2 is connected to capacitor C2300CAP, the other end of capacitor C2300CAP is connected to +5V voltage, pin 3 is connected to resistor R2300-1, the other end of resistor R2300-1 is grounded, pin 4 is connected to resistor R2300-2, the other end of resistor R2300-2 is grounded, pin 5 is grounded, pins 6, 7 and 8 are respectively connected to +3.3V, pins 9 and 10 are connected to the same +3.3V, pin 11 is connected to both +3.3V and capacitor C2300VIO, the other end of capacitor C2300VIO is grounded, pin 12 is left open, pin 13 is connected to capacitor C2300-1.8, the other end of capacitor C2300-1.8 is grounded, pin 14 is grounded, pin 15 is connected to OA4, pin 16 is connected to resistor R2300-150m2, the other end of resistor R2300-150m2 is grounded, pin 17 is connected to OA3, pin 18 is connected to both +5V and capacitor C2300VS, the other end of capacitor C2300VS is grounded, pin 19 is connected to OA1, pin 20 is connected to resistor R2300-150m1, the other end of resistor R2300-150m1 is grounded, and pin 21 is grounded.
[0060] Further, referring to Figure 4 , the IO control interface circuit is also connected to a 7-channel LED output circuit, and the status of the remote end is visually displayed through the on / off of the LED lights.
[0061] Further, referring to Figure 5 , the low-power processor of the remote control microprocessor minimum system is connected to a sampling resistor. At the same time, the low-power processor is also connected to a filter capacitor, a wireless serial port module, an internal voltage stabilization circuit, and an LED display circuit. The wireless serial port module consists of 2 voltage stabilization capacitors. The internal voltage stabilization circuit includes 2 voltage stabilization output capacitors and a voltage stabilization chip. The LED display circuit consists of 1 LED, a field effect transistor, and a resistor, and is used to display the status of the remote control. The voltage sampling and voltage dividing resistor of the LED display circuit is connected to the low-power processor.
[0062] The low-power processor uses a low-power processor from STMicroelectronics. This part is responsible for sampling the resistance value of the joystick into a digital signal, encoding the digital signal, and adding CRC check. C1 and C2 are the voltage stabilization output capacitors of the AMS1117 voltage stabilization chip. C3, C4, and C7 are the filter capacitors of the minimum system processor. CUART0 and CUART1 are the voltage stabilization capacitors of the wireless serial port module. U3 and U6 are the joystick sampling resistors, supporting up to 8 channels of simultaneous sampling. In addition, an LED light is added to indicate the status of the remote control, and voltage sampling is added to detect the battery voltage. R52 and R51 are the voltage sampling and voltage dividing resistors.
[0063] Further, referring to Figure 5 , the AD sampling circuit consists of two rocker sampling resistors and is used to sample 8 channels simultaneously. Specifically, it includes:
[0064] Pin 1 of the first rocker sampling resistor is connected to nothing, pins 2 and 3 are grounded, pin 4 is simultaneously connected to pin 10, pin 4 of the second rocker sampling resistor, the low-power processor, and the voltage regulator chip. Pin 5 is connected to the low-power processor. Pins 6, 7, and 8 are grounded. Pin 9 is connected to the low-power processor. Pin 10 is simultaneously connected to pin 4, the voltage regulator chip, the low-power processor, pin 4 of the second rocker sampling resistor, and pin 10. Pins 11, 12, and 13 are respectively grounded. Pin 14 is simultaneously connected to nothing and the low-power processor;
[0065] Pin 1 of the second rocker sampling resistor is connected to nothing, pins 2 and 3 are grounded, pin 4 is simultaneously connected to pin 10, pin 4 of the first rocker sampling resistor, pin 10, the low-power processor, and the voltage regulator chip. Pin 5 is connected to the low-power processor. Pins 6, 7, and 8 are grounded. Pin 9 is connected to the low-power processor. Pin 10 is simultaneously connected to pin 4, the voltage regulator chip, the low-power processor, pin 4 of the second rocker sampling resistor, and pin 10. Pins 11 and 12 are respectively grounded. Pin 13 is connected to nothing. Pin 14 is connected to the low-power processor.
[0066] Further, referring to Figure 6 , the power supply circuit is regulated by a voltage regulator chip. The remote control power supply circuit is powered by a +3.3V detachable battery and supplies power to the microcontroller through 2 output filter capacitors. The remote power supply circuit is powered by USB and smooths voltage fluctuations through 2 5V voltage regulator capacitors.
[0067] The power supply circuit mainly uses AMS1117 as the power supply voltage regulator chip. The remote control is powered by a battery, using a 3.7V large-capacity detachable lithium battery, and is also equipped with a battery power indicator. When the power is low, the indicator will flash quickly to prompt that the battery needs to be removed for charging. While ensuring portability, it also meets the requirements of long-term use during on-site debugging. The remote end is powered by a USB cable, which is compatible with a variety of devices and meets the diverse needs of power-taking methods. Pc1 and pc2 are 5V voltage regulator capacitors, and VC32 and VC31 are 3.3V output filter capacitors, which supply power to the microcontroller.
[0068] Further, referring to Figure 7 , the wireless module also includes a peripheral voltage regulation circuit, which is regulated by a 1 2.2 μF capacitor. One end of this capacitor is connected to +3.3V, and the other end is grounded.
[0069] Since the wireless module already has a partial voltage regulation circuit, only peripheral voltage regulation is required at this time. Just a 2.2uf capacitor for voltage regulation can meet the requirements, greatly simplifying the soldering work.
[0070] The embodiments of the present invention relate to the fields of electronic control, embedded programming, data transceiver, and data encoding and decoding, and are suitable for usage scenarios such as on-site debugging and motor performance testing. It is mainly designed to solve the on-site debugging problem, and can control and test stepper motors, DC brushed motors, and servo motors (controlled by 485 communication bus) through a handle remote controller.
[0071] Although the present invention has been described in detail with general descriptions and specific embodiments above, based on the present invention, some modifications or improvements can be made, which are obvious to those skilled in the art. Therefore, these modifications or improvements made without departing from the spirit of the present invention all fall within the scope of protection required by the present invention.
Claims
1. A motor remote control circuit based on a wireless serial port, characterized in that The motor remote control circuit consists of a microprocessor minimum system, a motor drive chip circuit, a power supply circuit, a wireless transceiver module interface circuit, a voltage stabilization circuit, an IO control interface circuit, and an AD sampling circuit, specifically including: The microprocessor minimum system consists of a remote microprocessor minimum system and a remote control microprocessor minimum system, and the wireless transceiver module interface circuit consists of a wireless serial port module; The remote microprocessor minimum system is connected to the IO control interface circuit, the motor drive chip circuit, and the first wireless transceiver module interface circuit. When the first wireless transceiver module interface circuit receives a remote control instruction, the remote microprocessor minimum system decodes the remote control instruction through a high-performance processor and outputs corresponding commands to the IO interface, sends them to the motor drive chip circuit through the IO interface, and drives the motor through the motor drive chip circuit; The remote control microprocessor minimum system is connected to the AD sampling circuit and the second wireless transceiver module interface circuit. The low-power processor of the remote control microprocessor minimum system samples the resistance rod amount of the joystick as a digital signal, encodes the digital signal, and adds a CRC checksum, and then sends the encoded digital signal with the CRC checksum added to the remote end through the second wireless transceiver module interface circuit; The power supply circuit is connected to the peripheral voltage stabilization circuit to supply power to the remote end and the remote control end respectively, enabling the remote end and the remote control end to operate normally.
2. The motor remote control circuit based on a wireless serial port according to claim 1, characterized in that The motor drive chip circuit consists of a 3-way DC motor drive chip circuit and a 1-way stepper motor drive chip circuit.
3. The motor remote control circuit based on a wireless serial port according to claim 2, wherein, The remote microprocessor minimum system consists of a high-performance processor, filter capacitors, a reset capacitor, resistors, and connectors, specifically including: Pin 1 of the high-performance processor is simultaneously connected to the +3.3V voltage, filter capacitor CVDD1, and filter capacitor CVDD2. The other ends of filter capacitor CVDD1 and filter capacitor CVDD2 are grounded respectively. Pins 2 and 3 are left unconnected. Pin 4 is connected to one end of the reset capacitor, and the other end of the reset capacitor is grounded. Pin 5 is connected to the +3.3V voltage. Pins 6, 7, 8, 9, 10, 11, 12, and 13 are left unconnected. Pins 14 and 15 are connected to the first DC motor drive chip circuit. Pin 16 is grounded. Pin 17 is simultaneously connected to the +3.3V voltage, filter capacitor CDVV3, and filter capacitor CVDD4. The other ends of filter capacitor CDVV3 and filter capacitor CVDD4 are grounded. Pins 18 and 19 are connected to the second DC motor drive chip circuit. Pins 20 and 21 are connected to the third DC motor drive chip circuit. Pin 22 is left unconnected. Pins 23 and 24 are connected to pins 1 and 2 of the connector. Pins 25, 26, 27, and 28 are left unconnected. Pin 29 is connected to resistor RSDA. The other end of resistor RSDA is simultaneously connected to resistor RSCL and the +3.3V voltage. The other end of resistor RSCL is connected to pin 30. Pins 31 and 32 are grounded together, and pin 3 of the connector is grounded; Among them, resistor RSDA and resistor RSCL are pull-up resistors of the IIC interface.
4. The motor remote control circuit based on a wireless serial port according to claim 3, wherein The first input interface (IN1) and the second input interface (IN2) of the first DC motor drive chip circuit are connected to pins 14 and 15 of the high-performance processor. The EP interface and the GND interface are grounded respectively. The VM interface is connected to +5V voltage and a voltage stabilizing capacitor C82 at the same time. The other end of the voltage stabilizing capacitor C82 is grounded. The VCC interface and the NSLEEP interface are connected to +3.3V and a voltage stabilizing capacitor C81 at the same time. The other end of the voltage stabilizing capacitor C81 is grounded. The first output interface and the second output interface are connected to the DC motor; The first input interface (IN1) and the second input interface (IN2) of the second DC motor drive chip circuit are connected to pins 18 and 19 of the high-performance processor. The EP interface and the GND interface are grounded respectively. The VM interface is connected to +5V voltage and a voltage stabilizing capacitor C84 at the same time. The other end of the voltage stabilizing capacitor C84 is grounded. The VCC interface and the NSLEEP interface are connected to +3.3V and a voltage stabilizing capacitor C83 at the same time. The other end of the voltage stabilizing capacitor C83 is grounded. The first output interface and the second output interface are connected to the DC motor; The first input interface (IN1) and the second input interface (IN2) of the third DC motor drive chip circuit are connected to pins 20 and 21 of the high-performance processor. The EP interface and the GND interface are grounded respectively. The VM interface is connected to +5V voltage and a voltage stabilizing capacitor C86 at the same time. The other end of the voltage stabilizing capacitor C86 is grounded. The VCC interface and the NSLEEP interface are connected to +3.3V and a voltage stabilizing capacitor C85 at the same time. The other end of the voltage stabilizing capacitor C85 is grounded. The first output interface and the second output interface are connected to the DC motor.
5. The motor remote control circuit based on a wireless serial port according to claim 4, wherein The stepper motor drive chip circuit is composed of a stepper motor drive chip, capacitors and resistors, and specifically includes: Pin 1 of the stepper motor drive chip is connected to OA2. Pin 2 is connected to the capacitor C2300CAP. The other end of the capacitor C2300CAP is connected to +5V voltage. Pin 3 is connected to the resistor R2300-1. The other end of the resistor R2300-1 is grounded. Pin 4 is connected to the resistor R2300-2. The other end of the resistor R2300-2 is grounded. Pin 5 is grounded. Pins 6, 7 and 8 are respectively connected to +3.3V. Pins 9 and 10 are connected to the same +3.3V. Pin 11 is connected to +3.3V and the capacitor C2300VIO at the same time. The other end of the capacitor C2300VIO is grounded. Pin 12 is left open. Pin 13 is connected to the capacitor C2300-1.
8. The other end of the capacitor C2300-1.8 is grounded. Pin 14 is grounded. Pin 15 is connected to OA4. Pin 16 is connected to the resistor R2300-150m2. The other end of the resistor R2300-150m2 is grounded. Pin 17 is connected to OA3. Pin 18 is connected to +5V and the capacitor C2300VS at the same time. The other end of the capacitor C2300VS is grounded. Pin 19 is connected to OA1. Pin 20 is connected to the resistor R2300-150m1. The other end of the resistor R2300-150m1 is grounded. Pin 21 is grounded.
6. The motor remote control circuit based on a wireless serial port according to claim 1, characterized in that, The IO control interface circuit is also connected to a 7-channel LED output circuit, and the status of the remote end is visually displayed through the lighting / extinguishing of the LED lights.
7. The motor remote control circuit based on a wireless serial port according to claim 1, wherein The low-power processor of the remote control microprocessor minimum system is connected to the sampling resistor. At the same time, the low-power processor is also connected to the filter capacitor, wireless serial port module, internal voltage stabilizing circuit, and LED display circuit. The wireless serial port module consists of 2 voltage stabilizing capacitors. The internal voltage stabilizing circuit includes 2 voltage stabilizing output capacitors and a voltage stabilizing chip. The LED display circuit consists of 1 LED, a field effect transistor, and a resistor, and is used to display the status of the remote control. The voltage sampling and voltage dividing resistor of the LED display circuit is connected to the low-power processor.
8. The motor remote control circuit based on a wireless serial port according to claim 7, wherein, The AD sampling circuit consists of two joystick sampling resistors and is used to sample 8 channels simultaneously, specifically including: Pin 1 of the first joystick sampling resistor is left unconnected, pins 2 and 3 are grounded, pin 4 is simultaneously connected to pin 10, pin 4 of the second joystick sampling resistor, the low-power processor, and the voltage stabilizing chip. Pin 5 is connected to the low-power processor. Pins 6, 7, and 8 are grounded. Pin 9 is connected to the low-power processor. Pin 10 is simultaneously connected to pin 4, the voltage stabilizing chip, the low-power processor, pin 4 of the second joystick sampling resistor, and pin 10. Pins 11, 12, and 13 are respectively grounded. Pin 14 is simultaneously left unconnected and connected to the low-power processor; Pin 1 of the second joystick sampling resistor is left unconnected, pins 2 and 3 are grounded, pin 4 is simultaneously connected to pin 10, pin 4 of the first joystick sampling resistor, pin 10, the low-power processor, and the voltage stabilizing chip. Pin 5 is connected to the low-power processor. Pins 6, 7, and 8 are grounded. Pin 9 is connected to the low-power processor. Pin 10 is simultaneously connected to pin 4, the voltage stabilizing chip, the low-power processor, pin 4 of the second joystick sampling resistor, and pin 10. Pins 11 and 12 are respectively grounded. Pin 13 is left unconnected. Pin 14 is connected to the low-power processor.
9. The motor remote control circuit based on a wireless serial port according to claim 1, wherein, The power supply circuit is stabilized by a voltage stabilizing chip. The remote control power supply circuit is powered by a +3.3V detachable battery and supplies power to the microcontroller through 2 output filter capacitors; The remote power supply circuit is powered by USB and smooths the voltage fluctuation through 2 5V voltage stabilizing capacitors.
10. A motor remote control circuit based on a wireless serial port according to claim 9, characterized in that, The wireless module also includes a peripheral voltage stabilizing circuit, which is stabilized by a 1 2.2 μF capacitor. One end of the capacitor is connected to +3.3V and the other end is grounded.