Embedded multi-project lens debugging simple system and debugging method
By integrating design and automating debugging functions through an embedded multi-project lens debugging system, the complexity and human error of existing lens debugging methods are solved, achieving an efficient and accurate lens debugging process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-31
- Publication Date
- 2026-04-14
AI Technical Summary
Existing lens adjustment methods are complex to operate, have low system integration, are difficult to adapt to multiple projects, and rely on manual operation, which leads to data errors and affects adjustment efficiency and consistency.
Design an embedded multi-project lens debugging system that integrates a main control module, a human-machine interaction module, and a lens interface module. It can be adapted to different projects through firmware upgrades, integrates motor drive, signal acquisition and data analysis functions, provides an intuitive graphical human-machine interaction interface, and realizes automated debugging.
It simplifies the lens adjustment process, improves adjustment efficiency and consistency, lowers the operational threshold, and ensures the accuracy and traceability of test results.
Smart Images

Figure CN121855824A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of embedded system development technology, and more specifically, to a simple system and method for debugging embedded multi-project lenses. Background Technology
[0002] As a core component of an imaging system, the performance of an optical lens directly determines the imaging quality of terminal devices (such as smartphones, security cameras, medical endoscopes, and automotive camera modules). With the continuous expansion and deepening of downstream applications, different projects have placed highly differentiated performance requirements on lenses, especially in terms of focusing speed, accuracy, noise control, aperture response characteristics, and signal interaction compatibility with the main control chip.
[0003] Throughout the entire process of lens development, from prototype to mass production, manufacturers need to conduct comprehensive engineering verification and parameter debugging for lens components required for different projects. This mainly covers the following aspects: focusing motor selection and parameter calibration, aperture performance evaluation, multi-project management and switching, and sensor interface signal verification. However, the debugging methods commonly used in the industry currently have significant limitations. The common practice is to rely on general-purpose instrument combinations, which requires reconfiguration of hardware and software when switching between different projects. This results in low system integration, complex and inefficient operation, difficulty in adapting to multiple projects, and reliance on operators' subjective judgment to read values, making test results susceptible to human factors. Summary of the Invention
[0004] The purpose of this invention is to address the shortcomings of existing technologies by providing an embedded multi-project lens debugging system and method. This system features high integration, a user-friendly interface, and the ability to flexibly adapt to the debugging needs of different projects through firmware upgrades. This significantly reduces the operational threshold and improves the efficiency of verification and debugging during lens research and development and production.
[0005] To achieve the above-mentioned objectives, the present invention provides the following technical solution: A simplified embedded multi-project lens debugging system, including a main control module; Human-computer interaction module, which is communicatively connected to the main control module; A lens interface module, which is electrically connected to the main control module; The main control module is used to store and run firmware for different lens debugging projects, receive operation instructions through the human-machine interaction module, and send drive signals to the lens to be debugged and receive feedback signals from the lens to be debugged through the lens interface module.
[0006] As a preferred technical solution of this application, the main control module includes an embedded microprocessor and a memory. The memory is used to store lens debugging project firmware, debugging parameters and test result data, and the embedded microprocessor is used to execute instructions in the firmware.
[0007] As a preferred technical solution of this application, the human-computer interaction module includes: The display unit, connected to the main control module, is used to present a graphical user interface to display debugging options, real-time parameters, and test results. The input unit, connected to the main control module, is used to receive touch, press or rotate operations from the user to generate operation instructions.
[0008] As a preferred technical solution of this application, the display unit includes a liquid crystal display screen, and the input unit includes physical buttons and / or knobs disposed on one side of the liquid crystal display screen.
[0009] As a preferred technical solution of this application, the lens interface module is integrated on a circuit board and includes: Motor drive port, used to connect and electrically drive the focusing motor and aperture motor of the lens to be adjusted via cable; The signal feedback port is used to connect via cable and electrically receive signals from the sensor of the lens to be tested.
[0010] As a preferred technical solution of this application, the circuit board integrated in the lens interface module and the circuit board where the main control module is located are the same motherboard.
[0011] As a preferred technical solution of this application, it also includes: A firmware upgrade interface is located on the system shell and connected to the main control module. It is used to connect to an external storage device to import new lens tuning project firmware. A power interface, located on the system casing, is used to connect to an external power source; A power management circuit, which is connected to the power interface, the main control module and the lens interface module, is used to supply power to the system.
[0012] As a preferred technical solution in this application, the firmware upgrade interface is a USB Type-C port. The interface is either USB-C or Micro USB; the power interface is a DC power socket or a USB Type-C port. C interface.
[0013] This invention also discloses an embedded multi-project lens debugging method, applied to the aforementioned simplified embedded multi-project lens debugging system, comprising the following steps: By loading or selecting different firmware, the system can be configured into a debugging mode for a specific lens project; Connect the motor and sensor of the lens to be debugged to the lens interface module respectively; The debugging task is selected and started through the human-computer interaction module. The main control module generates a drive signal according to the selected task and sends it to the lens through the lens interface module. At the same time, it receives the feedback signal from the lens through the lens interface module. The main control module processes and analyzes the feedback signals and displays the analysis results in real time on the human-computer interaction module.
[0014] As a preferred technical solution of this application, the debugging task includes at least one of focusing motor performance testing, aperture action testing and sensor signal verification, and the analysis results include at least one of motor stroke error, action noise spectrum and signal waveform integrity.
[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. This invention integrates functional modules such as motor drive, signal acquisition, data analysis, and result display into a single device, equipped with an intuitive graphical human-machine interface. Operators do not need extensive professional knowledge of electronic instrument operation, nor do they need to perform complex connections and switching between multiple devices. They can complete all debugging tasks simply by following the interface guidance, thus solving the problem of data errors caused by relying on manual operation and subjective judgment to read data in existing technologies.
[0016] 2. This invention utilizes a core hardware platform coupled with reconfigurable project firmware. When switching between different lens debugging projects, only the corresponding project firmware needs to be loaded or switched via the firmware upgrade interface, and the system can automatically adapt to the new debugging process, parameter standards, and judgment thresholds. This solves the problem of the cumbersome process of replacing hardware or reconfiguring software in traditional methods, improving the debugging and switching speed and equipment utilization rate of R&D and production lines. Attached Figure Description
[0017] Figure 1 This is a system flowchart of the present invention; Figure 2 This is a flowchart of the method of the present invention. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0019] like Figure 1 and Figure 2As shown, this embodiment proposes a simple embedded multi-project lens debugging system, including a main control module, a human-machine interaction module, and a lens interface module. The human-machine interaction module is communicatively connected to the main control module, and the lens interface module is electrically connected to the main control module. The main control module is used to store and run firmware for different lens debugging projects, receive operation instructions through the human-machine interaction module, and send drive signals to the lens to be debugged and receive feedback signals from the lens to be debugged through the lens interface module. During operation, after the system is powered on, the main control module loads and runs the pre-set debugging firmware for a specific project. The operator selects a specific debugging task (e.g., focusing motor test) through the human-machine interface module, and this command is transmitted to the main control module. Based on the program logic within the firmware, the main control module generates corresponding drive signals (such as PWM signals of specific frequency and amplitude) and sends them to the motor of the lens to be debugged via the lens interface module, driving it to perform corresponding actions (e.g., focusing movement). Simultaneously, feedback signals (e.g., PI signals) generated by sensors inside the lens (e.g., position sensors) are transmitted back to the main control module through the same lens interface module. The main control module collects and processes these drive and feedback signals in real time, calling built-in algorithms for analysis (e.g., calculating travel error, analyzing noise spectrum, and determining signal integrity), and finally displays the analysis results and waveforms in real time on the human-machine interface module for operator evaluation. When switching debugging projects, simply loading the new project firmware into the main control module adapts to the new test procedures and parameter standards. Therefore, by using the main control module, human-machine interaction module, and lens interface module, and adopting a replaceable project firmware design, the debugging system can achieve high integration and simplified operation, enabling non-professionals to quickly complete complex debugging; it solves the cumbersome process of equipment switching and reconfiguration in traditional solutions that rely on multiple sets of instruments for debugging, improving the debugging efficiency and equipment utilization of R&D and production lines; at the same time, the built-in automated analysis and data recording functions can also ensure the consistency of test results.
[0020] In a preferred embodiment, based on the above method, the main control module further includes an embedded microprocessor and a memory. The memory is used to store the lens debugging project firmware, debugging parameters and test result data, and the embedded microprocessor is used to execute the instructions in the firmware. Once the operator starts the system and selects a specific debugging item, the embedded microprocessor loads the corresponding lens debugging item firmware and preset debugging parameters from the memory. The microprocessor then executes the firmware instructions, parses the operation instructions from the human-machine interface module, and generates precise drive signals according to the firmware logic. During debugging, the microprocessor receives feedback signals from the lens in real time, compares and analyzes them with the parameters in the memory, and synchronously stores key test results data into the memory. The entire workflow is autonomously coordinated by the microprocessor according to the loaded firmware instructions, realizing automated closed-loop debugging based on programmable firmware. By embedding the control logic and debugging parameters into storable and replaceable firmware, the system possesses high flexibility and consistency. The use of memory not only enables rapid switching and retrieval of parameters for multiple items but also ensures that the debugging process and results are recordable and traceable, thereby improving debugging efficiency.
[0021] As a preferred embodiment, based on the above method, the human-computer interaction module further includes a display unit and an input unit: the display unit is connected to the main control module and is used to present a graphical user interface to display debugging options, real-time parameters and test results; the input unit is connected to the main control module and is used to receive the user's touch, press or rotate operations to generate operation instructions; Operators initiate operation commands through the input unit, which are then transmitted to the main control module. The main control module generates corresponding graphical user interface data based on the currently loaded debugging firmware and sends it to the display unit for real-time rendering. During debugging, the display unit updates the interface, dynamically displaying various debugging options, real-time parameters collected by sensors (such as motor current and position signals), and test results processed by algorithms (such as error values and waveforms). Operators can interactively adjust the displayed content through the input unit (such as modifying parameters and performing start / stop tests), making the complex debugging process visual and guided. By constructing an intuitive graphical interactive environment through the display and input units, complex electrical signals and parameter settings are transformed into visual interface elements and simple user operations, lowering the operational threshold for professional debugging. This not only makes the debugging process clearer and more controllable but also reduces errors caused by misoperation or misunderstanding, thereby improving debugging accuracy and efficiency while optimizing the user experience.
[0022] The display unit includes an LCD screen, and the input unit includes physical buttons and / or knobs located on one side of the LCD screen. After the system is powered on, the main control module converts the graphical interface information in the firmware into display signals, driving the LCD screen to light up and display a structured debugging interface. The interface typically clearly divides the parameter display area, waveform area, and menu option area. After observing the current status on the interface (such as motor position and noise spectrum), the operator controls the system by observing the physical buttons (used for menu selection, confirmation, start / stop, and other discrete operations) and / or knobs (used for continuous adjustment of parameters such as drive voltage and stroke speed) located on one side of the LCD screen. The pressing of the buttons or the rotation of the knobs are converted into level signals and transmitted back to the main control module via the input circuit. The main control module parses these input commands, updating internal parameters and output drive signals on the one hand, and refreshing the corresponding display area on the LCD screen in real time (such as numerical changes and progress bar movement), thereby enabling the operator to achieve efficient and precise control in complex adjustment scenarios and avoid errors.
[0023] As a preferred embodiment, based on the above method, the lens interface module is further integrated on a circuit board and includes a motor drive port and a signal feedback port: the motor drive port is used to connect to and electrically drive the focusing motor and aperture motor of the lens to be tested via a cable; the signal feedback port is used to connect to and electrically receive signals from the sensor of the lens to be tested via a cable. During debugging, operators use cables to connect the electrical interfaces of the focusing motor and aperture motor of the lens to be debugged to the corresponding motor drive ports on the integrated circuit board. Simultaneously, the signal output lines of the lens's internal sensors (such as position optocouplers and Hall elements) are connected to the signal feedback ports on the same circuit board. The main control module generates corresponding drive signals (such as PWM waveforms) based on the debugging instructions, transmitting them to the motor drive ports via the circuit board's traces, thereby controlling the lens's focusing and aperture movements. At the same time, the real-time feedback signals (such as PI signals) generated by the lens's sensors are collected through the signal feedback port and the receiving circuit on the circuit board and sent back to the main control module for analysis. This integrated interface design ensures reliable transmission and electrical matching of drive and feedback signals on a single physical carrier. By concentrating motor drive and signal feedback functions on a single circuit board through an integrated lens interface module, the complexity of external connections is simplified, thus avoiding the problems of messy cables and misconnections.
[0024] The lens interface module is integrated onto the same motherboard as the main control module. Integrating them on the same board eliminates the need for external connectors or cables for interconnection. This simplifies the overall structure, reducing material costs and assembly complexity. More importantly, from a technical performance perspective, the transmission paths for drive signals (from the main control module to the motor port) and feedback signals (from the sensor port to the main control module) are shortened and fixed within the motherboard's internal traces, reducing the risks of impedance mismatch, external electromagnetic interference, and poor contact during signal transmission. Therefore, it ensures the stability of high-speed, sensitive debugging signals (such as precise PWM drive waveforms and high-frequency PI feedback pulses) and their electrical connections.
[0025] As a preferred embodiment, based on the above method, the embedded multi-project lens debugging simplified system further includes a firmware upgrade interface, a power interface, and a power management circuit. The firmware upgrade interface is located on the system shell and connected to the main control module, and is used to connect to an external storage device to import new lens debugging project firmware. The power interface is located on the system shell and is used to connect to an external power supply. The power management circuit is connected to the power interface, the main control module, and the lens interface module, and is used to supply power to the system. When a new lens tuning project needs to be adapted to the system, the operator connects an external storage device (such as a USB flash drive) containing the new firmware file to the firmware upgrade interface located on the casing. This interface transmits the data to the main control module. The main control module executes the firmware update program, writing the new lens tuning project firmware into its memory, thus expanding or switching project capabilities. In daily operation, an external DC power supply is connected via the power interface on the casing. The power management circuit converts, regulates, and distributes the input power, providing a stable operating voltage to all internal modules, including the main control module, the human-machine interface module, and the lens interface module, ensuring that the entire system can immediately enter working condition after power-on.
[0026] In addition, the firmware upgrade interface is USB Type-C. USB-C interface or Micro USB interface; power interface is DC power socket or USB Type-C. USB Type-C interface; by specifying the firmware upgrade interface as USB Type-C. The use of either USB-C or Micro USB interfaces, the two most common and readily available physical interfaces in the electronics field, makes firmware updates extremely convenient; users can complete the process using only common mobile phone data cables or USB flash drive cables. Simultaneously, specifying the power interface as a universal DC power outlet or a USB Type-C port that also supports power transfer is also beneficial. The Type-C interface allows the system to be directly compatible with widely available standard power adapters or power banks, enhancing the device's power supply flexibility and adaptability to various scenarios.
[0027] The working principle of this invention is as follows: After the system is powered on, the embedded microprocessor loads and runs the firmware of the currently selected lens debugging project from the memory. The operator observes the graphical interface displayed on the LCD screen, selects the debugging project and inputs commands via the physical buttons or knobs on its side. According to the commands, the microprocessor outputs precise PWM drive signals to the focus motor and aperture motor of the lens to be debugged through the motor drive port integrated on the same motherboard, controlling their operation. Simultaneously, the feedback signal generated by the lens sensor is transmitted back to the microprocessor in real time through the signal feedback port on the motherboard. The microprocessor processes and analyzes the signals, dynamically displaying real-time parameters, waveforms, and analysis results (such as travel error and noise spectrum) on the LCD screen. The operator can adjust the parameters using buttons or knobs based on the displayed results, forming a closed-loop debugging process. When it is necessary to switch projects, the USB Type-C port on the casing can be used for this purpose. The firmware upgrade interface imports new firmware; the system's power requirements are supplied by a DC power outlet or USB Type-C port. Power is supplied via a USB-C interface and regulated by an internal power management circuit. This invention simplifies the traditionally complex multi-instrument combination debugging process into a graphical operation of a single device by integrating an embedded microprocessor, LCD screen, physical buttons, an integrated motherboard interface, and updatable firmware. This allows even non-professionals to quickly complete comprehensive testing of lens focus, aperture, and signal. Its replaceable firmware design enables efficient switching between multiple projects on a single device, improving debugging flexibility and equipment utilization. Simultaneously, the system ensures data-driven, standardized, and traceable debugging processes through real-time signal acquisition and automated analysis, reducing operational barriers and costs while improving the debugging efficiency and consistency of lens R&D and production.
[0028] The present invention also discloses an embedded multi-project lens debugging method M100, which is applied to the simple embedded multi-project lens debugging system in any of the above embodiments. M10 includes S100, S200, S300 and S400.
[0029] The embedded multi-project lens debugging method M100 includes the following steps: Specifically, S100: By loading or selecting different firmware, the system can be configured into a debugging mode for a specific lens project; Project configuration: ① Firmware loading method: via USB Type-C on the system casing When the C interface is connected to an external storage device containing the firmware file of the target project, the main control module detects the external device and displays an upgrade guide interface on the display unit. The user confirms and performs firmware burning according to the prompts; or the user can directly select from multiple stored firmware versions through the human-machine interaction module.
[0030] ②System self-test and initialization: After the firmware is loaded, the embedded microprocessor automatically runs the firmware to initialize system parameters, including: configuring the output characteristics of the motor drive port, setting the sampling rate and filtering parameters of the signal feedback port, and loading the preset debugging parameter library corresponding to the lens project.
[0031] S200: Connect the motor and sensor of the lens to be debugged to the lens interface module respectively; Hardware connection: ① Physical connection operation: The operator uses a dedicated connection cable to insert the focus motor drive line and aperture motor drive line of the lens to be tested into the corresponding motor drive ports on the lens interface module; at the same time, the signal output line of the position sensor inside the lens is connected to the designated signal feedback port.
[0032] ② Connection detection: The system automatically or manually triggers port connectivity detection. The main control module sends detection signals to each port and judges whether the connection is stable and whether there is a short circuit or open circuit by monitoring the return value. The detection results are displayed in real time on the human-machine interface.
[0033] S300: Select and start the debugging task through the human-machine interaction module. The main control module generates a drive signal according to the selected task and sends it to the lens through the lens interface module. At the same time, it receives the feedback signal from the lens through the lens interface module. Interactive debugging: ①Task Selection and Parameter Input: Users select the debugging task type from the graphical menu displayed on the LCD screen, such as "Focus Full Travel Test", "Aperture Step Response Test", or "Sensor PI Signal Verification". For the selected task, users can input or adjust specific parameters, such as focus target position, aperture opening / closing step size, and number of test cycles, via physical buttons or knobs.
[0034] ②Signal generation and transmission: The main control module generates a corresponding digital control sequence based on the task instructions and input parameters. After digital-to-analog conversion or direct digital modulation, a drive signal conforming to the electrical specifications of the lens motor is generated and output to the lens through the motor drive port.
[0035] ③ Synchronous signal acquisition: While the drive signal is being sent, the main control module synchronously acquires the feedback signal from the lens sensor through the signal feedback port at a set sampling rate.
[0036] S400: The main control module processes and analyzes the feedback signals and displays the analysis results on the human-computer interaction module in real time; Analysis shows: ① Real-time signal processing: The embedded microprocessor performs real-time processing on the acquired feedback signals, including digital filtering to remove noise, feature extraction, and parameter calculation.
[0037] ②Result visualization and judgment: The processed numerical and waveform data are sent to the display driver module and dynamically updated on the LCD screen. At the same time, the system automatically compares the real-time calculation results with the project tolerance standards stored in the memory and provides the instant judgment results on the interface.
[0038] ③ Data recording and output: All drive signal data, acquired raw signals, intermediate processing results and final analysis conclusions during the entire debugging process are automatically saved to the designated area of the memory according to the timestamp sequence, and can be exported as structured data files through the USB interface for offline analysis or quality traceability.
[0039] The debugging tasks include at least one of the following: focusing motor performance testing, aperture action testing, and sensor signal verification. The analysis results include at least one of the following: motor travel error, motion noise spectrum, and signal waveform integrity. By explicitly stating that the debugging tasks include at least the three most core and common verification requirements in lens R&D and production—"focus motor performance testing," "aperture action testing," and "sensor signal verification"—it distinguishes itself from general signal measurement or motor control methods. Furthermore, specifying the analysis results as key performance indicators such as "motor travel error," "motion noise spectrum," and "signal waveform integrity" clarifies the technical value of the system output. This facilitates the differentiation between the innovation of this invention (integrated automated testing) and existing technologies (manual operation of discrete instruments for observation).
[0040] The above embodiments are only used to illustrate the present invention and are not intended to limit the technical solutions described herein. Although the present invention has been described in detail with reference to the above embodiments, the present invention is not limited to the specific embodiments described above. Therefore, any modifications or equivalent substitutions to the present invention, as well as all technical solutions and improvements that do not depart from the spirit and scope of the invention, are covered within the scope of the claims of the present invention.
Claims
1. A simplified embedded multi-project lens adjustment system, characterized in that, include: Main control module; Human-computer interaction module, which is communicatively connected to the main control module; A lens interface module, which is electrically connected to the main control module; The main control module is used to store and run firmware for different lens debugging projects, receive operation instructions through the human-machine interaction module, and send drive signals to the lens to be debugged and receive feedback signals from the lens to be debugged through the lens interface module.
2. The simplified embedded multi-project lens debugging system according to claim 1, characterized in that, The main control module includes an embedded microprocessor and a memory. The memory is used to store lens debugging project firmware, debugging parameters and test result data. The embedded microprocessor is used to execute instructions in the firmware.
3. The simplified embedded multi-project lens debugging system according to claim 1, characterized in that, The human-computer interaction module includes: The display unit, connected to the main control module, is used to present a graphical user interface to display debugging options, real-time parameters, and test results. The input unit, connected to the main control module, is used to receive touch, press or rotate operations from the user to generate operation instructions.
4. The simplified embedded multi-project lens debugging system according to claim 3, characterized in that, The display unit includes a liquid crystal display screen, and the input unit includes physical buttons and / or knobs located on one side of the liquid crystal display screen.
5. The simplified embedded multi-project lens debugging system according to claim 1, characterized in that, The lens interface module is integrated on a single circuit board and includes: Motor drive port, used to connect and electrically drive the focusing motor and aperture motor of the lens to be adjusted via cable; The signal feedback port is used to connect via cable and electrically receive signals from the sensor of the lens to be tested.
6. The simplified embedded multi-project lens debugging system according to claim 5, characterized in that, The circuit board integrated into the lens interface module is the same motherboard as the circuit board where the main control module is located.
7. The simplified embedded multi-project lens debugging system according to claim 1, characterized in that, Also includes: A firmware upgrade interface is located on the system shell and connected to the main control module. It is used to connect to an external storage device to import new lens tuning project firmware. A power interface, located on the system casing, is used to connect to an external power source; A power management circuit, which is connected to the power interface, the main control module and the lens interface module, is used to supply power to the system.
8. The simplified embedded multi-project lens debugging system according to claim 7, characterized in that, The firmware upgrade interface is USB Type. The interface is either USB-C or Micro USB; the power interface is a DC power socket or a USB Type-C port. C interface.
9. An embedded multi-project lens debugging method, applied to the simplified embedded multi-project lens debugging system according to any one of claims 1-8, characterized in that, Includes the following steps: By loading or selecting different firmware, the system can be configured into a debugging mode for a specific lens project; Connect the motor and sensor of the lens to be debugged to the lens interface module respectively; The debugging task is selected and started through the human-computer interaction module. The main control module generates a drive signal according to the selected task and sends it to the lens through the lens interface module. At the same time, it receives the feedback signal from the lens through the lens interface module. The main control module processes and analyzes the feedback signals and displays the analysis results in real time on the human-computer interaction module.
10. The embedded multi-project lens debugging method according to claim 9, characterized in that, The debugging task includes at least one of the following: focusing motor performance test, aperture action test, and sensor signal verification. The analysis results include at least one of the following: motor travel error, action noise spectrum, and signal waveform integrity.