Focus-adjustable medical endoscope camera device

Through the design of the focus ring structure driven by step motor and the design of multiple nails in the medical endoscopy camera device, the accuracy and stability of the focus system in the existing technology are solved, and the high accuracy is achieved. And stable focus effect.

CN119366840APending Publication Date: 2025-01-28ZHUHAI DI PU MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411552420.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The focus system of existing medical endoscopic imaging devices has problems with accuracy and stability, especially when the thread processing is inaccurate or the mating gap caused by wear during use increases, which affects the accuracy and stability of focus.

Method used

Adopt a stepped motor -driven focus ring structure. Through multiple nails to fix the movement lens barrel on the ring structure, to ensure the stability of the lens barrel in the movement process, and accurately control the movement of the step motor through the MCU processor to avoid the mirror to avoid the mirror avoid The tube contact limit position.

Benefits of technology

The stability and accuracy of the focus process are realized, the focus errors caused by mechanical vibration and impact are reduced, and the reliability and durability of the use of the small medical environment are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119366840A_ABST
    Figure CN119366840A_ABST
Patent Text Reader

Abstract

The invention provides a focusable medical endoscope camera device which comprises an optical lens assembly, a camera assembly, a control system and a focusing system, the optical lens assembly comprises an optical lens used for focusing and an optical lens cone, the optical lens is connected with a movable lens cone, the movable lens cone is installed in the optical lens cone, and the control system is connected with the control system. The focusing ring structure is arranged outside the optical lens cone; the focusing system comprises a stepping motor, a motor adapter and a focusing annular structure, a lead screw of the stepping motor drives the motor adapter to move back and forth, the motor adapter drives a focusing ring to move, a focusing pin is arranged on the focusing annular structure, and when the focusing annular structure moves, the focusing pin pushes or pulls the movable lens cone, and the focusing ring is driven to move. Therefore, the optical lens is driven to slide in the movable lens cone, and the focusing function is realized. According to the invention, the stability of the focusable structure and the motor can be realized, so that the stability of a focusable picture is further realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of medical imaging systems, and in particular to a focusing medical endoscope imaging device. Background Art

[0002] In the actual application of cameras in shooting and recording working environments, adjusting the focal length is a key step to ensure the shooting quality, especially when facing objects at different distances. The focal length needs to be adjusted to cope with shooting and recording objects at different distances. Since cameras are usually sealed devices, a precise focusing system is required to achieve focal length adjustment.

[0003] In the prior art, most focusing systems use thread or gear rotation to change the position of the optical lens for focusing. If the thread processing is not precise enough, or the fitting clearance increases due to wear during use, the focusing accuracy and stability may be affected. If a large adjustment range is required, it may be necessary to increase the thread length or change the pitch, but this will increase the complexity and cost of the structure. Gear transmission is easily affected by external factors such as temperature and humidity, which may cause gear loosening, jamming or load imbalance. Summary of the invention

[0004] In order to solve the problems existing in the prior art, the purpose of the present invention is to provide a focus-adjustable medical endoscope camera device, which can achieve the stability of the focus-adjustable structure and the motor, thereby further achieving the stability of the focus-adjustable image.

[0005] The present invention achieves the above-mentioned purpose through the following technical solutions:

[0006] A focus-adjustable medical endoscope camera device, comprising:

[0007] An optical lens assembly, a camera assembly, a control system, and a focusing system, wherein the control system is connected to the camera assembly and the focusing system respectively, the optical lens assembly is threadedly connected to the camera assembly, the optical lens assembly comprises an optical lens for focusing and an optical lens barrel, the optical lens is connected to the movable lens barrel, the movable lens barrel is installed inside the optical lens barrel and connected to a focusing annular structure outside the optical lens barrel, and the stepping motor of the focusing system drives the focusing annular structure to move back and forth to achieve focusing;

[0008] The focusing system includes a stepping motor, a motor adapter, and a focusing ring structure. The lead screw of the stepping motor drives the motor adapter to move forward and backward, and the motor adapter further drives the focusing ring to move. A focusing pin is provided on the focusing ring structure. When the focusing ring structure moves, the focusing pin pushes or pulls the moving lens barrel, thereby driving the optical lens to slide in the moving lens barrel to achieve a focusing function.

[0009] A focusable medical endoscope camera device provided according to the present invention also includes a handle shell and a cable assembly, wherein the optical lens assembly, camera assembly, control system, focusing system and cable assembly are installed in the handle shell, and the cable assembly is connected to the control system for transmitting the image signal captured by the camera assembly to an external display device or other processing system, a front end cover assembly is installed at the front end of the handle shell, a tail cover assembly is installed at the tail of the handle shell, and a button assembly is provided at the top of the handle shell.

[0010] According to a focus-adjustable medical endoscope camera device provided by the present invention, a positioning groove is provided in the optical lens barrel, and when the focusing pin moves in the positioning groove of the optical lens barrel, the positioning groove has a limiting function.

[0011] According to a focus-adjustable medical endoscope camera device provided by the present invention, the optical lens includes a first optical lens and a second optical lens, and the movable lens barrel is located between the first optical lens and the second optical lens. By moving the movable lens barrel back and forth, the distance between the first optical lens and the second optical lens can be changed, thereby realizing a focusing function.

[0012] According to the focus-adjustable medical endoscope camera device provided by the present invention, at least three focus-adjusting pins are provided on the focus-adjusting annular structure.

[0013] According to a focusable medical endoscope camera device provided by the present invention, the control system includes an MCU processor and a DC motor drive circuit, the MCU processor is used to generate a pulse control signal according to a key signal output by a key component, and the DC motor drive circuit is used to receive the pulse control signal of the MCU processor and convert it into a stepper motor drive signal, thereby controlling the stepper motor to rotate at a certain angular velocity.

[0014] According to a focus-adjustable medical endoscope camera device provided by the present invention, the upper limit position and the lower limit position of the movable lens barrel are predefined according to the length of the positioning groove and the position of the focus pin, that is, the focus pin moves to the front end as the upper limit position, and moves to the rear end as the lower limit position. The MCU processor controls the moving stroke of the stepper motor according to the predefined limit positions. When it is detected that the movable lens barrel is close to the upper limit position or the lower limit position, the MCU processor controls the stepper motor to stop rotating to prevent collision.

[0015] The sensor is used to detect the position of the moving barrel or pin in real time and transmit the position information to the MCU. The MCU records the current position and compares it with the preset limit position. Once it detects that the moving barrel exceeds the preset range, the system immediately stops the rotation of the stepper motor and sounds an alarm.

[0016] According to a focus-adjustable medical endoscope camera device provided by the present invention, a 1K space is separately allocated in the flash memory for storing the current position data of the moving lens. Each time the moving lens position data needs to be saved, the data is written to a position 2 bytes offset from the last write address. When the 1K space is fully written, it is not erased immediately, but continues to be overwritten from the starting position. When the system detects that erasure is required, the entire 1K space is erased uniformly, and the data is written again from the starting position. The data is erased uniformly once and rewritten at the starting position.

[0017] According to a focus-adjustable medical endoscope camera device provided by the present invention, one or more layers of thin films with specific optical properties are deposited on the surface of an optical lens to form a composite film with different thicknesses and refractive indices to reduce reflection and glare.

[0018] According to a focus-adjustable medical endoscope camera device provided by the present invention, a timer is selected in the MCU processor, and the timer is used to generate a PWM signal or a stepping signal for controlling a stepping motor;

[0019] According to the required motor speed, configure the timer prescaler and counter value to generate the appropriate PWM frequency or step signal frequency;

[0020] Enable the interrupt function of the timer and write an interrupt service routine to update the PWM duty cycle or send a stepping signal when an interrupt occurs;

[0021] Use an analog input channel to monitor the supply voltage of the embedded system. The MCU processor has a built-in brownout detection function that is configured to trigger an interrupt when the supply voltage drops to a certain threshold.

[0022] Write an interrupt service routine to handle the power-off interrupt. In this routine, first confirm that the supply voltage has indeed dropped, and then save the current travel information of the motor to the non-volatile memory.

[0023] Add an error detection mechanism before saving data to ensure data integrity; use a watchdog timer to monitor the execution time of the power-off interrupt handler to prevent failure to save data correctly due to program abnormalities.

[0024] According to a focus-adjustable medical endoscope camera device provided by the present invention, the camera assembly includes a camera body and a camera adapter frame, the camera body is firmly fixed on the camera adapter frame, and the camera adapter frame is provided with a variety of interfaces and mounting holes.

[0025] It can be seen that compared with the prior art, the device provided by the present invention has the following beneficial effects:

[0026] 1. The present invention has a simple structure and adopts a modular design. The components are compactly connected, which reduces space occupation and is convenient for use in a small medical environment. The cost is lower than that of thread and gear structures.

[0027] 2. The movable lens barrel of the present invention is fixed to the annular structure by multiple pins, which ensures the stability of the movable lens barrel during the moving process, and the picture does not shake, and the movable lens barrel does not get stuck. At the same time, the connection method between the focusing annular structure and the movable lens barrel makes the focusing process more stable, reducing the focusing error caused by mechanical vibration or impact.

[0028] 3. The present invention realizes the forward and backward movement of the lens barrel by driving the annular locking structure through a stepping motor, which can solve the uncertainty of the connection position caused by the lens barrel and the threaded connection, ensure the firmness and stability of the connection, and realize a universal connection.

[0029] 4. Compared with DC motors, stepper motors can control motor travel, have the characteristics of high positioning accuracy and stable operation, can ensure the accuracy and stability during focusing, can reduce the uncertainty of motor movement position, and can prevent the motor from being damaged due to inaccurate positioning when the moving barrel moves to the front and rear limit positions of the positioning slot while the motor continues to output;

[0030] 5. Compared with servo motors, stepper motors have smaller size and are easier to integrate into the narrow space inside the camera. In addition, mechanical components such as stepper motors and threaded connections have higher durability and can withstand long-term use and frequent focusing operations, extending the service life of the equipment.

[0031] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 The diagram is a schematic structural diagram of an embodiment of a focus-adjustable medical endoscope camera device of the present invention.

[0033] Figure 2 It is a cross-sectional view of an embodiment of a focus-adjustable medical endoscope camera device of the present invention.

[0034] Figure 3 The present invention is a schematic structural diagram of an adjustable-focus medical endoscope camera device without a handle housing in an embodiment of the present invention.

[0035] Figure 4 It is a first cross-sectional view of an embodiment of a focus-adjustable medical endoscope camera device of the present invention with the handle housing removed.

[0036] Figure 5 It is a second cross-sectional view of an embodiment of a focus-adjustable medical endoscope camera device of the present invention without a handle housing. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0039] See also Figures 1 to 5 The present invention provides a focusable medical endoscope camera device, comprising: an optical lens assembly, a camera assembly, a control system, and a focusing system. The control system 30 is connected to the camera assembly and the focusing system respectively. The optical lens assembly is threadedly connected to the camera assembly. The optical lens assembly comprises an optical lens 11 for focusing and an optical lens barrel 12. The optical lens 11 is connected to a movable lens barrel 13. The movable lens barrel 13 is installed inside the optical lens barrel 12 and connected to a focusing annular structure 43 outside the optical lens barrel 12. The stepping motor 41 of the focusing system drives the focusing annular structure 43 to move back and forth to achieve focusing.

[0040] In this embodiment, the focusing system includes a stepper motor 41, a motor bracket 412, a motor adapter 42, a motor adapter fixing block 421, a focusing ring structure 43, a focusing nut 44 and 45. The screw of the stepper motor 41 drives the motor adapter 42 to move forward and backward, and the motor adapter 42 further drives the focusing ring to move. A focusing pin 46 is provided on the focusing ring structure 43. When the focusing ring structure 43 moves, the focusing pin 46 pushes or pulls the movable lens barrel 13, thereby driving the optical lens 11 to slide in the movable lens barrel 13 to realize the focusing function.

[0041] In this embodiment, a handle shell 50 and a cable assembly 60 are also included. An optical lens assembly, a camera assembly, a control system, a focusing system and a cable assembly are installed in the handle shell 50. The cable assembly 60 is connected to the control system 30 and is used to transmit the image signal captured by the camera assembly to an external display device or other processing system. A front end cover assembly 70 is installed at the front end of the handle shell 50, a tail cover assembly 80 is installed at the tail of the handle shell 50, and a button assembly 90 is provided at the top of the handle shell 50.

[0042] It can be seen that these components work together to realize the functions of the endoscope camera device. The handle housing 50, as the main structure, not only protects the internal components, but also provides a grip point and an interface for connecting other components. The camera and lens assembly is responsible for capturing images, the cable assembly 60 is responsible for transmitting image signals, and the front cover assembly 70 and the rear cover assembly 80 protect the front and rear of the device respectively, ensuring the reliability and durability of the endoscope camera device in a medical environment, while also providing clear image quality and precise control functions.

[0043] In this embodiment, a positioning groove is provided in the optical lens barrel 12 , and when the focusing pin 46 moves in the positioning groove of the optical lens barrel 12 , the positioning groove has a limiting function.

[0044] In this embodiment, the optical lens 11 includes a first optical lens and a second optical lens, and the movable lens barrel 13 is located between the first optical lens and the second optical lens. By moving the movable lens barrel 13 back and forth, the distance between the first optical lens and the second optical lens can be changed, thereby realizing the focusing function. Among them, the first optical lens can be a fixed-focus lens with a fixed focal length and field of view; the second optical lens can be a zoom lens, and its focal length can be adjusted by a certain mechanism (such as the displacement of the movable lens barrel 13).

[0045] In this embodiment, at least three focusing pins 46 are provided on the focusing ring structure 43 .

[0046] In this embodiment, the control system 30 includes an MCU processor, a DC motor drive circuit and a circuit board fixing part 31. The MCU processor is used to generate a pulse control signal according to the key signal output by the key assembly 90. The DC motor drive circuit is used to receive the pulse control signal of the MCU processor and convert it into a stepper motor 41 drive signal, thereby controlling the stepper motor 41 to rotate at a certain angular velocity.

[0047] Preferably, a rotary encoder is installed in the stepper motor 41 system, which can provide accurate information about the actual position of the motor. By comparing the feedback of the rotary encoder with the expected position, closed-loop control can be achieved, thereby improving the positioning accuracy and motion stability of the stepper motor 41. After the MCU receives the feedback signal, it needs to be properly processed to extract useful information, which includes steps such as signal filtering, amplification, and conversion. A PID (proportional-integral-differential) controller is used to adjust the response of the motor. The PID controller can adjust the current input according to the difference between the set target speed and position and the actual value, thereby achieving smoother movement and more accurate positioning. By analyzing and optimizing the dynamic characteristics of the stepper motor 41, vibration and resonance can be reduced and the stability of the movement can be improved, which includes adjustment of the motor drive circuit and design improvements of the mechanical structure to reduce unnecessary loads and friction.

[0048] In this embodiment, the upper limit position 121 and the lower limit position 122 of the movable lens barrel 13 are predefined according to the length of the positioning groove and the position of the focusing pin 46, that is, the upper limit position 121 is when the focusing pin 46 moves to the front end, and the lower limit position 122 is when the focusing pin 46 moves to the rear end. The MCU processor controls the moving stroke of the stepper motor 41 according to the predefined limit positions. When it is detected that the movable lens barrel 13 is close to the upper limit position 121 or the lower limit position 122, the MCU processor controls the stepper motor 41 to stop rotating to prevent collision. Among them, these limit positions should be slightly smaller than the actual front and rear limits of the positioning groove to ensure that the movable lens barrel 13 does not contact the end of the positioning groove.

[0049] The sensor is used to detect the position of the moving barrel or pin in real time, and transmit the position information to the MCU. The MCU records the current position and compares it with the preset limit position. Once it is detected that the moving barrel 13 exceeds the preset range, the system immediately stops the rotation of the stepper motor 41 and sounds an alarm.

[0050] It can be seen that this embodiment can ensure that the moving lens will not touch the upper / lower limit position by accurately controlling the moving stroke of the stepper motor 41 and recording the position of the moving lens in real time, thereby preventing the internal structures from colliding with each other and the lens from shaking, which not only improves the stability and reliability of the system, but also ensures safety and clarity during the operation.

[0051] Flash memory is a non-volatile memory that can keep data intact after power failure. However, Flash memory has a certain erase and write life, that is, each storage unit can only be erased and written a limited number of times (usually 100,000 to 1 million times). Therefore, properly managing the erase and write times of Flash memory is crucial to extending its service life.

[0052] In this embodiment, a 1K space is allocated in the flash memory to store the current position data of the moving lens. Each time the moving lens position data needs to be saved, the data is written to the position offset by 2 bytes from the last write address. In this way, each write will overwrite the last position data (if the historical data does not need to be retained), or form a circular data chain (if a certain amount of historical data needs to be retained).

[0053] When the 1K space is fully written, it is not erased immediately, but continues to overwrite from the beginning; when the system detects that it needs to be erased, it will erase the entire 1K space, write data again from the beginning, and then write again at the beginning. This strategy is called "circular writing" or "ring buffer writing", which can maximize the use of storage space while reducing the number of erases and writes.

[0054] It can be seen that this embodiment can reduce the number of times the Flash memory is erased and written, extend its service life, and improve the utilization of storage space, especially when a large amount of historical data does not need to be retained. It is suitable for occasions that require frequent storage and update of small amounts of data and have high requirements for the life of the Flash memory, such as the storage of position data in a focusable medical endoscope camera device. By properly managing the number of times the Flash memory is erased and written and the storage space, the long-term stable operation of the system can be ensured, and the reliability and durability of the equipment can be improved.

[0055] In this embodiment, one or more layers of thin films with specific optical properties are deposited on the surface of the optical lens to form a composite film with different thicknesses and refractive indices to reduce reflection and glare.

[0056] Among them, the single-layer film material is mainly a mixture of magnesium fluoride (MgF2) and zinc oxide (ZnO), which can reduce surface reflection and improve image quality.

[0057] Among them, the multilayer film of this embodiment uses multiple materials to be stacked layer by layer on the surface of the lens to form a composite film with different thicknesses and different refractive indices. These materials generally include fluoride, silicon dioxide, zirconium oxide, etc. to achieve better optical effects. Before coating, the lens needs to be thoroughly cleaned and pretreated to remove dirt and grease on the surface to ensure the quality of the coating. Coating methods include vacuum evaporation, sputtering coating and ion plating, etc. These methods deposit the coating material on the surface of the lens by physical means. In the multilayer coating process, the thickness and refractive index of each layer of the film need to be precisely controlled to ensure the overall optical performance.

[0058] In this embodiment, a timer is selected in the MCU processor, and the timer will be used to generate a PWM signal or a step signal for controlling the stepping motor 41;

[0059] According to the required motor speed, configure the timer prescaler and counter value to generate the appropriate PWM frequency or step signal frequency;

[0060] Enable the interrupt function of the timer and write an interrupt service routine to update the PWM duty cycle or send a stepping signal when an interrupt occurs;

[0061] Use an analog input channel to monitor the supply voltage of the embedded system. The MCU processor has a built-in brownout detection function that is configured to trigger an interrupt when the supply voltage drops to a certain threshold.

[0062] Write an interrupt service routine to handle the power-off interrupt. In this routine, first confirm that the supply voltage has indeed dropped, and then save the current travel information of the motor to the non-volatile memory.

[0063] Add error detection mechanisms (such as checksum, CRC, etc.) before saving data to ensure data integrity; use a watchdog timer to monitor the execution time of the power-off interrupt handler to prevent failure to save data correctly due to program abnormalities.

[0064] In this embodiment, the camera assembly includes a camera body 21 and a camera adapter frame 31 . The camera body 21 is firmly fixed on the camera adapter frame 31 . The camera adapter frame 31 has a variety of interfaces and mounting holes.

[0065] In practical applications, the device is based on an embedded platform, uses an embedded microprocessor chip, and is programmed using computer software Keil to achieve the following functions:

[0066] The device monitors the button pressing status in real time through the IO pins.

[0067] When a key is pressed, the system sends a pulse signal to the driver chip, and further transmits the signal to the stepper motor 41 to control the stepper motor 41 to rotate at a certain angular velocity.

[0068] In the focusing system assembly, the lead screw of the stepper motor 41 drives the motor adapter 42 to move forward and backward, and the motor adapter further moves the focusing ring. The focusing ring is provided with a focusing pin 46, which drives the movable lens barrel 13 to move forward and backward, and then drives the optical lens 11 in the movable lens barrel 13 to slide, thereby realizing the focusing function.

[0069] The system will record the current position of the moving lens in real time, and has a set of pre-constrained upper and lower limit positions (the focusing stroke is determined by the length of the positioning groove of the focusing pin 46 on the main lens barrel, and the focusing pin 46 runs to the front end to the upper limit position 121, and runs to the rear end to the lower limit position 122). When the focusing structure is running, the system ensures that the moving lens will not contact the upper / lower limit position to prevent the internal structures from colliding with each other and causing lens shake.

[0070] The above data is stored in the flash of the embedded microprocessor chip of the system. Only 2 bytes of space are needed to save data at a time. However, in order to balance the number of flash erase and write times, a 1K space is allocated in the flash area to store the current position of the moving lens. The address of each data write will be offset by 2 bytes based on the last write address. When the 1K space is fully written, it will be erased once and rewritten at the starting position.

[0071] In this embodiment, the button assembly 90 is respectively an "up button" and a "down button", corresponding to the camera focusing far away and focusing near, respectively. Two IO pins of the embedded microprocessor are used as button detection pins, which are configured as pull-up input mode. When a button is pressed, the pin voltage is pulled low to achieve button detection. The motor drive pins IO1, IO2, IO3, and IO4 of the embedded microprocessor control the rotation of the two-phase four-wire stepper motor 41 through the driver chip. And the motor speed can be adjusted by configuring the timer interrupt timeout. In addition, considering the abnormal power failure during the operation of the motor, a power-off interrupt should be added to actively save the motor stroke once the embedded microprocessor detects a drop in the power supply voltage.

[0072] In summary, the present invention has a simple structure, adopts a modular design, and the components are compactly connected, which reduces space occupation and is convenient for use in a small medical environment; the cost is lower than that of a threaded and gear structure. The movable lens barrel of the present invention is fixed to the annular structure by a plurality of pins, which ensures the stability of the movable lens barrel during the moving process, and the image does not shake, and the movable lens barrel does not get stuck. At the same time, the connection method between the focusing annular structure and the movable lens barrel makes the focusing process more stable, reducing the focusing error caused by mechanical vibration or impact.

[0073] Furthermore, the present invention realizes the forward and backward movement of the lens barrel by driving the annular locking structure through a stepping motor, which can solve the uncertainty of the connection position caused by the lens barrel and the threaded connection, ensure the firmness and stability of the connection, and realize a universal connection.

[0074] Furthermore, compared with DC motors, stepper motors can control motor travel, have the characteristics of high positioning accuracy and stable operation, can ensure the accuracy and stability during focusing, can reduce the uncertainty of the motor movement position, and can prevent the stepper motor from being damaged due to inaccurate positioning when the moving lens barrel moves to the front and rear limit positions of the positioning groove and the motor continues to output;

[0075] Furthermore, compared to servo motors, stepper motors have a smaller size and are easier to integrate into the narrow space inside the camera. In addition, mechanical components such as stepper motors and threaded connections have high durability and can withstand long-term use and frequent focusing operations, extending the service life of the equipment.

[0076] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0077] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of protection of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention shall fall within the scope of protection required by the present invention.

Claims

1. A focus-adjustable medical endoscope camera device, characterized in that: include: An optical lens assembly, a camera assembly, a control system, and a focusing system, wherein the control system is connected to the camera assembly and the focusing system respectively, the optical lens assembly is threadedly connected to the camera assembly, the optical lens assembly comprises an optical lens for focusing and an optical lens barrel, the optical lens is connected to the movable lens barrel, the movable lens barrel is installed inside the optical lens barrel and connected to a focusing annular structure outside the optical lens barrel, and the stepping motor of the focusing system drives the focusing annular structure to move back and forth to achieve focusing; The focusing system includes a stepping motor, a motor adapter, and a focusing ring structure. The lead screw of the stepping motor drives the motor adapter to move forward and backward, and the motor adapter further drives the focusing ring to move. A focusing pin is provided on the focusing ring structure. When the focusing ring structure moves, the focusing pin pushes or pulls the moving lens barrel, thereby driving the optical lens to slide in the moving lens barrel to achieve a focusing function.

2. The device according to claim 1, characterized in that: It also includes a handle shell and a cable assembly, in which the optical lens assembly, camera assembly, control system, focusing system and cable assembly are installed. The cable assembly is connected to the control system and is used to transmit the image signal captured by the camera assembly to an external display device or other processing system. A front end cover assembly is installed at the front end of the handle shell, a tail cover assembly is installed at the tail of the handle shell, and a button assembly is provided at the top of the handle shell.

3. The device according to claim 1, characterized in that: A positioning groove is provided in the optical lens barrel, and when the focusing pin moves in the positioning groove of the optical lens barrel, the positioning groove has a limiting function.

4. The device according to claim 1, characterized in that: The optical lens includes a first optical lens and a second optical lens. The movable lens barrel is located between the first optical lens and the second optical lens. By moving the movable lens barrel back and forth, the distance between the first optical lens and the second optical lens can be changed, thereby achieving a focusing function.

5. The device according to claim 1, characterized in that: At least three focusing pins are arranged on the focusing annular structure.

6. The device according to claim 1, characterized in that: The control system includes an MCU processor and a DC motor drive circuit. The MCU processor is used to generate a pulse control signal according to a key signal output by a key component. The DC motor drive circuit is used to receive the pulse control signal of the MCU processor and convert it into a stepper motor drive signal, thereby controlling the stepper motor to rotate at a certain angular velocity.

7. The device according to claim 3, characterized in that: According to the length of the positioning groove and the position of the focusing pin, the upper limit position and the lower limit position of the movable lens barrel are predefined, that is, the upper limit position is when the focusing pin moves to the front end, and the lower limit position is when the focusing pin moves to the rear end. The MCU processor controls the moving stroke of the stepper motor according to the predefined limit positions. When it is detected that the movable lens barrel is close to the upper limit position or the lower limit position, the MCU processor controls the stepper motor to stop rotating to prevent collision. The sensor is used to detect the position of the moving barrel or pin in real time and transmit the position information to the MCU. The MCU records the current position and compares it with the preset limit position. Once it detects that the moving barrel exceeds the preset range, the system immediately stops the rotation of the stepper motor and sounds an alarm.

8. The device according to claim 6, characterized in that: A 1K space is allocated separately in the flash memory to store the current position data of the mobile lens. Each time the mobile lens position data needs to be saved, the data is written to the position offset by 2 bytes from the last write address. When the 1K space is full, it is not erased immediately, but continues to overwrite from the starting position; when the system detects that it needs to be erased, it erases the entire 1K space, writes the data again from the starting position, and erases it once and rewrites it at the starting position.

9. The device according to claim 1, characterized in that: One or more layers of thin films with specific optical properties are deposited on the surface of the optical lens to form a composite film with different thicknesses and refractive indices to reduce reflection and glare.

10. The device according to claim 6, characterized in that: Select a timer in the MCU processor, which will be used to generate PWM signals or control the stepper motor stepper signal; According to the required motor speed, configure the timer prescaler and counter value to generate the appropriate PWM frequency or step signal frequency; Enable the interrupt function of the timer and write an interrupt service routine to update the PWM duty cycle or send a stepping signal when an interrupt occurs; Use an analog input channel to monitor the supply voltage of the embedded system. The MCU processor has a built-in brownout detection function that is configured to trigger an interrupt when the supply voltage drops to a certain threshold. Write an interrupt service routine to handle the power-off interrupt. In this routine, first confirm that the supply voltage has indeed dropped, and then save the current travel information of the motor to the non-volatile memory. Add error detection mechanisms to ensure data integrity before saving it; Use the watchdog timer to monitor the execution time of the power-off interrupt handler to prevent data from being saved incorrectly due to program abnormalities.