Mechanical multi-turn module debugging and testing system

By designing an independent power supply architecture and an innovative drive topology for the mechanical multi-turn module debugging and testing system, the problems of testing accuracy and stability of high-precision encoder modules were solved, achieving high-precision and stable module testing results.

CN123135128APending Publication Date: 2026-11-20JILIN ZHUOSHI SENSING TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202611488117.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-23
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing encoder module testing equipment cannot meet the high precision and stability requirements of high-precision mechanical encoder multi-turn modules, especially in terms of motion control precision and stability.

Method used

A mechanical multi-turn module debugging and testing system was designed. It adopts an independently isolated dual DC-DC power supply architecture, combined with a two-stage autonomous analog quantity proportional reduction unit and a combined topology structure of bottom-side power switching transistor and high and low-side relays to achieve precise power supply and smooth commutation of the module. It is equipped with an MCU main control circuit for data acquisition and control.

Benefits of technology

It achieves accuracy and stability in module testing, adapts to ultra-high precision testing requirements of ±0.01°, improves testing reliability and accuracy, and overcomes the problems of traditional drive commutation shock and spindle vibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123135128A_ABST
    Figure CN123135128A_ABST
Patent Text Reader

Abstract

A kind of mechanical multi-turn module debugging, testing system belongs to equipment detection technical field.This system is realized the independent test of module 12V industrial standard power supply and 5V low power supply working condition by independent isolated double DC-DC power supply architecture, avoids power supply crosstalk problem, guarantees the accuracy of module test under different working conditions. Meanwhile, two-stage autonomous analog quantity equal ratio reduction unit is designed, the module rotation angle analog signal is accurately regulated, the single-chip microcomputer ADC sampling range is matched, and the rotation angle data acquisition accuracy is greatly improved. In addition, the composite driving topology of bottom power switch tube combined with high-low side relay is innovatively adopted, the disadvantages of traditional H-bridge driving commutation impact and main shaft jitter are overcome, stable commutation and accurate speed regulation of motor are realized, and it is fully adapted to the ultra-high precision test requirements of module ±0.01°. The system can synchronously collect module working current and rotation angle data, accurately determine module assembly quality and running performance, and effectively improve the stability and reliability of high-precision multi-turn module test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of equipment testing technology, specifically relating to a mechanical multi-turn module debugging and testing system. Background Technology

[0002] Chinese utility model patent application CN223485201U, entitled "A High-Precision Mechanical Encoder Multi-Turn Module," provides a high-precision mechanical encoder multi-turn module that enables the assembly of photoelectric or magnetoelectric single-turn encoders into multi-turn encoders. The multi-turn accuracy is improved to ±0.01° compared to the traditional ±0.1° accuracy. The module is also 30% smaller than traditional designs. It is easy to install, suitable for mass production; requires no external power supply, is resistant to electromagnetic interference, and is suitable for harsh industrial environments; it is stable, reliable, and has a long lifespan.

[0003] However, existing equipment or methods for testing encoder modules, such as "Encoder Debugging Equipment" (CN 218349540 U) or "A General Hardware Testing System" (CN104280674A), cannot be directly applied to the testing of "A High-Precision Mechanical Encoder Multi-Turn Module". The main technical challenges are as follows: Since the multi-turn encoder module under test has extremely high precision, the testing equipment is required to have extremely high motion control precision and motion control stability during its modulation and testing process. However, this problem has not yet been solved. Summary of the Invention

[0004] To address the aforementioned technical problems, this invention proposes a mechanical multi-turn module debugging and testing system.

[0005] The system includes: a power supply section, an MCU main control circuit, an interface and testing circuit, and a motor drive execution circuit; The power supply section provides power to the multi-turn module, interface and test circuits, and motor drive execution circuit. The MCU main control circuit is used for test control and for communicating with the interface, test circuit, and motor drive execution circuit. The interface and test circuit are connected to the multi-turn module under test and communicate with the MCU main control circuit. They are used to sample, condition and detect the status of the analog signal of the multi-turn module, and to realize the on / off control of the signal or power supply. The motor drive execution circuit receives signals from the MCU main control circuit and is used to control the motion of the external motor.

[0006] Furthermore, the power supply section includes three power supply paths: DC-DC0, DC-DC1, and LDO. The DC-DC0 power supply path is responsible for powering the multi-turn module, and the power module is configured to provide dual 12V and 5V power to the multi-turn module via the DC-DC0 power supply path. The DC-DC1 power supply path is responsible for powering the interface and test circuits, as well as the motor drive execution circuit. The LDO power supply path is responsible for powering the MCU main control circuit.

[0007] Furthermore, the MCU main control circuit uses the APM32F103TBU7 microcontroller as the core control unit, which receives the crystal oscillator clock signal and reset signal, and is connected to analog power supply and digital power supply. It also has pins connected to the debugging interface, pins connected to the test interface, and pins connected to the actuator interface.

[0008] Furthermore, the pins connected to the debugging interface: pins output SWD clock signals to provide a synchronous clock for debugging communication; pins also transmit and receive SWD data signals bidirectionally to enable firmware burning, online debugging, and reading and calibration of device operating parameters. Pins connected to the test terminal interface: Pin outputs 12V / 5V power supply relay enable control level; Pin inputs two analog voltages of the corner after being conditioned by two stages of analog signal reduction units in the interface and test circuit; Pin bidirectionally transmits and receives TTL serial port signals to complete command issuance and test sampling data upload; Pins that connect to the actuator interface: The pins output motor direction level, start / stop control level and PWM speed regulation waveform to control motor commutation, start / stop and speed regulation, and drive the spindle to rotate to simulate the actual working conditions of the multi-turn module.

[0009] Furthermore, the interface and test circuit internally includes analog quantity scaled-down unit 1, analog quantity scaled-down unit 2, relay 1, relay 2, current sensor 1, and current sensor 2; analog quantity scaled-down unit 1 and analog quantity scaled-down unit 2 form a two-stage analog signal conditioning link to independently acquire the rotation angle analog voltage signal output by the multi-turn module; current sensor 1 and current sensor 2 are connected in series with relay 1 and relay 2 respectively to detect the operating current of the multi-turn module under 12V and 5V power supply.

[0010] Furthermore, in the analog quantity proportional reduction unit 1: the original analog voltage with a high amplitude output from the multi-turn module first enters the analog quantity proportional reduction unit 1 to complete the initial proportional attenuation, reducing the ultra-high amplitude signal to the safe input range of the operational amplifier; Analog signal proportional reduction unit 2: The voltage signal reduced by analog signal proportional reduction unit 1 is input to analog signal proportional reduction unit 2, and the voltage is scaled twice proportionally to match the signal amplitude to the optimal linear sampling range of the APM32F103TBU7 microcontroller ADC, eliminating the sampling accuracy loss caused by signal amplitude mismatch; the conditioned standard analog voltage is sent to the MCU main control circuit.

[0011] Furthermore, in the 12V operating condition detection stage: the main control outputs a high level to drive relay 1 to engage, and the 12V voltage output by DC-DC0 is delivered to the multi-turn module under test via relay 1 and current sensor 1, and the module enters the 12V standard industrial power supply working state; current sensor 1 senses the load current of the 12V power supply circuit in real time, converts the current value into a corresponding analog voltage signal, and sends it to the MCU main control circuit; 5V Operating Condition Testing Phase: After completing the acquisition of 12V electrical parameters, the main controller pulls the TEST_12V_EN level low to disconnect relay 1, and then pulls the TEST_5V_EN level high to engage relay 2. The 5V voltage output from DC-DC0 powers the module under test through relay 2 and current sensor 2, and the module switches to low-power 5V operating mode. Current sensor 2 collects the real-time operating current of the 5V circuit and converts it into an analog voltage, which is then sent to the MCU main control circuit.

[0012] Furthermore, the motor drive execution circuit adopts a combined topology structure of bottom-side power switching transistors, high-side relays, and bottom-side relays to achieve motor drive. The specific working process is as follows: During forward drive, the MCU main control circuit first outputs a level to make the high-side relay contact close while the bottom-side relay remains open, locking the forward power supply path. Then, the bottom-side power switch is turned on to connect the negative circuit. The current flows from the positive power supply, through the high-side relay, the motor winding, and the bottom-side power switch to ground, causing the motor to run in the forward direction. The direction contact of the speed control circuit maintains its original state. By changing the duty cycle of the PWM signal of the bottom-side power switch, the average power supply voltage of the motor is adjusted, thereby achieving smooth acceleration and deceleration in the forward operation. Before reversing, the MCU main control circuit first turns off the bottom power switch to cut off the main power supply circuit, leaving a short buffer window to allow the motor to coast by inertia, so that the relay can complete the path switching under no load current conditions: disconnecting the high-side relay and energizing the bottom-side relay to complete the power supply path reversal. After the power switch is turned on again, the winding current reverses, and the motor achieves reverse rotation. Reverse speed regulation also relies on the PWM duty cycle to complete the speed regulation.

[0013] The beneficial effects of the system described in this invention are as follows: This system, through an independently isolated dual DC-DC power supply architecture, enables independent testing of the module under 12V industrial standard power supply and 5V low-power supply conditions, avoiding power supply crosstalk issues and ensuring the accuracy of module testing under different operating conditions. Simultaneously, a two-stage autonomous analog quantity scaling unit is designed to precisely adjust the module's rotation angle analog signal and match the microcontroller's ADC sampling range, significantly improving the accuracy of rotation angle data acquisition. Furthermore, an innovative composite drive topology using a bottom-side power switch paired with high and low-side relays overcomes the drawbacks of traditional H-bridge drives, such as large commutation impact and spindle jitter, achieving smooth motor commutation and precise speed regulation, fully adapting to the ultra-high precision testing requirements of ±0.01° for the module. The system can simultaneously acquire module operating current and rotation angle data, accurately determine module assembly quality and operating performance, and effectively improve the stability and reliability of high-precision multi-turn module testing. Attached Figure Description

[0014] Figure 1 This is a circuit structure block diagram of the power supply section in an embodiment of the present invention; Figure 2 This is a circuit structure block diagram of the MCU main control circuit in an embodiment of the present invention; Figure 3 This is a structural diagram of the APM32F103TBU7 microcontroller used in the main control unit in this embodiment of the invention; Figure 4 This is a circuit structure block diagram of the interface and test circuit in an embodiment of the present invention; Figure 5 This is a circuit diagram of the analog quantity scaled-down unit in an embodiment of the present invention; Figure 6 This is a circuit structure block diagram of the motor drive execution circuit in an embodiment of the present invention. Detailed Implementation

[0015] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the present invention.

[0016] Example 1 This embodiment provides a mechanical multi-turn module debugging and testing system. The system includes a power supply section, an MCU main control circuit, an interface and testing circuit, and a motor drive execution circuit.

[0017] I. Power Supply Section: The circuit block diagram of the power supply section is as follows: Figure 1As shown, the power supply path includes three parts: DC-DC0, DC-DC1, and LDO. The DC-DC0 power supply path is responsible for powering the product under test (multi-turn module). The power module is configured to provide dual 12V and 5V power to the product under test via the DC-DC0 path. This design is based on the fact that the multi-turn module under test relies on an external system for power in practical applications, and its operational stability under both 12V (industrial standard power supply) and 5V (low-power scenario) power supply conditions needs to be verified. The DC-DC1 power supply path is responsible for powering the interface, test circuit, and motor drive execution circuit; the LDO is responsible for powering the MCU main control circuit. DC-DC0 and DC-DC1 are isolated from each other to prevent abnormalities in the product under test from affecting the normal operation of other modules in the system.

[0018] DC-DC0 and DC-DC1 are two completely independent synchronous buck circuits that do not share power devices. They only share an external wide-voltage input on their input bus. The power conversion and output circuits are completely separate, with no shared power path. The output side of DC-DC0 has dedicated 12V and 5V dual power rails for the product under test; the output side of DC-DC1 supplies power to the entire fixture, which is then stepped down again by an LDO to the main control unit.

[0019] II. MCU Main Control Circuit: The circuit structure block diagram of the MCU main control circuit is as follows: Figure 2 As shown, the main control unit (APM32F103TBU7 microcontroller) is the core, responsible for integrating and processing all system operation logic. It receives crystal clock and reset signals and connects to both analog and digital power supplies to ensure normal operation. The two power supply methods are provided by a 12V DC-C0 and a 5V LDO, respectively, to test the external wide-voltage power supply and internal standard-voltage power supply of the multi-turn module. When testing the external power supply interface, the DC-DC0 is enabled to provide the 12V voltage, and the LDO is disabled to provide the 5V voltage. When testing the internal power supply interface, the LDO is enabled to provide the 5V voltage, and the DC-C0 is disabled to provide the 12V voltage. The main control unit outputs control signals according to its internal logic (the debug interface (connected to the computer) and the test interface (connected to the multi-turn module) are bidirectional. The actuator interface (connected to the motor) only outputs and has no input), realizing system status monitoring, parameter configuration, and overall process scheduling.

[0020] Pins connected to the debugging interface: Pin outputs an SWD clock signal to provide a synchronous clock for debugging communication; Pin bidirectionally transmits and receives SWD data signals to enable firmware burning, online debugging, and reading and calibration of device operating parameters. Pins connected to the test interface: Pin outputs 12V / 5V power supply relay enable control level; Pin inputs two analog voltages of the rotation angle after being conditioned by two-stage analog signal reduction units; Pin bidirectionally transmits and receives TTL serial port signals to complete the sending of host computer commands and the uploading of test sampling data. Pins that connect to the actuator interface: The pins output motor direction level, start / stop control level, and PWM speed regulation waveform to control motor commutation, start / stop, and speed adjustment, and drive the spindle to rotate to simulate the actual working conditions of the multi-turn module.

[0021] like Figure 3 This is a structural diagram of the APM32F103TBU7 microcontroller used in this main control unit. The signal flow and function of each interface pin of the microcontroller are shown in the table below: The MCU main control circuit is based on the APM32F103TBU7 microcontroller as the main control unit. During test control, the pins connected to the debugging interface include (TX, RX), the pins connected to the test interface include (USER4_TX, USER3_TX, USER2_TX, USER1_TX, USER4_RX, USER3_RX, USER2_RX, USER1_RX, SSI_CLK, SSI_DOUT), and the pins connected to the actuator interface include (CTL_DIR_L, CTR_F, CTL_DIR_H).

[0022] III. Interface and Test Circuit: The circuit structure block diagram of the interface and test circuit is as follows: Figure 4 As shown, the interface and test circuit are connected to the multi-turn module under test via the module interface, responsible for signal acquisition and communication. Internally, it includes analog quantity reduction units 1 and 2, as well as relays 1 and 2 equipped with current sensors, used for sampling, conditioning, and status detection of the analog signals from the multi-turn module, and for controlling the on / off state of signals or power. The acquired signals are aggregated through the test interface, level-converted via a TTL-to-USB chip, and finally communicate with the host computer via a Type-C interface.

[0023] The interface and test circuit includes analog signal reduction unit 1 and analog signal reduction unit 2. Their design purpose is to enable the multi-turn module under test to perform multi-turn counting via a gear set, with the output signal being an analog voltage signal reflecting the gear rotation angle. The reduction unit conditions this analog signal to the sampling range of the MCU main control circuit.

[0024] Current sensor 1 and current sensor 2, together with relay 1 and relay 2, are used to detect the operating current of the module under 12V and 5V power supply. This parameter directly reflects the mechanical load state of the gear transmission mechanism and is an important indicator for judging the assembly quality of the module.

[0025] The complete working process of analog quantity proportional reduction unit 1, analog quantity proportional reduction unit 2, relay 1, relay 2, current sensor 1, and current sensor 2 is described in detail: 1. Circuit correspondence (1) Relay 1 and current sensor 1: corresponding to the 12V power supply circuit of the module under test, relay 1 controls the switching on and off of the 12V power supply, and current sensor 1 collects the working current of the 12V circuit in real time. (2) Relay 2 and current sensor 2: corresponding to the 5V power supply circuit of the module under test, relay 2 controls the switching on and off of the 5V power supply, and current sensor 2 collects the working current of the 5V circuit in real time; (3) Analog quantity proportional reduction unit 1 (first-level reduction unit) and analog quantity proportional reduction unit 2 (second-level reduction unit): form a two-level analog signal conditioning link, independently acquire the rotation angle analog voltage signal output by the mechanical multi-turn module, and work in parallel with the two current detection branches.

[0026] 2. Step-by-step explanation of the overall workflow Step 1: System power-on initialization, main controller completes channel self-test. After the entire unit is powered on, the APM32F103TBU7 MCU main control circuit completes initialization. The main control outputs low levels through the TEST_12V_EN and TEST_5V_EN pins respectively, keeping relays 1 and 2 in the open state, and the tested multi-turn module is temporarily not powered. The MCU main control circuit simultaneously configures the internal ADC sampling channel of the APM32F103TBU7, opens the sampling path corresponding to the two-stage analog signal reduction unit, completes the hardware self-test of the operational amplifier and current sensor, and confirms that there are no short circuits or open circuits in the signal link. The ADC is an analog-to-digital converter. The sensor outputs an analog signal (continuously changing voltage, such as any voltage between 0 and 3.3V). The APM32F103TBU7 microcontroller can only recognize digital 0 and 1, and cannot recognize continuous voltage. ADC function: Convert continuously changing analog voltage → into digital integer (ADC->DATA).

[0027] Step 2: Close the relay in a time-division manner to establish the power supply circuit for the module under test, and synchronously collect the circuit current. 12V Operating Condition Detection Phase: The main control outputs a high level to drive relay 1 to engage. The 12V voltage output from DC-DC0 is transmitted to the multi-turn module of the tested machine via relay 1 and current sensor 1, and the module enters the 12V standard industrial power supply operating state. Current sensor 1 senses the load current of the 12V power supply circuit in real time, converts the current value into a corresponding analog voltage signal, and sends it to the ADC channel of APM32F103TBU7 to determine the assembly load of the module's gear transmission mechanism, whether there is jamming, short circuit abnormality, etc.

[0028] 5V Operating Condition Testing Phase: After completing the acquisition of 12V electrical parameters, the APM32F103TBU7 pulls the TEST_12V_EN level low to disconnect relay 1, and then pulls the TEST_5V_EN level high to engage relay 2. The 5V voltage output from DC-DC0 powers the module under test through relay 2 and current sensor 2, switching the module to low-power 5V operating mode. Current sensor 2 acquires the real-time operating current of the 5V circuit, converts it into an analog voltage, and sends it to the ADC channel of the APM32F103TBU7 to complete the electrical performance testing under low-power conditions.

[0029] Step 3: The two-stage analog quantity proportional reduction unit synchronously acquires the module's rotation angle analog signal (executed in parallel with current acquisition). The module under test is powered by 12V or 5V. The gear set of the module under test rotates with the spindle, outputting a raw analog voltage signal that corresponds one-to-one with the rotation angle. The signal flow passes through two stages of reduction units for conditioning. Analog signal proportional reduction unit 1: The original analog voltage with a high output amplitude from the module first enters the analog signal proportional reduction unit 1 to complete the initial proportional attenuation, reducing the ultra-high amplitude signal to the safe input range of the operational amplifier; Analog signal scaling unit 2: The voltage signal after being scaled down by analog signal scaling unit 1 is input to analog signal scaling unit 2, where the voltage is scaled down twice to match the signal amplitude to the optimal linear sampling range of the APM32F103TBU7 ADC, eliminating the sampling accuracy loss caused by signal amplitude mismatch; the conditioned standard analog voltage is directly connected to the ADC channel of APM32F103TBU7.

[0030] Step 4: The main controller synchronously reads two types of analog signals, current and rotation angle, and completes data parsing. The main controller starts the ADC analog-to-digital conversion in a time-division or synchronous manner, and collects three analog signals respectively: the 12V loop current and voltage output by current sensor 1, the 5V loop current and voltage output by current sensor 2, and the module rotation angle voltage output by the two-stage reduction unit. The ADC converts the continuous analog voltage into digital quantities, and the main controller calculates the actual working current and the precise rotation angle value of the module through the built-in algorithm (as shown in the formula below).

[0031] Current consumed = ((ADC->DATA * 3.3) / 4096) * K; ADC->DATA represents the original sampled digital value output after the ADC analog-to-digital conversion is completed; K is the linearity ratio of the analog output terminal of the current sensor. The current value is used to determine whether the module's current consumption is normal, and the rotation angle value is used to determine whether the multi-turn module function is normal.

[0032] Analog quantity proportional reduction unit 1 and analog quantity proportional reduction unit 2 are independently designed and adopt the same structure, such as... Figure 5 As shown: The working principle of the analog quantity proportional reduction unit is as follows: ,in and , This represents the equivalent resistance of resistors A and B connected in parallel.

[0033] IV. Motor Drive Execution Circuit The motor drive section, serving as the system's motion execution module, receives control signals from the actuator interface. Internally, it employs a combined topology of bottom-side power switches and high-side relays, as well as bottom-side relays, to achieve power logic switching and power amplification. Ultimately, it connects to an external motor via the motor interface. This section is responsible for driving the motor to perform forward and reverse rotation, as well as acceleration and deceleration, thereby driving the gears and spindle within the system to complete the intended rotational motion.

[0034] The motor drive section employs a combined topology of bottom-side power switching transistors, high-side relays, and bottom-side relays to achieve forward and reverse rotation and acceleration / deceleration control of the motor. This design is based on the requirement that the multi-turn accuracy of this multi-turn module reaches ±0.01°, necessitating extremely high motion control precision and stability of the drive mechanism during testing. The combined topology enables rapid and smooth current switching during motor commutation, preventing test data distortion caused by drive jitter.

[0035] The circuit structure block diagram of the motor drive execution circuit is as follows: Figure 6 As shown.

[0036] The innovation of the motor drive execution circuit lies in the combined topology of the motor drive: Ordinary H-bridge drive circuits experience commutation shocks when the motor frequently reverses direction, affecting test accuracy.

[0037] This invention employs a combined topology of bottom-side power switching transistors, high-side relays, and bottom-side relays to drive a motor. This structure achieves smooth commutation during motor switching by combining the mechanical isolation of the relays with the rapid response of the power switching transistors, thus avoiding the interference of current spikes generated during commutation in traditional full-bridge drive circuits on test accuracy.

[0038] The specific working process of the motor drive execution circuit is as follows: The motor drive execution module receives three types of control signals from the MCU main control circuit via the actuator interface: CTL_DIR_H (responsible for driving the high-side motor to change phase), CTL_DIR_L (responsible for driving the low-side motor to change phase), and CTL_F (responsible for PWM duty cycle and speed adjustment). It completes motor motion control by relying on the composite topology of the bottom power switch combined with the high-side relay and the bottom relay.

[0039] During forward drive, the main controller first outputs a level to make the high-side relay contact close and the bottom-side relay remain open, locking the forward power supply path. Then, the bottom-side power switch is turned on to connect the negative circuit. The current flows from the positive terminal of the power supply, through the high-side relay, the motor winding, and the bottom-side power switch to ground, causing the motor to run in the forward direction. The direction contact of the speed regulation circuit maintains its original state. By changing the duty cycle of the PWM signal of the bottom-side power switch, the average power supply voltage of the motor is adjusted, thereby achieving smooth acceleration and deceleration in the forward operation.

[0040] Before reversing, the main controller first turns off the bottom power switch to cut off the main power supply circuit, leaving a short buffer window to allow the motor to coast by inertia, so that the relay can complete the path switching under no-load current conditions: disconnecting the high-side relay and energizing the bottom-side relay to complete the power supply path reversal. After the power switch is turned on again, the winding current reverses, and the motor achieves reverse rotation. Reverse speed regulation also relies on the PWM duty cycle to complete the speed regulation.

[0041] This topology leverages the advantages of relays in mechanical and electrical isolation and low current loss to avoid circulating current interference. It relies on the millisecond-level switching capability of semiconductor power switches to achieve delicate speed regulation and pre-power-off noise reduction, solving the defects of conventional H-bridge drives, such as strong commutation impact and spindle jitter causing distortion of encoder ±0.01° high-precision sampling data.

Claims

1. A mechanical multi-turn module debugging and testing system, characterized in that, The system includes: a power supply section, an MCU main control circuit, an interface and testing circuit, and a motor drive execution circuit; The power supply section provides power to the multi-turn module, interface and test circuits, and motor drive execution circuit. The MCU main control circuit is used for test control and for communicating with the interface, test circuit, and motor drive execution circuit. The interface and test circuit are connected to the multi-turn module under test and communicate with the MCU main control circuit. They are used to sample, condition and detect the status of the analog signal of the multi-turn module, and to realize the on / off control of the signal or power supply. The motor drive execution circuit receives signals from the MCU main control circuit and is used to control the motion of the external motor.

2. The mechanical multi-turn module debugging and testing system according to claim 1, characterized in that, The power supply section includes three power supply paths: DC-DC0, DC-DC1, and LDO. The DC-DC0 power supply path is responsible for powering the multi-turn module. The power module is configured to provide dual 12V and 5V power to the multi-turn module via the DC-DC0 power supply path; the DC-DC1 power supply path is responsible for powering the interface and test circuits and the motor drive execution circuit; the LDO power supply path is responsible for powering the MCU main control circuit.

3. The mechanical multi-turn module debugging and testing system according to claim 2, characterized in that, The MCU main control circuit uses the APM32F103TBU7 microcontroller as the core control unit. It receives the crystal oscillator clock signal and reset signal, and connects to analog power supply and digital power supply. It also has pins connected to the debugging interface, the test interface, and the actuator interface.

4. The mechanical multi-turn module debugging and testing system according to claim 3, characterized in that, Pins connected to the debugging interface: Pin outputs an SWD clock signal to provide a synchronization clock for debugging communication; Pin bidirectionally transmits and receives SWD data signals to enable firmware burning, online debugging, and reading and calibration of device operating parameters; Pins connected to the test terminal interface: Pin outputs 12V / 5V power supply relay enable control level; Pin inputs two analog voltages of the corner after being conditioned by two stages of analog signal reduction units in the interface and test circuit; Pin bidirectionally transmits and receives TTL serial port signals to complete command issuance and test sampling data upload; Pins that connect to the actuator interface: The pins output motor direction level, start / stop control level and PWM speed regulation waveform to control motor commutation, start / stop and speed regulation, and drive the spindle to rotate to simulate the actual working conditions of the multi-turn module.

5. The mechanical multi-turn module debugging and testing system according to claim 4, characterized in that, The interface and test circuit internally includes analog quantity proportional reduction unit 1, analog quantity proportional reduction unit 2, relay 1, relay 2, current sensor 1, and current sensor 2. Analog quantity proportional reduction unit 1 and analog quantity proportional reduction unit 2 form a two-stage analog signal conditioning link to independently acquire the rotation angle analog voltage signal output by the multi-turn module. Current sensor 1 and current sensor 2 are connected in series with relay 1 and relay 2 respectively to detect the operating current of the multi-turn module under 12V and 5V power supply.

6. The mechanical multi-turn module debugging and testing system according to claim 5, characterized in that, Analog signal proportional reduction unit 1: The original analog voltage with a high amplitude output from the multi-turn module first enters the analog signal proportional reduction unit 1 to complete the initial proportional attenuation, reducing the ultra-high amplitude signal to the safe input range of the operational amplifier; Analog signal proportional reduction unit 2: The voltage signal reduced by analog signal proportional reduction unit 1 is input to analog signal proportional reduction unit 2, and the voltage is scaled twice proportionally to match the signal amplitude to the optimal linear sampling range of the APM32F103TBU7 microcontroller ADC, eliminating the sampling accuracy loss caused by signal amplitude mismatch; the conditioned standard analog voltage is sent to the MCU main control circuit.

7. The mechanical multi-turn module debugging and testing system according to claim 6, characterized in that, 12V operating condition detection stage: The main control output high level drives relay 1 to engage, and the 12V voltage output by DC-DC0 is delivered to the multi-turn module under test through relay 1 and current sensor 1, and the module enters the 12V standard industrial power supply working state; current sensor 1 senses the load current of the 12V power supply circuit in real time, converts the current value into a corresponding analog voltage signal, and sends it to the MCU main control circuit; 5V Operating Condition Testing Phase: After completing the acquisition of 12V electrical parameters, the main controller pulls the TEST_12V_EN level low to disconnect relay 1, and then pulls the TEST_5V_EN level high to engage relay 2. The 5V voltage output from DC-DC0 powers the module under test through relay 2 and current sensor 2, and the module switches to low-power 5V operating mode. Current sensor 2 collects the real-time operating current of the 5V circuit and converts it into an analog voltage, which is then sent to the MCU main control circuit.

8. The mechanical multi-turn module debugging and testing system according to claim 7, characterized in that, The motor drive execution circuit uses a combination topology of bottom-side power switching transistors, high-side relays, and bottom-side relays to drive the motor. The specific working process is as follows: During forward drive, the MCU main control circuit first outputs a level to make the high-side relay contact close while the bottom-side relay remains open, locking the forward power supply path. Then, the bottom-side power switch is turned on to connect the negative circuit. The current flows from the positive power supply, through the high-side relay, the motor winding, and the bottom-side power switch to ground, causing the motor to run in the forward direction. The direction contact of the speed control circuit maintains its original state. By changing the duty cycle of the PWM signal of the bottom-side power switch, the average power supply voltage of the motor is adjusted, thereby achieving smooth acceleration and deceleration in the forward operation. Before reversing, the MCU main control circuit first turns off the bottom power switch to cut off the main power supply circuit, leaving a short buffer window to allow the motor to coast by inertia, so that the relay can complete the path switching under no load current conditions: disconnecting the high-side relay and energizing the bottom-side relay to complete the power supply path reversal. After the power switch is turned on again, the winding current reverses, and the motor achieves reverse rotation. Reverse speed regulation also relies on the PWM duty cycle to complete the speed regulation.

Citation Information

Patent Citations

  • Universal hardware test system

    CN104280674A

  • Encoder debugging equipment

    CN218349540U

  • High-precision mechanical encoder multi-circle module

    CN223485201U