Camera module and electronic equipment

By introducing ball sets and magnetic drives into the camera module, the friction problem between the lens assembly and the base is solved, the smoothness of focus and energy consumption are reduced, and the stability and mechanical efficiency of the camera module are improved.

CN223297656UActive Publication Date: 2025-09-02BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422473376.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-09-02
Estimated Expiration
2034-10-12

AI Technical Summary

Technical Problem

The friction between the lens assembly and the base in the existing camera module is high, resulting in unsmooth focus and high energy consumption.

Method used

A ball group is arranged between the lens assembly and the base, and the friction is reduced through the rolling connection, and the magnetic force of the magnetic part and the coil drives the movement of the lens assembly, and adjusts the light path in conjunction with the swing of the prism bracket.

Benefits of technology

It achieves smoother focus of the lens component, reduces energy consumption and reduces the possibility of ball stuck, and improves the mechanical efficiency and stability of the camera module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223297656U_ABST
    Figure CN223297656U_ABST
Patent Text Reader

Abstract

The utility model provides a camera module and electronic equipment. The camera module comprises a base, a lens assembly and a ball group. The lens assembly is mounted on the base, at least one of the base and the lens assembly is provided with a mounting groove, and the ball group is assembled in one mounting groove and comprises at least two balls, so that the lens assembly is in rolling connection with the base. Under the condition that the camera module works, the lens assembly can move relative to the base for focusing. According to the camera module, the ball group is arranged between the lens assembly and the base, so that when the lens assembly moves relative to the base for focusing, the friction force between the lens assembly and the base can be reduced; meanwhile, the at least two balls are arranged in the mounting groove, so that the impact force of the balls on the base and the lens assembly when the camera module is impacted can be reduced, the probability of forming pits due to the impact force can be reduced, and the probability of jamming of the balls can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of camera modules, and in particular to a camera module and electronic equipment. Background Art

[0002] With the continuous iteration and updating of technology, many electronic devices today (such as tablets or smart phones) are equipped with camera modules to realize the shooting and video recording functions of the electronic devices.

[0003] When photographing different objects or scenes, it's often necessary to adjust the focal length of the lens assembly in a camera module to achieve clear images. Existing lens assemblies are typically driven by a motor to move on a base to achieve focus. However, friction between the lens assembly and the base causes stagnation and unsmooth movement. This also requires the motor to exert greater force to overcome the friction, hindering energy conservation. Utility Model Content

[0004] The purpose of this application is to provide a camera module and electronic equipment with smoother focusing.

[0005] The present application provides a camera module, comprising: a base, a lens assembly and a ball group; the lens assembly is installed on the base, and at least one of the base and the lens assembly is provided with a mounting groove, the ball group is assembled in one of the mounting grooves and includes at least two balls, so that the lens assembly is rollingly connected to the base; when the camera module is working, the lens assembly can move relative to the base to focus.

[0006] Furthermore, the diameters of the multiple balls in the ball group are the same.

[0007] Furthermore, an arrangement direction of the plurality of balls in the ball group is the same as a movement direction of the lens assembly relative to the base.

[0008] Furthermore, there are a plurality of mounting grooves, and the ball group is arranged in at least one of the mounting grooves.

[0009] Furthermore, two of the mounting slots are located on one side of the base, a line connecting central axes of the two mounting slots is in the same direction as the movement direction of the lens assembly, and the other mounting slot is located on the other opposite side of the base.

[0010] Furthermore, it also includes a first adsorption component arranged on the lens assembly and a second adsorption component arranged on the base; the first adsorption component and the second adsorption component are magnetically adsorbed; the first adsorption component is located in the area surrounded by the line connecting the centers of the multiple installation slots.

[0011] Furthermore, it also includes a prism and a prism bracket; the prism is installed on the prism bracket, and the prism bracket is installed on the base and can swing relative to the base along a first direction and a second direction perpendicular to the first direction.

[0012] Furthermore, it also includes a first rotating shaft and a second rotating shaft; the first rotating shaft is perpendicular to the second rotating shaft, the prism bracket is provided with a first groove and a second groove, the first rotating shaft is rotatably connected to the prism bracket and is accommodated in the first groove, and the second rotating shaft is accommodated in the second groove; the prism bracket swings relative to the first rotating shaft to swing along the first direction, and the prism bracket swings relative to the second rotating shaft to swing along the second direction.

[0013] Furthermore, a first magnetic member is provided on one of the lens assembly and the base, and a first coil is provided on the other; when the first coil is energized, the magnetic force between the first coil and the first magnetic member drives the lens assembly to move relative to the base; and / or,

[0014] A second magnetic member is provided on one of the prism bracket and the base, and a second coil is provided on the other; when the second coil is energized, the magnetic force between the second coil and the second magnetic member drives the prism bracket to swing relative to the base.

[0015] The present application also provides an electronic device comprising the above-mentioned camera module.

[0016] The camera module of the present application arranges a ball group between the lens assembly and the base, which can reduce the friction between the lens assembly and the base when the lens assembly moves relative to the base for focusing; at the same time, by arranging at least two balls in the mounting groove, the impact force of the balls on the base and the lens assembly when the camera module is impacted can be reduced, and the probability of pits formed due to the impact force can be reduced, thereby reducing the probability of the balls getting stuck.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.

[0019] Figure 1 It is a schematic diagram of the camera module of this application.

[0020] Figure 2 yes Figure 1 The schematic diagram of the camera module shown is after the base is removed.

[0021] Figure 3 yes Figure 1 An exploded view of the camera module is shown.

[0022] Figure 4 yes Figure 3 Schematic diagram of the base shown.

[0023] Figure 5 yes Figure 3 Schematic diagram of the vector shown.

[0024] Figure 6 yes Figure 5 Another schematic diagram of the vector shown.

[0025] Figure 7 yes Figure 3 Schematic diagram of the prism holder shown.

[0026] Figure 8 yes Figure 7 Another schematic diagram of the prism holder is shown.

[0027] Figure 9 yes Figure 7 Exploded diagram. DETAILED DESCRIPTION

[0028] Here, the technical solutions in the embodiments (or "implementations") of the present application will be clearly and completely described in conjunction with the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements.

[0029] If there are terms related to directional indications or positional relationships in the embodiments of this application (such as up, down, left, right, front, back, inside, outside, top, bottom, center, vertical, horizontal, longitudinal, transverse, length, width, counterclockwise, clockwise, axial, radial, circumferential, etc.), such terms are only used to explain the relative positional relationship, movement, etc. between the components in a specific posture (as shown in the accompanying drawings); if the specific posture changes, the directional indication or positional relationship will also change accordingly. In addition, the terms "first" and "second" in the embodiments of this application are only used for the purpose of convenience of description and should not be understood as indicating or implying relative importance.

[0030] Please refer to Figure 1 and Figure 2As shown, the present application provides a camera module, comprising: a base 1, a lens assembly 2, and a ball assembly 3. The lens assembly 2 is mounted on the base 1. At least one of the base 1 and the lens assembly 2 is provided with a mounting groove 11. The ball assembly 3 is assembled in one of the mounting grooves 11 and includes at least two balls 31, so that the lens assembly 2 and the base 1 are in rolling connection. When the camera module is in operation, the lens assembly 2 can move relative to the base 1 to focus.

[0031] The camera module of the present application sets a ball group 3 between the lens assembly 2 and the base 1, which can reduce the friction between the lens assembly 2 and the base 1 when the lens assembly 2 moves relative to the base 1 for focusing; by setting at least two balls 31 in the mounting groove 11, the force-bearing area during impact is increased, which can reduce the probability of pits being generated between the contact surfaces of the balls 31 and the base 1 and the lens assembly 2. At the same time, even if the formation of pits cannot be completely avoided, the depth of the pits can be effectively reduced, and the possibility of at least two balls 31 located in the mounting groove 11 falling into the pits at the same time can be reduced, thereby reducing the deviation between the position of the overall structure and the design theory, reducing the probability of the balls 31 getting stuck, and improving the quality of the product.

[0032] Please refer to Figures 3 to 6 As shown, the base 1 forms a receiving cavity 101, and the lens assembly 2 is disposed in the receiving cavity 101. The lens assembly 2 can move relative to the length direction of the base 1 for focusing. The base 1 is provided with a first light-transmitting port 102 communicating with the receiving cavity 101.

[0033] The lens assembly 2 provided herein includes a lens 23, a carrier 24, and a pinch plate 25. The carrier 24 defines a mounting cavity 240 for accommodating the lens 23. The carrier 24 is provided with a first through-hole 241, a second through-hole 242, and a third through-hole 243, which communicate with the mounting cavity 240. The lens 23 enters the mounting cavity 240 through the first through-hole 241.

[0034] The second through-hole 242 and the third through-hole 243 are disposed opposite to each other and are located on two opposite sides of the first through-hole 241 .

[0035] The pinch plate 25 is located at the first through-opening 241 , and partially covers the first through-opening 241 , thereby limiting the position of the lens 23 to prevent the lens 23 from falling off from the carrier 24 when impacted.

[0036] In other embodiments, the pinch plate 25 may also completely cover the first through opening 241 , and this application does not impose any limitation on this.

[0037] The camera module provided in the present application has a plurality of mounting slots 11 , and a ball group 3 is disposed in at least one mounting slot 11 .

[0038] The mounting groove 11 of the present application can be set on the base 1, can also be set on the carrier 24, or can be set on both the base 1 and the carrier 24. The present application does not impose any restrictions on this.

[0039] In some embodiments, the carrier 24 is provided with three mounting slots 11 located on its bottom surface, and the base 1 is provided with two mounting slots 11. The two mounting slots 11 of the base 1 are located on one side of the base 1. Two of the three mounting slots 11 of the carrier 24 are located on one side of the bottom surface of the carrier 24, thereby cooperating with the two mounting slots 11 of the base 1. The line connecting the central axes of the two mounting slots 11 is aligned with the direction of movement of the lens assembly 2. Another of the three mounting slots 11 of the carrier 24 is located on the other side of the carrier 24 opposite the base 1, and the length of this mounting slot 11 is greater than the length of the other two mounting slots 11.

[0040] In other embodiments, the carrier 24 and the base 1 may be provided with four or more mounting slots 11 , and the lengths of the mounting slots 11 may be the same or different, which is not limited in the present application.

[0041] In the camera module provided herein, a ball group 3 is disposed in each of the two mounting slots 11, and each ball group 3 includes two balls 31. A ball group 3 is disposed in the other mounting slot 11, and each ball group 3 includes three balls 31. The balls 31 in all ball groups 3 are arranged in the same direction as the direction of movement of the lens assembly 2 relative to the base 1, and all balls 31 have the same diameter.

[0042] In other embodiments, the arrangement direction of the balls 31 of the ball group 3 may also be perpendicular to the movement direction of the lens assembly 2 relative to the base 1 , and this application does not impose any limitation on this.

[0043] The camera module provided in the present application further includes a first adsorption member 21 provided on the lens assembly 2 and a second adsorption member 12 provided on the base 1. The first adsorption member 21 and the second adsorption member 12 are magnetically adsorbed to each other, thereby pressing the lens assembly 2 onto the base 1.

[0044] The carrier 24 is provided with an adsorption groove 245, which is located on the bottom surface of the carrier 24. The first adsorption member 21 is disposed within the adsorption groove 245. The adsorption groove 245 and the first adsorption member 21 are located within the area enclosed by the line connecting the centers of the multiple mounting grooves 11. In the present application, the first adsorption member 21 is located within the triangular area enclosed by the line connecting the centers of the three mounting grooves 11 on the carrier 24, which can ensure the stability of the overall structure of the lens assembly 2 and the base 1.

[0045] The first adsorption component 21 and the second adsorption component 12 can both be adsorption magnets; or one can be an adsorption magnet and the other can be an adsorption plate, which is not limited in the present application.

[0046] The lens assembly 2 is provided with a first magnetic member 22, and the base 1 is provided with a first coil 13. When the first coil 13 is energized, the magnetic force between the first coil 13 and the first magnetic member 22 drives the lens assembly 2 to move relative to the base 1.

[0047] In other embodiments, the first magnetic member 22 may also be disposed on the base 1 , and the first coil 13 may be disposed on the lens assembly 2 , which is not limited in this application.

[0048] The carrier 24 is provided with a first groove 244, which is located on the side of the carrier 24. The base 1 is provided with a second groove 104, which is located on the inner side of the base 1. The first magnetic member 22 is disposed in the first groove 244, and the first coil 13 is disposed in the second groove 104. The plane on which the first coil 13 is located is parallel to the plane on which the first magnetic member 22 is located.

[0049] In other embodiments, the first coil 13 is disposed in the first groove 244 , and the first magnetic member 22 is disposed in the second groove 104 , which is not limited in the present application.

[0050] The camera module provided in this application also includes a position sensor 26, which is arranged on the base 1. The position sensor 26 identifies the position change of the lens assembly 2 by sensing the magnetic field change generated by the position change of the first magnetic part 22 to assist the lens assembly 2 in focusing.

[0051] Please refer to Figure 3 and Figures 7 to 9 As shown, the camera module provided by the present application also includes a prism 4 and a prism bracket 5. The prism 4 is used to rotate the light 90° before entering the lens 23. At this time, the prism 4 and the lens assembly 2 form a periscope lens, which can reduce the height of the camera module and increase the lightness and thinness of the camera module. A prism groove 50 is provided on the prism bracket 5, and the prism 4 is arranged in the prism groove 50 to mount the prism 4 on the prism bracket 5. The prism bracket 5 is mounted on the base 1 and can swing relative to the base 1 along a first direction D1 and a second direction D2 perpendicular to the first direction D1, thereby adjusting the light refracted by the prism 4 and passing through the third through-hole 243 to enter the lens 23.

[0052] The camera module provided herein also includes a first rotating shaft 6 and a second rotating shaft 7. The first rotating shaft 6 is perpendicular to the second rotating shaft 7. The prism holder 5 is provided with a first slot 51 and a second slot 52. The first rotating shaft 6 is rotatably connected to the prism holder 5 and is received in the first slot 51. The second rotating shaft 7 is received in the second slot 52. The prism holder 5 swings relative to the first rotating shaft 6 to swing in a first direction D1, and the prism holder 5 swings relative to the second rotating shaft 7 to swing in a second direction D2.

[0053] The first groove 51 is V-shaped, and the first shaft 6 is tangent to two groove surfaces of the first groove 51 , thereby fixing the first shaft 6 in the first groove 51 , so that the prism holder 5 can swing relative to the first shaft 6 to swing along the first direction D1.

[0054] The second slot 52 is square in shape, with a width greater than or equal to the diameter of the second rotation shaft 7. The second rotation shaft 7 is disposed within the second slot 52 and is positioned below the first rotation shaft 6. The prism holder 5 includes two protrusions 521 disposed within the second slot 52. The protrusions 521 are provided, with the second rotation shaft 7 positioned between the two protrusions 521. The distance X1 between the two protrusions 521 is greater than or equal to the diameter of the second rotation shaft 7. Linear contact between the second rotation shaft 7 and the two protrusions 521 reduces friction generated between the prism holder 5 and the second rotation shaft 7 when the prism holder 5 swings about the second rotation shaft 7.

[0055] An air avoidance groove (not shown) is provided between the protrusion 521 and the prism bracket 5. The air avoidance groove can provide space for elastic deformation of the protrusion 521, so that when the protrusion 521 contacts the second rotating shaft 7, the pressure generated by the second rotating shaft 7 on the protrusion 521 can be reduced, thereby reducing the friction between the protrusion 521 and the second rotating shaft 7 to ensure that the prism bracket 5 can swing relative to the first rotating shaft 6 to swing along the first direction D1.

[0056] The base 1 is provided with two third grooves 15, one located on either side of the base 1. The two ends of the second rotating shaft 7 are respectively received in the two third grooves 15. The third grooves 15 are V-shaped, with the four groove surfaces forming the two third grooves 15 tangentially contacting the four end faces of the second rotating shaft 7, thereby securing the two ends of the second rotating shaft 7 within the third grooves 15. This prevents the second rotating shaft 7 from rotating about its own center point, thereby preventing the second rotating shaft 7 from interfering with the first rotating shaft 6 when the prism holder 5 swings. Furthermore, the second rotating shaft 7 and the third grooves 15 are in line contact, reducing friction between the second rotating shaft 7 and the third grooves 15 when the second rotating shaft 7 rotates about its own axis, thereby ensuring that the prism holder 5 can swing relative to the second rotating shaft 7 with the first rotating shaft 6, thereby swinging in the second direction D2.

[0057] The first direction D1 and the second direction D2 are two orthogonal directions. The prism bracket 5 can swing along the first direction D1 and the second direction D2, which can expand the adjustment range of the prism bracket 5 and the prism 4; at the same time, it can avoid the first rotating shaft 6 and the second rotating shaft 7 from interfering with each other, thereby improving the mechanical efficiency of the camera module.

[0058] The prism bracket 5 is provided with a second magnetic member 53, and the base 1 is provided with a second coil 14. In other embodiments, the second magnetic member 53 can also be provided on the base 1, and the second coil 14 can be provided on the prism bracket 5, and this application does not limit this.

[0059] When the second coil 14 is energized, the magnetic force between the second coil 14 and the second magnetic member 53 drives the prism bracket 5 to swing relative to the base 1 .

[0060] A third groove 54 is provided on the prism bracket 5, and a fourth groove 16 is provided on the base 1. The third magnetic member 53 is provided in the third groove 54, and the second coil 14 is provided in the fourth groove 16. The second coil 14 is parallel to the second magnetic member 53, so that when the second coil 14 is energized, it can generate an electromagnetic force on the second magnetic member 53 along the height direction of the prism bracket 5. The second magnetic member 53 is subjected to the electromagnetic force to drive the prism bracket 5 to swing relative to the base 1.

[0061] In other embodiments, the second coil 14 is disposed in the third groove 54 , and the second magnetic member 53 is disposed in the fourth groove 16 , which is not limited in the present application.

[0062] Two third grooves 54 are provided, coplanar and located on opposite sides of the same plane. Two second magnetic members 53 are provided, each located within the two third grooves 54. Two fourth grooves 16 are provided corresponding to the third grooves 54, and the two fourth grooves 16 are parallel to the two corresponding third grooves 54. Two second coils 14 are provided, each located within the two fourth grooves 16 and parallel to the two corresponding second magnetic members 53. The second magnetic member 53 and the second coil 14 are both located at one end of the first rotating shaft 6.

[0063] When the directions of the electromagnetic forces acting on the two second magnetic parts 53 are the same, the sum of the moments acting on the prism holder 5 relative to the axis of the first rotating shaft 6 is zero, and at this time the prism holder 5 will not swing relative to the first rotating shaft 6; at the same time, the sum of the moments acting on the prism holder 5 along the center of the first rotating shaft 6 is not zero, and the prism holder 5 will swing relative to the center of the first rotating shaft 6, that is, the prism holder 5 will swing relative to the second rotating shaft 7 to swing along the second direction D2.

[0064] When the electromagnetic forces acting on the two second magnetic members 53 are in opposite directions, the sum of the moments acting on the prism holder 5 relative to the axis of the first rotation shaft 6 is non-zero. In this case, the prism holder 5 will swing relative to the first rotation shaft 6 in the first direction D1. Because the first rotation shaft 6 and the second rotation shaft 7 do not interfere with each other, even though the moments acting on the prism holder 5 are coplanar, the prism holder 5 will not swing relative to the second rotation shaft 7 when it swings relative to the first rotation shaft 6 in the first direction D1.

[0065] In other embodiments, the number of the second magnetic members 53 and the second coils 14 may be greater than or equal to three, and the number of the third grooves 54 and the fourth grooves 16 may be one or greater than or equal to three, which is not limited in this application.

[0066] The prism holder 5 of the present application also includes a circuit board 55 and a Hall effect sensor 56. The Hall effect sensor 56 is mounted on the circuit board 55, which is in turn mounted on the prism holder 5. The Hall effect sensor 56 is used to sense the position of the prism holder 5. The circuit board 55 is used to drive the power supply and signal feedback of the prism holder 5.

[0067] The camera module provided herein also includes a third adsorption member 57 and a fourth adsorption member 17. The third adsorption member 57 is mounted on the prism holder 5 and is located directly below the first rotating shaft 6 and the second rotating shaft 7. The base 1 is provided with a fifth groove 18, and the fourth adsorption member 17 is disposed within the fifth groove 18. The adsorption force generated by the third adsorption member 57 and the fourth adsorption member 17 adsorbs the prism holder 5 to the first rotating shaft 6, the second rotating shaft 7, and the base 1.

[0068] The third adsorption member 57 is a magnetic magnet, and the fourth adsorption member 17 is a magnetic sheet. In other embodiments, the third adsorption member 57 is a magnetic sheet, the fourth adsorption member 17 is a magnetic magnet, or both the third adsorption member 57 and the fourth adsorption member 17 are magnetic magnets, and this application does not limit this.

[0069] The prism bracket 5 is subjected to the driving force of the second magnetic part 53, the adsorption force between the third adsorption part 57 and the fourth adsorption part 17, and the friction force between the first rotating shaft 6 and the second rotating shaft 7, and can thus adjust the magnitude and direction of the current flowing through the second coil 14, so that the force and torque acting on the prism bracket 5 are balanced, thereby accurately controlling the swing of the prism bracket 5 relative to the base 1.

[0070] When the second coil 14 is powered off, the prism bracket 5 is subjected to the adsorption force generated by the third adsorption member 57 and the fourth adsorption member 17 , so that the prism bracket 5 can return to its original position after swinging relative to the base 1 .

[0071] The camera module provided herein also includes a housing 8, which is used to cover the lens assembly 2, prism 4, and prism holder 5, thereby preventing the external environment from damaging the lens assembly 2, prism 4, and prism holder 5. The housing 8 is provided with a second light-transmitting opening 81, which is arranged opposite to the prism 4, allowing external light to pass through the second light-transmitting opening 81, enter the prism 4, and be refracted by the prism 4 into the lens assembly 2.

[0072] The present application also provides an electronic device including the aforementioned camera module. The electronic devices described herein include, but are not limited to, mobile phones, tablet personal computers, laptop computers, personal digital assistants (PDAs), personal computers, notebook computers, vehicle-mounted devices, wearable devices, walkmans, radios, and the like. Wearable devices include, but are not limited to, smart bracelets, smart watches, smart head-mounted displays, and smart glasses.

[0073] It should be noted that the technical solutions or technical features described in the above embodiments can be combined or supplemented with each other without conflict. The scope of protection of this application is not limited to the precise structures described in the above embodiments and shown in the accompanying drawings; all modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application shall be included in the scope of protection of this application.

Claims

1. A camera module, characterized in that: include: A base, a lens assembly and a ball group; the lens assembly is installed on the base, and at least one of the base and the lens assembly is provided with a mounting groove. The ball group is assembled in one of the mounting grooves and includes at least two balls, so that the lens assembly is rollingly connected to the base; when the camera module is working, the lens assembly can move relative to the base to focus.

2. The camera module according to claim 1, wherein: The diameters of the plurality of balls in the ball set are the same.

3. The camera module according to claim 1, wherein: The arrangement direction of the multiple balls in the ball group is the same as the movement direction of the lens assembly relative to the base.

4. The camera module according to claim 3, wherein: There are multiple installation grooves, and the ball group is arranged in at least one of the installation grooves.

5. The camera module according to claim 4, wherein: Two of the mounting slots are located on one side of the base, a line connecting the central axes of the two mounting slots is in the same direction as the movement direction of the lens assembly, and the other mounting slot is located on the other side opposite to the base.

6. The camera module according to claim 5, wherein: It also includes a first adsorption component arranged on the lens assembly and a second adsorption component arranged on the base; the first adsorption component and the second adsorption component are magnetically adsorbed; the first adsorption component is located in the area surrounded by the line connecting the centers of the multiple installation slots.

7. The camera module according to any one of claims 1 to 6, characterized in that: It also includes a prism and a prism bracket; the prism is installed on the prism bracket, and the prism bracket is installed on the base and can swing relative to the base along a first direction and a second direction perpendicular to the first direction.

8. The camera module according to claim 7, wherein: It also includes a first rotating shaft and a second rotating shaft; the first rotating shaft is perpendicular to the second rotating shaft, the prism bracket is provided with a first groove and a second groove, the first rotating shaft is rotatably connected to the prism bracket and is accommodated in the first groove, and the second rotating shaft is accommodated in the second groove; the prism bracket swings relative to the first rotating shaft to swing along the first direction, and the prism bracket swings relative to the second rotating shaft to swing along the second direction.

9. The camera module according to claim 8, wherein: A first magnetic member is provided on one of the lens assembly and the base, and a first coil is provided on the other; when the first coil is energized, the magnetic force between the first coil and the first magnetic member drives the lens assembly to move relative to the base; and / or, A second magnetic member is provided on one of the prism bracket and the base, and a second coil is provided on the other; when the second coil is energized, the magnetic force between the second coil and the second magnetic member drives the prism bracket to swing relative to the base.

10. An electronic device, characterized in that: Comprising a camera module as described in any one of claims 1-9.