CN107167984A - A kind of stepping motor control apparatus of automatic focusing apparatus - Google Patents
A kind of stepping motor control apparatus of automatic focusing apparatus Download PDFInfo
- Publication number
- CN107167984A CN107167984A CN201710522287.8A CN201710522287A CN107167984A CN 107167984 A CN107167984 A CN 107167984A CN 201710522287 A CN201710522287 A CN 201710522287A CN 107167984 A CN107167984 A CN 107167984A
- Authority
- CN
- China
- Prior art keywords
- automatic focusing
- stepper motor
- host computer
- control
- motor driver
- 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.)
- Pending
Links
- 230000007246 mechanism Effects 0.000 claims abstract description 17
- 238000004891 communication Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000002776 aggregation Effects 0.000 description 2
- 238000004220 aggregation Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 239000000523 sample Substances 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B13/00—Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
- G03B13/32—Means for focusing
- G03B13/34—Power focusing
- G03B13/36—Autofocus systems
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P8/00—Arrangements for controlling dynamo-electric motors rotating step by step
- H02P8/14—Arrangements for controlling speed or speed and torque
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automatic Focus Adjustment (AREA)
- Microscoopes, Condenser (AREA)
- Focusing (AREA)
Abstract
The invention discloses a kind of stepping motor control apparatus of automatic focusing apparatus, including host computer, focusing mechanism control box and automatic focusing apparatus;The focusing mechanism control box includes RS232 level shifter interfaces chip and light switching relay;The automatic focusing apparatus includes stepper motor driver;The external interface of RS232 level shifter interface chips is connected with the serial ports of host computer;The internal interface of RS232 level shifter interface chips switches relay with light and stepper motor driver is connected.Control algolithm can be moved on to host computer by the present invention without intelligent device, directly provide control pulse and Automatic level control stepper motor driver by the output line of serial ports, directly control the stepper motor operating of focusing mechanism;The complexity of focusing mechanism control box on automatic focusing apparatus is reduced, the complexity of hardware and software cost and algorithm is greatly reduced.
Description
Technical field
The present invention relates to a kind of stepping motor control apparatus, the stepper motor control of more particularly to a kind of automatic focusing apparatus
Device processed.
Background technology
Focal length, is the metric form of aggregation or diverging that light is weighed in optical system, refer to directional light it is incident when from lens light
The heart to the focus of light aggregation distance, object this apart from when imaging it is most clear.It is general using solid for automatic identification industry
Focus away from camera lens, and focal length needed for the different application of different products is different, so before barcode scanning equipment is dispatched from the factory, just
Need to carry out focusing work.Focusing, refers to by rotating lens, is allowed to definition highests apart from upper imaging at some.
As shown in figure 1, the stepping motor control apparatus of traditional automatic focusing apparatus, including host computer 1 (PC), focusing
Equipment control box 2 and automatic focusing apparatus 3;Host computer 1 is electrically connected with by focusing mechanism control box 2 with automatic focusing apparatus 3;
Wherein the control box 2 of focusing mechanism is, it is necessary to which the intelligent chip such as MCU or DSP23 produces the control needed for stepper motor driver 33
Pulse processed and level.And the intelligent chip such as MCU or DSP23 is again by the communications protocol of complete set come by serial ports and host computer
1 (such as PC) is communicated, and to obtain the various control instructions of host computer 1, carrys out controlled motor driver 33;Or detect controlled set
Standby state, host computer 1 is sent to by serial ports.Therefore it is accomplished by additionally increasing by an intelligent chip, and needs exploitation supporting
Application program supports the communications protocol of complete set, and the cost for not only increasing software and hardware also increases the complicated journey of algorithm
Degree.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of stepping motor control apparatus of automatic focusing apparatus, without
Intelligent device, host computer is moved on to by control algolithm, directly provides control pulse and Automatic level control stepping by the output line of serial ports
Motor driver, directly controls the stepper motor operating of focusing mechanism;Reduce focusing mechanism control box on automatic focusing apparatus
Complexity, greatly reduces the complexity of hardware and software cost and algorithm.
In order to solve the above technical problems, a kind of stepping motor control apparatus for automatic focusing apparatus that the present invention is provided, bag
Include host computer, focusing mechanism control box and automatic focusing apparatus;The focusing mechanism control box includes RS232 level shifter interfaces
Chip and light switching relay;The automatic focusing apparatus includes stepper motor driver;RS232 level shifter interface chips
External interface be connected with the serial ports of host computer;The internal interface of RS232 level shifter interface chips switches relay with light
And stepper motor driver is connected.
It is preferred that, the external interface of the RS232 level shifter interfaces chip produces minus 9 volts to positive 9 volts of level signal.
It is preferred that, the internal interface of the RS232 level shifter interfaces chip produces 0 volt to positive 5 volts of Transistor-Transistor Logic level letter
Number.
It is preferred that, the host computer is walked by simulating described in the pulse signal and Automatic level control of the stepper motor driver
Stepper motor driver.
The technical problems to be solved by the invention are to provide a kind of stepping motor control apparatus of automatic focusing apparatus, without
Intelligent device, host computer is moved on to by control algolithm, directly provides control pulse and Automatic level control stepping by the output line of serial ports
Motor driver, directly controls the stepper motor operating of focusing mechanism;Reduce focusing mechanism control box on automatic focusing apparatus
Complexity, greatly reduces the complexity of hardware and software cost and algorithm.
Brief description of the drawings
The present invention is further detailed explanation with reference to the accompanying drawings and detailed description:
Fig. 1 is the stepping motor control apparatus structural representation of existing automatic focusing apparatus;
Fig. 2 is the stepping motor control apparatus structural representation of automatic focusing apparatus of the present invention.
Fig. 3 is the first pulse train of stepper motor driver schematic diagram of the present invention;
Fig. 4 is the second pulse train of stepper motor driver schematic diagram of the present invention.
Embodiment
For that there can be further description to the purpose of the present invention, feature and effect, accompanying drawing is coordinated to be described in detail as after below.
As shown in Fig. 2 the stepping motor control apparatus of automatic focusing apparatus, including host computer 1, focusing mechanism control box 2
And automatic focusing device 3;The focusing mechanism control box 2 includes RS232 level shifter interfaces chip 21 and light switching relay
Device 22, the external interface of RS232 level shifter interfaces chip 21 is connected with the serial ports of host computer 1, and the external interface produces minus 9
Lie prostrate positive 9 volts of level signal;The internal interface of RS232 level shifter interfaces chip 21 is directly connected with controlled device, described
Controlled device in addition to including light switching relay 22, in addition to stepper motor driver 33 in automatic focusing apparatus 3,
The devices such as start button 31, infrared probe 32;The internal interface produces 0 volt to positive 5 volts of Transistor-Transistor Logic level signal.The light
Switching relay 22 is connected with the light compensating lamp 36 and illuminating lamp 37 in automatic focusing apparatus 3.Eliminated in focusing mechanism control box 1
" MCU or DSP " intelligent chips only retain traditional RS232 level shifter interfaces chip 21 and the light switching relay of relay 22
Device, if host computer 1 just can directly control operation of serial-port controlled device, or directly from examined device reading state.
Traditional host computer 1 (PC) physical serial interface is the DB9 interfaces of 9 cores.Its pin is defined as follows:
CD:Input, carrier wave detection;
RXD:Input, receives data;
TXD:Output, sends data;
DTR:Output, DTR;
GND:It is public, signal ground;
DSR:Input, communication apparatus is ready to;
RTS:Output, request is sent;
CTS:Input, it is allowed to send;
RI:Input, jingle bell is indicated.
The TXD data wires of PC serial ports can only be transmitted with byte mode.Its form is by 1 " start bit " (" 0 "), 8 " numbers
According to position " (preceding, a high position is rear for " xxxxxxxx " low level), 1 " check bit " (" x ") and 1 or 2 " stop position " (" 1 ") group
Into.
The present invention is exactly the TXD data wires using PC serial ports, carries out the rotary pulsed control of stepper motor driver 33.
It is rotary pulsed for analog stepping motor driver 33, the rotary pulsed number of stepper motor driver 33 is converted into 8
The byte number of bit data bytes.
As shown in Figure 3-4, to simulate shown in Fig. 35 are rotary pulsed, only need to represent whole by low and high level (1 or 0)
Individual pulse train, i.e., 0101010101, wherein first 0 expression start bit 0,10101010 middle expression data bit 0x55,
Last 1 represents stop position 1. so we are simulated shown in Fig. 3 with a start bit, an octet and a stop position
5 it is rotary pulsed.
Similarly, for Fig. 4, to simulate rotary pulsed shown in Fig. 4, only need to be expressed as 01 2 in the same manner and enter
System string, then constitutes a byte by 8.So we are with 6 bytes, " the ED 7F " of DF B7 55 55 coordinate " starting
Position ", " check bit " and " stop position ", it is possible to simulate 20 rotations of the acceleration including beginning and the deceleration degree series of ending
Turn pulse.
The rotary pulsed of stepper motor driver 33 is thus simulated;Simultaneously can be using setting host computer serial ports baud
Rate changes the speed of pulse train to reach, to change the rotating speed of stepper motor.
Specifically focussing process is:
Step 1, host computer 1 first carry out initial work
Step 2, the control RTS line level of host computer 1, it is bright that control light switching relay 22 switches to illuminating lamp 37, points out
Operator changes a new camera lens to be focused;
Step 3, operator, which change, can trigger start button 31 automatically after camera lens, after the level of the detection DSR lines of host computer 1
Know that start button 31 is triggered;
Step 4, the control RTS line level of host computer 1, control light switching relay 22 switch to light compensating lamp bright 36, enter
Focussing process;
Step 5, the side of the host computer 1 control control stepper motor 34 of stepper motor driver 33 rotate, and frontier inspection surveys CTS lines electricity
Flat, control focusing head 35 rotates to the fixed original position of infrared probe 32 in advance;
Step 6, host computer 1 control DTR lines, provide the rotation of stepper motor driver 33 according to automatic focusing control algolithm
Turn direction level, the direction of rotation of stepper motor 34 is controlled, so as to control the direction of rotation of focusing head 35;
Step 7, host computer 1 control TXD lines, provide the rotation of stepper motor driver 33 according to automatic focusing control algolithm
Turn pulse, the rotary speed of stepper motor 34 is controlled, so as to control the rotation of focusing head 35;
Step 8, host computer 1 are completed after focussing process, jump to step 2, re-replace a new camera lens to be focused,
Go round and begin again.
The present invention is described in detail above by specific embodiment, but these not constitute the limit to the present invention
System.Without departing from the principles of the present invention, those skilled in the art can also make many modification and improvement, and these also should
It is considered as protection scope of the present invention.
Claims (4)
1. a kind of stepping motor control apparatus of automatic focusing apparatus, including host computer, focusing mechanism control box and automatic focusing
Equipment;The focusing mechanism control box includes RS232 level shifter interfaces chip and light switching relay;The automatic focusing
Equipment includes stepper motor driver;The external interface of RS232 level shifter interface chips is connected with the serial ports of host computer;
The internal interface of RS232 level shifter interface chips switches relay with light and stepper motor driver is connected.
2. the stepping motor control apparatus of automatic focusing apparatus as claimed in claim 1, it is characterised in that:The RS232 level
The external interface of translation interface chip produces minus 9 volts to positive 9 volts of level signal.
3. the stepping motor control apparatus of automatic focusing apparatus as claimed in claim 1, it is characterised in that:The RS232 level
The internal interface of translation interface chip produces 0 volt to positive 5 volts of Transistor-Transistor Logic level signal.
4. the stepping motor control apparatus of automatic focusing apparatus as claimed in claim 1, it is characterised in that:The host computer passes through
Simulate stepper motor driver described in the pulse signal and Automatic level control of the stepper motor driver.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522287.8A CN107167984A (en) | 2017-06-30 | 2017-06-30 | A kind of stepping motor control apparatus of automatic focusing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522287.8A CN107167984A (en) | 2017-06-30 | 2017-06-30 | A kind of stepping motor control apparatus of automatic focusing apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107167984A true CN107167984A (en) | 2017-09-15 |
Family
ID=59827655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710522287.8A Pending CN107167984A (en) | 2017-06-30 | 2017-06-30 | A kind of stepping motor control apparatus of automatic focusing apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107167984A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111665019A (en) * | 2020-06-28 | 2020-09-15 | 中国科学院长春光学精密机械与物理研究所 | Electronics simulation test system of focusing mechanism |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2502474Y (en) * | 2001-09-28 | 2002-07-24 | 浙江大学 | High clarity TV picture error automatic regulating device |
CN1831627A (en) * | 2005-03-07 | 2006-09-13 | 普立尔科技股份有限公司 | Automatic focusing system of traditional camera and its automatic forcusing method |
CN101275905A (en) * | 2008-04-18 | 2008-10-01 | 浙江大学 | Multi-source optical spectrum syncretizing portable water quality analysis meter |
CN204761609U (en) * | 2015-08-11 | 2015-11-11 | 浪潮集团有限公司 | Laser night-vision device capable of automatically focusing |
CN106772926A (en) * | 2017-01-05 | 2017-05-31 | 福建新大陆电脑股份有限公司 | A kind of automatic focusing method |
-
2017
- 2017-06-30 CN CN201710522287.8A patent/CN107167984A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2502474Y (en) * | 2001-09-28 | 2002-07-24 | 浙江大学 | High clarity TV picture error automatic regulating device |
CN1831627A (en) * | 2005-03-07 | 2006-09-13 | 普立尔科技股份有限公司 | Automatic focusing system of traditional camera and its automatic forcusing method |
CN101275905A (en) * | 2008-04-18 | 2008-10-01 | 浙江大学 | Multi-source optical spectrum syncretizing portable water quality analysis meter |
CN204761609U (en) * | 2015-08-11 | 2015-11-11 | 浪潮集团有限公司 | Laser night-vision device capable of automatically focusing |
CN106772926A (en) * | 2017-01-05 | 2017-05-31 | 福建新大陆电脑股份有限公司 | A kind of automatic focusing method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111665019A (en) * | 2020-06-28 | 2020-09-15 | 中国科学院长春光学精密机械与物理研究所 | Electronics simulation test system of focusing mechanism |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7018135B2 (en) | Battery detection method and equipment | |
US20180018826A1 (en) | Method for controlling an object | |
CN208833676U (en) | A kind of Machine Vision Detection platform | |
CN206096841U (en) | Embedded digital monitoring circuit of multiaxis real -time simulation revolving stage | |
EP3889887A1 (en) | Image generation device, robot training system, image generation method, and image generation program | |
CN103019385A (en) | Infrared-based three-dimensional (3D) gesture recognition controller and realization method | |
CN101702088A (en) | Device for controlling fruit sweet acidity separation production line based on visible and near infrared spectrum | |
CN101639746B (en) | Automatic calibration method of touch screen | |
CN107167984A (en) | A kind of stepping motor control apparatus of automatic focusing apparatus | |
CN105711277B (en) | A kind of Intelligent Selection chapter, which is affixed one's seal, tests prosecutor method | |
CN108594251A (en) | A kind of three-dimensional laser radar of high speed | |
CN103612491A (en) | Laser marking control card | |
CN103837545A (en) | Lens imaging device and method | |
CN110237545A (en) | A kind of video frequency remote-control method, remote controler and remote-control toy | |
US20100198406A1 (en) | Electronic pet system and control method of an electronic pet | |
CN109359082A (en) | A kind of real-time monitoring system of usb data based on FPGA and method | |
CN108182277A (en) | It is a kind of to carry out searching the method and system of topic, hand-held photographing device based on dominant point | |
CN101023457A (en) | A device to be used as an interface between a user and target devices | |
CN103777625A (en) | Generalized helicopter laboratory measurement and control system | |
KR102391628B1 (en) | Smart Coding Block System that can work with augmented reality | |
CN112579028A (en) | Visual screen matching method and device | |
CN104657701A (en) | Intelligent visual recognition and tracking method and system applied to plurality of barcodes | |
CN105511690A (en) | Touch input system, touch position generating device and method | |
CN106839990A (en) | A kind of colliery laser facula coordinate detecting device and method | |
CN106648614A (en) | Modular platform-based robot development system architecture and main control unit thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 350015 New Continental Science Park No. 1 Rujiangxi Road, Mawei District, Fuzhou City, Fujian Province Applicant after: New Continent Digital Technology Co., Ltd. Address before: 350015 New Continental Science Park No. 1 Rujiangxi Road, Mawei District, Fuzhou City, Fujian Province Applicant before: Fujian Newland Computer Co., Ltd. |
|
CB02 | Change of applicant information | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170915 |
|
WD01 | Invention patent application deemed withdrawn after publication |