Field programmable gate array (FPGA)-based stroboscopic light source control system
By designing a strobe light source control system on the FPGA, the problem of inconsistent response time in the MCU in multi-channel light source control is solved, high-precision and scalable light source control is achieved, and the problem of limited number of light source driving is solved.
Patent Information
- Application Number
- CN202420354671.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2034-02-26
AI Technical Summary
In industry, when the light source is frequently turned on and off during shooting, it is difficult for ordinary MCUs to achieve multi-channel simultaneous triggering, resulting in inconsistent response times and limited number of light source drives.
Design a strobe light source control system based on FPGA, including communication receiving module, communication data analysis module, internal signal generation module, strobe output module and overload protection module. Through pure hardware triggering and modular expansion, high precision and stability are achieved light source control.
The response time consistency and expansion of the number of light sources for multi-channel light source control are realized, and the control accuracy and expansion of the system are improved.
Smart Images

Figure CN222016825U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of machine vision, in particular to a stroboscopic light source control system based on FPGA. Background Art
[0002] Machine vision is often used in industry to inspect workpieces or products. When taking pictures with a camera, a light source is needed to ensure clear pictures. In some cases, the light source needs to be frequently turned on and off to achieve stroboscopic. Ordinary MCUs often use program control to achieve stroboscopic. However, when multiple channels are triggered at the same time, inconsistent response times are prone to occur. In addition, the number of light sources that can be driven is also limited due to the number of timer peripherals. Utility Model Content
[0003] The main purpose of the utility model is to provide a stroboscopic light source control system based on FPGA, which is used to solve the above technical problems.
[0004] In order to achieve the above purpose, the technical solution adopted by the utility model is: a stroboscopic light source control system based on FPGA, including a communication receiving module, a communication data parsing module, an internal signal generating module, a stroboscopic output module, and an overload protection module.
[0005] The communication receiving module is used to receive control data from the host computer and send the control data to the communication data parsing module, wherein the control data includes internal trigger cycle, trigger source selection, filter value, light source pulse width, camera pulse width, light source delay time, and camera delay time;
[0006] The communication data parsing module is used to parse the control data and send the parsed data;
[0007] The internal signal generating module is used to send out an internal trigger signal according to the parsed data;
[0008] The stroboscopic output module is used to output a light source control signal and a camera control signal according to the parsed data after receiving an internal trigger signal or an external trigger signal input from the outside;
[0009] The overload protection module is used to receive an overload feedback signal as well as a light source control signal and a camera control signal, and control the output of the light source control signal and the camera control signal according to the overload feedback signal.
[0010] Preferably, the stroboscopic output module includes a trigger source selection module, a trigger input filtering module, a trigger signal response module, a light source delay module, a light source pulse width modulation module, a camera delay module and a camera pulse modulation module.
[0011] The trigger source selection module is used to select an external trigger signal or an internal trigger signal according to the parsed data;
[0012] The trigger input filtering module is used to filter the trigger signal output by the trigger source selection module;
[0013] The trigger signal response module is used to receive the filtered trigger signal and send the trigger signal to the light source delay module and the camera delay module;
[0014] The light source delay module is used to receive a trigger signal and send a trigger signal to the light source pulse width modulation module after delaying the light source delay time;
[0015] The camera delay module is used to receive a trigger signal and send a trigger signal to the camera pulse width modulation module after delaying the camera delay time;
[0016] The light source pulse width modulation module is used to output a light source control signal according to the received light source pulse width after receiving a trigger signal;
[0017] The camera pulse width modulation module is used to output a camera control signal according to the received camera pulse width after receiving a trigger signal.
[0018] Preferably, the trigger signal response module can receive feedback signals from the light source delay module, the light source pulse width modulation module, the camera delay module, and the camera pulse width modulation module and can determine whether to send a trigger signal to the light source delay module and the camera delay module based on the feedback signals.
[0019] Compared with the prior art, the utility model has the following beneficial effects:
[0020] The utility model is a stroboscopic control system based on FPGA, which configures relevant parameters through MCU, works with pure hardware triggering, has high stability and control accuracy, and has good scalability, and can subsequently expand functions through module instantiation. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is the principle block diagram of the stroboscopic light source control system. DETAILED DESCRIPTION
[0022] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art may think of other obvious variations.
[0023] like Figure 1As shown, a stroboscopic light source control system based on FPGA includes a communication receiving module, a communication data parsing module, an internal signal generating module, a stroboscopic output module, an overload protection module, and an overload feedback input filtering module.
[0024] The communication receiving module is used to receive control data sent by the host computer, and the control data includes internal trigger cycle, trigger source selection, filter value, light source pulse width, camera pulse width, light source delay time, camera delay time and other data.
[0025] The communication data parsing module is used to parse the received control data and send the parsed data to the required modules.
[0026] The internal signal generating module is used to send out an internal trigger signal at a predetermined frequency.
[0027] The stroboscopic output module includes a trigger source selection module, a trigger input filtering module, a trigger signal response module, a light source delay module, a light source pulse width modulation module, a camera delay module and a camera pulse modulation module. The trigger source selection module is used to select a trigger source. The trigger source can be an internal signal generating module or an external trigger. The trigger source selection module determines whether to use a trigger signal sent by an internal signal generating module or an external input trigger signal based on relevant data analyzed by a communication data analyzing module.
[0028] The trigger input filter module is used to filter the interfering heart rate in the trigger signal.
[0029] The trigger signal response module is used to receive the trigger signal output by the filtering module and pass the received trigger signal to the light source delay module and the camera delay module. After receiving the trigger signal, the light source delay module and the camera delay module send the trigger signal to the light source pulse width modulation module and the camera pulse width modulation module according to the light source delay duration and the camera delay duration analyzed by the communication data analysis module. The light source pulse width modulation module outputs a light source control signal to the overload protection module according to the received light source pulse width data, and the camera pulse width modulation module outputs a camera control signal to the overload protection module according to the received camera pulse width data. The light source pulse width data and the camera pulse width data are both output by the communication data analysis module.
[0030] The trigger signal response module can also receive feedback signals from the light source delay module, the camera delay module, the light source pulse width modulation module and the camera pulse width modulation module, and determine whether the last signal of these four modules has been transmitted based on the feedback signals. When the transmission is not completed, the trigger signal response module does not output a trigger signal until the last signal of these four modules is fully transmitted.
[0031] When the overload protection module does not receive the overload feedback signal, the light source control signal is output, the light source is turned on, the camera control signal is output, and the camera takes pictures. When the overload protection module receives the overload feedback signal, the output of the light source control signal and the camera control signal is stopped. The overload feedback input filter module is used to filter the overload feedback signal, and the filtered overload feedback signal is input to the overload protection module.
[0032] Each of the above modules itself adopts existing technology.
[0033] The above shows and describes the basic principle, main features and advantages of the utility model. Those skilled in the art should understand that the utility model is not limited by the above embodiments. The above embodiments and the specification only describe the principles of the utility model. The utility model may be subject to various changes and improvements without departing from the spirit and scope of the utility model. These changes and improvements fall within the scope of the utility model to be protected. The scope of protection claimed by the utility model is defined by the attached claims and their equivalents.
Claims
1. A stroboscopic light source control system based on FPGA, characterized in that: It includes communication receiving module, communication data parsing module, internal signal generating module, strobe output module and overload protection module. The communication receiving module is used to receive control data from the host computer and send the control data to the communication data parsing module, wherein the control data includes internal trigger cycle, trigger source selection, filter value, light source pulse width, camera pulse width, light source delay time, and camera delay time; The communication data parsing module is used to parse the control data and send the parsed data; The internal signal generating module is used to send out an internal trigger signal according to the parsed data; The stroboscopic output module is used to output a light source control signal and a camera control signal according to the parsed data after receiving an internal trigger signal or an external trigger signal input from the outside; The overload protection module is used to receive an overload feedback signal as well as a light source control signal and a camera control signal, and control the output of the light source control signal and the camera control signal according to the overload feedback signal.
2. The FPGA-based stroboscopic light source control system according to claim 1, characterized in that: The stroboscopic output module includes a trigger source selection module, a trigger input filtering module, a trigger signal response module, a light source delay module, a light source pulse width modulation module, a camera delay module and a camera pulse modulation module. The trigger source selection module is used to select an external trigger signal or an internal trigger signal according to the parsed data; The trigger input filtering module is used to filter the trigger signal output by the trigger source selection module; The trigger signal response module is used to receive the filtered trigger signal and send the trigger signal to the light source delay module and the camera delay module; The light source delay module is used to receive a trigger signal and send a trigger signal to the light source pulse width modulation module after delaying the light source delay time; The camera delay module is used to receive a trigger signal and send a trigger signal to the camera pulse width modulation module after delaying the camera delay time; The light source pulse width modulation module is used to output a light source control signal according to the received light source pulse width after receiving a trigger signal; The camera pulse width modulation module is used to output a camera control signal according to the received camera pulse width after receiving a trigger signal.
3. The FPGA-based stroboscopic light source control system according to claim 2, characterized in that: The trigger signal response module can receive feedback signals from the light source delay module, the light source pulse width modulation module, the camera delay module, and the camera pulse width modulation module and can determine whether to send a trigger signal to the light source delay module and the camera delay module based on the feedback signals.
