A method and system for testing motion characteristic curve of voice coil motor
By using software to calculate the image distance and draw the motion characteristic curve in the voice coil motor testing system, the problem of high testing cost in the existing technology is solved, and low-cost voice coil motor testing is realized.
Patent Information
- Application Number
- CN202111423501.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-11-26
AI Technical Summary
Existing voice coil motor testing systems require expensive ranging sensors to detect the focusing stroke of the lens, resulting in high testing costs.
By driving the voice coil motor to drive the optical lens to shoot calibration pictures at different focus positions, calculate the image distance, draw the relationship curve between the driving current and the image distance, and use software to calculate the image distance to draw the motion characteristic curve, reducing test costs.
There is no need for hardware to detect the focus stroke, and the motion characteristic curve can be drawn by simply calculating the image distance through software, significantly reducing the cost of voice coil motor testing.
Smart Images

Figure CN114167330B
Abstract
Description
Technical Field
[0001] The present invention relates to motor testing technology, and in particular to a method and system for testing the motion characteristic curve of a voice coil motor. Background Art
[0002] A voice coil motor is a device that uses electromagnetic force to drive the movement of an optical lens to achieve focusing function.
[0003] Hysteresis refers to the phenomenon that during the magnetization and demagnetization process of ferromagnetic physical materials (such as iron), the magnetization intensity of the ferromagnetic material depends not only on the external magnetic field intensity, but also on the original magnetization intensity. The hysteresis phenomenon is manifested in the voice coil motor as the voice coil motor drives the optical lens to move inconsistently under the same driving current, which in turn affects the focusing accuracy.
[0004] A Chinese patent discloses a test system for the motor characteristics of a stereo camera module, comprising: a stereo camera module, a ranging sensor group, a test fixture and a microprocessor; the stereo camera module comprises a plurality of lenses, each lens uniquely corresponding to a motor; the number of ranging sensors in the ranging sensor group is the same as the number of lenses in the stereo camera module, the ranging sensors correspond to the lenses one by one, and the ranging sensors and the corresponding lenses are located on the same optical axis; the ranging sensors are used to collect movement data information of the corresponding lenses under the drive of the motor and send it to the microprocessor; the test fixture is respectively connected to the stereo camera module and the microprocessor, and is used to start the operation of the stereo camera module; the microprocessor is respectively connected to the stereo camera module and the ranging sensor group, and is used to drive each motor to move using a preset current value, obtain the movement data information sent by each ranging sensor, and draw the movement characteristic curve of each motor according to the driving current of each motor and the movement data information of the corresponding lens. The test system drives the motors of the stereo camera module to move simultaneously and uses ranging sensors to collect the moving distance of each lens under the drive of the motors, thereby realizing the test of the motor performance of each motor of the stereo camera module when the motors are focusing at the same time. It not only solves the problem of single motor function test defects in the prior art, but also solves the problem of mutual influence between the performance of motors when the lenses in the stereo camera module are focusing at the same time, which greatly shortens the time for testing motor performance and improves the efficiency of motor performance testing.
[0005] The above-mentioned test system needs to use a distance measuring sensor to detect the focusing stroke of the lens and then draw a motion characteristic curve. However, the distance measuring sensor generally uses a laser rangefinder, which is expensive and undoubtedly increases the testing cost of the product. Summary of the invention
[0006] In order to solve the above-mentioned deficiencies of the prior art, the present invention provides a motion characteristic curve testing method and system, which can draw the motion characteristic curve of a voice coil motor at a relatively low cost.
[0007] The technical problem to be solved by the present invention is achieved through the following technical solutions:
[0008] A method for testing a motion characteristic curve of a voice coil motor comprises the following steps:
[0009] Step 100: driving the voice coil motor to drive the optical lens to shoot a calibration chart at different focus positions to obtain multiple test images, and recording corresponding drive currents, wherein the test chart includes a first calibration point and a second calibration point;
[0010] Step 200: Calculate the image distance between the first calibration point and the second calibration point in each test image respectively;
[0011] Step 300: drawing a relationship curve between the driving current and the image distance.
[0012] Furthermore, in step 200, the steps of calculating the image distance between the first calibration point and the second calibration point in each test image are as follows:
[0013] Step 201: construct a plane rectangular coordinate system XY in each test image, and obtain the coordinates (x1, y1) and (x2, y2) of the first calibration point and the second calibration point in the plane rectangular coordinate system XY;
[0014] Step 202: Calculate the pixel distance l between the first calibration point and the second calibration point = ;
[0015] Step 203: Calculate the image distance L1=l*psize between the first calibration point and the second calibration point in each test image, where psize is the size of a single pixel in the test image.
[0016] Further, in step 201, the horizontal direction of each test image is used as the X-axis of the plane rectangular coordinate system XY, and the vertical direction of each test image is used as the Y-axis of the plane rectangular coordinate system XY.
[0017] Further, in step 100, the steps of driving the voice coil motor to drive the optical lens to shoot a calibration image at different focus positions to obtain multiple test images and record the corresponding driving current are as follows:
[0018] Step 101: Control the driving current output to the voice coil motor to gradually increase from a minimum value to a maximum value, so that the optical lens moves from a closest focus position to a farthest focus position in sequence to take multiple shots of the calibration image;
[0019] Step 102: Control the driving current output to the voice coil motor to gradually decrease from a maximum value to a minimum value, so that the optical lens moves from a farthest focus position to a closest focus position in sequence to take multiple shots of the calibration image.
[0020] Furthermore, when controlling the driving current output to the voice coil motor to gradually increase from a minimum value to a maximum value, or controlling the driving current output to the voice coil motor to gradually decrease from a maximum value to a minimum value, the driving current is gradually increased or decreased by a predetermined difference.
[0021] A motion characteristic curve testing system for a voice coil motor includes the following modules:
[0022] A driving module, used to drive the voice coil motor to drive the optical lens to shoot a calibration chart at different focus positions, obtain multiple test images, and record corresponding driving currents, wherein the test chart includes a first calibration point and a second calibration point;
[0023] A calculation module, used to respectively calculate the image distance between the first calibration point and the second calibration point in each test image;
[0024] A drawing module is used to draw a relationship curve between the driving current and the image distance.
[0025] Furthermore, the calculation module includes the following units:
[0026] A coordinate generating unit, used for constructing a plane rectangular coordinate system XY in each test image, and obtaining coordinates (x1, y1) and (x2, y2) of the first calibration point and the second calibration point in the plane rectangular coordinate system XY;
[0027] The first calculation unit is used to calculate the pixel distance l between the first calibration point and the second calibration point. ;
[0028] The second calculation unit is used to calculate the image distance L1=l*psize between the first calibration point and the second calibration point in each test image, wherein psize is the size of a single pixel in the test image.
[0029] Furthermore, the coordinate generating unit uses the transverse direction of each test image as the X-axis of the plane rectangular coordinate system XY, and uses the longitudinal direction of each test image as the Y-axis of the plane rectangular coordinate system XY.
[0030] Furthermore, the driving module includes the following units:
[0031] A first driving unit, used for controlling the driving current output to the voice coil motor to gradually increase from a minimum value to a maximum value, so that the optical lens moves from a closest focusing position to a farthest focusing position in sequence to take multiple shots of the calibration image;
[0032] The second driving unit is used to control the driving current output to the voice coil motor to gradually decrease from a maximum value to a minimum value, so that the optical lens moves from a farthest focusing position to a closest focusing position in sequence to shoot the calibration image multiple times.
[0033] Furthermore, the first driving unit or the second driving unit gradually increases or decreases the driving current according to a predetermined difference.
[0034] The present invention has the following beneficial effects: in this case, the focusing stroke of the optical lens needs to be detected by hardware such as a rangefinder, and the motion characteristic curve of the voice coil motor can be drawn by only calculating the image distance between the first calibration point and the second calibration point in the calibration diagram by software, thereby reducing the testing cost of the voice coil motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flowchart of the motion characteristic curve testing method provided by the present invention;
[0036] Figure 2 A schematic diagram of the motion characteristic curve test in the present invention;
[0037] Figure 3 The relationship curve between the driving current and the image distance obtained by the motion characteristic curve test in the present invention;
[0038] Figure 4 This is a principle block diagram of the motion characteristic curve testing system provided by the present invention. DETAILED DESCRIPTION
[0039] The present invention is described in detail below in conjunction with the accompanying drawings and embodiments, examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0040] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0041] In addition, the terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0042] In the present invention, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix", "set" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0043] Embodiment 1
[0044] like Figure 1 As shown, a method for testing a motion characteristic curve of a voice coil motor comprises the following steps:
[0045] Step 100: driving the voice coil motor to drive the optical lens to shoot a calibration chart at different focus positions to obtain multiple test images and record corresponding drive currents, wherein the test chart includes a first calibration point and a second calibration point.
[0046] In step 100, a camera is first fixed on a first fixture, the calibration diagram is fixed on a second fixture, and then the relative distance between the first fixture and the second fixture is adjusted so that the first calibration point and the second calibration point on the calibration diagram are both within the shooting range of the camera. The camera is then connected to a driver board, and the driver board is then connected to a host computer. The tester operates the host computer to send an operation instruction to the driver board, and then the driver board outputs a driving current to the camera according to the received operation instruction to drive the camera to focus.
[0047] The camera includes a voice coil motor, an optical lens and a sensor. The optical lens is arranged in the voice coil motor. When different driving currents are input into the voice coil motor, different electromagnetic forces can be generated, thereby driving the voice coil motor to move to different focusing positions along its own optical axis relative to the sensor.
[0048] Step 200: Calculate the image distance between the first calibration point and the second calibration point in each test image respectively.
[0049] In step 200, since the sensor in the camera is a pixel array composed of individual pixels, and each test image is also a pixel array composed of individual pixels, the image distance between the two can be calculated by calculating the pixel distance between the first calibration point and the second calibration point.
[0050] Specifically, in step 200, the steps of calculating the image distance between the first calibration point and the second calibration point in each test image are as follows:
[0051] Step 201: construct a plane rectangular coordinate system XY in each test image, and obtain the coordinates (x1, y1) and (x2, y2) of the first calibration point and the second calibration point in the plane rectangular coordinate system XY.
[0052] In step 201, preferably, the horizontal direction of each test image is used as the X-axis of the plane rectangular coordinate system XY, and the vertical direction of each test image is used as the Y-axis of the plane rectangular coordinate system XY.
[0053] Step 202: Calculate the pixel distance l between the first calibration point and the second calibration point = .
[0054] In step 202, a pixel point is used as a unit distance of the plane rectangular coordinate system XY, and the pixel distance L refers to the number of pixels between the first calibration point and the second calibration point in each test image.
[0055] Step 203: Calculate the image distance L1=l*psize between the first calibration point and the second calibration point in each test image, where psize is the size of a single pixel in the test image.
[0056] Step 300: drawing a relationship curve between the driving current and the image distance.
[0057] In step 300, if Figure 2 As shown, according to the related theorem of similar triangles, , where L2 is the fixed distance between the first calibration point and the second calibration point on the calibration map, U is the distance from the center of the optical lens to the calibration map, and v is the distance from the center of the optical lens to the sensor, it can be obtained , H=U+v, it can be seen that the voice coil motor pushes the optical lens to move and causes the change of v, and the change of v value caused by the focusing of the optical lens is much smaller than H, so Hv can be considered as a constant, then L1∝v; and because the driving current X and the focusing stroke satisfy a proportional relationship in the linear region, v∝X, and then L1∝X can be derived, that is, the image distance L1 between the first calibration point and the second calibration point in each test image and the driving current X of the voice coil motor satisfy a proportional relationship in the linear region, such as Figure 3 As shown, the motion characteristics of the voice coil motor can be described by the relationship curve between the driving current X and the image distance L1.
[0058] The motion characteristic curve testing method does not need to detect the focusing stroke of the optical lens through hardware such as a rangefinder, but only needs to calculate the image distance between the first calibration point and the second calibration point in the calibration diagram through software to draw the motion characteristic curve of the voice coil motor, thereby reducing the testing cost of the voice coil motor.
[0059] Embodiment 2
[0060] Compared with the first embodiment, in step 100, the steps of driving the voice coil motor to drive the optical lens to shoot a calibration image at different focus positions to obtain multiple test images and record the corresponding driving current are as follows:
[0061] Step 101: Control the driving current output to the voice coil motor to gradually increase from a minimum value to a maximum value, so that the optical lens moves from a closest focus position to a farthest focus position in sequence to take multiple shots of the calibration image;
[0062] Step 102: Control the driving current output to the voice coil motor to gradually decrease from a maximum value to a minimum value, so that the optical lens moves from a farthest focus position to a closest focus position in sequence to take multiple shots of the calibration image.
[0063] Through the above steps 101 and 102, two relationship curves between the driving current X and the image distance L1 can be obtained. By comparing the difference between the image distance L1 in the two relationship curves under the same driving current X, it can be determined whether the hysteresis of the voice coil motor is within the qualified range.
[0064] Preferably, when controlling the driving current output to the voice coil motor to gradually increase from a minimum value to a maximum value, or controlling the driving current output to the voice coil motor to gradually decrease from a maximum value to a minimum value, the driving current is gradually increased or decreased by a predetermined difference.
[0065] Embodiment 3
[0066] like Figure 4 As shown, a motion characteristic curve testing system of a voice coil motor includes the following modules:
[0067] A driving module, used to drive the voice coil motor to drive the optical lens to shoot a calibration chart at different focus positions, obtain multiple test images, and record corresponding driving currents, wherein the test chart includes a first calibration point and a second calibration point;
[0068] A calculation module, used to respectively calculate the image distance between the first calibration point and the second calibration point in each test image;
[0069] A drawing module is used to draw a relationship curve between the driving current and the image distance.
[0070] During the test, a camera is first fixed on the first fixture, and the calibration map is fixed on the second fixture. Then, the relative distance between the first fixture and the second fixture is adjusted so that the first calibration point and the second calibration point on the calibration map are both within the shooting range of the camera. Then, the camera is connected to a driver board, and then the driver board is connected to a host computer. The test personnel operate the host computer to operate the motion characteristic curve test system to send an operation instruction to the driver board. Then, the driver board outputs a driving current to the camera according to the received operation instruction to drive the camera to focus.
[0071] The camera includes a voice coil motor, an optical lens and a sensor. The optical lens is arranged in the voice coil motor. When different driving currents are input into the voice coil motor, different electromagnetic forces can be generated, thereby driving the voice coil motor to move to different focusing positions along its own optical axis relative to the sensor.
[0072] Since the sensor in the camera is a pixel array composed of individual pixels, and each test image is also a pixel array composed of individual pixels, the image distance between the first calibration point and the second calibration point can be calculated by calculating the pixel distance between the two.
[0073] The calculation module includes the following units:
[0074] A coordinate generating unit, used for constructing a plane rectangular coordinate system XY in each test image, and obtaining coordinates (x1, y1) and (x2, y2) of the first calibration point and the second calibration point in the plane rectangular coordinate system XY;
[0075] The first calculation unit is used to calculate the pixel distance l between the first calibration point and the second calibration point. ;
[0076] The second calculation unit is used to calculate the image distance L1=l*psize between the first calibration point and the second calibration point in each test image, wherein psize is the size of a single pixel in the test image.
[0077] Preferably, the coordinate generating unit uses the transverse direction of each test image as the X-axis of the plane rectangular coordinate system XY, and uses the longitudinal direction of each test image as the Y-axis of the plane rectangular coordinate system XY.
[0078] like Figure 2 As shown, according to the related theorem of similar triangles, Where L2 is the fixed distance between the first calibration point and the second calibration point on the calibration map, U is the distance from the center of the optical lens to the calibration map, and v is the distance from the center of the optical lens to the sensor. , H=U+v, it can be seen that the voice coil motor pushes the optical lens to move and causes the change of v, and the change of v value caused by the focusing of the optical lens is much smaller than H, so Hv can be considered as a constant, then L1∝v; and because the driving current X and the focusing stroke satisfy a proportional relationship in the linear region, v∝X, and then L1∝X can be derived, that is, the image distance L1 between the first calibration point and the second calibration point in each test image and the driving current X of the voice coil motor satisfy a proportional relationship in the linear region, such as Figure 3 As shown, the motion characteristics of the voice coil motor can be described by the relationship curve between the driving current X and the image distance L1.
[0079] The motion characteristic curve testing system does not need to detect the focusing stroke of the optical lens through hardware such as a rangefinder, but only needs to calculate the image distance between the first calibration point and the second calibration point in the calibration diagram through software to draw the motion characteristic curve of the voice coil motor, thereby reducing the testing cost of the voice coil motor.
[0080] Embodiment 4
[0081] Compared with the third embodiment, the driving module in this embodiment includes the following units:
[0082] A first driving unit, used for controlling the driving current output to the voice coil motor to gradually increase from a minimum value to a maximum value, so that the optical lens moves from a closest focusing position to a farthest focusing position in sequence to take multiple shots of the calibration image;
[0083] The second driving unit is used to control the driving current output to the voice coil motor to gradually decrease from a maximum value to a minimum value, so that the optical lens moves from a farthest focusing position to a closest focusing position in sequence to shoot the calibration image multiple times.
[0084] Through the first driving unit and the second driving unit, two relationship curves between the driving current X and the image distance L1 can be obtained. By comparing the difference between the image distance L1 in the two relationship curves under the same driving current X, it can be determined whether the hysteresis of the voice coil motor is within an acceptable range.
[0085] Preferably, the first driving unit or the second driving unit gradually increases or decreases the driving current by a predetermined difference.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention rather than to limit them. Although the embodiments of the present invention have been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the embodiments of the present invention can still be modified or replaced by equivalents, and these modifications or equivalent replacements cannot cause the modified technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for testing the motion characteristic curve of a voice coil motor, characterized in that: The steps include: Step 100: driving the voice coil motor to drive the optical lens to shoot a calibration chart at different focus positions to obtain multiple test images, and recording corresponding drive currents, wherein the test chart includes a first calibration point and a second calibration point; Step 200: Calculate the image distance between the first calibration point and the second calibration point in each test image respectively; Step 300: drawing a relationship curve between the driving current and the image distance; Among them, in step 100, the steps of driving the voice coil motor to drive the optical lens to shoot a calibration image at different focus positions to obtain multiple test images and record the corresponding driving current are as follows: Step 101: Control the driving current output to the voice coil motor to gradually increase from a minimum value to a maximum value, so that the optical lens moves from a closest focus position to a farthest focus position in sequence to take multiple shots of the calibration image; Step 102: Control the driving current output to the voice coil motor to gradually decrease from a maximum value to a minimum value, so that the optical lens moves from a farthest focus position to a closest focus position in sequence to take multiple shots of the calibration image; Through the above steps 101 and 102, two relationship curves between the driving current and the image distance are obtained in step 300. By comparing the difference between the image distance in the two relationship curves under the same driving current, it is determined whether the hysteresis of the voice coil motor is within a qualified range.
2. The method for testing the motion characteristic curve of a voice coil motor according to claim 1, characterized in that: In step 200, the steps of calculating the image distance between the first calibration point and the second calibration point in each test image are as follows: Step 201: construct a plane rectangular coordinate system XY in each test image, and obtain the coordinates (x1, y1) and (x2, y2) of the first calibration point and the second calibration point in the plane rectangular coordinate system XY; Step 202: Calculate the pixel distance l between the first calibration point and the second calibration point = ; Step 203: Calculate the image distance L1=l*psize between the first calibration point and the second calibration point in each test image, where psize is the size of a single pixel in the test image.
3. The method for testing the motion characteristic curve of a voice coil motor according to claim 2, characterized in that: In step 201 , the horizontal direction of each test image is used as the X-axis of the plane rectangular coordinate system XY, and the vertical direction of each test image is used as the Y-axis of the plane rectangular coordinate system XY.
4. The method for testing the motion characteristic curve of a voice coil motor according to claim 1, characterized in that: When the driving current output to the voice coil motor is controlled to increase gradually from a minimum value to a maximum value, or when the driving current output to the voice coil motor is controlled to decrease gradually from a maximum value to a minimum value, the driving current is gradually increased or decreased by a predetermined difference.
5. A motion characteristic curve testing system for a voice coil motor, characterized in that: Includes the following modules: A driving module, used to drive the voice coil motor to drive the optical lens to shoot a calibration chart at different focus positions, obtain multiple test images, and record corresponding driving currents, wherein the test chart includes a first calibration point and a second calibration point; A calculation module, used to respectively calculate the image distance between the first calibration point and the second calibration point in each test image; A drawing module, used for drawing a relationship curve between the driving current and the image distance; Wherein, the driving module includes the following units: A first driving unit, used for controlling the driving current output to the voice coil motor to gradually increase from a minimum value to a maximum value, so that the optical lens moves from a closest focusing position to a farthest focusing position in sequence to take multiple shots of the calibration image; A second driving unit is used to control the driving current output to the voice coil motor to gradually decrease from a maximum value to a minimum value, so that the optical lens moves from a farthest focus position to a closest focus position in sequence to take multiple shots of the calibration image; Through the first driving unit and the second driving unit, the drawing module obtains two relationship curves between the driving current and the image distance, and determines whether the hysteresis of the voice coil motor is within a qualified range by comparing the difference between the image distance in the two relationship curves under the same driving current.
6. The motion characteristic curve testing system of the voice coil motor according to claim 5, characterized in that: The calculation module includes the following units: A coordinate generating unit, used for constructing a plane rectangular coordinate system XY in each test image, and obtaining coordinates (x1, y1) and (x2, y2) of the first calibration point and the second calibration point in the plane rectangular coordinate system XY; The first calculation unit is used to calculate the pixel distance l between the first calibration point and the second calibration point. ; The second calculation unit is used to calculate the image distance L1=l*psize between the first calibration point and the second calibration point in each test image, wherein psize is the size of a single pixel in the test image.
7. The motion characteristic curve testing system of the voice coil motor according to claim 6, characterized in that: The coordinate generating unit uses the transverse direction of each test image as the X-axis of the plane rectangular coordinate system XY, and uses the longitudinal direction of each test image as the Y-axis of the plane rectangular coordinate system XY.
8. The motion characteristic curve testing system of the voice coil motor according to claim 5, characterized in that: The first driving unit or the second driving unit gradually increases or decreases the driving current by a predetermined difference.
