Multi-motor synchronous operation method and device
By monitoring and adjusting the Hall value of the motor, the operation inconsistent problem in the synchronization control of multi-motor systems is solved, synchronous operation between motors is achieved, structural distortion and damage are avoided, and the stability and versatility of the device are ensured.
Patent Information
- Application Number
- CN202411212812.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-11-26
AI Technical Summary
There is a problem of inconsistent operation in the synchronous control of multi-motor systems, resulting in structural distortion and unnecessary damage.
By monitoring and recording the Hall values of each motor, calculate the absolute value of the difference between the two motors, obtain the set of motors to be adjusted, and adjust its Hall values to the target Hall values to achieve synchronous operation between motors.
It effectively avoids device damage caused by the operation of multi-motors due to the abnormal synchronization, and ensures the stability and versatility of the mechanical device.
Smart Images

Figure CN119030372A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of motor control processing, and in particular to a method and device for synchronous operation of multiple motors. Background Art
[0002] At present, the synchronous control method of multi-motor system has attracted more and more attention, which can make the mechanical device operate more stably and multi-directionally.
[0003] For example, in order to enrich the user's visual experience in the vehicle, there are devices such as in-vehicle flip screens, automated car ceiling curtains, and movable in-vehicle central control screens. In order to achieve the stability and multi-directionality of the above-mentioned equipment, multiple motors are often used to drive. Taking the dual-motor flip screen as an example, if the motors at both ends of the screen shaft stop and flip each time, the difference in the Hall value between the two motors accumulates and increases, then during multiple switching operations, the structure will be distorted and deformed, causing damage to the corresponding device and causing unnecessary losses.
[0004] Therefore, how to make multiple motors run synchronously becomes an urgent problem to be solved. Summary of the invention
[0005] In view of this, an embodiment of the present application provides a method and device for synchronous operation of multiple motors. The embodiment of the present application can achieve synchronous operation of multiple motors by adjusting the Hall value of the motor.
[0006] In a first aspect, an embodiment of the present application provides a method for synchronous operation of multiple motors, comprising:
[0007] For each motor in the multi-motor, monitor and record the Hall value corresponding to each motor; the Hall value represents the number of position changes of the motor rotor corresponding to each motor;
[0008] Performing difference processing on the Hall values between any two motors in the multiple motors to obtain the absolute value of the difference between the Hall values between the two motors;
[0009] Based on the absolute value of the difference of the Hall values between the two motors, a first set of motors to be adjusted is obtained; the first set of motors to be adjusted includes multiple first motors to be adjusted; the first motor to be adjusted is the first motor in the target two-by-two motors; the target two-by-two motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target two-by-two motors include the first motor and the second motor, and the Hall value of the first motor is less than the Hall value of the second motor;
[0010] Determining a maximum Hall value from the Hall values corresponding to each motor in the multiple motors to generate a target Hall value;
[0011] The Hall value corresponding to each motor in the first set of motors to be adjusted is adjusted to the target Hall value.
[0012] As an optional implementation of the embodiment of the present application, the step of adjusting the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value includes:
[0013] According to each motor in the first set of motors to be adjusted, the Hall value corresponding to the motor is adjusted to the target Hall value by adjusting the starting current corresponding to the motor.
[0014] As an optional implementation of the embodiment of the present application, the step of obtaining a first set of motors to be adjusted based on the absolute value of the difference between the Hall values of the two motors comprises:
[0015] Based on the absolute value of the difference of the Hall values between the two motors, determining the target two motors whose absolute value of the difference is greater than or equal to the preset threshold;
[0016] Determine the first motor in the target pairwise motors, and generate the first set of motors to be adjusted.
[0017] As an optional implementation of the embodiment of the present application, the monitoring and recording of the Hall value corresponding to each motor in the multi-motor includes:
[0018] For each motor in the multi-motor, the Hall value corresponding to each motor is obtained and recorded through the Hall sensor corresponding to each motor.
[0019] As an optional implementation of the embodiment of the present application, before performing difference processing on the Hall values between any two motors in the multiple motors to obtain the absolute value of the difference between the Hall values between the two motors, the method further includes:
[0020] Monitoring the output current of each motor in the multi-motor;
[0021] Determining whether the output currents corresponding to the motors are the same;
[0022] If not, it is determined that each of the plurality of motors is not operating synchronously, and an adjustment instruction is generated;
[0023] In response to the adjustment instruction, a maximum Hall value is determined from the Hall values corresponding to the respective motors in the multiple motors to generate a target Hall value.
[0024] As an optional implementation of the embodiment of the present application, after determining whether the output currents corresponding to the motors are the same, the method further includes:
[0025] If yes, after the synchronous operation of the multiple motors is completed, the Hall value corresponding to each motor in the multiple motors is obtained;
[0026] Based on the Hall values corresponding to each motor in the multiple motors, a second set of motors to be adjusted is obtained; the second set of motors to be adjusted includes multiple second motors to be adjusted; the second motor to be adjusted is the first motor in the target two-by-two motors; the target two-by-two motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target two-by-two motors include the first motor and the second motor, and the Hall value of the first motor is less than the Hall value of the second motor;
[0027] Determining a maximum Hall value from the Hall values corresponding to each motor in the multiple motors to generate a target Hall value;
[0028] When the multiple motors are started next time, the Hall value corresponding to each motor in the second set of motors to be adjusted is adjusted to the target Hall value.
[0029] As an optional implementation of the embodiment of the present application, after adjusting the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value, the method further includes:
[0030] The Hall value corresponding to each motor in the multi-motor is cleared.
[0031] In a second aspect, an embodiment of the present application provides a multi-motor synchronous operation device, comprising:
[0032] A monitoring unit, for monitoring and recording a Hall value corresponding to each motor in the multi-motor; the Hall value indicates the number of position changes of the motor rotor corresponding to each motor;
[0033] A processing unit, used for performing difference processing on the Hall values between any two motors in the multiple motors to obtain the absolute value of the difference between the Hall values between the two motors;
[0034] An acquisition unit, configured to acquire a first set of motors to be adjusted based on the absolute value of the difference of the Hall values between the two motors; the first set of motors to be adjusted includes a plurality of motors to be adjusted; the first motor to be adjusted is the first motor in the target two-by-two motors; the target two-by-two motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target two-by-two motors include the first motor and the second motor, and the Hall value of the first motor is less than the Hall value of the second motor;
[0035] A determination unit, configured to determine a maximum Hall value from the Hall values corresponding to the respective motors in the multiple motors to generate a target Hall value;
[0036] An adjustment unit is used to adjust the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value.
[0037] As an optional implementation of the embodiment of the present application, the adjustment unit is specifically used to adjust the Hall value corresponding to the motor to the target Hall value by adjusting the starting current corresponding to the motor according to each motor in the first set of motors to be adjusted.
[0038] As an optional implementation of the embodiment of the present application, the acquisition unit is specifically used to determine the target pairwise motors whose absolute value of the difference in Hall values between the pairwise motors is greater than or equal to the preset threshold based on the absolute value of the difference in Hall values between the pairwise motors; determine the first motor among the target pairwise motors, and generate the first set of motors to be adjusted.
[0039] As an optional implementation of the embodiment of the present application, the monitoring unit is specifically used to obtain and record the Hall value corresponding to each motor in the multiple motors through the Hall sensor corresponding to each motor.
[0040] As an optional implementation of the embodiment of the present application, the acquisition unit is specifically used to monitor the output current corresponding to each motor in the multi-motor; determine whether the output current corresponding to each motor is the same; if not, determine that the motors in the multi-motor are not running synchronously, and generate an adjustment instruction; in response to the adjustment instruction, determine the maximum Hall value from the Hall values corresponding to each motor in the multi-motor to generate a target Hall value.
[0041] As an optional implementation of the embodiment of the present application, the determination unit is also used to, if so, obtain the Hall value corresponding to each motor in the multi-motor after the synchronous operation of the multi-motor is completed; based on the Hall value corresponding to each motor in the multi-motor, obtain a second set of motors to be adjusted; the second set of motors to be adjusted includes multiple second motors to be adjusted; the second motor to be adjusted is the first motor in the target two-by-two motors; the target two-by-two motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target two-by-two motors include the first motor and the second motor, and the Hall value of the first motor is less than the Hall value of the second motor; determine the maximum Hall value from the Hall values corresponding to each motor in the multi-motor to generate a target Hall value; when the multi-motor is started next time, adjust the Hall value corresponding to each motor in the second set of motors to be adjusted to the target Hall value.
[0042] As an optional implementation of the embodiment of the present application, the adjustment unit is also used to clear the Hall value corresponding to each motor in the multi-motor.
[0043] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the multi-motor synchronous operation method described in any of the above embodiments when executing the computer program.
[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computing device, the computing device implements the multi-motor synchronous operation method described in any of the above embodiments.
[0045] The multi-motor synchronous operation method provided in the embodiment of the present application is specifically as follows: for each motor in the multi-motor, monitor and record the Hall value corresponding to each motor; the Hall value represents the number of position changes of the motor rotor corresponding to each motor; perform difference processing on the Hall values between any two motors in the multi-motor to obtain the absolute value of the difference of the Hall values between the two motors; based on the absolute value of the difference of the Hall values between the two motors, obtain a first set of motors to be adjusted; the first set of motors to be adjusted includes multiple first motors to be adjusted; the first motor to be adjusted is the first motor in the target two-two motors; the target two-two motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target two-two motors include the first motor and the second motor, and the Hall value of the first motor is less than the Hall value of the second motor; determine the maximum Hall value from the Hall values corresponding to each motor in the multi-motor to generate a target Hall value; adjust the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value. The embodiment of the present application obtains the Hall value corresponding to each motor in the multi-motor, and then obtains the absolute value of the difference in the Hall values between the two motors, so as to measure whether the current multiple motors are synchronized by the absolute value of the difference, and then determine the motor set that needs to be adjusted, that is, the first motor set to be adjusted, and then adjust the Hall value of the motor in the first motor set to be adjusted to the target Hall value, so that the absolute value of the difference in the Hall value between the two motors in the multi-motor is less than the preset threshold value, and then synchronize the operation of the multiple motors by adjusting the Hall value of the motor. Therefore, the embodiment of the present application can achieve synchronous operation of multiple motors by adjusting the Hall value of the motor, thereby avoiding the problem of asynchronous operation of multiple motors and damage to the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0048] Figure 1 One of the step flow charts of the multi-motor synchronous operation method provided in an embodiment of the present application;
[0049] Figure 2 The second step flow chart of the multi-motor synchronous operation method provided in the embodiment of the present application;
[0050] Figure 3 The third step flow chart of the multi-motor synchronous operation method provided in the embodiment of the present application;
[0051] Figure 4 A schematic diagram of the structure of a multi-motor synchronous operation device provided in an embodiment of the present application;
[0052] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0054] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0055] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In addition, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more.
[0056] It should be noted that, in this article, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0057] The present application provides a method for synchronous operation of multiple motors. Figure 1 As shown, the multi-motor synchronous operation method includes the following steps S101-S103:
[0058] S101. For each motor in the multi-motor, monitor and record the Hall value corresponding to each motor.
[0059] The Hall value indicates the number of position changes of the motor rotors corresponding to the motors.
[0060] The multi-motor synchronous operation method provided in the embodiment of the present application can be applied to a variety of scenarios, so that the operation of the equipment and devices controlled by the multi-motor has multi-directionality and the operation state is more stable. For example, in the scenario of multi-motor synchronous operation, two motors can be synchronously operated to control the flipping of the display screen, so that the user can view the display screen from multiple angles.
[0061] In the implementation of the present application, a scenario in which multiple motors operate synchronously to control the flipping of a display screen is taken as an example to illustrate the multiple motor synchronous operation method of an embodiment of the present application. Specifically, in order to enable the display screen to be flipped, a corresponding power device needs to be configured. The power device may include two motors to control the flipping of the display screen through the synchronous operation of the dual motors. Therefore, in order to avoid the problem of distortion and damage of the display screen structure due to the failure of the motors to synchronize during the flipping process of the display screen, the multiple motors need to be synchronized as much as possible during operation.
[0062] The embodiment of the present application monitors the Hall value corresponding to each motor when multiple motors are running synchronously, so as to realize subsequent motor synchronization through the Hall value of each motor; specifically, the Hall value represents the number of position changes of the motor rotor corresponding to each motor. For example, when the three-phase (3 sets of coils) motor rotates, each time a pair of magnetic poles is rotated, 6 specific different state values are generated to characterize the position change of the motor rotor. When the motor has 2 pairs of poles, 12 different state values are output for each rotation to characterize the position change of the motor rotor, that is, the Hall value for each rotation is 12; when the motor has 6 pairs of poles, 36 different state values are output for each rotation to characterize the position change of the motor rotor, that is, the Hall value for each rotation is 36.
[0063] S102, performing difference processing on the Hall values between any two motors in the multiple motors to obtain the absolute value of the difference between the Hall values between the two motors.
[0064] In some embodiments, after the Hall values corresponding to each motor are obtained based on the above step S101, the Hall values between each two motors in the multi-motor can be subtracted; specifically, when the dual-motor control display screen is flipped, the Hall values corresponding to the two motors can be monitored and recorded. At a certain moment, the Hall value of motor A is 20, and the Hall value of motor B is 80; then the Hall values of motor A and motor B can be subtracted to obtain the difference in the Hall values between motor A and motor B, and the absolute value of the difference in the Hall values can be taken to be 60.
[0065] It should be noted that this application does not specifically limit the number of clicks when multiple motors are running. When the number of motors is greater than or equal to 2, for example, when the number of motors is 3, it is necessary to use the corresponding Hall values between each of the three motors to perform three difference processings, and so on. This application will not go into details about other numbers of motors.
[0066] S103: Acquire a first set of motors to be adjusted based on the absolute values of the differences in the Hall values between the two motors.
[0067] Among them, the first set of motors to be adjusted includes multiple first motors to be adjusted; the first motor to be adjusted is the first motor in the target pairwise motors; the target pairwise motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target pairwise motors include the first motor and the second motor, and the Hall value of the first motor is smaller than the Hall value of the second motor.
[0068] In some embodiments, combined with the example of dual-motor control of display screen flipping in step S102, when the absolute value of the difference in Hall values between motor A and motor B is 60, it is necessary to further compare the absolute value of the difference of 60 with the preset threshold value. Specifically, the preset threshold value can be set to 50. Then, by comparison, it can be obtained that the absolute value of the difference in Hall values between motor A and motor B is greater than the preset threshold value. Then, by comparing the Hall values corresponding to motor A and motor B respectively, motor A is determined to be the first motor and motor B is the second motor, that is, the first motor, i.e., motor A, is added to the first set of motors to be adjusted. Since the embodiment of the present application is a scenario of dual motor synchronous operation, the first set to be adjusted only includes one first motor, i.e., motor A.
[0069] S104, determining a maximum Hall value from the Hall values corresponding to the respective motors in the multiple motors to generate a target Hall value.
[0070] In the embodiment of the present application, after the set of motors to be adjusted is obtained, the target Hall value needs to be determined so as to adjust the Hall value of each motor in the set of motors to be adjusted to the target Hall value.
[0071] Specifically, the target Hall value is the largest one among the Hall values corresponding to the various motors in the multiple motors, and then the Hall value of each motor in the set of motors to be adjusted is adjusted to the target Hall value.
[0072] S105 , adjusting the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value.
[0073] Exemplarily, in combination with the embodiment of the above-mentioned step S103, the Hall value of motor A is 20, and the Hall value of motor B is 80. Since the absolute value of the difference in the Hall values between motor A and motor B is greater than the preset threshold, motor A needs to be used as the first motor to be adjusted, and its Hall value is adjusted to 80, which is consistent with motor B, so that the running cycle process of motor A and motor B is consistent, so that motor A and motor B can keep running synchronously when controlling the flipping of the display screen.
[0074] In some embodiments, the Hall value corresponding to the motor can be adjusted by adjusting the starting current corresponding to the motor. Therefore, the specific implementation of the above step S105 in the embodiment of the present application can refer to the following steps:
[0075] According to each motor in the first set of motors to be adjusted, the Hall value corresponding to the motor is adjusted to the target Hall value by adjusting the starting current corresponding to the motor.
[0076] The multi-motor synchronous operation method provided in the embodiment of the present application is specifically as follows: for each motor in the multi-motor, monitor and record the Hall value corresponding to each motor; perform difference processing on the Hall value between any two motors in the multi-motor to obtain the absolute value of the difference of the Hall value between the two motors; based on the absolute value of the difference of the Hall value between the two motors, obtain a first set of motors to be adjusted; the first set of motors to be adjusted includes multiple first motors to be adjusted; the first motor to be adjusted is the first motor in the target two-two motors; the target two-two motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target two-two motors include the first motor and the second motor, and the Hall value of the first motor is less than the Hall value of the second motor; determine the maximum Hall value from the Hall values corresponding to each motor in the multi-motor to generate a target Hall value; adjust the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value. The embodiment of the present application obtains the Hall value corresponding to each motor in the multi-motor, and then obtains the absolute value of the difference in the Hall values between the two motors, so as to measure whether the current multiple motors are synchronized by the absolute value of the difference, and then determine the motor set that needs to be adjusted, that is, the first motor set to be adjusted, and then adjust the Hall value of the motor in the first motor set to be adjusted to the target Hall value, so that the absolute value of the difference in the Hall value between the two motors in the multi-motor is less than the preset threshold value, and then synchronize the operation of the multiple motors by adjusting the Hall value of the motor. Therefore, the embodiment of the present application can achieve synchronous operation of multiple motors by adjusting the Hall value of the motor, thereby avoiding the problem of asynchronous operation of multiple motors and damage to the device.
[0077] As an extension and refinement of the above embodiment, the present application further provides another multi-motor synchronous operation method, which specifically includes the following steps S201 to S206:
[0078] S201. For each motor in the multi-motor, obtain and record the Hall value corresponding to each motor through the Hall sensor corresponding to each motor.
[0079] In some embodiments, the Hall value can be obtained by monitoring the signal output by the Hall sensor corresponding to the motor; specifically, the Hall sensor is a magnetic field sensor made according to the Hall effect. When the motor rotor rotates, the magnetic field around it will change. The Hall sensor is placed near the motor and can sense the change in the magnetic field and convert it into an electrical signal output. By analyzing these electrical signals, the position of the motor rotor can be determined, that is, the number of position changes of the motor rotor corresponding to each motor can be obtained. For example, when a three-phase (3 sets of coils) motor rotates, each time a pair of magnetic poles are rotated, 6 specific different state values will be generated to represent the position change of the motor rotor. When the motor has 2 pairs of poles, 12 different state values will be output for each rotation to represent the position change of the motor rotor, that is, the Hall value for each rotation is 12; when the motor has 6 pairs of poles, 36 different state values will be output for each rotation to represent the position change of the motor rotor, that is, the Hall value for each rotation is 36.
[0080] S202, performing difference processing on the Hall values between any two motors in the multiple motors to obtain the absolute value of the difference between the Hall values between the two motors.
[0081] In the embodiment of the present application, the execution of the above step S202 needs to be performed under corresponding conditions. For details, please refer to Figure 3 As shown, the steps S2021-S2024 are specifically included:
[0082] S2021. Monitor the output current corresponding to each motor in the multiple motors.
[0083] In some embodiments, during the synchronous operation of multiple motors, it is necessary to monitor the output current of each motor in the multiple motors at all times. For example, in a scenario where multiple motors synchronously control the flipping of a display screen, the output current of each motor is used to measure whether the current operating status of each motor is synchronized. Usually, when multiple motors are in a synchronous operating state, the output currents are often the same. This is because when driving the display screen to flip to a certain angle, the starting current, speed and other parameters of the dual motors need to be consistent so that the dual motors can run synchronously. Then, in an ideal synchronous state, when the parameter conditions and loads of the dual motors are consistent, their output currents should also be consistent.
[0084] S2022. Determine whether the output currents corresponding to the motors are the same.
[0085] S2023: If not, it is determined that the motors in the multi-motor are not operating synchronously, and an adjustment instruction is generated.
[0086] S2024. In response to the adjustment instruction, perform difference processing on the Hall values between any two motors in the multiple motors to obtain the absolute value of the difference between the Hall values between the two motors.
[0087] For example, in a scenario where multiple motors synchronously control the flipping of a display screen, if the output currents corresponding to the dual motors are different, it is possible that the dual motors encounter external resistance when driving the display screen to flip, or are stuck by foreign objects, causing differences in the loads faced by each motor, resulting in differences in the output currents, and thus leading to the conclusion that the multiple motors are not running synchronously, and the adjustment instruction is generated accordingly, and the motor that needs to be adjusted is further obtained through the absolute value of the difference in the Hall values between the two motors, and the motor is adjusted from the perspective of the Hall value of the motor.
[0088] S203: Based on the absolute value of the difference of the Hall values between the two motors, determine the target two motors whose absolute value of the difference is greater than or equal to the preset threshold.
[0089] S204 , determining the first motor in the target pairwise motors, and generating the first set of motors to be adjusted.
[0090] S205 . Determine a maximum Hall value from the Hall values corresponding to each motor in the multiple motors to generate a target Hall value.
[0091] S206: Adjust the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value.
[0092] In an embodiment of the present application, after adjusting the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value, the method further includes: clearing the Hall value corresponding to each motor in the multiple motors.
[0093] Specifically, after the motors are synchronized, it means that the absolute value of the difference in the Hall values of the two motors is less than the preset threshold. Since the Hall value will continue to accumulate with each rotation of the motor, the historical Hall values of the motors before the current moment have no reference value. The historical Hall values can be cleared and the Hall values of each motor can be recorded from zero. When the output currents of multiple motors are inconsistent, the subsequent absolute value comparison of the difference can be performed.
[0094] As an extension and refinement of the above embodiment, after determining whether the output currents corresponding to the motors are the same in the above step S2022, the method further includes the following steps 1 to 4:
[0095] Step 1: If yes, after the synchronous operation of the multiple motors is completed, obtain the Hall value corresponding to each motor in the multiple motors.
[0096] Specifically, when the output currents corresponding to the various motors are the same, it can be temporarily determined that the current operating status of the multiple motors is synchronized. Therefore, it is also necessary to obtain the Hall values corresponding to each motor in the multiple motors after each synchronous operation of the multiple motors is completed, and then measure the moment when the synchronous operation of the multiple motors is completed to see whether the operation of the multiple motors is synchronized, so as to avoid affecting the next synchronous operation of the motors when the synchronous operation of the multiple motors is started. Therefore, it is necessary to clarify the synchronization status of the multiple motors before the next operation of the multiple motors, and then take corresponding measures to synchronize the multiple motors when the multiple motors are started next time.
[0097] In the embodiment of the present application, referring to the embodiment shown in the above steps S101 to S105, similarly, the motor that needs to be adjusted when the multi-motor is started next time can be determined based on the Hall value corresponding to each motor in the multi-motor to generate the second set of motors to be adjusted, and then when the motor is started next time, the Hall value of the motor in the second set of motors to be adjusted is adjusted to the maximum Hall value among the Hall values corresponding to each motor at the last end time, so as to adjust the Hall values corresponding to each motor to be consistent, thereby synchronizing the motors. Steps 2 to 4 can refer to the description in the embodiment shown in the above steps S101 to S105, and will not be repeated here.
[0098] Step 2: Based on the Hall value corresponding to each motor in the multiple motors, obtain a second set of motors to be adjusted.
[0099] Among them, the second set of motors to be adjusted includes multiple second motors to be adjusted; the second motor to be adjusted is the first motor in the target pairwise motors; the target pairwise motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target pairwise motors include the first motor and the second motor, and the Hall value of the first motor is smaller than the Hall value of the second motor.
[0100] Step 3: Determine a maximum Hall value from the Hall values corresponding to each motor in the multiple motors to generate a target Hall value.
[0101] Step 4: When the multiple motors are started next time, the Hall value corresponding to each motor in the second set of motors to be adjusted is adjusted to the target Hall value.
[0102] Based on the same inventive concept, as an implementation of the above method, an embodiment of the present application also provides a multi-motor synchronous operation device, which corresponds to the above method embodiment. For ease of reading, this embodiment will no longer repeat the details of the above method embodiment one by one, but it should be clear that the multi-motor synchronous operation device in this embodiment can correspond to all the contents of the above method embodiment.
[0103] The embodiment of the present application provides a multi-motor synchronous operation device, Figure 4 is a structural diagram of the multi-motor synchronous operation device, such as Figure 4 As shown, the multi-motor synchronous operation device 400 includes:
[0104] The monitoring unit 401 is used to monitor and record the Hall value corresponding to each motor in the multi-motor; the Hall value indicates the number of position changes of the motor rotor corresponding to each motor;
[0105] The processing unit 402 is used to perform difference processing on the Hall values between any two motors in the multiple motors to obtain the absolute value of the difference between the Hall values between the two motors;
[0106] The acquisition unit 403 is used to acquire a first set of motors to be adjusted based on the absolute value of the difference of the Hall values between the two motors; the first set of motors to be adjusted includes multiple motors to be adjusted; the first motor to be adjusted is the first motor in the target two-by-two motors; the target two-by-two motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target two-by-two motors include the first motor and the second motor, and the Hall value of the first motor is less than the Hall value of the second motor;
[0107] A determination unit 404, configured to determine a maximum Hall value from the Hall values corresponding to the respective motors in the multiple motors to generate a target Hall value;
[0108] The adjusting unit 405 is configured to adjust the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value.
[0109] As an optional implementation of the embodiment of the present application, the adjustment unit 405 is specifically used to adjust the Hall value corresponding to the motor to the target Hall value by adjusting the starting current corresponding to the motor according to each motor in the first set of motors to be adjusted.
[0110] As an optional implementation of the embodiment of the present application, the acquisition unit 403 is specifically used to determine the target pairwise motors whose absolute value of the difference in Hall values between the pairwise motors is greater than or equal to the preset threshold based on the absolute value of the difference in Hall values between the pairwise motors; determine the first motor among the target pairwise motors, and generate the first set of motors to be adjusted.
[0111] As an optional implementation of the embodiment of the present application, the monitoring unit 401 is specifically used to obtain and record the Hall value corresponding to each motor in the multi-motor through the Hall sensor corresponding to each motor.
[0112] As an optional implementation of the embodiment of the present application, the processing unit 402 is specifically used to monitor the output current corresponding to each motor in the multi-motor; determine whether the output current corresponding to each motor is the same; if not, determine that the motors in the multi-motor are not running synchronously, and generate an adjustment instruction; in response to the adjustment instruction, determine the maximum Hall value from the Hall values corresponding to each motor in the multi-motor to generate a target Hall value.
[0113] As an optional implementation of the embodiment of the present application, the determination unit 404 is also used to, if yes, then after the synchronous operation of the multiple motors is completed, obtain the Hall value corresponding to each motor in the multiple motors; based on the Hall value corresponding to each motor in the multiple motors, obtain a second set of motors to be adjusted; the second set of motors to be adjusted includes multiple second motors to be adjusted; the second motor to be adjusted is the first motor in the target two-by-two motors; the target two-by-two motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target two-by-two motors include the first motor and the second motor, and the Hall value of the first motor is less than the Hall value of the second motor; determine the maximum Hall value from the Hall values corresponding to each motor in the multiple motors to generate a target Hall value; when the multiple motors are started next time, adjust the Hall values corresponding to each motor in the second set of motors to be adjusted to the target Hall value.
[0114] As an optional implementation of the embodiment of the present application, the adjustment unit 405 is also used to clear the Hall value corresponding to each motor in the multi-motor.
[0115] Based on the same inventive concept, an embodiment of the present disclosure also provides an electronic device. Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as Figure 5 As shown, the electronic device provided in this embodiment includes: a memory 501 and a processor 502, wherein the memory 501 is used to store a computer program; and the processor 502 is used to execute the multi-motor synchronous operation method provided in the above embodiment when executing the computer program.
[0116] Based on the same inventive concept, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computing device implements the multi-motor synchronous operation method provided in the above embodiment.
[0117] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media that include computer-usable program code.
[0118] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0119] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0120] Computer readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for synchronous operation of multiple motors, characterized in that: include: For each motor in the multi-motor, monitor and record the Hall value corresponding to each motor; the Hall value represents the number of position changes of the motor rotor corresponding to each motor; Performing difference processing on the Hall values between any two motors in the multiple motors to obtain the absolute value of the difference between the Hall values between the two motors; Based on the absolute value of the difference of the Hall values between the two motors, a first set of motors to be adjusted is obtained; the first set of motors to be adjusted includes a plurality of first motors to be adjusted; the first motor to be adjusted is the first motor in the target two-by-two motors; the target two-by-two motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; The target two-by-two motors include the first motor and the second motor, and the Hall value of the first motor is smaller than the Hall value of the second motor; Determining a maximum Hall value from the Hall values corresponding to each motor in the multiple motors to generate a target Hall value; The Hall value corresponding to each motor in the first set of motors to be adjusted is adjusted to the target Hall value.
2. The method according to claim 1, characterized in that The step of adjusting the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value includes: According to each motor in the first set of motors to be adjusted, the Hall value corresponding to the motor is adjusted to the target Hall value by adjusting the starting current corresponding to the motor.
3. The method according to claim 1, characterized in that: The step of obtaining a first set of motors to be adjusted based on the absolute value of the difference between the Hall values of the two motors comprises: Based on the absolute value of the difference of the Hall values between the two motors, determining the target two motors whose absolute value of the difference is greater than or equal to the preset threshold; Determine the first motor in the target pairwise motors, and generate the first set of motors to be adjusted.
4. The method according to claim 1, characterized in that The method of monitoring and recording the Hall value corresponding to each motor in the multi-motor includes: For each motor in the multi-motor, the Hall value corresponding to each motor is obtained and recorded through the Hall sensor corresponding to each motor.
5. The method according to claim 1, characterized in that Before performing difference processing on the Hall values between any two motors in the multiple motors to obtain the absolute value of the difference between the Hall values between the two motors, the method further includes: Monitoring the output current corresponding to each motor in the multiple motors; Determining whether the output currents corresponding to the motors are the same; If not, it is determined that each of the plurality of motors is not operating synchronously, and an adjustment instruction is generated; In response to the adjustment instruction, the Hall values between any two motors in the multiple motors are subjected to difference processing to obtain the absolute value of the difference between the Hall values between the two motors.
6. The method according to claim 5, characterized in that After determining whether the output currents corresponding to the motors are the same, the method further includes: If yes, after the synchronous operation of the multiple motors is completed, the Hall value corresponding to each motor in the multiple motors is obtained; Based on the Hall values corresponding to each motor in the multiple motors, a second set of motors to be adjusted is obtained; the second set of motors to be adjusted includes multiple second motors to be adjusted; the second motor to be adjusted is the first motor in the target two-by-two motors; the target two-by-two motors are motors whose absolute value of the difference is greater than or equal to a preset threshold; the target two-by-two motors include the first motor and the second motor, and the Hall value of the first motor is less than the Hall value of the second motor; Determining a maximum Hall value from the Hall values corresponding to each motor in the multiple motors to generate a target Hall value; When the multiple motors are started next time, the Hall value corresponding to each motor in the second set of motors to be adjusted is adjusted to the target Hall value.
7. The method according to claim 1, characterized in that After adjusting the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value, the method further includes: The Hall value corresponding to each motor in the multi-motor is cleared.
8. A multi-motor synchronous operation device, characterized in that: include: A monitoring unit, for monitoring and recording a Hall value corresponding to each motor in the multi-motor; the Hall value indicates the number of position changes of the motor rotor corresponding to each motor; A processing unit, used for performing difference processing on the Hall values between any two motors in the multiple motors to obtain the absolute value of the difference between the Hall values between the two motors; An acquisition unit, configured to acquire a first set of motors to be adjusted based on the absolute value of the difference of the Hall values between the two motors; the first set of motors to be adjusted includes a plurality of motors to be adjusted; the first motor to be adjusted is the first motor in the target two motors; The target pairwise motors are motors whose absolute difference is greater than or equal to a preset threshold; The target two-by-two motors include the first motor and the second motor, and the Hall value of the first motor is smaller than the Hall value of the second motor; A determination unit, configured to determine a maximum Hall value from the Hall values corresponding to the respective motors in the multiple motors to generate a target Hall value; An adjustment unit is used to adjust the Hall value corresponding to each motor in the first set of motors to be adjusted to the target Hall value.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the multi-motor synchronous operation method described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the multi-motor synchronous operation method according to any one of claims 1 to 7.
