Position angle detection method and device of pan-tilt motor, pan-tilt and aerial photography device

By real-time acquisition and modeling of linear Hall sensor signals in the pan-tilt motor, obtaining the maximum and minimum values ​​and performing normalization processing, the error problem of motor position angle detection under mechanical limit is solved, and accurate motor position angle calculation is achieved.

CN120800170APending Publication Date: 2025-10-17VIEWPRO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510952648.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-10
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

In a pan-tilt motor with mechanical limits, existing technologies make it difficult to accurately obtain the maximum and minimum values ​​of the linear Hall sensor, resulting in large errors in position angle detection.

Method used

By collecting the detection signal of the linear Hall sensor in real time, simulating the motor angle value, open-loop controlling the motor rotation, recording the signal, establishing a sinusoidal signal model, obtaining the maximum and minimum values, and performing low-pass filtering and inverse tangent calculation after normalization, the accurate motor position angle is obtained.

Benefits of technology

In the presence of mechanical limits, the motor position angle is accurately calculated, reducing detection errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120800170A_ABST
    Figure CN120800170A_ABST
Patent Text Reader

Abstract

The invention relates to a position angle detection method and device of a pan-tilt motor, a pan-tilt and an aerial photography device. The method comprises the steps that first detection signals of two linear Hall sensors are collected in real time; simulating and generating a continuously changing motor angle value, controlling the motor to rotate in an open-loop manner according to the motor angle value, and recording a simulated motor angle and a second detection signal of the corresponding linear Hall sensor; modeling according to the simulated motor angle and a second detection signal of the corresponding linear Hall sensor to obtain a sinusoidal signal model; according to the first detection signal and a sinusoidal signal model, a sine wave expression is obtained, and then the maximum value and the minimum value of the detection signal of the linear Hall sensor are obtained; performing normalization processing on the first detection signal; and carrying out low-pass filtering processing on the normalized first detection signal, and carrying out arc tangent calculation to obtain the current position angle of the motor, so that the position angle of the motor can be accurately calculated under the condition of mechanical limiting.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of gimbal motor control, in particular to a gimbal motor position angle detection method and device, a gimbal and a aerial vehicle. BACKGROUND

[0002] Linear Hall sensors are common low-cost, high-precision brushless motor position detection sensors. In brushless motor position detection applications, two linear Hall sensors are generally placed orthogonally at 90°. When the brushless motor rotates, a continuously changing magnetic field is generated, and the two linear Hall sensors detect sinusoidal signals with a phase difference of 90°. The current position angle of the brushless motor can be obtained by calculating the inverse tangent of the signals detected by the two linear Hall sensors.

[0003] Due to differences in the characteristics and installation of linear Hall sensors, the amplitudes of the sinusoidal signals detected by different linear Hall sensors are different. If the detected signals are not corrected and directly used for calculation, the angle obtained will have errors. Therefore, before position detection, the detected values of the linear Hall sensors need to be corrected. The correction method is to rotate the brushless motor one full circle in open-loop control and record the maximum and minimum values of the detected signals of the linear Hall sensors. Then, the real-time detected signals are normalized by using the maximum and minimum values. The processed data can accurately calculate the position angle of the brushless motor. However, in existing gimbal development and design applications, the brushless motor of the gimbal usually has mechanical structure limits, and it is not possible to directly control the brushless motor to rotate one full circle to obtain the maximum and minimum values of the detected signals of the linear Hall sensors.

[0004] In summary, there is an urgent need for a gimbal motor current position detection method that can obtain the maximum and minimum values of the linear Hall sensors for normalization of the detected signals and accurately calculate the motor position angle in a gimbal motor with mechanical limits. SUMMARY

[0005] Therefore, it is necessary to provide a gimbal motor position angle detection method, device, gimbal and aerial vehicle that can obtain the maximum and minimum values of the linear Hall sensors for normalization of the detected signals and accurately calculate the motor position angle in a gimbal motor with mechanical limits.

[0006] A gimbal motor position angle detection method, the method comprising: real-time acquisition of first detection signals of two linear Hall sensors; generating a continuously changing motor angle value based on the first detection signals, open-loop control of the motor rotation based on the motor angle value, and recording the simulated motor angle and the second detection signals of the corresponding linear Hall sensors; modeling the second detection signals of the linear Hall sensors corresponding to the analog motor angles, to obtain a sinusoidal signal model; According to the first detection signal and the sinusoidal signal model, a sinusoidal wave expression is obtained, and then the maximum and minimum values of the detection signal of the linear Hall sensor are obtained; According to the maximum and minimum values, the first detection signal is normalized; The normalized first detection signal is low-pass filtered and arctangent calculated to obtain the current position angle of the motor.

[0007] In one embodiment, the sinusoidal signal model y is Where y is the detection signal of the linear Hall sensor, A is a matrix composed of analog motor angles θ, ф is the phase, and b is the intercept.

[0008] In one embodiment, the modeling the second detection signals of the linear Hall sensors corresponding to the analog motor angles, to obtain the sinusoidal signal model includes: According to the obtained n second detection signals and corresponding n analog motor angles, a detection signal matrix of the linear Hall sensor and a corresponding analog motor angle matrix are obtained, where n is a positive integer greater than or equal to 3; According to the detection signal matrix of the linear Hall sensor, the corresponding analog motor angle matrix, and the sinusoidal signal model, other unknown parameters in the sinusoidal signal model are obtained by least squares method.

[0009] In one embodiment, the normalization of the first detection signal according to the maximum and minimum values includes: The sinusoidal wave of the first detection signal is normalized to the [-1, 1] coordinate range, specifically: (y - limit_min) * 2 / (limit_max - limit_min) - 1 Where limit_min is the minimum value of the detection signal of the linear Hall sensor, and limit_max is the maximum value of the detection signal of the linear Hall sensor.

[0010] A position angle detection device of a gimbal motor, the device comprising: A signal detection unit for real-time acquisition of first detection signals of two linear Hall sensors; A detection correction unit is configured to simulate a continuously changing motor angle value according to the first detection signal, to open-loop control the motor rotation according to the motor angle value, and to record the simulated motor angle and the second detection signal of the corresponding linear Hall sensor; A model acquisition unit is configured to model the simulated motor angle and the second detection signal of the corresponding linear Hall sensor, and to acquire a sine signal model.

[0011] A sine wave acquisition unit is configured to obtain a sine wave expression according to the first detection signal and the sine signal model, and to further obtain the maximum value and the minimum value of the detection signal of the linear Hall sensor. A signal normalization unit is configured to normalize the first detection signal according to the maximum value and the minimum value. An angle acquisition unit is configured to perform low-pass filtering processing on the normalized first detection signal, to perform an inverse tangent calculation, and to obtain the current position angle of the motor.

[0012] A gimbal includes a base, a gimbal motor installed on the base, and a main controller installed on the base, wherein the main controller includes at least one processor and a memory in communication connection with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, and the processor implements the following steps when executing the computer program: Real-time acquisition of first detection signals of two linear Hall sensors; Simulation of a continuously changing motor angle value according to the first detection signal, open-loop control of the motor rotation according to the motor angle value, and recording of the simulated motor angle and the second detection signal of the corresponding linear Hall sensor; Modeling of the simulated motor angle and the second detection signal of the corresponding linear Hall sensor, and acquisition of a sine signal model; Obtaining a sine wave expression according to the first detection signal and the sine signal model, and further obtaining the maximum value and the minimum value of the detection signal of the linear Hall sensor; Normalization of the first detection signal according to the maximum value and the minimum value; Low-pass filtering processing of the normalized first detection signal, inverse tangent calculation, and obtaining of the current position angle of the motor.

[0013] An unmanned aerial vehicle includes an aerial vehicle body, the above-mentioned gimbal connected to the aerial vehicle body, and a shooting device carried on the aerial vehicle body by the gimbal.

[0014] The above-mentioned gimbal motor position angle detection method, device, gimbal and drone collect the first detection signals of two linear Hall sensors in real time; simulate and generate continuously changing motor angle values ​​based on the first detection signals, open-loop control the motor rotation based on the motor angle values, and record the simulated motor angle and the corresponding second detection signal of the linear Hall sensor; model the simulated motor angle and the corresponding second detection signal of the linear Hall sensor to obtain a sinusoidal signal model; obtain a sinusoidal wave expression based on the first detection signal and the sinusoidal signal model, and then obtain the maximum and minimum values ​​of the detection signal of the linear Hall sensor; normalize the first detection signal based on the maximum and minimum values; low-pass filter the normalized first detection signal and perform inverse tangent calculation to obtain the current position angle of the motor, thereby realizing the accurate calculation of the motor position angle even in the presence of mechanical limits. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 An application scenario diagram of a method for detecting the position angle of a pan / tilt motor in one embodiment Figure 2 1 is a flow chart of a method for detecting the position angle of a pan / tilt motor according to an embodiment; Figure 3 1. It is a structural block diagram of a position angle detection device for a pan / tilt motor according to an embodiment; Figure 4 2. It is a diagram of the internal structure of the pan / tilt platform in one embodiment. DETAILED DESCRIPTION

[0016] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0017] The position angle detection method of the pan / tilt motor provided in this application can be applied to Figure 1 In the main controller of the pan-tilt device shown in FIG. , the pan-tilt motor has a mechanical limit and is electrically connected to two linear Hall sensors, which are placed 90° orthogonally and output the detected signals to the main controller.

[0018] In one embodiment, Figure 2 As shown, a method for detecting the position angle of a pan / tilt motor is provided. Figure 1 The main controller in the example is used to illustrate the following steps: Step 201 : collecting first detection signals of two linear Hall sensors in real time.

[0019] In the embodiment, the first detection signal is a signal detected by the two linear Hall sensors and collected by the main controller in real time.

[0020] In step 202, a continuously changing motor angle value is generated according to the first detection signal, the motor is controlled in open loop according to the motor angle value, and the simulated motor angle and the second detection signal of the corresponding linear Hall sensor are recorded.

[0021] In the embodiment, the second detection signal is a signal detected by the linear Hall sensor and recorded by the main controller when the motor is controlled in open loop according to the motor angle value. A continuously changing motor angle value θ is generated according to the first detection signal, the motor is controlled in open loop according to the motor angle value θ, the motor is first controlled to rotate to one side of the mechanical limit of the motor, then the control direction is reversed to rotate to the other side of the mechanical limit, and the simulated motor angle and the second detection signal of the corresponding linear Hall sensor are recorded.

[0022] In step 203, a sinusoidal signal model is obtained by modeling the simulated motor angle and the second detection signal of the corresponding linear Hall sensor.

[0023] In the embodiment, the sinusoidal signal model y is

[0024] where y is the detection signal of the linear Hall sensor, A is a matrix composed of the simulated motor angle θ, ф is the phase, and b is the intercept. The above sinusoidal signal model y can be simplified as ; ; ; Specifically, the obtaining of the sinusoidal signal model according to the simulated motor angle and the second detection signal of the corresponding linear Hall sensor comprises the following steps. According to the obtained n second detection signals and corresponding n simulated motor angles, a detection signal matrix of the linear Hall sensor and a corresponding simulated motor angle matrix are obtained, where n is a positive integer greater than or equal to 3; According to the detection signal matrix of the linear Hall sensor, the corresponding simulated motor angle matrix, and the sinusoidal signal model, other unknown parameters in the sinusoidal signal model are obtained by the least square method.

[0025] When n motor angle value samples are obtained, the following equation can be obtained and then written in matrix form as Wherein Y is the detection signal matrix of the linear Hall sensor, A is a matrix composed of the analog motor angle θ, X is other unknown parameters, which can be converted to solve by least square method: .

[0026] Step 204, according to the first detection signal and the sine signal model, obtain the sine wave expression, and further obtain the maximum and minimum of the detection signal of the linear Hall sensor.

[0027] In this embodiment, the first detection signal y detected in real time and the corresponding analog motor angle θ are substituted into the formula in step 3, and finally the P, Q and b variables in the matrix X are calculated by the least square method. Further calculation can obtain A, φ and b, so as to obtain the sine wave expression of the detection signal of the linear Hall sensor, wherein the maximum limit_max is A+b, and the minimum limit_min is A-b.

[0028] Step 205, according to the maximum and minimum, the first detection signal is normalized.

[0029] Specifically, the first detection signal is normalized according to the maximum and minimum, including: The sine wave of the first detection signal is normalized to the coordinate range of [-1, 1] according to the maximum and minimum, and the specific formula is: (y-limit_min)*2 / (limit_max-limit_min)-1 Wherein, limit_min is the minimum value of the detection signal of the linear Hall sensor, and limit_max is the maximum value of the detection signal of the linear Hall sensor.

[0030] Step 206, the first detection signal after normalization is low-pass filtered and arctangent calculated to obtain the current position angle of the motor.

[0031] The position angle detection method of the above gimbal motor comprises the following steps: collecting first detection signals of two linear Hall sensors in real time; generating motor angle values that change continuously according to the first detection signals; controlling the motor to rotate in an open loop according to the motor angle values, and recording the second detection signals of the corresponding linear Hall sensors corresponding to the simulated motor angles; modeling the second detection signals of the corresponding linear Hall sensors corresponding to the simulated motor angles to obtain a sine signal model; obtaining a sine wave expression according to the first detection signals and the sine signal model, and then obtaining the maximum value and the minimum value of the detection signals of the linear Hall sensors; performing normalization processing on the first detection signals according to the maximum value and the minimum value; performing low-pass filtering processing on the first detection signals after the normalization processing, and performing arctangent calculation to obtain the current position angle of the motor, so that the motor position angle can be accurately calculated even in the case of mechanical limiting.

[0032] It should be understood that, although Figure 2 the steps in the flowcharts are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, Figure 2 at least part of the steps in the flowcharts can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or sub-steps or stages of other steps.

[0033] In one embodiment, as Figure 3 shown, a position angle detection device for a gimbal motor is provided, comprising: a signal detection unit 31, a detection correction unit 32, a model acquisition unit 33, a sine wave acquisition unit 34, a signal normalization unit 35, and an angle acquisition unit 36, wherein: The signal detection unit 31 is configured to collect first detection signals of two linear Hall sensors in real time. The detection correction unit 32 is configured to generate motor angle values that change continuously according to the first detection signals, control the motor to rotate in an open loop according to the motor angle values, and record the second detection signals of the corresponding linear Hall sensors corresponding to the simulated motor angles. The model acquisition unit 33 models the second detection signals of the corresponding linear Hall sensors corresponding to the simulated motor angles to obtain a sine signal model.

[0034] The sine wave obtaining unit 34 is configured to obtain a sine wave expression according to the first detection signal and a sine signal model, and further obtain a maximum value and a minimum value of the detection signal of the linear Hall sensor; The signal normalization unit 35 is configured to normalize the first detection signal according to the maximum value and the minimum value; The angle obtaining unit 36 is configured to perform low-pass filtering processing on the normalized first detection signal, and perform an arctangent calculation to obtain a current position angle of the motor.

[0035] In one embodiment, the sine signal model y is where y is the detection signal of the linear Hall sensor, A is a matrix composed of analog motor angles θ, ф is a phase, and b is an intercept.

[0036] In one embodiment, the model obtaining unit 33 is specifically configured to obtain a detection signal matrix of the linear Hall sensor and a corresponding analog motor angle matrix according to n second detection signals and corresponding n analog motor angles, where n is a positive integer greater than or equal to 3. According to the detection signal matrix of the linear Hall sensor, the corresponding analog motor angle matrix, and the sine signal model, other unknown parameters in the sine signal model are obtained by a least square method.

[0037] In one embodiment, the signal normalization unit 35 is specifically configured to normalize the sine wave of the first detection signal to a coordinate range of [-1, 1], and specifically: (y - limit_min) * 2 / (limit_max - limit_min) - 1 where limit_min is the minimum value of the detection signal of the linear Hall sensor, and limit_max is the maximum value of the detection signal of the linear Hall sensor.

[0038] The specific limitations of the position angle detection device of the gimbal motor can be referred to the limitations of the position angle detection method of the gimbal motor in the foregoing, which will not be repeated here. Each module in the position angle detection device of the gimbal motor can be realized by software, hardware, and combinations thereof, in whole or in part. The above modules can be embedded in or independent of the processor in the gimbal in hardware form, or can be stored in the memory in the gimbal in software form, so as to be called and executed by the processor to perform the operations corresponding to each module.

[0039] In one embodiment, a gimbal is provided, which can be a terminal, and the internal structure diagram thereof can be as shown in Figure 4As shown. The gimbal includes a processor, a memory connected through a system bus. Wherein the processor of the gimbal is used to provide computing and control capabilities. The memory of the gimbal includes a non-volatile storage medium, an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run.

[0040] Those skilled in the art can understand that, Figure 4 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the gimbal to which the scheme of the present application is applied. A specific gimbal can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.

[0041] In one embodiment, a gimbal is provided, comprising: a base; a gimbal motor mounted on the base; and a main controller mounted on the base; wherein the main controller comprises: at least one processor; and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, and the processor implements the following steps when executing the computer program: Real-time acquisition of a first detection signal of two linear Hall sensors; According to the first detection signal, a continuously changing motor angle value is simulated and generated, the motor is controlled in an open loop according to the motor angle value, and a simulated motor angle and a second detection signal of the corresponding linear Hall sensor are recorded; According to the simulated motor angle and the second detection signal of the corresponding linear Hall sensor, a sine signal model is obtained; According to the first detection signal and the sine signal model, a sine wave expression is obtained, and then the maximum value and the minimum value of the detection signal of the linear Hall sensor are obtained; According to the maximum value and the minimum value, the first detection signal is normalized; The first detection signal after normalization is low-pass filtered and arctangent calculated to obtain the current position angle of the motor.

[0042] In one embodiment, a unmanned aerial vehicle is provided, comprising: an aerial vehicle body; the above-mentioned gimbal, the gimbal being connected to the aerial vehicle body; and a shooting device, the shooting device being carried on the aerial vehicle body through the gimbal.

[0043] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, storage, databases, or other media in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0044] The technical features of the above embodiments can be combined in any way. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, but as long as the combination of the technical features does not exist, it should be considered as the scope of the present application.

[0045] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, some modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of the patent protection of the present application should be subject to the appended claims.

Claims

1. A method for detecting the position angle of a pan / tilt motor, characterized in that: The method comprises: collecting first detection signals of two linear Hall sensors in real time; Simulating and generating a continuously changing motor angle value according to the first detection signal, open-loop controlling the rotation of the motor according to the motor angle value, and recording the simulated motor angle and the corresponding second detection signal of the linear Hall sensor; Modeling is performed based on the simulated motor angle and the corresponding second detection signal of the linear Hall sensor to obtain a sinusoidal signal model; Obtaining a sine wave expression based on the first detection signal and the sinusoidal signal model, and further obtaining the maximum value and the minimum value of the detection signal of the linear Hall sensor; performing normalization processing on the first detection signal according to the maximum value and the minimum value; The normalized first detection signal is subjected to low-pass filtering and an arc tangent calculation to obtain the current position angle of the motor.

2. The method according to claim 1, characterized in that The sinusoidal signal model y is Where y is the detection signal of the linear Hall sensor, A is a matrix composed of the simulated motor angle θ, ф is the phase, and b is the intercept.

3. The method according to claim 2, characterized in that The modeling according to the simulated motor angle and the corresponding second detection signal of the linear Hall sensor to obtain the sinusoidal signal model includes: Obtaining a detection signal matrix of the linear Hall sensor and a corresponding simulated motor angle matrix according to the obtained n second detection signals and the corresponding n simulated motor angles, where n is a positive integer greater than or equal to 3; According to the detection signal matrix of the linear Hall sensor, the corresponding simulated motor angle matrix and the sinusoidal signal model, other unknown parameters in the sinusoidal signal model are obtained by the least square method.

4. The method according to claim 2, characterized in that The normalizing the first detection signal according to the maximum value and the minimum value includes: The sine wave of the first detection signal is normalized to the coordinate range of [-1, 1], specifically: (y - limit_min) * 2 / (limit_max - limit_min) – 1 Wherein, limit_min is the minimum value of the detection signal of the linear Hall sensor, and limit_max is the maximum value of the detection signal of the linear Hall sensor.

5. A device for detecting the position angle of a pan / tilt motor, characterized in that: The device comprises: A signal detection unit, configured to collect first detection signals of two linear Hall sensors in real time; a detection and correction unit, configured to simulate and generate a continuously changing motor angle value according to the first detection signal, open-loop control the rotation of the motor according to the motor angle value, and record the simulated motor angle and the corresponding second detection signal of the linear Hall sensor; a model acquisition unit, configured to perform modeling based on the simulated motor angle and the corresponding second detection signal of the linear Hall sensor to acquire a sinusoidal signal model; a sine wave acquisition unit, configured to obtain a sine wave expression based on the first detection signal and the sine signal model, and thereby obtain a maximum value and a minimum value of the detection signal of the linear Hall sensor; a signal normalization unit, configured to perform normalization processing on the first detection signal according to the maximum value and the minimum value; The angle acquisition unit is used to perform low-pass filtering on the normalized first detection signal and perform arc tangent calculation to obtain the current position angle of the motor.

6. The device according to claim 5, characterized in that The sinusoidal signal model y is Where y is the detection signal of the linear Hall sensor, A is a matrix composed of the simulated motor angle θ, ф is the phase, and b is the intercept.

7. The device according to claim 6, characterized in that The model acquisition unit is specifically used to obtain a detection signal matrix of the linear Hall sensor and a corresponding simulated motor angle matrix according to n second detection signals and corresponding n simulated motor angles, where n is a positive integer greater than or equal to 3; According to the detection signal matrix of the linear Hall sensor, the corresponding simulated motor angle matrix and the sinusoidal signal model, other unknown parameters in the sinusoidal signal model are obtained by the least square method.

8. The device according to claim 6, characterized in that The signal normalization unit is specifically used to normalize the sine wave of the first detection signal to a coordinate range of [-1, 1], specifically: (y - limit_min) * 2 / (limit_max - limit_min) – 1 Wherein, limit_min is the minimum value of the detection signal of the linear Hall sensor, and limit_max is the maximum value of the detection signal of the linear Hall sensor.

9. A pan / tilt head, characterized in that: include: base; A pan / tilt motor, mounted on the base; and a main controller mounted on the base; wherein the main controller includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the position angle detection method of the pan-tilt motor as described in any one of claims 1-4.

10. An unmanned aerial photography device, characterized in that: include: Drone body; The gimbal according to claim 9, wherein the gimbal is connected to the drone body; and a photographing device, wherein the photographing device is mounted on the drone body via the gimbal.