WO2019061359A1 - Method for controlling electric motor on gimbal and corresponding gimbal - Google Patents

Method for controlling electric motor on gimbal and corresponding gimbal Download PDF

Info

Publication number
WO2019061359A1
WO2019061359A1 PCT/CN2017/104610 CN2017104610W WO2019061359A1 WO 2019061359 A1 WO2019061359 A1 WO 2019061359A1 CN 2017104610 W CN2017104610 W CN 2017104610W WO 2019061359 A1 WO2019061359 A1 WO 2019061359A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor control
frequency
current
control command
motor
Prior art date
Application number
PCT/CN2017/104610
Other languages
French (fr)
Chinese (zh)
Inventor
周长兴
Original Assignee
深圳市大疆灵眸科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆灵眸科技有限公司 filed Critical 深圳市大疆灵眸科技有限公司
Priority to PCT/CN2017/104610 priority Critical patent/WO2019061359A1/en
Priority to CN201780007022.2A priority patent/CN108702121A/en
Publication of WO2019061359A1 publication Critical patent/WO2019061359A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/14Estimation or adaptation of motor parameters, e.g. rotor time constant, flux, speed, current or voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P27/00Arrangements or methods for the control of AC motors characterised by the kind of supply voltage
    • H02P27/04Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage

Definitions

  • the invention relates to the field of cloud platform technology, in particular to a method for controlling a motor executed at a cloud platform and a corresponding cloud platform.
  • the gimbal is a support table for carrying loads to keep the load stable.
  • the pan/tilt can be used to carry image devices such as cameras and cameras to achieve image recording.
  • the motor acts as the main component for the active stabilization of the gimbal. When it is stabilized, it will bring noise of the motor motion and noise of the electronic drive. If the imaging device is placed near the motor, for example, also on the pan/tilt, then the noise will be transmitted to the recording component of the imaging device in a solid-conducting manner, resulting in motor noise in the recorded audio.
  • the way to reduce motor noise is to change the device placement on the gimbal (for example, moving component positions or adding components), for example, placing the imaging device, or only its recording components, in the motion of the motor.
  • Motor noise to achieve motor noise reduction however, in the case of using a filter, if the motor's motion noise falls within the human ear's sensitive range, the filter will be reduced along with the original required recording gain, resulting in a small overall sound. But the recording effect is still not good.
  • the embodiment of the present disclosure proposes to realize motor noise reduction by changing the control mode of the motor from the viewpoint of electronically controlling the motor, without changing the existing structure of the pan/tilt.
  • a cloud platform including:
  • IMU inertial measurement unit
  • a processor configured to: obtain current camera data from the IMU at a first frequency and generate motor control commands for driving motor motion to correct current camera data of the camera relative to target attitude data The gesture is poor; and the execution of the motor control command is completed at a second frequency that is higher than the first frequency such that a difference between adjacent motor control commands is reduced.
  • the motor control command is characterized by a current amplitude
  • the difference between the adjacent motor control commands is an absolute value that represents a difference between current amplitudes of adjacent motor control commands. value.
  • the second frequency is unchanged.
  • the second frequency is variable.
  • the processor completing the execution of the motor control instruction at a second frequency comprises: the processor adjusting a current amplitude step by step at a second frequency or the like to achieve characterizing the motor control instruction The current amplitude.
  • the processor completing the execution of the motor control command at a second frequency comprises: the processor variably adjusting a current amplitude at a second frequency step to characterize the motor control The current amplitude of the command.
  • the second frequency is m times the first frequency, and m is an integer.
  • the step of adjusting the magnitude of the current at the second frequency is reduced to 1/ of the difference between the magnitude of the current characterizing the motor control command and the magnitude of the current characterizing the previous motor control command. m.
  • the magnitude of the current is proportional to the moment used to drive the motion of the motor.
  • the pan/tilt further includes: a filter disposed on a feedback branch of the current collected from the motor for filtering out noise introduced at the current feedback end.
  • the target pose data is obtained by a processor.
  • the processor includes a pan/tilt controller and a motor controller, wherein the pan/tilt controller is configured to obtain attitude data of the camera from the IMU at the first frequency and generate a motor control command And the motor controller is configured to complete execution of the motor control command at the second frequency.
  • the attitude data includes a yaw angle/pitch angle/roll angle component.
  • the pan/tilt further includes: a camera and/or a camera interface.
  • a method for controlling a motor performed at a pan/tilt comprising: obtaining a current attitude data of a camera from an IMU at a first frequency and generating a motor control command, the motor Control commands for driving motor motion to correct a difference in attitude of the camera's current attitude data relative to target attitude data; and completing execution of the motor control command at a second frequency that is higher than the first frequency, The difference between adjacent motor control commands is reduced.
  • the motor control command is characterized by a current amplitude
  • the difference between the adjacent motor control commands is an absolute value that represents a difference between current amplitudes of adjacent motor control commands.
  • the second frequency is unchanged.
  • the second frequency is variable.
  • completing the execution of the motor control command at the second frequency comprises: adjusting the current amplitude in steps of a second frequency or the like to achieve the current magnitude characterizing the motor control command.
  • completing the execution of the motor control command at the second frequency comprises variably adjusting the current amplitude at a second frequency step to achieve the current magnitude characterizing the motor control command.
  • the second frequency is m times the first frequency, and m is an integer.
  • the step of adjusting the magnitude of the current at the second frequency is reduced to 1/ of the difference between the magnitude of the current characterizing the motor control command and the magnitude of the current characterizing the previous motor control command. m.
  • the magnitude of the current is proportional to the moment used to drive the motion of the motor.
  • the method further includes filtering out noise introduced at the current feedback end by a filter disposed on a feedback branch of the current.
  • the attitude data includes a yaw angle/pitch angle/roll angle component.
  • the execution frequency (ie, the second frequency) of the motor control command for driving the motor motion is increased compared to the first frequency at which the motor control command is generated, and the second frequency is completed.
  • Execution of the motor control command that is, the second frequency at which the motor control command is executed is higher than the first frequency at which the motor control command is generated, and the current amplitude can be adjusted multiple times at an increased second frequency to achieve the characterization
  • the current amplitude of the motor control command that is, the step of adjusting the current amplitude at a second frequency to achieve the current amplitude of the motor control command is compared to the conventional scheme to generate the motor
  • the first frequency of the control command adjusts the current amplitude at a time to achieve a significant reduction in the step of characterizing the current amplitude of the motor control command, thereby effectively attenuating the magnitude of the motor noise.
  • the noise of the collected current can be effectively attenuated, thereby effectively reducing the motor noise caused by frequent adjustment of the motor controller due to current noise.
  • FIG. 1 shows an interpolated schematic diagram of a motor control command for illustrating the basic principles of the present disclosure
  • FIG. 2 illustrates a schematic flowchart of a method for controlling a motor performed at a gimbal according to an exemplary embodiment of the present disclosure
  • 3A-3D illustrate an interpolated schematic diagram of a motor control command in accordance with an exemplary embodiment of the present disclosure
  • FIG. 4 schematically shows a structural block diagram of a pan/tilt head according to an exemplary embodiment of the present disclosure.
  • Class 1 High-frequency electromagnetic noise of pulse width modulation (PWM) when the motor is driven to operate stably;
  • Class 2 Electromagnetic noise generated by PWM changes during motor motion (eg, rotation).
  • the PWM frequency can be raised outside the sensitive range of the human ear by directly increasing the driving frequency of the PWM to effectively improve the high frequency electromagnetic noise in the steady state.
  • the human ear sensitivity range is 20hz-20khz, which can increase the PWM frequency well above 20khz, such as 40khz or higher, to effectively improve high frequency electromagnetic noise in steady state.
  • the essence does not eliminate the noise, but the noise is moved to a higher frequency range, which is not perceived by the ear, and the result is that such electromagnetic noise is not heard.
  • the present disclosure is not directed to reducing the noise of the first type of motor.
  • the present disclosure is directed to reducing the noise of the second type of motor, that is, reducing electromagnetic noise generated by PWM variations in motor motion.
  • noise refers to electromagnetic noise generated by PWM variations in the present disclosure that are directed to reduced motor motion.
  • the basic principle of the present disclosure is to reduce the amplitude of the motor noise by reducing the magnitude of ⁇ I, and at the same time, to meet the stabilization requirement of the gimbal, that is, the motor control command provided to the motor at time T 0 must be I 0 .
  • the target motor control command supplied to the motor at time T 1 must be I 1 .
  • the present disclosure proposes that the execution of the motor control command is completed at the increased execution frequency by increasing the frequency of execution of the motor control command for driving the motor motion compared to the frequency at which the motor control command is generated, at T 0 motor control instruction multiple motor control instruction and the target instruction interpolation between T 1 of the control at the motor, so that a difference between the adjacent motor control instruction is reduced, thereby making the amplitude of the motor noise is reduced.
  • the difference here refers to the absolute value of the difference between the current amplitudes of the motor control command, and thus whether the current amplitude representing the target motor control command is increased compared to the previous motor control command, or It is within the scope of the present disclosure to characterize that the magnitude of the current of the target motor control command is reduced compared to the previous motor control command. For the sake of brevity, the following description will be made by taking an example in which the current amplitude representing the target motor control command is increased compared to the previous motor control command.
  • FIG. 1 there is shown an interpolated schematic diagram of a motor control command for illustrating the basic principles of the present disclosure.
  • the three-time interpolation of the motor control command is performed at times T 01 , T 02 and T 03 between T 0 and T 1 respectively, wherein the current amplitudes characterizing the corresponding motor control commands are respectively I 01 , I 02 , I 03 .
  • the cubic interpolation in this example is merely illustrative and not limiting, and in an application, the appropriate number of interpolations can be selected based on actual needs and processor processing capabilities.
  • the present disclosure is not intended to impose any further limitation on the relationship between the frequency of generation of the motor control command and the frequency of execution of the motor control command, as long as the execution frequency of the motor control command is high.
  • the generation frequency of the motor control command may be, and the execution frequency of the motor control command may be changed or constant, and the visual reflection in the example of FIG. 1 is the interval between adjacent motor control commands (for example, , T 01 -T 0 , T 02 -T 01 , T 03 -T 02 , T 1 -T 03 ) may be unequal in time axis t (ie corresponding to frequency conversion), or may be equal (ie, Corresponding to fixed frequency).
  • the present disclosure is also not intended to any further limit the difference between adjacent motor control commands, which may be equally stepped or variable in amplitude as long as all differences are present.
  • the sum of the values is equal to the sum of the original differences, or finally the magnitude of the current that characterizes the target motor control command.
  • ⁇ I ⁇ I 1 + ⁇ I 2 + ⁇ I 3 + ⁇ I 4 or finally It can be achieved by I 1 .
  • the step adjustment is performed at a frequency higher than the frequency of generation of the motor control command, and the step is adjusted at a higher frequency than the frequency at which the motor control command is generated, and is higher than the motor control command. It is within the scope of the present disclosure to convert the frequency-generating variable frequency for variable step adjustment or to perform variable step adjustment at a fixed frequency higher than the frequency at which the motor control command is generated.
  • FIG. 2 illustrates a schematic flow diagram of a method 200 for controlling a motor performed at a gimbal, in accordance with an exemplary embodiment of the present disclosure. As shown in FIG. 2, method 200 includes steps S201 and S202.
  • the head may be a first frequency f 1 of the current attitude IMU data obtained from the camera, and generates the motor control instruction (i.e., the target motor control commands).
  • the first frequency f 1 is the frequency at which the motor control command is generated.
  • the motor control command is used to drive motor motion to correct a difference in attitude of the camera's current attitude data relative to the target attitude data.
  • the motor control command can be characterized by a current amplitude (I).
  • I current amplitude
  • the IMU can be used to measure the camera's current pose data.
  • the camera may be included in the pan/tilt or may be connected to the pan/tilt as a separate peripheral through a camera interface included in the pan/tilt.
  • the attitude data measured by the IMU may include a yaw/pitch/roll component.
  • the target pose data may be preset by a user or may be obtained by a processor of the pan/tilt, for example, by a processor.
  • the target pose data may be reference pose data.
  • step S202 the head may be performed to complete the motor control command to a second frequency f 2, so that a difference between the adjacent motor control commands is reduced.
  • f 2 is the execution frequency of the motor control command for driving the motor motion.
  • f 2 >f 1 .
  • f 2 may remain constant, ie, adjacent motor control commands may be equally spaced on the time axis.
  • f 2 may be an integer multiple of f 1 .
  • step S202 may specifically include: adjusting the current amplitude in steps of a constant frequency f 2 to achieve a current amplitude indicative of the generated target motor control command.
  • the step of adjusting the current amplitude with f 2 can be reduced to represent the current amplitude of the target motor control command and characterize the previous motor control.
  • the difference in the magnitude of the commanded current is 1/m.
  • FIG. 3A A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3A. Similar to the example of FIG. 1, the example of FIG. 3A also assumes that cubic interpolation of motor control commands is performed at times T 01 , T 02 , and T 03 between T 0 and T 1 , respectively, in which the currents of the corresponding motor control commands are characterized. The amplitudes are I 01 , I 02 , I 03 , respectively .
  • the cubic interpolation in this example is merely illustrative and not limiting, and in the application, the appropriate number of interpolations can be selected based on actual needs and processor processing capabilities.
  • step S202 may specifically include variably adjusting the current amplitude at a fixed frequency f 2 step to achieve a current amplitude characterizing the generated target motor control command.
  • FIG. 3B A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3B. Similar to the examples of FIGS. 1 and 3A, the example of FIG. 3B also assumes that cubic interpolation of motor control commands is performed at times T 01 , T 02 , and T 03 between T 0 and T 1 , respectively, in which the corresponding motor control commands are characterized. The current amplitudes are I 01 , I 02 , and I 03 , respectively .
  • the cubic interpolation in this example is merely illustrative and not limiting, and in the application, the appropriate number of interpolations can be selected based on actual needs and processor processing capabilities.
  • f 2 may be variable, ie, adjacent motor control commands may be unequal intervals on the time axis.
  • step S202 may specifically include: adjusting the current amplitude in steps of frequency conversion f 2 or the like to achieve a current amplitude that characterizes the generated target motor control command.
  • FIG. 3C A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3C. Similar to the examples of FIGS. 1, 3A and 3B, the example of FIG. 3C also assumes that cubic interpolation of motor control commands is performed at times T 01 , T 02 , T 03 between T 0 and T 1 , respectively, wherein the corresponding motor is characterized The current amplitudes of the control commands are I 01 , I 02 , and I 03 , respectively .
  • the cubic interpolation in this example is merely illustrative and not limiting, and in the application, the appropriate number of interpolations can be selected based on actual needs and processor processing capabilities.
  • step S202 may specifically include variably adjusting the current amplitude in a frequency conversion f 2 step to achieve a current amplitude characterizing the generated target motor control command.
  • FIG. 3D A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3D. Similar to the examples of FIGS. 1 and 3A-3C, the example of FIG. 3D also assumes that cubic interpolation of motor control commands is performed at times T 01 , T 02 , and T 03 between T 0 and T 1 , respectively, wherein the corresponding motor is characterized The current amplitudes of the control commands are I 01 , I 02 , and I 03 , respectively .
  • the cubic interpolation in this example is merely illustrative and not limiting, and in the application, the appropriate number of interpolations can be selected based on actual needs and processor processing capabilities.
  • adjacent motor control commands are unequal intervals on the time axis, and the difference between the current amplitudes characterizing adjacent motor control commands is also unequal stride, ie, T 01 -T 0 , T 02 -T 01 , T 03 -T 02 , T 1 -T 03 are not all equal, and ⁇ I A1 , ⁇ I A2 , ⁇ I A3 , ⁇ I A4 are not all equal.
  • the present disclosure is not intended to be any qualitative limitation of the relationship between f 1 and f 2 as long as f 2 is higher than f 1 , and f 2 may be either varied or constant. Accordingly, the present disclosure is also not intended to any further limit the difference between adjacent motor control commands, which may be equally stepped or variable in amplitude as long as all differences are present. The sum of the values is equal to the sum of the original differences, or finally reaches the current amplitude characterizing the target motor control command and the absolute value of each interpolation is less than the absolute value of the original interpolation. Preferably, the amplitude is monotonically varied.
  • method 200 may further include a step (not shown): by setting A filter on the feedback branch of the current filters out the noise introduced at the current feedback. This can effectively weaken the noise of the collected current, thereby effectively reducing the motor noise caused by frequent adjustment of the motor controller due to current noise.
  • FIG. 4 schematically shows a structural block diagram of a pan/tilt head 400 according to an exemplary embodiment of the present invention.
  • FIG. 4 schematically shows a structural block diagram of a pan/tilt head 400 according to an exemplary embodiment of the present invention.
  • the pan/tilt 400 can be used to perform the method 200 described with reference to FIG.
  • the pan/tilt head 400 can include an IMU 401, a processor 402, and a motor 403.
  • the IMU 401 can be used to measure the current pose data of the camera.
  • the camera may be included in the pan/tilt or may be connected to the pan/tilt as a separate peripheral through a camera interface included in the pan/tilt.
  • the attitude data measured by the IMU 401 may include a yaw/pitch angle/roll angle component.
  • the processor 402 can be configured to: obtain the current pose data of the camera from the IMU 401 at a first frequency f 1 and generate a motor control command for driving the motor 403 to modify the current pose data of the camera The attitude difference with respect to the target attitude data; and the execution of the motor control command is completed at a second frequency f 2 , where f 2 > f 1 such that the difference between adjacent motor control commands is reduced.
  • the motor control commands are characterized by current amplitude and that the current amplitude is proportional to the torque used to drive the motor motion.
  • the target gesture data may be preset by a user or may be obtained by the processor 402, for example, by the processor 402.
  • f 2 may remain constant, ie, adjacent motor control commands may be equally spaced on the time axis.
  • f 2 may be an integer multiple of f 1 .
  • processor 402 may be further configured to adjust the current amplitude in steps of a constant frequency f 2 to achieve a current magnitude characterizing the generated target motor control command.
  • a schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3A.
  • the step of adjusting the current amplitude with f 2 can be reduced to represent the current amplitude of the target motor control command and characterize the previous motor control.
  • the difference in the magnitude of the commanded current is 1/m.
  • the processor 402 may be further configured to variably adjust the current amplitude at a fixed frequency f 2 step to achieve a current magnitude characterizing the generated target motor control command .
  • a schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3B.
  • f 2 may be variable, ie, adjacent motor control commands may be unequal intervals on the time axis.
  • the processor 402 may be further configured to: frequency f 2 and other steps to adjust the magnitude of the current to achieve the current magnitude generated by characterizing the target motor control command.
  • a schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3C.
  • processor 402 may be further configured to variably adjust the current amplitude in a frequency conversion f 2 step to achieve a current magnitude characterizing the generated target motor control command.
  • a schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3D.
  • processor 402 may be further configured to include: pan/tilt controller 4021 and motor controller 4022, as shown in dashed lines in processor 402 in FIG.
  • the pan/tilt controller 4021 may be configured to perform the following operations at f 1 : acquiring from the IMU 401 to obtain current attitude data of the camera, obtaining a posture difference of the camera by comparing with the target posture data, and generating a motor control instruction, The motor control command is used to drive the motor 403 to move to correct the attitude difference of the camera's current attitude data with respect to the target attitude data.
  • Motor controller 4022 may be configured to f 2 of the motor control instruction to complete execution.
  • f 2 may remain constant, ie, adjacent motor control commands may be equally spaced on the time axis.
  • f 2 may be an integer multiple of f 1 .
  • the motor controller 4022 can be further configured to: adjust the current amplitude at a constant frequency f 2 or the like to achieve a current magnitude indicative of the generated target motor control command.
  • a schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3A.
  • the step of adjusting the current amplitude with f 2 can be reduced to represent the current amplitude of the target motor control command and characterize the previous motor control.
  • the difference in the magnitude of the commanded current is 1/m.
  • motor controller 4022 can be further configured to variably adjust the current amplitude at a fixed frequency f 2 step to achieve a current amplitude characterizing the generated target motor control command value.
  • a schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3B.
  • f 2 may be variable, ie, adjacent motor control commands may be unequal intervals on the time axis.
  • the motor controller 4022 may be further configured to: frequency f 2 and other steps to adjust the magnitude of the current to achieve the current magnitude generated by characterizing the target motor control command.
  • a schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3C.
  • motor controller 4022 can be further configured to variably adjust the current amplitude in a frequency conversion f 2 step to achieve a current magnitude characterizing the generated target motor control command .
  • a schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3D.
  • the pan/tilt head 400 may further include: a filter (not shown) disposed on a feedback branch of the current collected from the motor for filtering noise introduced at the current feedback end, thereby being effective Reduce motor noise caused by frequent adjustments of the motor controller due to current noise.
  • the program running on the device may be a program that causes a computer to implement the functions of the embodiments of the present disclosure by controlling a central processing unit (CPU).
  • the program or information processed by the program may be temporarily stored in a volatile memory (such as a random access memory RAM), a hard disk drive (HDD), a non-volatile memory (such as a flash memory), or other memory system.
  • a volatile memory such as a random access memory RAM
  • HDD hard disk drive
  • non-volatile memory such as a flash memory
  • a program for realizing the functions of the embodiments of the present disclosure may be recorded on a computer readable recording medium.
  • the corresponding functions can be realized by causing a computer system to read programs recorded on the recording medium and execute the programs.
  • the so-called "computer system” herein may be a computer system embedded in the device, and may include an operating system or hardware (such as a peripheral device).
  • the "computer readable recording medium” may be a semiconductor recording medium, an optical recording medium, a magnetic recording medium, a recording medium of a short-term dynamic storage program, or any other recording medium readable by a computer.
  • circuitry e.g., monolithic or multi-chip integrated circuits. Designed to perform the functions described in this manual
  • the circuitry may include a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, Or any combination of the above devices.
  • a general purpose processor may be a microprocessor or any existing processor, controller, microcontroller, or state machine.
  • the above circuit may be a digital circuit or an analog circuit.
  • One or more embodiments of the present disclosure may also be implemented using these new integrated circuit technologies in the context of new integrated circuit technologies that replace existing integrated circuits due to advances in semiconductor technology.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Studio Devices (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

A method for controlling an electric motor, which method is executed on a gimbal. The method comprises: obtaining, at a first frequency and from an inertial measurement unit (IMU), current attitude data of a camera and generating an electric motor control instruction, the electric motor control instruction being used for driving an electric motor to move so as to correct the attitude difference of the current attitude data of the camera with respect to target attitude data; and completing, at a second frequency, the execution of the electric motor control instruction, the second frequency being higher than the first frequency, so that the difference between adjacent electric motor control instructions is reduced. Also provided is a corresponding gimbal.

Description

云台电机控制方法及相应的云台Yuntai motor control method and corresponding pan/tilt
版权声明Copyright Notice
本专利文件披露的内容包含受版权保护的材料。该版权为版权所有人所有。版权所有人不反对任何人复制专利与商标局的官方记录和档案中所存在的该专利文件或该专利披露。The disclosure of this patent document contains material that is subject to copyright protection. This copyright is the property of the copyright holder. The copyright owner has no objection to the reproduction of the patent document or the patent disclosure in the official records and files of the Patent and Trademark Office.
技术领域Technical field
本发明涉及云台技术领域,尤其涉及在云台处执行的用于控制电机的方法及相应的云台。The invention relates to the field of cloud platform technology, in particular to a method for controlling a motor executed at a cloud platform and a corresponding cloud platform.
背景技术Background technique
云台是用于承载负载以保持负载稳定的支撑工作台。例如,云台可以用于承载相机、摄像机等影像设备,以实现影像记录。The gimbal is a support table for carrying loads to keep the load stable. For example, the pan/tilt can be used to carry image devices such as cameras and cameras to achieve image recording.
对于主动稳定的云台,电机作为使云台主动稳定的主要部件,在增稳的同时,会带来电机运动的噪声和电子驱动的噪声。如果影像设备设置在电机附近,例如,也设置在云台上,那么这些噪声将会以固体传导的方式传入到影像设备的录音元件中,导致所记录的音频中存在电机的噪声。For the active stable pan/tilt, the motor acts as the main component for the active stabilization of the gimbal. When it is stabilized, it will bring noise of the motor motion and noise of the electronic drive. If the imaging device is placed near the motor, for example, also on the pan/tilt, then the noise will be transmitted to the recording component of the imaging device in a solid-conducting manner, resulting in motor noise in the recorded audio.
目前,降低电机噪声的方式是从改变云台上的器件布置(例如,移动元件位置或增加元件)的角度出发的,例如,将影像设备、或仅其录音元件放置在受电机运动带来的噪声影响较小的位置(如,放置在用户身上),或者为录音元件添加减震棉等,通过阻碍噪声的固体传导的方式进行降噪;或者,在录音的时候主动添加滤波器以滤除电机噪声从而实现电机降噪,然而在使用滤波器的情况下,如果电机的运动噪声落在人耳敏感的范围内,那么滤波器将会连同原始需要录音的增益一起降低,导致整体声音偏小但录音效果仍然不好。Currently, the way to reduce motor noise is to change the device placement on the gimbal (for example, moving component positions or adding components), for example, placing the imaging device, or only its recording components, in the motion of the motor. A position where the noise is less affected (for example, placed on the user), or a damping cotton is added to the recording element, and noise reduction is performed by means of solid conduction that hinders noise; or, when the recording is performed, a filter is actively added to filter out Motor noise to achieve motor noise reduction, however, in the case of using a filter, if the motor's motion noise falls within the human ear's sensitive range, the filter will be reduced along with the original required recording gain, resulting in a small overall sound. But the recording effect is still not good.
因此,更期望一种能够通过云台内部处理器的处理在不改变云台的现有器件布置的情况下更好地实现电机降噪的技术方案。Therefore, it is more desirable to have a technical solution that can better achieve motor noise reduction without changing the existing device arrangement of the pan/tilt through the processing of the pan/tilt internal processor.
发明内容 Summary of the invention
有鉴于此,本公开的实施例从对电机进行电子控制的角度出发,提出通过改变对电机的控制方式来实现电机降噪,同时无需对云台的现有结构进行改变。In view of this, the embodiment of the present disclosure proposes to realize motor noise reduction by changing the control mode of the motor from the viewpoint of electronically controlling the motor, without changing the existing structure of the pan/tilt.
根据本公开实施例的第一方面,提供了一种云台,包括:According to a first aspect of an embodiment of the present disclosure, a cloud platform is provided, including:
惯性测量单元(IMU),用于测量相机的当前姿态数据;An inertial measurement unit (IMU) for measuring the current attitude data of the camera;
电机;Motor
处理器,被配置为执行以下操作:以第一频率从IMU获得相机的当前姿态数据并生成电机控制指令,所述电机控制指令用于驱动电机运动以修正相机的当前姿态数据相对于目标姿态数据的姿态差;以及以第二频率完成所述电机控制指令的执行,所述第二频率高于所述第一频率,使得相邻的电机控制指令之间的差值减小。a processor configured to: obtain current camera data from the IMU at a first frequency and generate motor control commands for driving motor motion to correct current camera data of the camera relative to target attitude data The gesture is poor; and the execution of the motor control command is completed at a second frequency that is higher than the first frequency such that a difference between adjacent motor control commands is reduced.
在一示例性实施例中,所述电机控制指令以电流幅值进行表征,以及,所述相邻的电机控制指令之间的差值是表征相邻电机控制指令的电流幅值之差的绝对值。In an exemplary embodiment, the motor control command is characterized by a current amplitude, and the difference between the adjacent motor control commands is an absolute value that represents a difference between current amplitudes of adjacent motor control commands. value.
在一示例性实施例中,所述第二频率不变。In an exemplary embodiment, the second frequency is unchanged.
在一示例性实施例中,所述第二频率可变。In an exemplary embodiment, the second frequency is variable.
在一示例性实施例中,所述处理器以第二频率完成所述电机控制指令的执行包括:所述处理器以第二频率等步幅地调整电流幅值以达到表征所述电机控制指令的所述电流幅值。In an exemplary embodiment, the processor completing the execution of the motor control instruction at a second frequency comprises: the processor adjusting a current amplitude step by step at a second frequency or the like to achieve characterizing the motor control instruction The current amplitude.
在一示例性实施例中,所述处理器以第二频率完成所述电机控制指令的执行包括:所述处理器以第二频率步幅可变地调整电流幅值以达到表征所述电机控制指令的所述电流幅值。In an exemplary embodiment, the processor completing the execution of the motor control command at a second frequency comprises: the processor variably adjusting a current amplitude at a second frequency step to characterize the motor control The current amplitude of the command.
在一示例性实施例中,所述第二频率是所述第一频率的m倍,m为整数。In an exemplary embodiment, the second frequency is m times the first frequency, and m is an integer.
在一示例性实施例中,以第二频率调整电流幅值的步幅降低为表征所述电机控制指令的所述电流幅值与表征前一电机控制指令的电流幅值的差值的1/m。In an exemplary embodiment, the step of adjusting the magnitude of the current at the second frequency is reduced to 1/ of the difference between the magnitude of the current characterizing the motor control command and the magnitude of the current characterizing the previous motor control command. m.
在一示例性实施例中,电流幅值与用于驱动电机运动的力矩成正比。In an exemplary embodiment, the magnitude of the current is proportional to the moment used to drive the motion of the motor.
在一示例性实施例中,所述云台还包括:设置在从电机处采集的电流的反馈支路上的滤波器,用于滤除在电流反馈端引入的噪声。In an exemplary embodiment, the pan/tilt further includes: a filter disposed on a feedback branch of the current collected from the motor for filtering out noise introduced at the current feedback end.
在一示例性实施例中,所述目标姿态数据由处理器获得。 In an exemplary embodiment, the target pose data is obtained by a processor.
在一示例性实施例中,所述处理器包括云台控制器和电机控制器,其中所述云台控制器被配置为以所述第一频率从IMU获得相机的姿态数据并生成电机控制指令;以及所述电机控制器被配置为以所述第二频率完成所述电机控制指令的执行。In an exemplary embodiment, the processor includes a pan/tilt controller and a motor controller, wherein the pan/tilt controller is configured to obtain attitude data of the camera from the IMU at the first frequency and generate a motor control command And the motor controller is configured to complete execution of the motor control command at the second frequency.
在一示例性实施例中,所述姿态数据包括偏航角/俯仰角/滚转角分量。In an exemplary embodiment, the attitude data includes a yaw angle/pitch angle/roll angle component.
在一示例性实施例中,所述云台还包括:相机和/或相机接口。In an exemplary embodiment, the pan/tilt further includes: a camera and/or a camera interface.
根据本公开实施例的第二方面,提供了一种在云台处执行的用于控制电机的方法,包括:以第一频率从IMU获得相机的当前姿态数据并生成电机控制指令,所述电机控制指令用于驱动电机运动以修正相机的当前姿态数据相对于目标姿态数据的姿态差;以及以第二频率完成所述电机控制指令的执行,所述第二频率高于所述第一频率,使得相邻的电机控制指令之间的差值减小。According to a second aspect of an embodiment of the present disclosure, there is provided a method for controlling a motor performed at a pan/tilt, comprising: obtaining a current attitude data of a camera from an IMU at a first frequency and generating a motor control command, the motor Control commands for driving motor motion to correct a difference in attitude of the camera's current attitude data relative to target attitude data; and completing execution of the motor control command at a second frequency that is higher than the first frequency, The difference between adjacent motor control commands is reduced.
在一示例性实施例中,所述电机控制指令以电流幅值进行表征,以及所述相邻的电机控制指令之间的差值是表征相邻电机控制指令的电流幅值之差的绝对值。In an exemplary embodiment, the motor control command is characterized by a current amplitude, and the difference between the adjacent motor control commands is an absolute value that represents a difference between current amplitudes of adjacent motor control commands. .
在一示例性实施例中,所述第二频率不变。In an exemplary embodiment, the second frequency is unchanged.
在一示例性实施例中,所述第二频率可变。In an exemplary embodiment, the second frequency is variable.
在一示例性实施例中,以第二频率完成所述电机控制指令的执行包括:以第二频率等步幅地调整电流幅值以达到表征所述电机控制指令的所述电流幅值。In an exemplary embodiment, completing the execution of the motor control command at the second frequency comprises: adjusting the current amplitude in steps of a second frequency or the like to achieve the current magnitude characterizing the motor control command.
在一示例性实施例中,以第二频率完成所述电机控制指令的执行包括:以第二频率步幅可变地调整电流幅值以达到表征所述电机控制指令的所述电流幅值。In an exemplary embodiment, completing the execution of the motor control command at the second frequency comprises variably adjusting the current amplitude at a second frequency step to achieve the current magnitude characterizing the motor control command.
在一示例性实施例中,所述第二频率是所述第一频率的m倍,m为整数。In an exemplary embodiment, the second frequency is m times the first frequency, and m is an integer.
在一示例性实施例中,以第二频率调整电流幅值的步幅降低为表征所述电机控制指令的所述电流幅值与表征前一电机控制指令的电流幅值的差值的1/m。In an exemplary embodiment, the step of adjusting the magnitude of the current at the second frequency is reduced to 1/ of the difference between the magnitude of the current characterizing the motor control command and the magnitude of the current characterizing the previous motor control command. m.
在一示例性实施例中,电流幅值与用于驱动电机运动的力矩成正比。In an exemplary embodiment, the magnitude of the current is proportional to the moment used to drive the motion of the motor.
在一示例性实施例中,所述方法还包括:通过设置在电流的反馈支路上的滤波器,滤除在电流反馈端引入的噪声。In an exemplary embodiment, the method further includes filtering out noise introduced at the current feedback end by a filter disposed on a feedback branch of the current.
在一示例性实施例中,所述姿态数据包括偏航角/俯仰角/滚转角分量。 In an exemplary embodiment, the attitude data includes a yaw angle/pitch angle/roll angle component.
根据本公开的实施例提出的上述方案,通过相比于生成电机控制指令的第一频率提高用于驱动电机运动的电机控制指令的执行频率(即,第二频率),以第二频率完成该电机控制指令的执行,即,使执行所述电机控制指令的第二频率高于生成所述电机控制指令的第一频率,能够以提高的第二频率分多次调整电流幅值以达到表征所述电机控制指令的电流幅值,即,使以第二频率分多次调整电流幅值以达到表征所述电机控制指令的所述电流幅值的步幅相比于传统方案中仍以生成电机控制指令的第一频率一次调整电流幅值以达到表征所述电机控制指令的所述电流幅值的步幅显著减小,从而能够有效地削弱电机噪声的幅值。According to the above aspect proposed by the embodiment of the present disclosure, the execution frequency (ie, the second frequency) of the motor control command for driving the motor motion is increased compared to the first frequency at which the motor control command is generated, and the second frequency is completed. Execution of the motor control command, that is, the second frequency at which the motor control command is executed is higher than the first frequency at which the motor control command is generated, and the current amplitude can be adjusted multiple times at an increased second frequency to achieve the characterization The current amplitude of the motor control command, that is, the step of adjusting the current amplitude at a second frequency to achieve the current amplitude of the motor control command is compared to the conventional scheme to generate the motor The first frequency of the control command adjusts the current amplitude at a time to achieve a significant reduction in the step of characterizing the current amplitude of the motor control command, thereby effectively attenuating the magnitude of the motor noise.
此外,通过设置在电流的反馈支路上的滤波器滤除在电流反馈端引入的噪声,可以有效地削弱采集电流的噪声,从而有效降低电机控制器由于电流噪声而频繁调节所导致的电机噪声。In addition, by filtering the noise introduced at the current feedback end by the filter disposed on the feedback branch of the current, the noise of the collected current can be effectively attenuated, thereby effectively reducing the motor noise caused by frequent adjustment of the motor controller due to current noise.
附图说明DRAWINGS
本公开上述的和/或附加的方面和优点从下面结合附图对示例性实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present disclosure will become apparent and readily understood from
图1示出了用于说明本公开基本原理的电机控制指令的插值示意图;1 shows an interpolated schematic diagram of a motor control command for illustrating the basic principles of the present disclosure;
图2示出了根据本公开示例性实施例的在云台处执行的用于控制电机的方法的示意性流程图;FIG. 2 illustrates a schematic flowchart of a method for controlling a motor performed at a gimbal according to an exemplary embodiment of the present disclosure; FIG.
图3A-3D示出了根据本公开示例性实施例的电机控制指令的插值示意图;以及3A-3D illustrate an interpolated schematic diagram of a motor control command in accordance with an exemplary embodiment of the present disclosure;
图4示意性地示出了根据本公开示例性实施例的云台的结构框图。FIG. 4 schematically shows a structural block diagram of a pan/tilt head according to an exemplary embodiment of the present disclosure.
具体实施方式Detailed ways
下面详细描述本公开的示例性实施例,所述示例性实施例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本公开,而不能被解释为对本公开的任何限制。Exemplary embodiments of the present disclosure are described in detail below, which are illustrated in the accompanying drawings, in which the same or similar reference numerals indicate the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are merely illustrative, and are not to be construed as limiting.
通常,电机产生的噪声主要有两类: Generally, there are two main types of noise generated by motors:
第1类:电机驱动稳定运行时候脉冲宽度调制(PWM)的高频电磁噪声;以及Class 1: High-frequency electromagnetic noise of pulse width modulation (PWM) when the motor is driven to operate stably;
第2类:电机运动(例如,转动)的时候PWM变化产生的电磁噪声。Class 2: Electromagnetic noise generated by PWM changes during motor motion (eg, rotation).
针对第1类电机噪声,可以通过直接提升PWM的驱动频率,将PWM频率提高到人耳敏感范围之外,以有效地改善稳态时高频的电磁噪声。例如,人耳敏感范围是20hz-20khz,可以将PWM频率提高到远高于20khz,比如40khz甚至更高,以有效地改善稳态时高频的电磁噪声。其本质并没有消除噪声,而是让噪声挪到了更高的频率范围,让人耳并不能感知到,结果便是听不到这类电磁噪声。本公开不涉及降低所述第1类电机噪声。For the first type of motor noise, the PWM frequency can be raised outside the sensitive range of the human ear by directly increasing the driving frequency of the PWM to effectively improve the high frequency electromagnetic noise in the steady state. For example, the human ear sensitivity range is 20hz-20khz, which can increase the PWM frequency well above 20khz, such as 40khz or higher, to effectively improve high frequency electromagnetic noise in steady state. The essence does not eliminate the noise, but the noise is moved to a higher frequency range, which is not perceived by the ear, and the result is that such electromagnetic noise is not heard. The present disclosure is not directed to reducing the noise of the first type of motor.
针对第2类电机噪声,当电机被驱动时,因为电机被高频控制,因而会频繁地更改PWM的占空比,此时产生的谐波容易混入到人耳敏感范围,如果谐波幅值足够高,那么人耳会明显听到。本公开致力于降低所述第2类电机噪声,即,降低电机运动时PWM变化所产生的电磁噪声。For the second type of motor noise, when the motor is driven, because the motor is controlled by high frequency, the duty cycle of the PWM is frequently changed. The harmonics generated at this time are easily mixed into the sensitive range of the human ear, if the harmonic amplitude High enough, then the human ear will obviously hear it. The present disclosure is directed to reducing the noise of the second type of motor, that is, reducing electromagnetic noise generated by PWM variations in motor motion.
为了便于描述,除非另有指明,以下提及的电机噪声或简称噪声(在本文中,二者可以互换使用)均指本公开致力于降低的电机运动时PWM变化所产生的电磁噪声。For ease of description, the motor noise referred to below or simply referred to as noise (herein, interchangeably used herein), unless otherwise indicated, refers to electromagnetic noise generated by PWM variations in the present disclosure that are directed to reduced motor motion.
本领域技术人员应知晓,本公开致力于降低的所述电机噪声的幅值大小与通常以电流幅值(I)表征的电机控制指令存在如下关系:Those skilled in the art will appreciate that the present disclosure is directed to reducing the magnitude of the magnitude of the motor noise as follows with motor control commands typically characterized by current magnitude (I):
倘若在T0时刻生成并提供给电机的电机控制指令为I0,在T1时刻生成并提供给电机的电机控制指令为I1(称为目标电机控制指令),则:ΔI=|I1-I0|越大,电机噪声的幅值越大。If the motor control command generated and supplied to the motor at time T 0 is I 0 , and the motor control command generated at time T 1 and supplied to the motor is I 1 (referred to as the target motor control command), then: ΔI=|I 1 The larger the -I 0 |, the larger the amplitude of the motor noise.
基于此,本公开的基本原理在于:通过降低ΔI的大小来降低电机噪声的幅值,同时需要满足云台的增稳需求,即,T0时刻的提供给电机的电机控制指令必须为I0,T1时刻的提供给电机的目标电机控制指令必须为I1。因而,本公开提出,通过相比于生成电机控制指令的频率提高用于驱动电机运动的电机控制指令的执行频率,以提高的所述执行频率完成该电机控制指令的执行,在T0处的电机控制指令与T1处的目标电机控制指令之间进行电机控制指令的多次插值,从而使得相邻的电机控制指令之间的差值减小,因而使得电机噪声的幅值减小。 Based on this, the basic principle of the present disclosure is to reduce the amplitude of the motor noise by reducing the magnitude of ΔI, and at the same time, to meet the stabilization requirement of the gimbal, that is, the motor control command provided to the motor at time T 0 must be I 0 . The target motor control command supplied to the motor at time T 1 must be I 1 . Accordingly, the present disclosure proposes that the execution of the motor control command is completed at the increased execution frequency by increasing the frequency of execution of the motor control command for driving the motor motion compared to the frequency at which the motor control command is generated, at T 0 motor control instruction multiple motor control instruction and the target instruction interpolation between T 1 of the control at the motor, so that a difference between the adjacent motor control instruction is reduced, thereby making the amplitude of the motor noise is reduced.
应理解,这里的差值指的是表征电机控制指令的电流幅值之差的绝对值,因而无论是表征目标电机控制指令的电流幅值相比于前一电机控制指令增大的情况、还是表征目标电机控制指令的电流幅值相比于前一电机控制指令减小的情况均落入本公开的保护范围之内。为了简明,以下仅以表征目标电机控制指令的电流幅值相比于前一电机控制指令增大的情况为例进行说明。It should be understood that the difference here refers to the absolute value of the difference between the current amplitudes of the motor control command, and thus whether the current amplitude representing the target motor control command is increased compared to the previous motor control command, or It is within the scope of the present disclosure to characterize that the magnitude of the current of the target motor control command is reduced compared to the previous motor control command. For the sake of brevity, the following description will be made by taking an example in which the current amplitude representing the target motor control command is increased compared to the previous motor control command.
参见图1,图1示出了用于说明本公开基本原理的电机控制指令的插值示意图。在图1的示例中,假设在T0与T1之间的T01、T02、T03时刻分别进行了电机控制指令的三次插值,其中表征相应电机控制指令的电流幅值分别为I01、I02、I03。本领域技术人员应理解,在本示例中的三次插值仅是说明性的而非限制性的,在应用中,可以根据实际需求和处理器的处理能力选择适合的插值次数。Referring to Figure 1, there is shown an interpolated schematic diagram of a motor control command for illustrating the basic principles of the present disclosure. In the example of Fig. 1, it is assumed that the three-time interpolation of the motor control command is performed at times T 01 , T 02 and T 03 between T 0 and T 1 respectively, wherein the current amplitudes characterizing the corresponding motor control commands are respectively I 01 , I 02 , I 03 . Those skilled in the art will appreciate that the cubic interpolation in this example is merely illustrative and not limiting, and in an application, the appropriate number of interpolations can be selected based on actual needs and processor processing capabilities.
如图1所示,由于电机控制指令的执行频率的提高,原先从I0经过一次调整至I1的电机控制指令变为经过四次调整至I1,相应地,影响电机噪声的相邻电机控制指令之间的差值变为ΔI1=|I01-I0|,ΔI2=|I02-I01|,ΔI3=|I03-I02|,ΔI4=|I1-I03|,其中的每个差值ΔI1、ΔI2、ΔI3、ΔI4均明显小于原先的目标电机控制指令与初始电机控制指令之间的差值ΔI=|I1-I0|,因而降低了T0与T1之间的电机噪声。As shown in Figure 1, due to the increase of the execution frequency of the motor control command, the motor control command that was originally adjusted from I 0 to I 1 becomes four times adjusted to I 1 , and accordingly, the adjacent motor that affects the motor noise. The difference between the control commands becomes ΔI 1 =|I 01 -I 0 |, ΔI 2 =|I 02 -I 01 |, ΔI 3 =|I 03 -I 02 |, ΔI 4 =|I 1 -I 03 |, each of the differences ΔI 1 , ΔI 2 , ΔI 3 , ΔI 4 is significantly smaller than the difference ΔI=|I 1 -I 0 | between the original target motor control command and the initial motor control command, thus The motor noise between T 0 and T 1 is reduced.
从图1所示的示例中还可以看出,本公开并不意在对电机控制指令的生成频率与电机控制指令的执行频率之间的关系作出任何进一步的限定,只要电机控制指令的执行频率高于电机控制指令的生成频率即可,电机控制指令的执行频率可以是变化的,也可以是恒定的,在图1的示例中的直观反映便是,相邻电机控制指令之间的间隔(例如,T01-T0、T02-T01、T03-T02、T1-T03)在时间轴t上可以是不等的(即,对应变频),也可以是相等的(即,对应定频)。It can also be seen from the example shown in FIG. 1 that the present disclosure is not intended to impose any further limitation on the relationship between the frequency of generation of the motor control command and the frequency of execution of the motor control command, as long as the execution frequency of the motor control command is high. The generation frequency of the motor control command may be, and the execution frequency of the motor control command may be changed or constant, and the visual reflection in the example of FIG. 1 is the interval between adjacent motor control commands (for example, , T 01 -T 0 , T 02 -T 01 , T 03 -T 02 , T 1 -T 03 ) may be unequal in time axis t (ie corresponding to frequency conversion), or may be equal (ie, Corresponding to fixed frequency).
相应地,本公开也并不意在对相邻电机控制指令之间的差值作出任何进一步的限定,所述差值既可以是等步幅的,也可以是步幅可变的,只要所有差值之和等于原差值之和、或者说最终达到表征目标电机控制指令的电流幅值即可,结合图1的示例,即满足ΔI=ΔI1+ΔI2+ΔI3+ΔI4或者说最终达到I1即可。Accordingly, the present disclosure is also not intended to any further limit the difference between adjacent motor control commands, which may be equally stepped or variable in amplitude as long as all differences are present. The sum of the values is equal to the sum of the original differences, or finally the magnitude of the current that characterizes the target motor control command. In conjunction with the example of Figure 1, ΔI = ΔI 1 + ΔI 2 + ΔI 3 + ΔI 4 or finally It can be achieved by I 1 .
因此,无论是以高于电机控制指令的生成频率的变频进行等步幅调整、以高于电机控制指令的生成频率的定频进行等步幅调整、以高于电机控制指令的 生成频率的变频进行可变步幅地调整、还是以高于电机控制指令的生成频率的定频进行可变步幅地调整,均落入本公开的保护范围之内。Therefore, the step adjustment is performed at a frequency higher than the frequency of generation of the motor control command, and the step is adjusted at a higher frequency than the frequency at which the motor control command is generated, and is higher than the motor control command. It is within the scope of the present disclosure to convert the frequency-generating variable frequency for variable step adjustment or to perform variable step adjustment at a fixed frequency higher than the frequency at which the motor control command is generated.
在对本公开的基本原理进行了详述之后,以下将参照图2,对根据本公开示例性实施例的在云台处执行的用于控制电机的方法进行描述。After the basic principle of the present disclosure is described in detail, a method for controlling a motor performed at a gimbal according to an exemplary embodiment of the present disclosure will be described below with reference to FIG.
图2示出了根据本公开示例性实施例的在云台处执行的用于控制电机的方法200的示意性流程图。如图2所示,方法200包括步骤S201和S202。FIG. 2 illustrates a schematic flow diagram of a method 200 for controlling a motor performed at a gimbal, in accordance with an exemplary embodiment of the present disclosure. As shown in FIG. 2, method 200 includes steps S201 and S202.
在步骤S201中,云台可以以第一频率f1从IMU获得相机的当前姿态数据并生成电机控制指令(即,目标电机控制指令)。这里,第一频率f1即是生成电机控制指令的频率。In step S201, the head may be a first frequency f 1 of the current attitude IMU data obtained from the camera, and generates the motor control instruction (i.e., the target motor control commands). Here, the first frequency f 1 is the frequency at which the motor control command is generated.
所述电机控制指令用于驱动电机运动以修正相机的当前姿态数据相对于目标姿态数据的姿态差。如前所述,所述电机控制指令可以以电流幅值(I)进行表征。本领域技术人员应知晓,电流幅值与用于驱动电机运动的力矩成正比。The motor control command is used to drive motor motion to correct a difference in attitude of the camera's current attitude data relative to the target attitude data. As previously mentioned, the motor control command can be characterized by a current amplitude (I). Those skilled in the art will appreciate that the magnitude of the current is proportional to the moment used to drive the motion of the motor.
IMU可以用于测量相机的当前姿态数据。The IMU can be used to measure the camera's current pose data.
在一示例性实施例中,相机可以包括在云台中,或者可以作为独立的外设通过云台所包括的相机接口与云台连接。In an exemplary embodiment, the camera may be included in the pan/tilt or may be connected to the pan/tilt as a separate peripheral through a camera interface included in the pan/tilt.
在一示例性实施例中,IMU所测量的姿态数据可以包括偏航角(yaw)/俯仰角(pitch)/滚转角(roll)分量。In an exemplary embodiment, the attitude data measured by the IMU may include a yaw/pitch/roll component.
在一些示例性实施例中,所述目标姿态数据可以通过用户预先设定,或可以通过云台的处理器获得,例如,通过处理器生成。在一示例性实施例中,目标姿态数据可以是基准姿态数据。In some exemplary embodiments, the target pose data may be preset by a user or may be obtained by a processor of the pan/tilt, for example, by a processor. In an exemplary embodiment, the target pose data may be reference pose data.
在步骤S202中,云台可以以第二频率f2完成所述电机控制指令的执行,使得相邻的电机控制指令之间的差值减小。这里,f2即是用于驱动电机运动的电机控制指令的执行频率。如前所述,根据本公开的基本原理,f2>f1In step S202, the head may be performed to complete the motor control command to a second frequency f 2, so that a difference between the adjacent motor control commands is reduced. Here, f 2 is the execution frequency of the motor control command for driving the motor motion. As previously mentioned, according to the basic principles of the present disclosure, f 2 >f 1 .
以第二频率f2完成所述电机控制指令的执行使得在T0处的初始电机控制指令与T1处的目标电机控制指令之间进行了电机控制指令的多次插值,从而相邻的电机控制指令之间的差值减小,因而使电机噪声的幅值减小。Completing the execution of the motor control command at the second frequency f 2 such that multiple interpolation of the motor control command is performed between the initial motor control command at T 0 and the target motor control command at T 1 , such that adjacent motors The difference between the control commands is reduced, thus reducing the magnitude of the motor noise.
在一示例性实施例中,f2可以保持恒定,即,相邻的电机控制指令在时间轴上可以是等间隔的。例如,f2可以是f1的整数倍。In an exemplary embodiment, f 2 may remain constant, ie, adjacent motor control commands may be equally spaced on the time axis. For example, f 2 may be an integer multiple of f 1 .
在该示例性实施例的一种实施方式中,步骤S202可以具体包括:以定频 f2等步幅地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。In an embodiment of the exemplary embodiment, step S202 may specifically include: adjusting the current amplitude in steps of a constant frequency f 2 to achieve a current amplitude indicative of the generated target motor control command.
在该实施方式中,倘若f2为f1的m倍,其中m为整数,则以f2调整电流幅值的步幅可以降低为表征目标电机控制指令的电流幅值与表征前一电机控制指令的电流幅值的差值的1/m。In this embodiment, if f 2 is m times f 1 , where m is an integer, the step of adjusting the current amplitude with f 2 can be reduced to represent the current amplitude of the target motor control command and characterize the previous motor control. The difference in the magnitude of the commanded current is 1/m.
对应的电机控制指令的插值示意图可以参见图3A。与图1的示例类似,图3A的示例中亦假设在T0与T1之间的T01、T02、T03时刻分别进行了电机控制指令的三次插值,其中表征相应电机控制指令的电流幅值分别为I01、I02、I03。同样,本领域技术人员应理解,在本示例中的三次插值仅是说明性的而非限制性的,在应用中,可以根据实际需求和处理器的处理能力选择适合的插值次数。A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3A. Similar to the example of FIG. 1, the example of FIG. 3A also assumes that cubic interpolation of motor control commands is performed at times T 01 , T 02 , and T 03 between T 0 and T 1 , respectively, in which the currents of the corresponding motor control commands are characterized. The amplitudes are I 01 , I 02 , I 03 , respectively . Again, those skilled in the art will appreciate that the cubic interpolation in this example is merely illustrative and not limiting, and in the application, the appropriate number of interpolations can be selected based on actual needs and processor processing capabilities.
如图3A所示,相邻的电机控制指令在时间轴上是等间隔的,表征相邻的电机控制指令的电流幅值之间的差值也是等步幅的,即,T01-T0=T02-T01=T03-T02=T1-T03,对应f2=4f1,且ΔIA1=ΔIA2=ΔIA3=ΔIA4=ΔIA/4。As shown in FIG. 3A, adjacent motor control commands are equally spaced on the time axis, and the difference between the current amplitudes characterizing adjacent motor control commands is also equal step, ie, T 01 -T 0 =T 02 -T 01 =T 03 -T 02 =T 1 -T 03 , corresponding to f 2 =4f 1 , and ΔI A1 =ΔI A2 =ΔI A3 =ΔI A4 =ΔI A /4.
在该示例性实施例的另一实施方式中,步骤S202可以具体包括:以定频f2步幅可变地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。In another embodiment of the exemplary embodiment, step S202 may specifically include variably adjusting the current amplitude at a fixed frequency f 2 step to achieve a current amplitude characterizing the generated target motor control command.
对应的电机控制指令的插值示意图可以参见图3B。与图1和3A的示例类似,图3B的示例中亦假设在T0与T1之间的T01、T02、T03时刻分别进行了电机控制指令的三次插值,其中表征相应电机控制指令的电流幅值分别为I01、I02、I03。同样,本领域技术人员应理解,在本示例中的三次插值仅是说明性的而非限制性的,在应用中,可以根据实际需求和处理器的处理能力选择适合的插值次数。A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3B. Similar to the examples of FIGS. 1 and 3A, the example of FIG. 3B also assumes that cubic interpolation of motor control commands is performed at times T 01 , T 02 , and T 03 between T 0 and T 1 , respectively, in which the corresponding motor control commands are characterized. The current amplitudes are I 01 , I 02 , and I 03 , respectively . Again, those skilled in the art will appreciate that the cubic interpolation in this example is merely illustrative and not limiting, and in the application, the appropriate number of interpolations can be selected based on actual needs and processor processing capabilities.
如图3B所示,相邻的电机控制指令在时间轴上是等间隔的,而表征相邻的电机控制指令的电流幅值之间的差值可以是不等步幅的,即,T01-T0=T02-T01=T03-T02=T1-T03,对应f2=4f1,而ΔIB1、ΔIB2、ΔIB3、ΔIB4不是全部相等的。As shown in FIG. 3B, adjacent motor control commands are equally spaced on the time axis, and the difference between the current amplitudes characterizing adjacent motor control commands may be unequal stride, ie, T 01 -T 0 =T 02 -T 01 =T 03 -T 02 =T 1 -T 03 , corresponding to f 2 =4f 1 , and ΔI B1 , ΔI B2 , ΔI B3 , ΔI B4 are not all equal.
在另一示例性实施例中,f2可以是可变的,即,相邻的电机控制指令在时间轴上可以是不等间隔的。In another exemplary embodiment, f 2 may be variable, ie, adjacent motor control commands may be unequal intervals on the time axis.
在该示例性实施例的一种实施方式中,步骤S202可以具体包括:以变频f2等步幅地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。 In an embodiment of the exemplary embodiment, step S202 may specifically include: adjusting the current amplitude in steps of frequency conversion f 2 or the like to achieve a current amplitude that characterizes the generated target motor control command.
对应的电机控制指令的插值示意图可以参见图3C。与图1、3A和3B的示例类似,图3C的示例中亦假设在T0与T1之间的T01、T02、T03时刻分别进行了电机控制指令的三次插值,其中表征相应电机控制指令的电流幅值分别为I01、I02、I03。同样,本领域技术人员应理解,在本示例中的三次插值仅是说明性的而非限制性的,在应用中,可以根据实际需求和处理器的处理能力选择适合的插值次数。A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3C. Similar to the examples of FIGS. 1, 3A and 3B, the example of FIG. 3C also assumes that cubic interpolation of motor control commands is performed at times T 01 , T 02 , T 03 between T 0 and T 1 , respectively, wherein the corresponding motor is characterized The current amplitudes of the control commands are I 01 , I 02 , and I 03 , respectively . Again, those skilled in the art will appreciate that the cubic interpolation in this example is merely illustrative and not limiting, and in the application, the appropriate number of interpolations can be selected based on actual needs and processor processing capabilities.
如图3C所示,相邻的电机控制指令在时间轴上是不等间隔的,而表征相邻的电机控制指令的电流幅值之间的差值是等步幅的,即,T01-T0、T02-T01、T03-T02、T1-T03不是全部相等的,而ΔIC1=ΔIC2=ΔIC3=ΔIC4=ΔIC/4。As shown in FIG. 3C, adjacent motor control commands are unequal intervals on the time axis, and the difference between the current amplitudes characterizing adjacent motor control commands is equal to the step size, ie, T 01 - T 0 , T 02 -T 01 , T 03 -T 02 , T 1 -T 03 are not all equal, and ΔI C1 =ΔI C2 =ΔI C3 =ΔI C4 =ΔI C /4.
在该示例性实施例的另一实施方式中,步骤S202可以具体包括:以变频f2步幅可变地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。In another embodiment of the exemplary embodiment, step S202 may specifically include variably adjusting the current amplitude in a frequency conversion f 2 step to achieve a current amplitude characterizing the generated target motor control command.
对应的电机控制指令的插值示意图可以参见图3D。与图1和3A-3C的示例类似,图3D的示例中亦假设在T0与T1之间的T01、T02、T03时刻分别进行了电机控制指令的三次插值,其中表征相应电机控制指令的电流幅值分别为I01、I02、I03。同样,本领域技术人员应理解,在本示例中的三次插值仅是说明性的而非限制性的,在应用中,可以根据实际需求和处理器的处理能力选择适合的插值次数。A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3D. Similar to the examples of FIGS. 1 and 3A-3C, the example of FIG. 3D also assumes that cubic interpolation of motor control commands is performed at times T 01 , T 02 , and T 03 between T 0 and T 1 , respectively, wherein the corresponding motor is characterized The current amplitudes of the control commands are I 01 , I 02 , and I 03 , respectively . Again, those skilled in the art will appreciate that the cubic interpolation in this example is merely illustrative and not limiting, and in the application, the appropriate number of interpolations can be selected based on actual needs and processor processing capabilities.
如图3D所示,相邻的电机控制指令在时间轴上是不等间隔的,且表征相邻的电机控制指令的电流幅值之间的差值也是不等步幅的,即,T01-T0、T02-T01、T03-T02、T1-T03不是全部相等的,且ΔIA1、ΔIA2、ΔIA3、ΔIA4也不是全部相等的。As shown in FIG. 3D, adjacent motor control commands are unequal intervals on the time axis, and the difference between the current amplitudes characterizing adjacent motor control commands is also unequal stride, ie, T 01 -T 0 , T 02 -T 01 , T 03 -T 02 , T 1 -T 03 are not all equal, and ΔI A1 , ΔI A2 , ΔI A3 , ΔI A4 are not all equal.
由此可知,本公开并不意在对f1与f2之间的关系作出任何定性的限定,只要f2高于f1即可,f2既可以是变化的也可以是恒定的。相应地,本公开也并不意在对相邻电机控制指令之间的差值作出任何进一步的限定,所述差值既可以是等步幅的,也可以是步幅可变的,只要所有差值之和等于原差值之和、或者说最终达到表征目标电机控制指令的电流幅值且每次插值的绝对值小于原插值的绝对值即可。优选地,幅值是单调变化的。Thus, it is to be understood that the present disclosure is not intended to be any qualitative limitation of the relationship between f 1 and f 2 as long as f 2 is higher than f 1 , and f 2 may be either varied or constant. Accordingly, the present disclosure is also not intended to any further limit the difference between adjacent motor control commands, which may be equally stepped or variable in amplitude as long as all differences are present. The sum of the values is equal to the sum of the original differences, or finally reaches the current amplitude characterizing the target motor control command and the absolute value of each interpolation is less than the absolute value of the original interpolation. Preferably, the amplitude is monotonically varied.
在一示例性实施例中,方法200还可以包括步骤(未示出):通过设置在 电流的反馈支路上的滤波器,滤除在电流反馈端引入的噪声。这可以有效地削弱采集电流的噪声,从而有效降低电机控制器由于电流噪声而频繁调节所导致的电机噪声。In an exemplary embodiment, method 200 may further include a step (not shown): by setting A filter on the feedback branch of the current filters out the noise introduced at the current feedback. This can effectively weaken the noise of the collected current, thereby effectively reducing the motor noise caused by frequent adjustment of the motor controller due to current noise.
以下将参照图4,对根据本发明示例性实施例的云台的结构进行描述。图4示意性地示出了根据本发明示例性实施例的云台400的结构框图。为了不使本公开的主旨混淆,在此示意性结构框图中,仅示出云台中与本公开示例性实施例的相关的主要组件,而省略了云台中的其他常见组件,例如,收发机等。云台400可以用于执行参考图2描述的方法200。为了简明,在此仅对根据本公开示例性实施例的云台的示意性结构进行描述,而省略了如前参考图2描述的方法200中已经详述过的细节,具体可参照在方法200中的描述。The structure of the pan/tilt head according to an exemplary embodiment of the present invention will be described below with reference to FIG. FIG. 4 schematically shows a structural block diagram of a pan/tilt head 400 according to an exemplary embodiment of the present invention. In order to avoid obscuring the subject matter of the present disclosure, in this schematic structural block diagram, only the main components related to the exemplary embodiment of the present disclosure in the pan/tilt are shown, and other common components in the pan/tilt, such as a transceiver, etc., are omitted. . The pan/tilt 400 can be used to perform the method 200 described with reference to FIG. For the sake of brevity, only the schematic structure of the pan/tilt according to an exemplary embodiment of the present disclosure will be described herein, and the details already detailed in the method 200 as previously described with reference to FIG. 2 are omitted, and the method 200 may be specifically referred to. Description in .
如图4所示,云台400可以包括IMU 401、处理器402和电机403。As shown in FIG. 4, the pan/tilt head 400 can include an IMU 401, a processor 402, and a motor 403.
IMU 401可以用于测量相机的当前姿态数据。The IMU 401 can be used to measure the current pose data of the camera.
在一示例性实施例中,相机可以包括在云台中,或者可以作为独立的外设通过云台所包括的相机接口与云台连接。In an exemplary embodiment, the camera may be included in the pan/tilt or may be connected to the pan/tilt as a separate peripheral through a camera interface included in the pan/tilt.
在一示例性实施例中,IMU 401所测量的姿态数据可以包括偏航角/俯仰角/滚转角分量。In an exemplary embodiment, the attitude data measured by the IMU 401 may include a yaw/pitch angle/roll angle component.
处理器402可以被配置为执行以下操作:以第一频率f1从IMU 401获得相机的当前姿态数据并生成电机控制指令,所述电机控制指令用于驱动电机403运动以修正相机的当前姿态数据相对于目标姿态数据的姿态差;以及以第二频率f2完成所述电机控制指令的执行,其中f2>f1,使得相邻的电机控制指令之间的差值减小。本领域技术人员应知晓,所述电机控制指令是以电流幅值进行表征的,且电流幅值与用于驱动电机运动的力矩成正比。The processor 402 can be configured to: obtain the current pose data of the camera from the IMU 401 at a first frequency f 1 and generate a motor control command for driving the motor 403 to modify the current pose data of the camera The attitude difference with respect to the target attitude data; and the execution of the motor control command is completed at a second frequency f 2 , where f 2 > f 1 such that the difference between adjacent motor control commands is reduced. Those skilled in the art will appreciate that the motor control commands are characterized by current amplitude and that the current amplitude is proportional to the torque used to drive the motor motion.
在一些示例性实施例中,所述目标姿态数据可以通过用户预先设定,或可以通过处理器402获得,例如,通过处理器402生成。In some exemplary embodiments, the target gesture data may be preset by a user or may be obtained by the processor 402, for example, by the processor 402.
以第二频率f2完成所述电机控制指令的执行使得在T0处的初始电机控制指令与T1处的目标电机控制指令之间进行了电机控制指令的多次插值,从而相邻的电机控制指令之间的差值减小,因而使电机噪声的幅值减小。Completing the execution of the motor control command at the second frequency f 2 such that multiple interpolation of the motor control command is performed between the initial motor control command at T 0 and the target motor control command at T 1 , such that adjacent motors The difference between the control commands is reduced, thus reducing the magnitude of the motor noise.
在一示例性实施例中,f2可以保持恒定,即,相邻的电机控制指令在时间轴上可以是等间隔的。例如,f2可以是f1的整数倍。 In an exemplary embodiment, f 2 may remain constant, ie, adjacent motor control commands may be equally spaced on the time axis. For example, f 2 may be an integer multiple of f 1 .
在该示例性实施例的一种实施方式中,处理器402可以进一步被配置为:以定频f2等步幅地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。对应的电机控制指令的插值示意图可以参见图3A。In one embodiment of the exemplary embodiment, processor 402 may be further configured to adjust the current amplitude in steps of a constant frequency f 2 to achieve a current magnitude characterizing the generated target motor control command. A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3A.
在该实施方式中,倘若f2为f1的m倍,其中m为整数,则以f2调整电流幅值的步幅可以降低为表征目标电机控制指令的电流幅值与表征前一电机控制指令的电流幅值的差值的1/m。In this embodiment, if f 2 is m times f 1 , where m is an integer, the step of adjusting the current amplitude with f 2 can be reduced to represent the current amplitude of the target motor control command and characterize the previous motor control. The difference in the magnitude of the commanded current is 1/m.
在该示例性实施例的另一实施方式中,处理器402可以进一步被配置为:以定频f2步幅可变地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。对应的电机控制指令的插值示意图可以参见图3B。In another embodiment of the exemplary embodiment, the processor 402 may be further configured to variably adjust the current amplitude at a fixed frequency f 2 step to achieve a current magnitude characterizing the generated target motor control command . A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3B.
在另一示例性实施例中,f2可以是可变的,即,相邻的电机控制指令在时间轴上可以是不等间隔的。In another exemplary embodiment, f 2 may be variable, ie, adjacent motor control commands may be unequal intervals on the time axis.
在该示例性实施例的一种实施方式中,处理器402可以进一步被配置为:以变频f2等步幅地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。对应的电机控制指令的插值示意图可以参见图3C。In one embodiment of this exemplary embodiment, the processor 402 may be further configured to: frequency f 2 and other steps to adjust the magnitude of the current to achieve the current magnitude generated by characterizing the target motor control command. A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3C.
在该示例性实施例的另一实施方式中,处理器402可以进一步被配置为:以变频f2步幅可变地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。对应的电机控制指令的插值示意图可以参见图3D。In another embodiment of the exemplary embodiment, processor 402 may be further configured to variably adjust the current amplitude in a frequency conversion f 2 step to achieve a current magnitude characterizing the generated target motor control command. A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3D.
在一示例性实施例中,处理器402可以进一步被配置为包括:云台控制器4021和电机控制器4022,如图4中在处理器402中以虚线示出。In an exemplary embodiment, processor 402 may be further configured to include: pan/tilt controller 4021 and motor controller 4022, as shown in dashed lines in processor 402 in FIG.
具体地,云台控制器4021可以被配置为以f1执行以下操作:从IMU 401采集以获得相机的当前姿态数据,通过与目标姿态数据进行比较得到相机的姿态差,并生成电机控制指令,所述电机控制指令用于驱动电机403运动以修正相机的当前姿态数据相对于目标姿态数据的姿态差。电机控制器4022可以被配置为以f2完成所述电机控制指令的执行。Specifically, the pan/tilt controller 4021 may be configured to perform the following operations at f 1 : acquiring from the IMU 401 to obtain current attitude data of the camera, obtaining a posture difference of the camera by comparing with the target posture data, and generating a motor control instruction, The motor control command is used to drive the motor 403 to move to correct the attitude difference of the camera's current attitude data with respect to the target attitude data. Motor controller 4022 may be configured to f 2 of the motor control instruction to complete execution.
在一示例性实施例中,f2可以保持恒定,即,相邻的电机控制指令在时间轴上可以是等间隔的。例如,f2可以是f1的整数倍。In an exemplary embodiment, f 2 may remain constant, ie, adjacent motor control commands may be equally spaced on the time axis. For example, f 2 may be an integer multiple of f 1 .
在该示例性实施例的一种实施方式中,电机控制器4022可以进一步被配置为:以定频f2等步幅地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。对应的电机控制指令的插值示意图可以参见图3A。In an embodiment of the exemplary embodiment, the motor controller 4022 can be further configured to: adjust the current amplitude at a constant frequency f 2 or the like to achieve a current magnitude indicative of the generated target motor control command. . A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3A.
在该实施方式中,倘若f2为f1的m倍,其中m为整数,则以f2调整电流 幅值的步幅可以降低为表征目标电机控制指令的电流幅值与表征前一电机控制指令的电流幅值的差值的1/m。In this embodiment, if f 2 is m times f 1 , where m is an integer, the step of adjusting the current amplitude with f 2 can be reduced to represent the current amplitude of the target motor control command and characterize the previous motor control. The difference in the magnitude of the commanded current is 1/m.
在该示例性实施例的另一实施方式中,电机控制器4022可以进一步被配置为:以定频f2步幅可变地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。对应的电机控制指令的插值示意图可以参见图3B。In another embodiment of the exemplary embodiment, motor controller 4022 can be further configured to variably adjust the current amplitude at a fixed frequency f 2 step to achieve a current amplitude characterizing the generated target motor control command value. A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3B.
在另一示例性实施例中,f2可以是可变的,即,相邻的电机控制指令在时间轴上可以是不等间隔的。In another exemplary embodiment, f 2 may be variable, ie, adjacent motor control commands may be unequal intervals on the time axis.
在该示例性实施例的一种实施方式中,电机控制器4022可以进一步被配置为:以变频f2等步幅地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。对应的电机控制指令的插值示意图可以参见图3C。In one embodiment of this exemplary embodiment, the motor controller 4022 may be further configured to: frequency f 2 and other steps to adjust the magnitude of the current to achieve the current magnitude generated by characterizing the target motor control command. A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3C.
在该示例性实施例的另一实施方式中,电机控制器4022可以进一步被配置为:以变频f2步幅可变地调整电流幅值以达到表征所生成的目标电机控制指令的电流幅值。对应的电机控制指令的插值示意图可以参见图3D。In another embodiment of the exemplary embodiment, motor controller 4022 can be further configured to variably adjust the current amplitude in a frequency conversion f 2 step to achieve a current magnitude characterizing the generated target motor control command . A schematic diagram of the interpolation of the corresponding motor control commands can be seen in Figure 3D.
在一示例性实施例中,云台400还可以包括:设置在从电机处采集的电流的反馈支路上的滤波器(未示出),用于滤除在电流反馈端引入的噪声,从而有效降低电机控制器由于电流噪声而频繁调节所导致的电机噪声。In an exemplary embodiment, the pan/tilt head 400 may further include: a filter (not shown) disposed on a feedback branch of the current collected from the motor for filtering noise introduced at the current feedback end, thereby being effective Reduce motor noise caused by frequent adjustments of the motor controller due to current noise.
运行在根据本公开的设备上的程序可以是通过控制中央处理单元(CPU)来使计算机实现本公开的实施例功能的程序。该程序或由该程序处理的信息可以临时存储在易失性存储器(如随机存取存储器RAM)、硬盘驱动器(HDD)、非易失性存储器(如闪速存储器)、或其他存储器系统中。The program running on the device according to the present disclosure may be a program that causes a computer to implement the functions of the embodiments of the present disclosure by controlling a central processing unit (CPU). The program or information processed by the program may be temporarily stored in a volatile memory (such as a random access memory RAM), a hard disk drive (HDD), a non-volatile memory (such as a flash memory), or other memory system.
用于实现本公开各实施例功能的程序可以记录在计算机可读记录介质上。可以通过使计算机系统读取记录在所述记录介质上的程序并执行这些程序来实现相应的功能。此处的所谓“计算机系统”可以是嵌入在该设备中的计算机系统,可以包括操作系统或硬件(如外围设备)。“计算机可读记录介质”可以是半导体记录介质、光学记录介质、磁性记录介质、短时动态存储程序的记录介质、或计算机可读的任何其他记录介质。A program for realizing the functions of the embodiments of the present disclosure may be recorded on a computer readable recording medium. The corresponding functions can be realized by causing a computer system to read programs recorded on the recording medium and execute the programs. The so-called "computer system" herein may be a computer system embedded in the device, and may include an operating system or hardware (such as a peripheral device). The "computer readable recording medium" may be a semiconductor recording medium, an optical recording medium, a magnetic recording medium, a recording medium of a short-term dynamic storage program, or any other recording medium readable by a computer.
用在上述实施例中的设备的各种特征或功能模块可以通过电路(例如,单片或多片集成电路)来实现或执行。设计用于执行本说明书所描述的功能的电 路可以包括通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)、或其他可编程逻辑器件、分立的门或晶体管逻辑、分立的硬件组件、或上述器件的任意组合。通用处理器可以是微处理器,也可以是任何现有的处理器、控制器、微控制器、或状态机。上述电路可以是数字电路,也可以是模拟电路。因半导体技术的进步而出现了替代现有集成电路的新的集成电路技术的情况下,本公开的一个或多个实施例也可以使用这些新的集成电路技术来实现。The various features or functional blocks of the apparatus used in the above embodiments may be implemented or executed by circuitry (e.g., monolithic or multi-chip integrated circuits). Designed to perform the functions described in this manual The circuitry may include a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, Or any combination of the above devices. A general purpose processor may be a microprocessor or any existing processor, controller, microcontroller, or state machine. The above circuit may be a digital circuit or an analog circuit. One or more embodiments of the present disclosure may also be implemented using these new integrated circuit technologies in the context of new integrated circuit technologies that replace existing integrated circuits due to advances in semiconductor technology.
如上,已经参考附图对本公开的实施例进行了详细描述。但是,具体的结构并不局限于上述实施例,本公开也包括不偏离本公开主旨的任何设计改动。另外,可以在权利要求的范围内对本公开进行多种改动,通过适当地组合不同实施例所公开的技术手段所得到的实施例也包含在本公开的技术范围内。此外,上述实施例中所描述的具有相同效果的组件可以相互替代。 As above, the embodiments of the present disclosure have been described in detail with reference to the accompanying drawings. However, the specific structure is not limited to the above embodiments, and the present disclosure also includes any design changes that do not deviate from the gist of the present disclosure. In addition, various modifications of the present disclosure are possible within the scope of the claims, and the embodiments obtained by appropriately combining the technical means disclosed in the different embodiments are also included in the technical scope of the present disclosure. Further, the components having the same effects described in the above embodiments may be substituted for each other.

Claims (25)

  1. 一种在云台处执行的用于控制电机的方法,包括:A method for controlling a motor performed at a gimbal, comprising:
    以第一频率从惯性测量单元IMU获得相机的当前姿态数据并生成电机控制指令,所述电机控制指令用于驱动电机运动以修正相机的当前姿态数据相对于目标姿态数据的姿态差;以及Obtaining current attitude data of the camera from the inertial measurement unit IMU at a first frequency and generating a motor control command for driving motor motion to correct a posture difference of the current attitude data of the camera with respect to the target attitude data;
    以第二频率完成所述电机控制指令的执行,所述第二频率高于所述第一频率,使得相邻的电机控制指令之间的差值减小。Execution of the motor control command is completed at a second frequency that is higher than the first frequency such that a difference between adjacent motor control commands is decreased.
  2. 根据权利要求1所述的方法,其中所述电机控制指令以电流幅值进行表征,以及所述相邻的电机控制指令之间的差值是表征相邻电机控制指令的电流幅值之差的绝对值。The method of claim 1 wherein said motor control command is characterized by a current magnitude and said difference between said adjacent motor control commands is a difference between current amplitudes indicative of adjacent motor control commands. Absolute value.
  3. 根据权利要求1或2所述的方法,其中所述第二频率不变。A method according to claim 1 or 2, wherein said second frequency is unchanged.
  4. 根据权利要求1或2所述的方法,其中所述第二频率可变。A method according to claim 1 or 2, wherein said second frequency is variable.
  5. 根据权利要求2至4中任一项所述的方法,其中以第二频率完成所述电机控制指令的执行包括:以第二频率等步幅地调整电流幅值以达到表征所述电机控制指令的所述电流幅值。The method of any one of claims 2 to 4, wherein performing the execution of the motor control command at a second frequency comprises: adjusting a current amplitude in steps of a second frequency or the like to achieve characterizing the motor control command The current amplitude.
  6. 根据权利要求2至4中任一项所述的方法,其中以第二频率完成所述电机控制指令的执行包括:以第二频率步幅可变地调整电流幅值以达到表征所述电机控制指令的所述电流幅值。The method of any one of claims 2 to 4, wherein performing the execution of the motor control command at a second frequency comprises variably adjusting a current amplitude at a second frequency step to characterize the motor control The current amplitude of the command.
  7. 根据权利要求2至3中任一项所述的方法,其中所述第二频率是所述第一频率的m倍,m为整数。The method according to any one of claims 2 to 3, wherein the second frequency is m times the first frequency, and m is an integer.
  8. 根据权利要求7所述的方法,其中以第二频率调整电流幅值的步幅降低为表征所述电机控制指令的所述电流幅值与表征前一电机控制指令的电流幅值的差值的1/m。The method of claim 7 wherein the step of adjusting the magnitude of the current at the second frequency is reduced to a difference between the magnitude of the current characterizing the motor control command and a magnitude of current indicative of a previous motor control command. 1/m.
  9. 根据权利要求2至8中任一项所述的方法,其中电流幅值与用于驱动电机运动的力矩成正比。A method according to any one of claims 2 to 8, wherein the magnitude of the current is proportional to the moment used to drive the motion of the motor.
  10. 根据权利要求1至9中任一项所述的方法,还包括:A method according to any one of claims 1 to 9, further comprising:
    通过设置在电流的反馈支路上的滤波器,滤除在电流反馈端引入的噪声。The noise introduced at the current feedback terminal is filtered out by a filter placed on the feedback branch of the current.
  11. 根据权利要求1至10中任一项所述的方法,其中所述姿态数据包括偏航角/俯仰角/滚转角分量。 The method according to any one of claims 1 to 10, wherein the attitude data comprises a yaw/pitch angle/roll angle component.
  12. 一种云台,包括:A pan/tilt that includes:
    惯性测量单元IMU,用于测量相机的当前姿态数据;An inertial measurement unit IMU for measuring current attitude data of the camera;
    电机;Motor
    处理器,被配置为执行以下操作:The processor is configured to do the following:
    以第一频率从IMU获得相机的姿态数据并生成电机控制指令,所述电机控制指令用于驱动电机运动以修正相机的当前姿态数据相对于目标姿态数据的姿态差;以及Obtaining attitude data of the camera from the IMU at a first frequency and generating a motor control command for driving motor motion to correct a posture difference of the current attitude data of the camera with respect to the target attitude data;
    以第二频率完成所述电机控制指令的执行,所述第二频率高于所述第一频率,使得相邻的电机控制指令之间的差值减小。Execution of the motor control command is completed at a second frequency that is higher than the first frequency such that a difference between adjacent motor control commands is decreased.
  13. 根据权利要求12所述的云台,其中所述电机控制指令以电流幅值进行表征,以及所述相邻的电机控制指令之间的差值是表征相邻电机控制指令的电流幅值之差的绝对值。The pan/tilt head according to claim 12, wherein said motor control command is characterized by a current amplitude, and wherein a difference between said adjacent motor control commands is a difference between current amplitudes indicative of adjacent motor control commands The absolute value.
  14. 根据权利要求12或13所述的云台,其中所述第二频率不变。A pan/tilt head according to claim 12 or 13, wherein said second frequency is unchanged.
  15. 根据权利要求12或13所述的云台,其中所述第二频率可变。A pan/tilt head according to claim 12 or 13, wherein said second frequency is variable.
  16. 根据权利要求13至15中任一项所述的云台,其中所述处理器以第二频率完成所述电机控制指令的执行包括:所述处理器以第二频率等步幅地调整电流幅值以达到表征所述电机控制指令的所述电流幅值。The pan/tilt head according to any one of claims 13 to 15, wherein the processor performing the execution of the motor control command at a second frequency comprises: the processor adjusting the current amplitude in steps of a second frequency or the like A value is reached to achieve the magnitude of the current characterizing the motor control command.
  17. 根据权利要求13至15中任一项所述的云台,其中所述处理器以第二频率完成所述电机控制指令的执行包括:所述处理器以第二频率步幅可变地调整电流幅值以达到表征所述电机控制指令的所述电流幅值。A pan/tilt according to any one of claims 13 to 15, wherein said processor completing said execution of said motor control command at a second frequency comprises said processor variably adjusting current at a second frequency step The magnitude is such that the magnitude of the current characterizing the motor control command is reached.
  18. 根据权利要求13至14中任一项所述的云台,其中所述第二频率是所述第一频率的m倍,m为整数。The pan/tilt head according to any one of claims 13 to 14, wherein the second frequency is m times the first frequency, and m is an integer.
  19. 根据权利要求18所述的云台,其中以第二频率调整电流幅值的步幅降低为表征所述电机控制指令的所述电流幅值与表征前一电机控制指令的电流幅值的差值的1/m。The pan/tilt head according to claim 18, wherein the step of adjusting the magnitude of the current at the second frequency is reduced to a difference between the magnitude of the current characterizing the motor control command and the magnitude of the current characterizing the previous motor control command 1/m.
  20. 根据权利要求13至19中任一项所述的云台,其中电流幅值与用于驱动电机运动的力矩成正比。A pan/tilt head according to any one of claims 13 to 19, wherein the magnitude of the current is proportional to the moment used to drive the motion of the motor.
  21. 根据权利要求12至20中任一项所述的云台,还包括:The pan/tilt head according to any one of claims 12 to 20, further comprising:
    设置在从电机处采集的电流的反馈支路上的滤波器,用于滤除在电流反馈端引入的噪声。 A filter on the feedback branch of the current drawn from the motor is used to filter out the noise introduced at the current feedback.
  22. 根据权利要求12至21中任一项所述的云台,其中所述目标姿态数据由处理器获得。A pan/tilt according to any one of claims 12 to 21, wherein the target pose data is obtained by a processor.
  23. 根据权利要求12至22中任一项所述的云台,其中所述处理器包括云台控制器和电机控制器,其中所述云台控制器被配置为以所述第一频率从IMU获得相机的姿态数据并生成电机控制指令;以及所述电机控制器被配置为以所述第二频率完成所述电机控制指令的执行。A pan/tilt according to any one of claims 12 to 22, wherein the processor comprises a pan/tilt controller and a motor controller, wherein the pan/tilt controller is configured to obtain from the IMU at the first frequency The attitude data of the camera and generates a motor control command; and the motor controller is configured to complete execution of the motor control command at the second frequency.
  24. 根据权利要求12至23中任一项所述的云台,其中所述姿态数据包括偏航角/俯仰角/滚转角分量。A pan/tilt head according to any one of claims 12 to 23, wherein the attitude data comprises a yaw angle/pitch angle/roll angle component.
  25. 根据权利要求12至24中任一项所述的云台,还包括:相机和/或相机接口。 The pan/tilt head according to any one of claims 12 to 24, further comprising: a camera and/or a camera interface.
PCT/CN2017/104610 2017-09-29 2017-09-29 Method for controlling electric motor on gimbal and corresponding gimbal WO2019061359A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/104610 WO2019061359A1 (en) 2017-09-29 2017-09-29 Method for controlling electric motor on gimbal and corresponding gimbal
CN201780007022.2A CN108702121A (en) 2017-09-29 2017-09-29 Horizontal stage electric machine control method and corresponding holder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/104610 WO2019061359A1 (en) 2017-09-29 2017-09-29 Method for controlling electric motor on gimbal and corresponding gimbal

Publications (1)

Publication Number Publication Date
WO2019061359A1 true WO2019061359A1 (en) 2019-04-04

Family

ID=63844093

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/104610 WO2019061359A1 (en) 2017-09-29 2017-09-29 Method for controlling electric motor on gimbal and corresponding gimbal

Country Status (2)

Country Link
CN (1) CN108702121A (en)
WO (1) WO2019061359A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113721450A (en) * 2021-08-05 2021-11-30 杭州海康威视数字技术股份有限公司 Terminal equipment and control method and device thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6140793A (en) * 1999-08-19 2000-10-31 Bristol-Myers Squibb Company Stepper motor controller for microstepping a stepper motor and a method for microstepping a stepper motor
CN101276178A (en) * 2007-03-29 2008-10-01 三星电子株式会社 Image forming apparatus and method
CN102474244A (en) * 2009-08-07 2012-05-23 飞思卡尔半导体公司 Pulse width modulation frequency conversion
CN105048902A (en) * 2015-08-06 2015-11-11 杭州瑞盟科技有限公司 Micro-stepping low-noise stepping motor driving controller
CN105228054A (en) * 2015-10-15 2016-01-06 深圳市大疆创新科技有限公司 Flight instruments, filming apparatus and recording denoising device thereof and method
CN106873641A (en) * 2017-03-20 2017-06-20 普宙飞行器科技(深圳)有限公司 The miniature head of three axles and its control method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01181108A (en) * 1988-01-14 1989-07-19 Yokogawa Electric Corp Digital servo device
JP2705093B2 (en) * 1988-04-18 1998-01-26 ダイキン工業株式会社 Inverter pulse width modulation controller
JP3708292B2 (en) * 1997-06-17 2005-10-19 三菱電機株式会社 Method and apparatus for controlling PWM inverter device
CN1227806C (en) * 2003-05-23 2005-11-16 南开大学 Full-digital subdivision high-accuracy stepper motor controller
KR100819301B1 (en) * 2006-12-20 2008-04-03 삼성전자주식회사 Method and apparatus for optical image stabilizer on mobile camera module
DE102011118044A1 (en) * 2011-11-09 2013-05-16 Conti Temic Microelectronic Gmbh Method for controlling a motor by means of pulse width modulation (PWM)
JP6622983B2 (en) * 2015-05-25 2019-12-18 株式会社東芝 Stepping motor drive circuit
CN105978441A (en) * 2016-06-15 2016-09-28 零度智控(北京)智能科技有限公司 Unmanned aerial vehicle/motor control device and method
CN106950950A (en) * 2017-03-02 2017-07-14 广东工业大学 A kind of automobile doubling accessory system and control method based on camera

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6140793A (en) * 1999-08-19 2000-10-31 Bristol-Myers Squibb Company Stepper motor controller for microstepping a stepper motor and a method for microstepping a stepper motor
CN101276178A (en) * 2007-03-29 2008-10-01 三星电子株式会社 Image forming apparatus and method
CN102474244A (en) * 2009-08-07 2012-05-23 飞思卡尔半导体公司 Pulse width modulation frequency conversion
CN105048902A (en) * 2015-08-06 2015-11-11 杭州瑞盟科技有限公司 Micro-stepping low-noise stepping motor driving controller
CN105228054A (en) * 2015-10-15 2016-01-06 深圳市大疆创新科技有限公司 Flight instruments, filming apparatus and recording denoising device thereof and method
CN106873641A (en) * 2017-03-20 2017-06-20 普宙飞行器科技(深圳)有限公司 The miniature head of three axles and its control method

Also Published As

Publication number Publication date
CN108702121A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
US11424699B2 (en) Electric motor control device, compressor, and electric motor control method
JP6335058B2 (en) Imaging apparatus and imaging method
JP5242151B2 (en) Vibration correction control circuit and imaging apparatus including the same
US7760448B2 (en) Image stabilization control circuit
US8089517B2 (en) Image stabilization control circuit
TWI390969B (en) Imaging apparatus and method, information processing apparatus and method, and recording medium storing a program therefor
JP4837558B2 (en) Motor control device
US10734022B2 (en) Magnetic disk device and actuator control method
US9645471B2 (en) Driving circuit and driving method for voice coil motor, and lens module and electronic device using the same
CN107005207B (en) Amplifier with adjustable ramp-up/ramp-down gain to minimize or eliminate pop noise
WO2019061359A1 (en) Method for controlling electric motor on gimbal and corresponding gimbal
TW201429137A (en) Method and system for controlling a power converter according to a compensation function
JP2018033205A (en) Motor control device, motor control method, and program for motor control
US20170011763A1 (en) Data storage devices and methods with frequency-shaped sliding mode control
JP2013152769A (en) Piezoelectric element drive method, piezoelectric element drive device and magnetic disk device
US20100270956A1 (en) Quiet Motor Control System
JP2004023910A (en) Motor control device
JP2008079478A (en) Servo control device and speed follow-up control method thereof
JP2020042871A (en) Magnetic disk device and suppression method of disturbance components having harmonics
JP2009048699A (en) Laser generator, its control method, and optical disk device
JP2005063362A (en) Servo controller
JP2006319852A (en) Imaging apparatus
KR100357239B1 (en) Method for controlling the focusing servo in an optical disk driver
CN115425864B (en) Inverter virtual resistance compensation method, device and equipment integrated with active damper
JP2010102795A (en) Head positioning control method of magnetic disk device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17927416

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17927416

Country of ref document: EP

Kind code of ref document: A1