Camera devices and mobile terminals
The focusing module, which combines a rotating compass and a Hall effect sensor unit, solves the problem of inconvenient focusing in camera devices, provides a continuous and smooth focusing process, improves convenience, and reduces structural complexity and cost.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZTE CORP
- Filing Date
- 2024-12-31
- Publication Date
- 2026-06-30
AI Technical Summary
The focusing operation of existing camera devices is inconvenient. When adjusting the focus through screen touch or physical buttons, it is difficult to accurately control the focal length, resulting in poor image quality.
The focusing module, which combines a rotating compass, a Hall sensor unit, and an arc magnet, adjusts the focus by continuously rotating the compass and detecting changes in the magnetic field parameters using the Hall sensor unit to adjust the focal length of the camera module.
It achieves a continuous and smooth focusing process, improves the convenience of the camera device, and reduces structural complexity and cost.
Smart Images

Figure CN122317408A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of camera technology, and more particularly to camera devices and mobile terminals. Background Technology
[0002] With the rapid development of mobile communication technology, especially mobile terminals such as smartphones and tablets, they have become an indispensable part of people's daily lives. Among these mobile terminals, the camera function has become an important means for users to record life and share moments. The focusing function of the camera device directly affects the clarity and image quality of the photos, making it one of the key factors influencing user experience.
[0003] In related technologies, the camera module is focused in the following ways: (1) The user zooms and focuses using the zoom bar on the screen display area or by dragging with their finger. (2) The user focuses using the physical buttons on the volume keys. However, when zooming and focusing using the zoom bar on the screen display area or by dragging with their finger, the finger blocks part of the screen, preventing the user from fully observing the image captured by the camera module. Therefore, it is difficult to clearly determine whether the image captured by the camera module is the desired image. Furthermore, when zooming and focusing using the zoom bar on the screen display area or by dragging with their finger, the focus level is difficult to control, making it difficult to control the scaling ratio of the image. Therefore, zooming and focusing using the zoom bar on the screen display area or by dragging with their finger is inconvenient to operate, and the focus level is difficult to control, resulting in low ease of focusing for the camera device. In addition, using the volume keys for focusing results in a fixed button travel, which cannot provide a continuous and smooth focusing process, causing the focus position to jump, thus affecting the ease of focusing for the camera device. Summary of the Invention
[0004] The main objective of this application is to provide a camera device and a mobile terminal, which aims to solve the problem of improving the ease of focusing of the camera device while reducing the structural complexity and cost of the camera device.
[0005] To achieve the above objectives, this application provides a camera device, including a camera module, a focusing module, and a control module, wherein the focusing module includes a rotating compass, a Hall sensor unit, and at least two arc-shaped magnets;
[0006] The at least two arc-shaped magnets are arranged in a ring around the center of the rotating compass, wherein between two adjacent arc-shaped magnets arranged in the ring, the S poles are opposite each other and the N poles are opposite each other, and the unit magnetic field strength of the two adjacent arc-shaped magnets is different.
[0007] The Hall sensor unit is configured to detect the change parameters of the magnetic field generated by the at least two arc-shaped magnets caused by the rotation of the rotating compass.
[0008] The control module is electrically connected to the Hall sensor unit and the camera module, respectively, and is configured to adjust the shooting focal length of the camera module according to the magnetic field change parameters detected by the Hall sensor unit.
[0009] In addition, to achieve the above objectives, this application also provides a mobile terminal, which includes the camera device described above.
[0010] This application provides a camera device and a mobile terminal. The camera device includes a camera module, a focusing module, and a control module. The focusing module includes a rotating compass, a Hall sensor unit, and at least two arc-shaped magnets. The at least two arc-shaped magnets are arranged in a ring around the center of the rotating compass. Between two adjacent arc-shaped magnets forming the ring, the S poles face each other, and the N poles face each other. The unit magnetic field strength of the two adjacent arc-shaped magnets is different. The Hall sensor unit is configured to detect the change in magnetic field parameters generated by the rotation of the rotating compass. The control module is electrically connected to the Hall sensor unit and the camera module, and is configured to adjust the shooting focal length of the camera module according to the change in magnetic field parameters detected by the Hall sensor unit. Therefore, compared with the method of focusing through screen touch or physical buttons, this application embodiment can provide a more continuous and smooth focusing process without causing the focus position to jump, thus improving the convenience of focusing the camera device. Furthermore, the layout design of this application is simple and low-cost, which can effectively reduce the structural complexity and cost of the camera device. Thus, the embodiments of this application can improve the ease of focusing of the camera device while reducing the structural complexity and cost of the camera device. Attached Figure Description
[0011] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0012] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0013] Figure 1 This is a schematic diagram of the module structure provided in the first embodiment of the camera device of this application;
[0014] Figure 2A perspective view showing two arc-shaped magnets fixed on a rotating disk, as provided in the first embodiment of the camera device of this application;
[0015] Figure 3 A plan view showing four arc-shaped magnets fixed on a rotating disk, as provided in the second embodiment of the camera device of this application;
[0016] Figure 4 A plan view showing six arc-shaped magnets fixed on a rotating disk, as provided in the third embodiment of the camera device of this application;
[0017] Figure 5 A schematic diagram showing the relationship between the magnetic field strength and the rotation angle of two arc-shaped magnets provided in the fourth embodiment of the camera device of this application;
[0018] Figure 6 A schematic diagram showing the relationship between the magnetic field strength and the rotation angle of the four arc-shaped magnets provided in the fourth embodiment of the camera device of this application;
[0019] Figure 7 This is a schematic diagram showing the relationship between the magnetic field strength and the rotation angle of the six arc-shaped magnets provided in the fourth embodiment of the camera device of this application.
[0020] Attached diagram structure description:
[0021] 100. Camera device; 1. Camera module; 2. Focusing module; 21. Rotating compass; 211. Fixed base; 212. Rotating disk; 22. Hall effect sensor unit; 23. Arc magnet. Figure 1 In the corresponding first embodiment, there are two arc-shaped magnets 23, namely 23A and 23B. Figure 3 In the corresponding second embodiment, the number of arc-shaped magnets 23 is four, namely 23A, 23B, 23C and 23D. Figure 4 In the corresponding third embodiment, there are 6 arc-shaped magnets 23, namely 23A, 23B, 23C, 23D, 23E and 23F; 3. Control module.
[0022] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0023] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0024] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0025] Currently, the main technologies used in this field involve adjusting the focus of the camera module via screen touch and physical buttons.
[0026] Among these issues, touchscreen focusing presents challenges. When users zoom in and out with their fingers, their fingers may partially obscure the screen, making it difficult to fully observe the scene and affecting composition and focus selection. Furthermore, the zoom levels are difficult to control, leading to inaccurate zoom ratios and ultimately impacting image quality. Physical button focusing, on the other hand, suffers from fixed button travel, preventing a smooth and continuous focusing process and causing focus jumps, thus negatively affecting the user's shooting experience.
[0027] To address this, this application provides a camera device including a camera module, a focusing module, and a control module. The focusing module includes a rotating compass, a Hall effect sensor unit, and at least two arc-shaped magnets. These at least two arc-shaped magnets are arranged in a ring around the center of the rotating compass. Between adjacent arc-shaped magnets forming the ring, the S poles face each other, and the N poles face each other, with adjacent arc-shaped magnets having different unit magnetic field strengths. The Hall effect sensor unit is configured to detect changes in the magnetic field generated by the rotation of the rotating compass and the at least two arc-shaped magnets. The control module is electrically connected to both the Hall effect sensor unit and the camera module, and is configured to adjust the focal length of the camera module based on the magnetic field changes detected by the Hall effect sensor unit.
[0028] Compared to focusing via touchscreen or physical buttons, this embodiment uses a stepless focusing method, similar to a rotating compass, to continuously detect focus and provide a smoother, more continuous focusing process without skipping focus points, thus improving the ease of focusing the camera device. The layout design of this embodiment is simple and low-cost, effectively reducing the structural complexity and cost of the camera device. Therefore, this embodiment improves the ease of focusing while reducing the structural complexity and cost of the camera device.
[0029] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0030] This application presents a camera device according to a first embodiment; please refer to... Figure 1 , Figure 1 This is a schematic diagram of the module structure provided in the first embodiment of the camera device of this application.
[0031] In this embodiment, the camera device 100 includes a camera module 1, a focusing module 2 and a control module 3, wherein the focusing module 2 includes a rotating compass 21, a Hall sensor unit 22 and at least two arc magnets 23;
[0032] At least two arc-shaped magnets 23 are arranged in a ring around the center of the rotating compass 21, wherein between two adjacent arc-shaped magnets 23 arranged in the ring, the S poles are opposite each other and the N poles are opposite each other, and the unit magnetic field strength of the two adjacent arc-shaped magnets 23 is different.
[0033] Hall sensor unit 22 is configured to detect the change parameters of the magnetic field generated by at least two arc magnets 23 caused by the rotation of rotating compass 21;
[0034] The control module 3 is electrically connected to the Hall sensor unit 22 and the camera module 1 respectively, and is set to adjust the shooting focal length of the camera module 1 according to the magnetic field change parameters detected by the Hall sensor unit 22.
[0035] It is easy to understand that the rotating compass 21 is a component that can rotate around a central axis, the Hall sensor unit 22 is a sensor that senses changes in magnetic field through the Hall effect, the arc magnet 23 is a magnet with an arc shape, and the camera module 1 is the module in the camera device 100 that is responsible for taking pictures.
[0036] In this embodiment, the focusing module 2 includes at least two arc-shaped magnets 23. The number of arc-shaped magnets 23 is even (e.g., 2, 4, 6, 8, etc.), and each arc-shaped magnet 23 is arranged in a ring around the center of the rotating compass 21. Exemplarily, the center of the ring formed by the at least two arc-shaped magnets 23 may coincide with the central axis of the rotating compass 21, or approximately coincide with the central axis of the rotating compass 21. This embodiment does not impose specific limitations on this.
[0037] In this embodiment, the at least two arc-shaped magnets 23 (including 23A and 23B) can be disposed on the rotating disk 212 of the rotating compass 21, and their positions change as the rotating compass 21 rotates (that is, as the rotating disk 212 rotates), or they can be disposed on the base of the rotating compass 21 or outside the rotating compass 21, and their positions do not change due to the rotation of the rotating compass 21.
[0038] When the at least two arc-shaped magnets 23 are disposed on the rotating disk 212 of the rotating compass 21 and their positions change as the rotating compass 21 rotates, the Hall sensor unit 22 can be disposed on the base of the rotating compass 21 or outside the rotating compass 21. Thus, by rotating the rotating compass 21, the relative position between the at least two arc-shaped magnets 23 and the Hall sensor unit 22 changes, thereby causing the magnetic field generated by the at least two arc-shaped magnets 23 at the Hall sensor unit 22 to change.
[0039] For example, such as Figure 2 As shown, in one feasible embodiment, the rotating compass 21 includes a fixed base 211 and a rotating disk 212 rotatably connected to the fixed base 211. At least two arc-shaped magnets 23 are fixed to the rotating disk 212, and a Hall sensor unit 22 is disposed on or near the fixed base 211.
[0040] In this embodiment, the rotating compass 21 is composed of a rotating disk 212 and a fixed base 211 connected in a rotatable manner. For example, a rotating shaft is provided between the rotating disk 212 and the fixed base 211, so that the rotating disk 212 can rotate around the rotating shaft, thereby realizing the rotatable connection.
[0041] In this embodiment, the at least two arc-shaped magnets 23 are fixed on the rotating disk 212 of the rotating compass 21, and their positions change as the rotating disk 212 rotates. The Hall sensor unit 22 is disposed on the fixed base 211 or disposed close to the fixed base 211. Thus, by rotating the rotating disk 212, the relative positions between the at least two arc-shaped magnets 23 and the Hall sensor unit 22 are changed, thereby causing the magnetic field generated by the at least two arc-shaped magnets 23 at the Hall sensor unit 22 to change.
[0042] When the at least two arc-shaped magnets 23 are positioned on the base of the rotating compass 21 or outside the rotating compass 21 and their positions do not change due to the rotation of the rotating compass 21, the Hall sensor unit 22 can be positioned on the rotating disk 212 of the rotating compass 21. Thus, by rotating the rotating compass 21, the relative positions between the at least two arc-shaped magnets 23 and the Hall sensor unit 22 are changed, thereby causing the magnetic field of the at least two arc-shaped magnets 23 at the Hall sensor unit 22 to change.
[0043] It is easy to understand that when the at least two curved magnets 23 or the Hall sensor unit 22 are placed outside the rotating compass 21, they should be placed close to the rotating compass 21 to prevent the Hall sensor unit from being too far away from the at least two curved magnets 23, which would prevent the Hall sensor unit 22 from accurately capturing the magnetic field changes when the rotating compass 21 rotates.
[0044] It is understandable that when the at least two arc-shaped magnets 23 or the Hall sensor unit 22 are mounted on the rotating disk 212, they can be fixed to the rotating disk 212 by welding, embedding, gluing, etc., so as to avoid significant relative displacement between them and the rotating disk 212 when the rotating disk 212 rotates, which would interfere with the Hall sensor unit 22's capture of magnetic field changes when the rotating disk 212 rotates.
[0045] It should be noted that, in this embodiment, the magnetic field change parameter is a parameter used to describe the change of magnetic field (speed, direction and magnitude). The magnetic field change refers to the change of the magnetic field generated by the at least two arc magnets 23 at the Hall sensing unit 22.
[0046] Those skilled in the art will know that unit magnetic field strength is used to characterize the magnitude of the magnetic field strength of a magnet per unit volume. Different unit magnetic field strengths result in different magnetic field gradients at the same point in space, and under different magnetic field gradients, the degree of magnetic field change (i.e., the magnitude and speed of magnetic field change are different) during the same movement process is different.
[0047] That is, the different unit magnetic fields of two adjacent arc magnets 23 make the following possible: among the parameters of magnetic field change generated by the at least two arc magnets 23 due to the rotation of the turntable detected by the Hall sensor unit 22, the rate of change of magnetic field strength of the two adjacent arc magnets 23 (that is, the degree of change of magnetic field within a unit rotation angle) is different. Thus, when the rotation speed of the rotating compass 21 is constant, the degree of change of magnetic field determines which of the two adjacent arc magnets 23 the rotating compass 21 is currently close to by the Hall sensor unit 22.
[0048] In this embodiment, the focusing module 2 also includes a damping unit (not shown), which is used to keep the rotation speed of the rotating compass 21 constant during rotation.
[0049] As those skilled in the art will recognize, a damping unit is a mechanical or electronic device used to absorb or slow down the energy of a moving system in order to reduce vibration, oscillation, or unwanted rapid motion.
[0050] In this embodiment, the damping unit specifically refers to a component designed to keep the rotational speed (specifically angular velocity) of the rotating compass 21 constant during rotation.
[0051] In this embodiment, the focusing module 2 also includes a damping unit, which ensures that the rotational speed of the rotating compass 21 is constant during rotation, that is, the rotating compass 21 maintains a stable and constant angular velocity during rotation. This means that regardless of changes in external conditions, the rotation angle of the rotating compass 21 per unit time is fixed.
[0052] In this embodiment, the rotational speed of the rotating compass 21 is kept constant by a damping unit. Thus, the degree of magnetic field change detected by the Hall sensor unit 22 per unit time can be used to determine which of the two adjacent arc magnets 23 the Hall sensor unit 22 is currently close to (the degree of magnetic field change of arc magnets 23 with different unit magnetic field strengths is different per unit time). Based on the direction of the magnetic field change, it can be determined whether the rotation is from the S pole to the N pole or from the N pole to the S pole of the arc magnet 23. Furthermore, by combining the relative positions of the two poles of the arc magnet 23 and the rotating compass 21, it can be determined whether the rotating compass 21 rotates clockwise or counterclockwise, and finally the rotation direction of the rotating compass 21 is determined.
[0053] Given a fixed rotation direction of the rotating compass 21, the camera module 1's shooting focal length can be increased or decreased based on a predefined mapping relationship between the rotation direction of the rotating compass 21 and the focal length adjustment direction (increase or decrease).
[0054] With the focus adjustment direction determined, the rotation angle can be calculated since the rotation speed of the rotating compass 21 is constant. Therefore, the degree of focus adjustment can be determined based on the magnitude of the rotation angle. Alternatively, while the rotating compass 21 is rotating, the focus can be adjusted by a preset value at fixed intervals, or the degree of focus adjustment can be determined based on the degree of change in the magnetic field.
[0055] It is worth mentioning that if, while the rotating compass 21 is rotating, a preset focal length is adjusted at fixed intervals, the size of this preset value corresponds to the rotational speed of the rotating compass 21. By pre-setting preset values corresponding to different rotational speeds, the focal length adjusted within each fixed interval can be changed by adjusting the rotational speed setting of the rotating compass 21. This allows users to freely adjust the sensitivity of the focal length adjustment according to their actual needs, achieving more flexible focal length adjustment. Specifically, the damping unit keeps the rotational speed of the rotating compass 21 constant, but the damping unit itself can have rotational speed settings. Different rotational speed settings allow the damping unit to cause the rotating compass 21 to rotate constantly at different speeds, thereby further meeting the user's focusing needs in different focusing scenarios. This avoids the problem of long focusing times when the focusing distance is large due to the low rotational speed of the rotating compass, and the problem of difficulty in sensitively and accurately focusing to the user's desired focal length when the focusing distance is very small due to the high rotational speed of the rotating compass.
[0056] It should also be noted that if the degree of focus adjustment is determined based on the degree of magnetic field change, considering that at the same rotational speed, adjacent arc magnets 23 have different unit magnetic field strengths, and the degree of magnetic field change differs when rotating by the same degree, different mappings are needed according to the different unit magnetic field strengths when determining the degree of focus adjustment based on the degree of magnetic field change. That is, at the same rotational speed, arc magnets 23 with different unit magnetic field strengths correspond to the same degree of focus adjustment at the same rotational speed. Correspondingly, the higher the rotational speed, the greater the degree of magnetic field change at the same rotational speed, and the greater the corresponding degree of focus adjustment. This allows users to freely adjust the sensitivity of focus adjustment according to actual needs, achieving more flexible focus adjustment.
[0057] In this embodiment, as long as the mapping relationship between the magnetic field change parameters and the rotation direction of the rotating compass 21 is pre-calibrated, the rotation information of the rotating compass 21 (such as rotation direction, rotation angle, rotation speed, etc.) can be determined through the magnetic field change parameters detected by the Hall sensor unit 22. Thus, the shooting focal length of the camera module 1 can be adjusted according to the rotation information of the rotating compass 21.
[0058] It should be noted that, in this embodiment, when the at least two arc-shaped magnets 23 form a ring, the distance between the two opposing magnetic poles of any two adjacent arc-shaped magnets 23 is less than a preset distance threshold. This preset distance threshold is a pre-set distance value used to ensure that the magnetic field changes detected by the Hall sensor unit 22 do not fluctuate significantly due to excessive distance between adjacent arc-shaped magnets 23, thus preventing the mapping between magnetic field changes and the rotation of the rotating compass 21 from becoming too complex.
[0059] In this embodiment, the control module 3 is electrically connected to the Hall sensor unit 22 and the camera module 1 respectively, thereby acquiring the magnetic field change parameters detected by the Hall sensor unit 22, and adjusting the shooting focal length of the camera module 1 according to the magnetic field change parameters.
[0060] Specifically, after acquiring the magnetic field change parameters detected by the Hall sensor unit 22, the control module 3 can determine the magnetic field change situation through these parameters. Then, by utilizing the pre-calibrated mapping relationship between the magnetic field change parameters and the rotation direction of the rotating compass 21, it can determine the rotation information of the rotating compass 21. Based on this rotation information and referring to the pre-defined mapping relationship between the rotation information of the rotating compass 21 and the shooting focal length adjustment information (including the focal length adjustment direction and adjustment amount), it can determine how to adjust the shooting focal length of the camera module 1, thereby completing the adjustment of the shooting focal length of the camera module 1.
[0061] Furthermore, this embodiment can also pre-calibrate the mapping relationship between the magnetic field change parameters and the shooting focal length adjustment information, so that after the control module 3 obtains the magnetic field change parameters detected by the Hall sensor unit 22, it can use the pre-calibrated mapping relationship between the magnetic field change and the shooting focal length adjustment to determine how to adjust the shooting focal length of the camera module 1, thereby completing the adjustment of the shooting focal length of the camera module 1.
[0062] It is easy to understand that the multiple pre-defined mapping relationships mentioned above can be represented by mapping tables, function expressions, machine learning models, etc. This embodiment does not impose specific restrictions on this, and users can choose the most suitable method to implement it according to their actual needs.
[0063] Compared to focusing via touchscreen or physical buttons, this embodiment uses a stepless focusing method, where the focus is adjusted by continuously rotating the compass 21. This provides a smoother and more continuous focusing process without causing the focus position to jump, thus improving the ease of focusing the camera device.
[0064] Furthermore, the layout design of this embodiment is simple and low-cost, which can effectively reduce the structural complexity and cost of the camera device 100. Thus, this embodiment can improve the ease of focusing of the camera device while reducing the structural complexity and cost of the camera device 100.
[0065] Based on the first embodiment described above, a camera device according to a second embodiment of this application is proposed.
[0066] In the second embodiment of this application, the same or similar content as in the above embodiments can be referred to the above description, and will not be repeated hereafter.
[0067] Please refer to Figure 3 , Figure 3 This is a plan view showing four arc-shaped magnets fixed on a rotating disk, as provided in the second embodiment of the camera device of this application.
[0068] In this embodiment, four arc-shaped magnets 23 are fixed to the rotating disk 212.
[0069] In this embodiment, four arc-shaped magnets 23, namely 23A, 23B, 23C, and 23D, are fixed on the rotating disk 212. Compared to fixing only two arc-shaped magnets 23A and 23B, although the structure of this embodiment is more complex, it is still within the category of simple structure, easier to implement, and less expensive. Moreover, when an arc-shaped magnet 23 is damaged and needs to be replaced, the replacement cost of a single arc-shaped magnet 23 is lower when four arc-shaped magnets 23 are fixed. Compared to fixing six or more arc-shaped magnets 23, the structure of this embodiment is even simpler.
[0070] After actual testing and verification, this embodiment found that fixing four arc-shaped magnets 23 can achieve the best balance between structural complexity and magnet replacement cost.
[0071] In one feasible implementation, the rotating disk 212 has four magnet embedding cavities, which are arranged in a ring around the center of the rotating disk 212, and four arc-shaped magnets 23 are respectively embedded in the four magnet embedding cavities.
[0072] It should be noted that, in this embodiment, the magnet embedding cavity is a structure specifically designed to accommodate and fix the arc-shaped magnet 23.
[0073] In this embodiment, four magnet mounting cavities are provided on the rotating disk 212, and four arc-shaped magnets 23 are respectively mounted thereon, thereby fixing the four arc-shaped magnets 23 on the rotating disk 212. This ensures that the four arc-shaped magnets 23 will not be displaced relative to the rotating disk 212 when the rotating disk 212 rotates, thereby ensuring that the Hall sensor unit 22 can detect accurate magnetic field change parameters and provide a reliable data basis for subsequent shooting focus adjustment.
[0074] Furthermore, in this embodiment, the four magnet embedding cavities are arranged in a ring shape and are set around the center of the rotating disk 212, which can ensure that after the four arc-shaped magnets 23 are respectively embedded in the four magnet embedding cavities, they can be arranged in a ring shape around the center of the rotating disk 212.
[0075] Furthermore, in one feasible implementation, among the four arc-shaped magnets 23 arranged in a ring, the unit magnetic field strength of two non-adjacent arc-shaped magnets 23 is the same.
[0076] In this embodiment, among the four arc-shaped magnets 23 arranged in a ring, the unit magnetic field strength of two non-adjacent arc-shaped magnets 23 is the same, so that the rate of magnetic field change detected by the Hall sensing unit 22 when it approaches two non-adjacent arc-shaped magnets 23 is consistent, that is, when approaching two non-adjacent arc-shaped magnets 23, the degree of magnetic field change under the same rotation is the same.
[0077] In this embodiment, the unit magnetic fields of two non-adjacent arc magnets 23 are the same, so that in the magnetic field change parameters generated by the rotation of the turntable detected by the Hall sensing unit 22, the magnetic field strength change rate of the two non-adjacent arc magnets 23 is the same.
[0078] For example, A and B are two non-adjacent arc magnets 23. As the rotating compass 21 rotates, the Hall sensing unit 22 moves 1 degree from the position closest to the S pole of A (that is, from the S pole directly opposite A) towards the N pole of A. The magnitude of the change in the magnetic field is the same as when it moves 1 degree from the position closest to the S pole of B (that is, from the S pole directly opposite B) towards the N pole of B as the rotating compass 21 rotates.
[0079] When two adjacent arc magnets 23 are facing each other with the same poles, the relative positional relationship between the poles of two non-adjacent arc magnets 23 and the rotating compass 21 is the same. Therefore, when the unit magnetic field strength of two non-adjacent arc magnets 23 is the same, the Hall sensor unit 22 detects the same magnetic field change when it approaches the non-adjacent arc magnet 23. The same mapping relationship between the magnetic field change parameters and the rotation direction of the rotating compass 21 can be shared. Thus, the mapping relationship between the magnetic field change parameters corresponding to the two adjacent arc magnets 23 and the rotation direction of the rotating compass 21 can be pre-calibrated, simplifying the logic processing from magnetic field change parameters to focus adjustment.
[0080] Of course, users can also set the four arc magnets 23 to have different unit magnetic field strengths according to actual needs, and calibrate the mapping relationship between the corresponding magnetic field change parameters and the rotation direction of the rotating compass 21, so as to determine which of the four arc magnets 23 the rotating compass 21 is currently rotating to when the Hall sensor unit 22 is close to the Hall sensor unit 22, based on the magnetic field change parameters detected by the Hall sensor unit 22.
[0081] Based on the first embodiment described above, a camera device according to a third embodiment of this application is proposed.
[0082] In the third embodiment of this application, the same or similar content as the above embodiments can be referred to the above description, and will not be repeated hereafter.
[0083] Please refer to Figure 4 , Figure 4 This is a plan view showing six arc-shaped magnets fixed on a rotating disk, as provided in the third embodiment of the camera device of this application.
[0084] In this embodiment, six arc-shaped magnets 23 are fixed to the rotating disk 212.
[0085] In this embodiment, six arc-shaped magnets 23, namely 23A, 23B, 23C, 23D, 23E and 23F, are fixed on the rotating disk 212. Compared with only two arc-shaped magnets 23A and 23B, and only four arc-shaped magnets 23A, 23B, 23C and 23D, this embodiment has a more complex structure, but it is still within the category of simple structure. It is relatively easy to implement and has a low cost. Moreover, when the arc-shaped magnets 23 are damaged and need to be replaced, the replacement cost of a single arc-shaped magnet 23 is lower when six arc-shaped magnets 23 are fixed.
[0086] In one feasible implementation, the rotating disk 212 has six magnet embedding cavities, which are arranged in a ring around the center of the rotating disk 212, and six arc-shaped magnets 23 are respectively embedded in the six magnet embedding cavities.
[0087] In this embodiment, six magnet embedding cavities are provided on the rotating disk 212, and six arc-shaped magnets 23 are embedded in them respectively, thereby fixing the six arc-shaped magnets 23 on the rotating disk 212. This ensures that the six arc-shaped magnets 23 will not be displaced relative to the rotating disk 212 when the rotating disk 212 rotates, thereby ensuring that the Hall sensor unit 22 can detect accurate magnetic field change parameters and provide a reliable data basis for subsequent shooting focus adjustment.
[0088] Furthermore, in this embodiment, the six magnet embedding cavities are arranged in a ring around the center of the rotating disk 212, which ensures that after the six arc-shaped magnets 23 are respectively embedded in the six magnet embedding cavities, they can be arranged in a ring around the center of the rotating disk 212.
[0089] Furthermore, in one feasible implementation, among the six arc-shaped magnets 23 arranged in a ring, the unit magnetic field strength of two non-adjacent arc-shaped magnets 23 is the same.
[0090] In this embodiment, among the six arc-shaped magnets 23 arranged in a ring, the unit magnetic field strength of two non-adjacent arc-shaped magnets 23 is the same, so that the rate of magnetic field change detected by the Hall sensing unit 22 when it approaches two non-adjacent arc-shaped magnets 23 is consistent, that is, when approaching two non-adjacent arc-shaped magnets 23, the degree of magnetic field change under the same rotation is the same.
[0091] That is, the unit magnetic field of two non-adjacent arc magnets 23 is the same, which means that in the magnetic field change parameters generated by the rotation of the turntable detected by the Hall sensing unit 22, the magnetic field strength change rate of the two non-adjacent arc magnets 23 is the same.
[0092] For example, A and B are two non-adjacent arc magnets 23. As the rotating compass 21 rotates, the Hall sensing unit 22 moves 1 degree from the S pole facing A to the N pole of A, and the magnitude of the change in the magnetic field is the same as when it moves 1 degree from the S pole facing B to the N pole of B.
[0093] When two adjacent arc magnets 23 are facing each other with the same poles, the relative positional relationship between the poles of two non-adjacent arc magnets 23 and the rotating compass 21 is the same. Therefore, when the unit magnetic field strength of two non-adjacent arc magnets 23 is the same, the Hall sensor unit 22 detects the same magnetic field change when it approaches the non-adjacent arc magnet 23. The same mapping relationship between the magnetic field change parameters and the rotation direction of the rotating compass 21 can be shared. Thus, the mapping relationship between the magnetic field change parameters corresponding to the two adjacent arc magnets 23 and the rotation direction of the rotating compass 21 can be pre-calibrated, simplifying the logic processing from magnetic field change parameters to focus adjustment.
[0094] Of course, users can also set the six arc magnets 23 to have different unit magnetic field strengths according to actual needs, and calibrate the mapping relationship between the corresponding magnetic field change parameters and the rotation direction of the rotating compass 21, so as to determine which of the six arc magnets 23 the rotating compass 21 is currently rotating to when the Hall sensor unit 22 is close to the Hall sensor unit 22, based on the magnetic field change parameters detected by the Hall sensor unit 22.
[0095] Based on the first embodiment described above, a camera device according to a fourth embodiment of this application is proposed.
[0096] In the fourth embodiment of this application, the same or similar content as the above embodiments can be referred to the above description, and will not be repeated hereafter.
[0097] In this embodiment, the Hall sensor unit 22 is also configured to periodically detect the magnetic field parameters of at least two arc magnets 23 based on a preset frequency; determine the magnetic field change parameters of the current cycle relative to the previous cycle based on the first magnetic field parameters collected in the current cycle and the second magnetic field parameters collected in the previous cycle; and use the magnetic field change parameters of the current cycle relative to the previous cycle as the magnetic field change parameters generated by the rotation of the rotating disk 212 to the at least two arc magnets 23.
[0098] It should be noted that the preset frequency refers to the frequency at which the Hall sensor unit 22 detects changes in the magnetic field and generates parameters of the magnetic field change.
[0099] In this embodiment, the preset frequency can be flexibly set according to actual needs, and this embodiment does not impose specific limitations on it. A higher preset frequency allows the Hall sensor to more accurately and sensitively capture changes in the magnetic field, thus providing a more refined data basis for subsequent focus adjustment and achieving smoother, more continuous focus adjustment. A lower preset frequency reduces the system's processing burden and consumes fewer resources.
[0100] It should also be noted that the magnetic field parameters refer to the relevant parameters (e.g., magnetic induction intensity) of the magnetic field generated by the at least two arc magnets 23 detected by the Hall sensing unit 22. The first magnetic field parameter refers to the magnetic field parameter collected in the current cycle when the Hall sensing unit 22 periodically detects the magnetic field parameters based on a preset frequency, and the second magnetic field parameter refers to the magnetic field parameter collected in the previous cycle when the Hall sensing unit 22 periodically detects the magnetic field parameters based on a preset frequency.
[0101] In this embodiment, the Hall sensor unit 22 periodically detects the magnetic field parameters of the at least two arc magnets 23 at a preset frequency. Based on the first magnetic field parameter collected in the current cycle and the second magnetic field parameter collected in the previous cycle, the change in magnetic field parameters in the current cycle relative to the previous cycle is determined, that is, the magnetic field change parameter of the current cycle relative to the previous cycle. Then, the magnetic field change parameter of the current cycle relative to the previous cycle is used as the magnetic field change parameter generated by the rotation of the rotating disk 212 to the at least two arc magnets 23.
[0102] With the above settings, this embodiment can periodically detect the magnetic field changes generated by the at least two arc-shaped magnets 23 at the Hall sensor unit 22 due to the rotation of the rotating compass 21, obtain the corresponding magnetic field change parameters, and then determine the direction, magnitude and speed of the magnetic field change based on the magnetic field change parameters, thereby determining the direction and angle of the rotation of the rotating compass 21, and finally completing the adjustment of the shooting focus.
[0103] In one feasible implementation, the control module 3 is further configured to increase the shooting focal length of the camera module 1 by a step focal length value when the rotation direction of the rotating disk 212 is determined to be a first direction based on the magnetic field change parameters; and to decrease the shooting focal length of the camera module 1 by a step focal length value when the rotation direction of the rotating disk 212 is determined to be a second direction based on the magnetic field change parameters.
[0104] Among them, the step focal length value corresponds to the magnetic field change parameter, and the second direction is the opposite direction of the first direction.
[0105] It should be noted that the step focal length value refers to the specific increment or decrement of the shooting focal length of camera module 1 in a single adjustment.
[0106] In this embodiment, when the first direction is set to clockwise, the second direction is counterclockwise; correspondingly, when the first direction is set to counterclockwise, the second direction is clockwise.
[0107] It should also be noted that in this embodiment, when the rotation of the rotating disk 212 causes the magnetic field generated by the at least two arc magnets 23 at the Hall sensing unit 22 to change, the control module 3 adjusts the shooting focus once every time the Hall sensing unit 22 detects a change in the first magnetic field parameter of the current cycle relative to the second magnetic field parameter of the previous cycle. That is, when the rotating compass 21 rotates, the shooting focus is adjusted once at fixed intervals.
[0108] In this embodiment, there is a correspondence between the step focal length value and the magnetic field change parameter. Different magnetic field change parameters can correspond to different step focal length values. The specific correspondence can be set according to actual needs. This embodiment does not impose too many restrictions.
[0109] In this embodiment, the control module 3 can determine the rotation direction of the rotating disk 212 based on the magnetic field change parameters detected by the Hall sensor unit 22 and the pre-calibrated mapping relationship between the magnetic field change parameters and the rotation direction of the rotating compass 21. Thus, when the rotation direction of the rotating disk 212 is determined to be the first direction, the control module 3 determines the step focal length value that should be increased for this shooting based on the detected magnetic field change parameters and the correspondence between the step focal length value and the magnetic field change parameters. When the rotation direction of the rotating disk 212 is determined to be the second direction, the control module 3 determines the step focal length value that should be decreased for this shooting based on the detected magnetic field change parameters and the correspondence between the step focal length value and the magnetic field change parameters, thereby completing the adjustment of the shooting focal length.
[0110] For example, in one feasible implementation, the magnetic field change parameters include the magnetic field strength change value and the magnetic field strength change rate; the control module 3 is further configured to determine the rotation direction of the rotating disk 212 as a first direction when the magnetic field strength change value is positive and the magnetic field strength change rate is a first change rate; and to determine the rotation direction of the rotating disk 212 as a second direction when the magnetic field strength change value is positive and the magnetic field strength change rate is a second change rate.
[0111] The second rate of change is different from the first rate of change.
[0112] It should be noted that the change in magnetic field strength represents the amount of change in magnetic field strength or magnetic induction intensity in the current cycle relative to the previous cycle, corresponding to the magnitude and direction of the magnetic field change. The rate of change of magnetic field strength represents how quickly the magnetic field strength or magnetic induction intensity changes in the current cycle relative to the previous cycle, corresponding to the speed of the magnetic field change. The change in magnetic field strength can be positive or negative; positive values indicate an increase, and negative values indicate a decrease. The rate of change of magnetic field strength is an absolute value, indicating only the speed of change; the larger the value, the faster the change, and the smaller the value, the slower the change.
[0113] For example, the change in magnetic field strength can be calculated by subtracting the magnetic field strength of the previous period from the current period's magnetic field strength. Here, magnetic field strength is a vector with positive and negative directions; the magnetic field strength data at the S pole can be taken as positive, and the magnetic field strength data at the N pole as negative.
[0114] In this embodiment, the rotating disk 212 of the rotating compass 21 rotates at a constant speed, so that the rate of change of magnetic field strength detected by the Hall sensing unit 22 during the process of moving from one pole of the arc magnet 23 to the other is stable within a certain range.
[0115] Based on this, this embodiment pre-calibrates the magnetic field strength change rate range corresponding to each of the at least two arc magnets 23, and by using arc magnets 23 with different unit magnetic field strengths, it ensures that the magnetic field strength change rate ranges corresponding to two adjacent arc magnets 23 do not overlap. Thus, it can determine which pre-calibrated magnetic field strength change rate range the rotating compass 21 is currently rotating to is close to which arc magnet 23 the Hall sensor unit 22 is near by the magnetic field strength change rate detected by the Hall sensor unit 22.
[0116] In this embodiment, since two adjacent arc magnets 23 have the same pole facing each other, if the change rate of the magnetic field strength of the first corresponding one of the two adjacent arc magnets 23 is determined as the first change rate, the change rate of the magnetic field strength of the second corresponding one is determined as the second change rate, and the rotation direction of the rotating disk 212 when the change value of the magnetic field strength of the first corresponding one is positive is set as the first direction, then obviously, when the change value of the magnetic field strength of the first corresponding one is negative, the rotation direction of the rotating disk 212 is reversed to the second direction, and when the change value of the magnetic field strength of the second corresponding one is positive, the rotation direction of the rotating disk 212 is set as the second direction, and when the change value of the magnetic field strength of the first corresponding one is negative, the rotation direction of the rotating disk 212 is reversed to the first direction. Thus, under the premise of pre-calibrating the mapping relationship between the magnetic field change parameters corresponding to each arc magnet 23 and the rotation direction of the rotating compass 21, the rotation direction of the rotating disk 212 can be determined by the change rate and change value of the magnetic field strength detected by the Hall sensor unit 22, and then the direction of focus adjustment can be determined as increasing or decreasing.
[0117] Furthermore, since the two adjacent arc magnets 23 are opposite each other with the same pole, the mapping relationship between the magnetic field change parameters corresponding to the non-adjacent arc magnets 23 and the rotation direction of the rotating compass 21 is the same. Therefore, it is only necessary to determine the magnetic field strength change rate corresponding to the non-adjacent arc magnets 23 as the same change rate (for example, both are determined to be the first change rate) so that a set of logic can be used to determine the rotation direction of the rotating disk 212.
[0118] For example, in one example, the at least two arc-shaped magnets 23 include A, B, C, and D, where A and C are not adjacent, and B and D are not adjacent. In this case, the magnetic field strength change rate intervals corresponding to A and C can be marked as the first change rate interval, and the magnetic field strength change rate intervals corresponding to B and D can be marked as the second change rate interval. By using arc-shaped magnets 23 with different unit magnetic field strengths, it is ensured that the first change rate interval and the second change rate interval do not overlap. Thus, when determining the rotation direction of the rotating disk 212, when the magnetic field strength change rate detected by the Hall sensor unit 22 falls into the first change rate interval, the magnetic field strength change rate is determined to be the first change rate, and a set of logic is used to determine the rotation direction of the rotating disk 212. When the magnetic field strength change rate falls into the second change rate interval, the magnetic field strength change rate is determined to be the second change rate, and a different set of logic is used to determine the rotation direction of the rotating disk 212.
[0119] This embodiment enables the determination of the rotation direction of the rotating disk 212 by simply setting two sets of logic, regardless of the number of arc magnets 23. The logic processing is simple and easy to implement.
[0120] Furthermore, in one feasible implementation, the control module 3 is also configured to determine the rotation direction of the rotating disk 212 as the second direction when the change value of the magnetic field strength is negative and the change rate of the magnetic field strength is the first change rate; and to determine the rotation direction of the rotating disk 212 as the first direction when the change value of the magnetic field strength is negative and the change rate of the magnetic field strength is the second change rate.
[0121] This embodiment is the remaining part of the two sets of logic used to determine the rotation direction of the rotating disk 212 mentioned above. The technical effect is the same as the previous embodiment, and will not be elaborated on here.
[0122] In one example, the at least two arc-shaped magnets 23 include a magnet 1 and a magnet 2, and magnet 1 and magnet 2 are adjacent to each other (i.e., magnet 1 and magnet 2 have different unit magnetic field strengths).
[0123] Assuming that the Hall sensor unit 22 is located closest to the N pole of magnet 1 when the rotating compass 21 has not started rotating (that is, the Hall sensor unit is facing the N pole of magnet 1), when the rotating compass 21 rotates clockwise, the Hall sensor unit 22 starts from facing the N pole of magnet 1, passes through the center of magnet 1, the S pole of magnet 1, the S pole of magnet 2, the center of magnet 2, the N pole of magnet 2, and finally returns to the N pole of magnet 1, completing one revolution.
[0124] like Figure 5 As shown, assuming the magnetic field strength corresponding to the N pole is negative and the magnetic field strength corresponding to the S pole is positive, the curve of the magnetic field strength detected by the Hall sensor unit 22 changing with the rotation angle of the rotating compass 21 is as follows: the magnetic field strength first increases from the negative value when facing the N pole of magnet 1, and increases to the limit when facing the S pole of magnet 1 and the S pole of magnet 2 (that is, the sum of the distance between the Hall sensor unit and the S pole of magnet 1 and the distance between the Hall sensor unit and the S pole of magnet 2 is the smallest), and then begins to decrease, and decreases to the limit when facing the N pole of magnet 2 and the N pole of magnet 1, completing one rotation.
[0125] From that Figure 5 As can be seen, when the Hall sensor unit 22 moves relative to magnets with different magnetic field strengths but the same magnetic field strength, the slope of the curve (i.e., the rate of change of magnetic field strength) is stable in different intervals. Therefore, by the difference in slope (or the difference in the interval in which the slope is located), it can be determined which magnet the Hall sensor unit 22 is currently close to, and then, combined with the increase or decrease of magnetic field strength (i.e., the positive or negative value of the change in magnetic field strength), the rotation direction of the rotating compass 21 can be determined.
[0126] Specifically, assuming that the rate of change of magnetic field strength corresponding to magnet 1 is the first rate of change and the rate of change of magnetic field strength corresponding to magnet 2 is the second rate of change, then the rotation of the rotating disk 212 will be as shown in the table below:
[0127]
[0128] When Hall sensor unit 22 moves from position 1 (where the distance between Hall sensor unit 22 and position 1 is minimal) to position 4, it detects that the magnetic field strength change in the current cycle relative to the previous cycle is positive, with a first rate of change, and determines the rotation direction as the first direction, clockwise. When moving from position 2 to position 4, the magnetic field strength change is positive, with a second rate of change, and determines the rotation direction as the second direction, counterclockwise. When moving from position 4 to position 1, it detects that the magnetic field strength change in the current cycle relative to the previous cycle is negative, with a first rate of change, and determines the rotation direction as the second direction. When moving from position 4 to position 2, it detects that the magnetic field strength change in the current cycle relative to the previous cycle is negative, with a second rate of change, and determines the rotation direction as the first direction.
[0129] In the second example, the at least two arc-shaped magnets 23 include two magnets 1 and two magnets 2, with magnets 1 and magnets 2 adjacent to each other. Specifically, the S pole of the first magnet 1 is opposite to the S pole of the first magnet 2, and its N pole is opposite to the N pole of the second magnet 2; conversely, the S pole of the second magnet 1 is opposite to the S pole of the second magnet 2, and its N pole is opposite to the N pole of the first magnet 2.
[0130] Assuming that the Hall sensor unit 22 is facing the N pole of the first magnet 1, which is also facing the N pole of the second magnet 2, when the rotating compass 21 is not rotating, the Hall sensor unit 22 starts from facing the N pole of the first magnet 1, passes through the center of the first magnet 1, the S pole of the first magnet 1, the S pole of the first magnet 2, the center of the first magnet 2, and finally returns to the N pole of the first magnet 1, completing one revolution.
[0131] like Figure 6 As shown, assuming the magnetic field strength corresponding to the N pole is negative and the magnetic field strength corresponding to the S pole is positive, the curve of the magnetic field strength detected by the Hall sensor unit 22 changing with the rotation angle of the rotating compass 21 is as follows: the magnetic field strength first increases from a negative value when it is directly opposite the N pole of the first magnet 1, increases to a limit when it is directly opposite the S pole of the first magnet 1 and the S pole of the first magnet 2, then begins to decrease, and decreases to a limit when it is directly opposite the N pole of the first magnet 2 and the N pole of the second magnet 1, then begins to increase, and increases to a limit when it is directly opposite the S pole of the second magnet 1 and the S pole of the second magnet 2, and then begins to decrease again, until it decreases to a limit when it is directly opposite the N pole of the second magnet 2 and the N pole of the first magnet 1, completing one rotation.
[0132] From that Figure 6As can be seen, when the Hall sensor unit 22 moves closer to each magnet 1, the slope of the curve is stable within a certain range. However, when it moves closer to each magnet 2, the slope of the curve is stable on another significantly different curve. Thus, by observing the difference in slope (or the difference in the range of the slope), it can be determined whether the Hall sensor unit 22 is currently closer to magnet 1 or magnet 2. Furthermore, by combining the increase or decrease in magnetic field strength, the rotation direction of the rotating compass 21 can be determined.
[0133] Specifically, assuming that the rate of change of magnetic field strength corresponding to magnet 1 is the first rate of change and the rate of change of magnetic field strength corresponding to magnet 2 is the second rate of change, then the rotation of the rotating disk 212 will be as shown in the table below:
[0134]
[0135] When the Hall sensor unit 22 moves from position 1 to position 4, it detects that the magnetic field strength change in the current cycle relative to the previous cycle is positive, with a first rate of change, and determines the rotation direction as the first direction (clockwise). When moving from position 2 to position 4, the magnetic field strength change is positive, with a second rate of change, and determines the rotation direction as the second direction (counterclockwise). When moving from position 4 to position 1, it detects that the magnetic field strength change in the current cycle relative to the previous cycle is negative, with a first rate of change, and determines the rotation direction as the second direction. When moving from position 4 to position 2, it detects that the magnetic field strength change in the current cycle relative to the previous cycle is negative, with a second rate of change, and determines the rotation direction as the first direction.
[0136] In the third example, the at least two arc-shaped magnets 23 include three magnets 1 and three magnets 2, with magnets 1 and magnets 2 adjacent to each other. Specifically, the S pole of the first magnet 1 is opposite to the S pole of the first magnet 2, and its N pole is opposite to the N pole of the third magnet 2; the S pole of the second magnet 1 is opposite to the S pole of the second magnet 2, and its N pole is opposite to the N pole of the first magnet 2; the S pole of the third magnet 1 is opposite to the S pole of the third magnet 2, and its N pole is opposite to the N pole of the second magnet 2.
[0137] Assuming that the Hall sensor unit 22 is facing the N pole of the first magnet 1, which is also facing the N pole of the second magnet 2, when the rotating compass 21 is not rotating, the Hall sensor unit 22 starts from facing the N pole of the first magnet 1, passes through the center of the first magnet 1, the S pole of the first magnet 1, the S pole of the first magnet 2, the center of the first magnet 2, and finally returns to the N pole of the first magnet 1, completing one revolution.
[0138] like Figure 7As shown, assuming the magnetic field strength corresponding to the N pole is negative and the magnetic field strength corresponding to the S pole is positive, the curve of the magnetic field strength detected by the Hall sensor unit 22 changing with the rotation angle of the rotating compass 21 is as follows: The magnetic field strength first increases continuously from a negative value when facing the N pole of the first magnet 1, then increases to a limit when facing the S pole of the first magnet 1 and the S pole of the first magnet 2, and then begins to decrease. It decreases to a limit when facing the N pole of the first magnet 2 and the N pole of the second magnet 1, and then begins to increase again. It increases to a limit when facing the S pole of the second magnet 1 and the S pole of the second magnet 2, and then begins to decrease again. Then it decreases to a limit when facing the N pole of the second magnet 2 and the N pole of the third magnet 1, and then begins to increase again. Finally, it increases to a limit when facing the S pole of the third magnet 1 and the S pole of the third magnet 2, and then begins to decrease for the last time, until it decreases to a limit when facing the N pole of the third magnet 2 and the N pole of the first magnet 1, completing one rotation.
[0139] From that Figure 7 As can be seen, when the Hall sensor unit 22 moves closer to each magnet 1, the slope of the curve is stable within a certain range. However, when it moves closer to each magnet 2, the slope of the curve is stable on another significantly different curve. Thus, by observing the difference in slope (or the difference in the range of the slope), it can be determined whether the Hall sensor unit 22 is currently closer to magnet 1 or magnet 2. Furthermore, by combining the increase or decrease in magnetic field strength, the rotation direction of the rotating compass 21 can be determined.
[0140] Specifically, assuming that the rate of change of magnetic field strength corresponding to magnet 1 is the first rate of change and the rate of change of magnetic field strength corresponding to magnet 2 is the second rate of change, then the rotation of the rotating disk 212 will be as shown in the table below:
[0141]
[0142] When the Hall sensor unit 22 moves from position 1 to position 4, it detects that the magnetic field strength change in the current cycle relative to the previous cycle is positive, with a first rate of change, and determines the rotation direction as the first direction (clockwise). When moving from position 2 to position 4, the magnetic field strength change is positive, with a second rate of change, and determines the rotation direction as the second direction (counterclockwise). When moving from position 4 to position 1, it detects that the magnetic field strength change in the current cycle relative to the previous cycle is negative, with a first rate of change, and determines the rotation direction as the second direction. When moving from position 4 to position 2, it detects that the magnetic field strength change in the current cycle relative to the previous cycle is negative, with a second rate of change, and determines the rotation direction as the first direction.
[0143] Furthermore, in one feasible implementation, the focusing module 2 also includes a motor for adjusting the shooting focal length of the camera module 1, and the control module 3 is electrically connected to the motor; wherein, the larger the current value of the driving motor, the larger the shooting focal length, and the smaller the current value of the driving motor, the smaller the shooting focal length.
[0144] The control module 3 is also configured to increase the current value of the drive motor by a step current value when the rotation direction of the rotating disk 212 is determined to be the first direction based on the magnetic field change parameters; and to decrease the current value of the drive motor by a step current value when the rotation direction of the rotating disk 212 is determined to be the second direction based on the magnetic field change parameters, wherein the step current value corresponds to the magnetic field change parameters.
[0145] In this embodiment, the control module 3 adjusts the shooting focal length of the camera module 1 by controlling the current value of the drive motor.
[0146] In this embodiment, the correspondence between the step focal length value and the magnetic field change parameter actually refers to the correspondence between the step current value and the magnetic field change parameter. That is, for every increase in the current value of the drive motor, the shooting focal length of the camera module 1 increases accordingly until the upper limit of the shooting focal length of the camera module 1 is reached. Correspondingly, for every decrease in the current value of the drive motor, the shooting focal length of the camera module 1 decreases accordingly until the lower limit of the shooting focal length of the camera module 1 is reached.
[0147] In addition, this application also provides a mobile terminal, which includes the camera device provided in the above embodiments.
[0148] The mobile terminal proposed in this embodiment belongs to the same technical concept as the camera device proposed in the above embodiments. Technical details not described in detail in this embodiment can be found in any of the above embodiments. Furthermore, this embodiment has the same beneficial effects as the above embodiments of the camera device.
[0149] The above are only some embodiments of this application and do not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A camera device, comprising a camera module, a focusing module, and a control module, wherein, The focusing module includes a rotating compass, a Hall sensor unit, and at least two arc magnets; The at least two arc-shaped magnets are arranged in a ring around the center of the rotating compass, wherein between two adjacent arc-shaped magnets arranged in the ring, the S poles are opposite each other and the N poles are opposite each other, and the unit magnetic field strength of the two adjacent arc-shaped magnets is different. The Hall sensor unit is configured to detect the change parameters of the magnetic field generated by the at least two arc-shaped magnets caused by the rotation of the rotating compass. The control module is electrically connected to the Hall sensor unit and the camera module, respectively, and is configured to adjust the shooting focal length of the camera module according to the magnetic field change parameters detected by the Hall sensor unit.
2. The camera device as described in claim 1, characterized in that, The focusing module also includes a damping unit, which is used to keep the rotation speed of the rotating compass constant during rotation.
3. The camera device as described in claim 2, characterized in that, The rotating compass includes a fixed base and a rotating disk rotatably connected to the fixed base. The at least two arc-shaped magnets are fixed to the rotating disk, and the Hall sensor unit is disposed on or near the fixed base.
4. The camera device as described in claim 3, characterized in that, Four arc-shaped magnets are fixed to the rotating disk.
5. The camera device as described in claim 4, characterized in that, The rotating disk has four magnet embedding cavities, which are arranged in a ring around the center of the rotating disk. The four arc-shaped magnets are respectively embedded in the four magnet embedding cavities.
6. The camera device as described in claim 5, characterized in that, In a ring of four arc-shaped magnets, the unit magnetic field strength of any two non-adjacent arc-shaped magnets is the same.
7. The camera device as described in claim 3, characterized in that, The Hall sensor unit is also configured to periodically detect the magnetic field parameters of the at least two arc-shaped magnets based on a preset frequency; determine the magnetic field change parameters of the current cycle relative to the previous cycle based on the first magnetic field parameter collected in the current cycle and the second magnetic field parameter collected in the previous cycle; and use the magnetic field change parameters of the current cycle relative to the previous cycle as the magnetic field change parameters generated by the rotation of the rotating disk to the at least two arc-shaped magnets.
8. The camera device as claimed in claim 7, characterized in that, The control module is further configured to increase the shooting focal length of the camera module by a step focal length value when the rotation direction of the rotating disk is determined to be a first direction based on the magnetic field change parameters; and to decrease the shooting focal length of the camera module by a step focal length value when the rotation direction of the rotating disk is determined to be a second direction based on the magnetic field change parameters. The step focal length value corresponds to the magnetic field change parameter, and the second direction is the opposite direction of the first direction.
9. The camera device as claimed in claim 8, characterized in that, The magnetic field change parameters include the magnetic field strength change value and the magnetic field strength change rate; the control module is further configured to determine the rotation direction of the rotating disk as a first direction when the magnetic field strength change value is positive and the magnetic field strength change rate is a first change rate; and to determine the rotation direction of the rotating disk as a second direction when the magnetic field strength change value is positive and the magnetic field strength change rate is a second change rate. The second rate of change is different from the first rate of change.
10. The camera device as claimed in claim 9, characterized in that, The control module is further configured to determine the rotation direction of the rotating disk as a second direction when the change value of the magnetic field strength is negative and the change rate of the magnetic field strength is a first change rate; and to determine the rotation direction of the rotating disk as a first direction when the change value of the magnetic field strength is negative and the change rate of the magnetic field strength is a second change rate.
11. The camera device as claimed in claim 10, characterized in that, The focusing module also includes a motor for adjusting the shooting focal length of the camera module, and the control module is electrically connected to the motor; wherein, the larger the current value driving the motor, the larger the shooting focal length, and the smaller the current value driving the motor, the smaller the shooting focal length. The control module is further configured to increase the current value driving the motor by a step current value when the rotation direction of the rotating disk is determined to be a first direction based on the magnetic field change parameters; and to decrease the current value driving the motor by a step current value when the rotation direction of the rotating disk is determined to be a second direction based on the magnetic field change parameters, wherein the step current value corresponds to the magnetic field change parameters.
12. A mobile terminal, characterized in that, The mobile terminal includes a camera device as described in any one of claims 1 to 11.