CN105136428A - Motorized zoom lens service life detection jig control circuit and method - Google Patents

Motorized zoom lens service life detection jig control circuit and method Download PDF

Info

Publication number
CN105136428A
CN105136428A CN201510603508.5A CN201510603508A CN105136428A CN 105136428 A CN105136428 A CN 105136428A CN 201510603508 A CN201510603508 A CN 201510603508A CN 105136428 A CN105136428 A CN 105136428A
Authority
CN
China
Prior art keywords
module
chip microcomputer
stepper motor
zoom lens
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510603508.5A
Other languages
Chinese (zh)
Other versions
CN105136428B (en
Inventor
郭栋晖
林平
刘启炜
辛历东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Forecam Optics Co Ltd
Original Assignee
Fujian Forecam Optics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Forecam Optics Co Ltd filed Critical Fujian Forecam Optics Co Ltd
Priority to CN201510603508.5A priority Critical patent/CN105136428B/en
Publication of CN105136428A publication Critical patent/CN105136428A/en
Application granted granted Critical
Publication of CN105136428B publication Critical patent/CN105136428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Lens Barrels (AREA)

Abstract

A motorized zoom lens service life detection jig control circuit provided by the present invention comprises a single-chip microcomputer, a first driving module, a second driving module, a burning module, a button module, a power supply module and a filter circuit module. The inputs of the first and second driving modules are connected with the first and second outputs of the single-chip microcomputer respectively, the output of the first driving module is connected with a zoom stepping motor, and the output of the second driving module is connected with a focusing stepping motor. The burning module is connected with an ISP writer interface of the single-chip microcomputer, the button module is connected with the third output of the single-chip microcomputer, and the power supply module is connected with the single-chip microcomputer, a first drive circuit, a second drive circuit and the power supply end of the burning module separately via a filtering module. By the circuit, the parameters can be modified according to the demands of clients, the service life test of a lens can be managed, controlled and tidied effectively, the tedious lens service life test is solved, and the special requirements of the special clients can be satisfied.

Description

Motorized zoom lens life tests tool control circuit and method
Technical field
The present invention relates to a kind of tool, be specifically related to a kind of motorized zoom lens life tests tool.
Background technology
Along with the progress of society and the raising of educational level, the understanding of people to awareness of safety also improves constantly, and also improves along with monitoring consciousness thereupon.The product foremost as monitoring trade of camera lens, summation function also to improve thereupon.In monitoring trade, trigger camera lens can be reached the desirable visual field of client by step motor control zoom, focusing, and can be carried out automatic focus by Focus group, day and night runs Jiao to solve, and high/low temperature is run Jiao and waited the burnt problem of the race caused because of surrounding environment change.People accurately can be controlled to realize remote electric by back-end software, really realize lens zoom function.
But camera lens has certain life-span, the camera lens exceeding serviceable life can not meet monitoring demand, therefore needs to detect the dynamic zoom lens life-span.And due to the application scenario of camera lens or environment for use different, even if so also have different design proposals with money camera lens, the parameter of therefore different its life tests of motor-driven lens also can be different, as run step number, running frequency, cycle index etc.
Summary of the invention
The object of this invention is to provide a kind of motorized zoom lens life tests tool, for the life tests of motorized zoom lens.Can according to customer requirement, change frequency, step number, and cycle index.
The present invention is achieved through the following technical solutions: a kind of motorized zoom lens life tests tool control circuit, is characterized in that: comprise single-chip microcomputer, the first driver module, the second driver module, burning module, key-press module, power module and filter circuit module; The input of described first driver module, the second driver module connects the first output, second output of single-chip microcomputer respectively; The output of described first driver module connects zoom stepper motor; The output of described second driver module connects focusing stepper motor; Described burning module connects SCM ISP cd-rom recorder interface; Described key-press module connects the 3rd output of single-chip microcomputer; Described power module connects the feeder ear of single-chip microcomputer, the first driving circuit, the second driving circuit and burning module respectively through filtration module.
In an embodiment of the present invention, described single-chip microcomputer is STC15F204EA.
In an embodiment of the present invention, described first driving circuit, the second driving circuit are L293D chip.
In an embodiment of the present invention, described key-press module comprises the first to the 5th button.
In an embodiment of the present invention, described filter circuit module is made up of 4 filter capacitors.
The present invention also provides a kind of control method based on above-mentioned motorized zoom lens life tests tool control circuit, it is characterized in that: comprise the following steps: step S1: carry out initialization to single-chip microcomputer; Step S2: press switch of the power supply module, when there being power supply to input, push button module, and single-chip microcomputer, by the folding of identification address, exports pulse command, to control turning to and speed of motor to driver module; Step S3: by improving the speed carrying out control step motor by changing pulsating wave dutycycle; Carrying out turning to of control step motor by the sequencing of gating pulse sequential, focusing on stepper motor and zoom stepper motor realization focusing zoom by changing; Step S4: repeatedly circulation step S3 is until camera lens reaches serviceable life.
In an embodiment of the present invention, described step S2 also comprises following concrete steps: by the first button switching focusing stepper motor and zoom stepper motor steps; The frequency of the second to the 5th button is set to 50hz, 100hz, 125hz, 150hz, 200hz respectively, makes focusing stepper motor and zoom stepper motor do life test at different frequencies by the second to the 5th button.
Compared with prior art, the present invention has the following advantages: this tool easily and effectively, and according to customer demand, can be changed parameter, can carry out effective management and control and arrangement to the life test of camera lens.Solve the triviality of camera lens life test, and the particular/special requirement of particular client.
Accompanying drawing explanation
fig. 1for principle frame of the present invention figure.
fig. 2for STC15F204EA circuit figure.
fig. 3for one embodiment of the invention L293D circuit figure.
fig. 4for one embodiment of the invention ISP cd-rom recorder interface circuit figure.
fig. 5for one embodiment of the invention power module circuitry figure.
fig. 6for one embodiment of the invention key-press module circuit figure.
fig. 7for one embodiment of the invention filtration module circuit figure.
Embodiment
Below in conjunction with accompanying drawingthe present invention will be further described with specific embodiment.
A kind of motorized zoom lens life tests tool control circuit, comprises single-chip microcomputer, the first driver module, the second driver module, burning module, key-press module, power module and filter circuit module; The input of described first driver module, the second driver module connects the first output, second output of single-chip microcomputer respectively; The output of described first driver module connects zoom stepper motor; The output of described second driver module connects focusing stepper motor; Described burning module connects SCM ISP cd-rom recorder interface; Described key-press module connects the 3rd output of single-chip microcomputer; Described power module connects the feeder ear of single-chip microcomputer, the first driving circuit, the second driving circuit and burning module respectively through filtration module.Circuit theory figuresee fig. 1.
In one embodiment of this invention, described single-chip microcomputer is STC15F204EA.Physical circuit principle figuresee fig. 2.STC15F204EA single-chip microcomputer is that the ultralow valency A/D of a new generation that macrocrystalline science and technology is released changes single-chip microcomputer single-chip microcomputer, 1 clock/machine cycle, at a high speed, highly reliable, 8 10, tunnel high-speed a/d conversions, inner high precision R/C clock, ± 1% temperature is waftd, and thoroughly save outside expensive crystal oscillator, 5MHz ~ 35MHz wide region can be arranged.
In one embodiment of this invention, described first driving circuit, the second driving circuit are L293D chip.Physical circuit figuresee fig. 3.L293D has four output terminals, then can control a stepper motor, motor-driven lens usually has zoom and focuses on two driving stepper motor, and therefore need 2 pieces of L293D chip drives L293D to provide bi-directional drive electric current up to 600 milliamperes, voltage can meet most stepper motor from 4.5V to 36V.The present embodiment have employed such connected mode and drives Focus group and Zoom group two motors: E1, E2 connect control Enable Pin, controls the stall of motor; IN1-IN4 connects the output terminal of single-chip microcomputer, for controlling turning to of motor.L293D tetra-times high electric current H bridge driver, compatible all TTL inputs.Each output is plug-type driving circuit, reaches Lin Yuan with Darlington triode and puppet.Enable 1,2EN driver and 3,4EN driver.When enable be input as high level time, relevant driver is activated and is in active state with their output, and at the homophase of its input end.When enable be input as low, these drivers disabled its export close, at high impedance status.When the input of suitable data, the reversible driver of H bridge that the form one of often pair of driver is complete is applicable to solenoid valve or motor application.
Can realize greater functionality for making single-chip microcomputer and also need a cd-rom recorder interface, some are simple, necessary burning program enters single-chip microcomputer, ISP cd-rom recorder interface circuit figuresee fig. 4.
In an embodiment of the present invention, power module carries 5V power supply to single-chip microcomputer, the first driving circuit, the second driving circuit and burning module, the physical circuit of power module figuresee fig. 5.
In one embodiment of this invention, described key-press module comprises 5 buttons.Physical circuit figuresee fig. 6.
In one embodiment of this invention, described filter circuit module is made up of 4 filter capacitors.Physical circuit figuresee fig. 7.
The present invention also provides a kind of control method based on above-mentioned motorized zoom lens life tests tool control circuit, comprises the following steps: step S1: carry out initialization to single-chip microcomputer; Step S2: press switch of the power supply module, when there being power supply to input, push button module, and single-chip microcomputer, by the folding of identification address, exports pulse command, to control turning to and speed of motor to driver module; Step S3: by improving the speed carrying out control step motor by changing pulsating wave dutycycle; Carrying out turning to of control step motor by the sequencing of gating pulse sequential, focusing on stepper motor and zoom stepper motor realization focusing zoom by changing; Step S4: repeatedly circulation step S3 is until camera lens reaches serviceable life.
In an embodiment of the present invention, described step S2 also comprises following concrete steps: by the first button switching focusing stepper motor and zoom stepper motor steps; The frequency of the second to the 5th button is set to 50hz, 100hz, 125hz, 150hz, 200hz respectively, makes focusing stepper motor and zoom stepper motor do life test at different frequencies by the second to the 5th button.
Above-mentioned control method can adopt C language programming realization and single-chip microcomputer is entered in burning, the modular method for designing of this Program Appliance, each subroutine, as the function and the process that realize each several part, has called the partial design such as PWM pulse-width controlled, time delay and direction of motor rotation control by the continuous subroutine of master routine.
Mcu resource distributes:
sbita0=P1^2;//houzuA+
sbita1=P1^3;//houzuA-
sbita2=P1^4;//qianzuA+
sbita3=P1^5;//qianzuA-
sbitb0=P3^5;//qianzuB+
sbitb1=P3^6;//qianzuB-
sbitb2=P1^0;//houzuB+
sbitb3=P1^1;//houzuB-
sbity1=P1^7;//
sbity2=P0^0;//
sbity3=P0^1;//
sbity4=P3^2;//
sbity5=P3^3;//
sbity6=P3^4;//
pwm pulse controls: adopt timer 0 to produce Interruption to the output of control P1.0-P1.5 and P3.5-P3.6 thus generation PWM ripple in the design.Interrupt routine is as follows:
voidInitTimer0(void)
{TMOD|=0x01;
TH0=0x0FF;//50us
TL0=0x0D2;
EA=1;
ET0=0;
TR0=0;
TCount=0;
}
voidTimer0_ISR(void)interrupt1
{TH0=0x0FF;
TL0=0x0D2;
TCount++;}
voidDelay_us(intt)
{unsignedinttt=0;
ET0=1;
TR0=1;
tt=t/50;
while(TCount<=tt)
{};
ET0=0;
TR0=0;
TCount=0;
}
focus group and Zoom group turn to and speed subroutine: by changing dutycycle, realize the speeds control of motor; By the sequencing of gating pulse sequential, control turning to of motor, to reach the focusing zoom of Focus and Zoom.
Focus group:
voidqianzusteprun(bitdirectn,intspeed)
{
qianzuspeedlevel=speed;
qianzuturn=directn;
switch(qianstep_index)
{
case1:qianzuStep1;break;
case2:qianzuStep2;break;
case3:qianzuStep3;break;
case4:qianzuStep4;break;
}
Delay_us(qianzuspeedlevel);
if(qianzuturn==0)
{
qianstep_index++;
if(qianstep_index>4)
qianstep_index=1;
}
else
{
qianstep_index--;
if(qianstep_index<1)
qianstep_index=4;
}
}
/*****************************
// front group of stepper motor movement function
Input parameter is step-length delay time 1000 is 1ms.
******************************/
voidqianzurun(bitstepdirection,intspeedlevel,intstep)
{intstepspeed;
stepspeed=speedlevel;
for(i=0;i<step;i++)
{qianzusteprun(stepdirection,stepspeed);
}
qianzuStop;
}
Zoom group:
voidhouzusteprun(bitdirectn,intspeed)
{houzuspeedlevel=speed;
houzuturn=directn;
switch(houstep_index)
{
case1:houzuStep1;break;
case2:houzuStep2;break;
case3:houzuStep3;break;
case4:houzuStep4;break;
}
Delay_us(houzuspeedlevel);
if(houzuturn==0)
{
houstep_index++;
if(houstep_index>4)
houstep_index=1;
}
else
{houstep_index--;
if(houstep_index<1)
houstep_index=4;
}
}
voidhouzurun(bitstepdirection,intspeedlevel,intstep)
{intstepspeed;
stepspeed=speedlevel;
for(i=0;i<step;i++)
{
houzusteprun(stepdirection,stepspeed);
}houzuStop;}
principal function Focus group life tests, k represents cycle index; B and c represents the step number of rotating.
if(y1==0){for(k=0;k<1000;k++)
{if(m==0){
for(b=0;b<100;b++){
qianzurun(lensin,5000,1);}m=1;
}if(m==1){for(c=0;c<100;c++){
qianzurun(lensout,5000,1);}m=0;qianzuStop;delay_50ms(200);
}if(y2==0){break;}if(y3==0){break;}if(y4==0){break;}
}qianzuStop;}
In sum; above-listed preferred embodiment provided by the invention; the object, technical solutions and advantages of the present invention are further described; be understood that; the foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all; any amendment of doing, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. a motorized zoom lens life tests tool control circuit, is characterized in that: comprise single-chip microcomputer, the first driver module, the second driver module, burning module, key-press module, power module and filter circuit module; The input of described first driver module, the second driver module connects the first output, second output of single-chip microcomputer respectively; The output of described first driver module connects zoom stepper motor; The output of described second driver module connects focusing stepper motor; Described burning module connects SCM ISP cd-rom recorder interface; Described key-press module connects the 3rd output of single-chip microcomputer; Described power module connects the feeder ear of single-chip microcomputer, the first driving circuit, the second driving circuit and burning module respectively through filtration module.
2. motorized zoom lens life tests tool control circuit according to claim 1, is characterized in that: described single-chip microcomputer is STC15F204EA.
3. motorized zoom lens life tests tool control circuit according to claim 1, is characterized in that: described first driving circuit, the second driving circuit are L293D chip.
4. motorized zoom lens life tests tool control circuit according to claim 1, is characterized in that: described key-press module comprises the first to the 5th button.
5. motorized zoom lens life tests tool control circuit according to claim 1, is characterized in that: described filter circuit module is made up of 4 filter capacitors.
6., based on the control method of the motorized zoom lens life tests tool control circuit described in claim 1-5, it is characterized in that: comprise the following steps:
Step S1: initialization is carried out to single-chip microcomputer;
Step S2: press switch of the power supply module, when there being power supply to input, push button module, and single-chip microcomputer, by the folding of identification address, exports pulse command, to control turning to and speed of motor to driver module;
Step S3: by improving the speed carrying out control step motor by changing pulsating wave dutycycle; Carrying out turning to of control step motor by the sequencing of gating pulse sequential, focusing on stepper motor and zoom stepper motor realization focusing zoom by changing;
Step S4: repeatedly circulation step S3 is until camera lens reaches serviceable life.
7. motorized zoom lens life tests according to claim 6 controls control method, it is characterized in that: step S2 also comprises following concrete steps: by the first button switching focusing stepper motor and zoom stepper motor steps; The frequency of the second to the 5th button is set to 50hz, 100hz, 125hz, 150hz, 200hz respectively, makes focusing stepper motor and zoom stepper motor do life test at different frequencies by the second to the 5th button.
CN201510603508.5A 2015-09-21 2015-09-21 Motorized zoom lenses life tests tool control circuit and method Active CN105136428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510603508.5A CN105136428B (en) 2015-09-21 2015-09-21 Motorized zoom lenses life tests tool control circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510603508.5A CN105136428B (en) 2015-09-21 2015-09-21 Motorized zoom lenses life tests tool control circuit and method

Publications (2)

Publication Number Publication Date
CN105136428A true CN105136428A (en) 2015-12-09
CN105136428B CN105136428B (en) 2018-02-16

Family

ID=54721860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510603508.5A Active CN105136428B (en) 2015-09-21 2015-09-21 Motorized zoom lenses life tests tool control circuit and method

Country Status (1)

Country Link
CN (1) CN105136428B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487196A (en) * 2016-01-29 2016-04-13 福建福光股份有限公司 Drive control box for production line to check phase of zoom lens and control method thereof
CN108168846A (en) * 2017-12-11 2018-06-15 福建福光股份有限公司 Burnt jig and its application method are run for testing motorized zoom lens conversion angle
CN108536057A (en) * 2018-03-26 2018-09-14 福建福光股份有限公司 The life tests control circuit of P-iris
CN110296815A (en) * 2019-07-02 2019-10-01 舜宇光学(中山)有限公司 Detection device and detection method for electromotive focusing camera lens

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0239113A (en) * 1988-07-29 1990-02-08 Kyocera Corp Zoom lens driving device
US6014523A (en) * 1997-01-06 2000-01-11 Asahi Kogaku Kogyo Kabushiki Kaisha Time-sharing drive apparatus for motor of camera
CN2435735Y (en) * 2000-07-28 2001-06-20 浙江舜宇光电股份有限公司 Mechanism for testing of optical lens tranfer function
CN101729780A (en) * 2009-10-13 2010-06-09 河南平原光电有限公司 Automatic focusing method of optical imaging system
CN202854558U (en) * 2012-07-26 2013-04-03 常州中科智联机电科技有限公司 Numerical control device used for door and window handle fatigue life testing machine
CN203275602U (en) * 2013-04-23 2013-11-06 常州宝龙电机有限公司 Stepper motor lifespan test system
CN205120340U (en) * 2015-09-21 2016-03-30 福建福光股份有限公司 Electric zoom camera lens life -span detection tool control circuit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0239113A (en) * 1988-07-29 1990-02-08 Kyocera Corp Zoom lens driving device
US6014523A (en) * 1997-01-06 2000-01-11 Asahi Kogaku Kogyo Kabushiki Kaisha Time-sharing drive apparatus for motor of camera
CN2435735Y (en) * 2000-07-28 2001-06-20 浙江舜宇光电股份有限公司 Mechanism for testing of optical lens tranfer function
CN101729780A (en) * 2009-10-13 2010-06-09 河南平原光电有限公司 Automatic focusing method of optical imaging system
CN202854558U (en) * 2012-07-26 2013-04-03 常州中科智联机电科技有限公司 Numerical control device used for door and window handle fatigue life testing machine
CN203275602U (en) * 2013-04-23 2013-11-06 常州宝龙电机有限公司 Stepper motor lifespan test system
CN205120340U (en) * 2015-09-21 2016-03-30 福建福光股份有限公司 Electric zoom camera lens life -span detection tool control circuit

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
刘帅 等: "《基于单片机的步进电机控制系统设计》", 《电子设计工程》 *
彭芬: "《利用脉宽PMW技术进行步进电机的调速》", 《世界华商经济年鉴·高校教育研究》 *
杜继伟 等: "《基于89C2051和MAX187的变焦镜头控制器的设计》", 《航空兵器》 *
林丽纯 等: "《FPGA在步进电机细分驱动控制系统中的应用》", 《实验科学与技术》 *
赵国利: "《基于单片机的步进电机控制系统设计》", 《产业与科技论坛》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487196A (en) * 2016-01-29 2016-04-13 福建福光股份有限公司 Drive control box for production line to check phase of zoom lens and control method thereof
CN108168846A (en) * 2017-12-11 2018-06-15 福建福光股份有限公司 Burnt jig and its application method are run for testing motorized zoom lens conversion angle
CN108536057A (en) * 2018-03-26 2018-09-14 福建福光股份有限公司 The life tests control circuit of P-iris
CN110296815A (en) * 2019-07-02 2019-10-01 舜宇光学(中山)有限公司 Detection device and detection method for electromotive focusing camera lens

Also Published As

Publication number Publication date
CN105136428B (en) 2018-02-16

Similar Documents

Publication Publication Date Title
CN105136428A (en) Motorized zoom lens service life detection jig control circuit and method
CN208188613U (en) For reducing the power supply system and electronic equipment of power consumption
CN108988736A (en) A kind of servo-system and its real-time control method of repid discharge
CN205120340U (en) Electric zoom camera lens life -span detection tool control circuit
CN105487196A (en) Drive control box for production line to check phase of zoom lens and control method thereof
CN206835019U (en) A kind of drive circuit of brushed DC motor
CN103669252B (en) A kind of gate automatically
CN208421767U (en) Electronic equipment and its consumable can control circuit
CN208174589U (en) A kind of driving control system for electric machine
US8138705B2 (en) Circuit arrangement and method for controlling an electric load
CN205584595U (en) Adopt intelligent stage control system of A variety of control mode
CN208369198U (en) A kind of load protection circuit and motor
CN106033957A (en) Multi-place control single live wire switch
CN211478928U (en) Power control circuit and robot
CN205489548U (en) Capacitor switching switch of idle intelligent network deployment
CN101615009B (en) Electrifying control circuit
CN104952265A (en) Traffic emergency light control circuit and device
CN206133347U (en) DC-DC controller
CN103325522A (en) Electric magnet bi-directional driving circuit
CN203894584U (en) Control circuit of air curtain smoke ventilator
CN209201040U (en) A kind of switch driving circuit, controller and electronic equipment
CN207947733U (en) A kind of brake gear and equipment of brushless motor
CN106702620A (en) Sewing machine control system
CN116488516A (en) Energy-saving conversion device for multi-type stepping motor application occasions
CN206195742U (en) Air purification treatment circuit based on thing networking

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant