On-line control photometric three-dimensional imaging device
Through wireless communication and PWM signal control, the brightness and angle of the LED strip light source of the photometric stereoscopic imaging device can be flexibly adjusted, which solves the problem of inconvenient light source control of the existing photometric stereoscopic imaging device and improves efficiency and applicability.
Patent Information
- Application Number
- CN202323362254.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2033-12-08
AI Technical Summary
The light source control method of the existing photometric stereoscopic imaging device is inconvenient. It cannot accurately adjust the illumination of the measured object by multiple light sources, and the control end cannot be moved, resulting in low efficiency.
An online-controlled photometric stereoscopic imaging device is designed, which uses wireless communication to connect the host computer and LED light source controller. It realizes the brightness and angle adjustment of the LED strip light source through PWM signal and motor drive, using the core control board and light source drive circuit. board and motor driver for precise control.
It realizes flexible and changeable lighting conditions of the light source during photometric stereo imaging, improves the flexibility and efficiency of light source control, has a wide range of applications, and solves the problem of the light source control end being unable to move and the control method being inconvenient.
Smart Images

Figure CN221804449U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of machine vision light source control, in particular to an online controlled photometric stereoscopic imaging device. Background Art
[0002] In recent years, machine vision technology has gradually involved various fields and played an important role in the modern production process. Photometric stereo imaging is a technology in machine vision. It reconstructs the surface of an object by collecting multiple images of the object under different lighting conditions. It plays an important role in modern production links such as product defect detection. Lighting is an important condition for photometric stereo imaging. Photometric stereo imaging requires the light source to illuminate the object from different directions to obtain images of the object under different lighting conditions. At the same time, the brightness and angle of the light source must be adjusted according to the object to be measured so that the camera can capture high-quality images, so that the photometric stereo imaging method can proceed smoothly. If good lighting conditions cannot be provided for the object to be measured, it will be difficult for the camera to obtain high-quality images, which will greatly affect the performance of the photometric stereo imaging method and fail to output more accurate results.
[0003] At present, the light sources of most photometric stereo imaging devices are controlled on-site, and the switch and angle of the light source can only be adjusted manually. It is impossible to accurately control the illumination of multiple light sources on the object being measured, and the control end cannot be moved. The brightness of the light source of most photometric stereo imaging devices cannot be adjusted. The cable deployment on the device site is complicated. The above problems make the light source control method of most photometric stereo imaging devices inconvenient and the efficiency is greatly reduced. Utility Model Content
[0004] Based on the technical problems that the light sources of existing photometric stereo devices are all controlled at close range, the switch and angle of the light sources can only be adjusted manually, it is impossible to accurately control the illumination of the object under test by multiple light sources, the control end cannot be moved, the brightness of the light source cannot be adjusted, the on-site cable deployment is complicated, the control method is not convenient enough, etc., the utility model proposes an online controlled photometric stereo imaging device.
[0005] The technical solution adopted by the utility model is:
[0006] An online controlled photometric stereo imaging device comprises a host computer, an LED light source controller, a camera, four LED strip light sources and four motors;
[0007] The host computer is connected to the LED light source controller by wireless communication, the four LED strip light sources are electrically connected to the LED light source controller, and the four motors are electrically connected to the LED light source controller; the camera is connected to the host computer by signal;
[0008] One of the motors corresponds to one of the LED strip light sources, and a coaxial mechanical connection is formed between the two.
[0009] Furthermore, the LED light source controller includes a core control board, a power supply circuit, a light source driving circuit board, and a motor driver;
[0010] The host computer is connected to the core control board signal by wireless communication, the core control board sends a PWM signal to be connected to the light source driver circuit board, the light source driver circuit board is electrically connected to the four LED strip light sources, the core control board sends a PWM signal and an IO signal to be connected to the motor driver, the motor driver is electrically connected to the four motors respectively, and the power supply circuit is electrically connected to the core control board, the light source driver circuit board and the motor driver.
[0011] Furthermore, the core control board includes a single MCU, a debugging module, a reset module, a clock module and a WIFI module;
[0012] The debugging module, the reset module and the clock module are all electrically connected to the MCU, the WIFI module is connected to the host computer signal via a WIFI wireless signal, and the WIFI module is connected to the MCU signal via a USART serial port.
[0013] Further, the MCU includes eight TIM timers and twelve IO interfaces;
[0014] Among them, eight of the TIM timers are connected to the eight IO interfaces in a one-to-one correspondence. Among the eight TIM timers, four of the TIM timers each generate a PWM dimming signal that is output to the light source driving circuit board through the corresponding four IO interfaces; the other four TIM timers each generate a PWM motor speed regulation signal that is output to the motor driver through the corresponding four IO interfaces; in addition to the eight IO interfaces that output PWM signals, there are another four IO interfaces that send IO signals to connect signals with the motor driver.
[0015] Further, the light source driving circuit board includes four photocouplers and four LM3409 (HV) dimming circuits;
[0016] The input ends of the four photoelectric couplers are signal-connected to the four IO interfaces in a one-to-one correspondence, the output ends of the four photoelectric couplers are signal-connected to the four LM3409 (HV) dimming circuits in a one-to-one correspondence, and the four LM3409 (HV) dimming circuits are electrically connected to the four LED strip light sources in a one-to-one correspondence.
[0017] Further, the LM3409 (HV) dimming circuit includes a constant current driver chip and a peripheral circuit of the constant current driver chip;
[0018] The model of the constant current drive chip is LM3409 (HV), and the peripheral circuit includes a power input circuit, a PWM signal input, a sensing resistor RSNS, a Buck buck topology circuit, a shutdown time control circuit, and a voltage divider circuit; the constant current drive chip is respectively connected to the power input circuit, the PWM signal input, the sensing resistor RSNS, the Buck buck topology circuit, the shutdown time control circuit, and the voltage divider circuit.
[0019] Further, the power input circuit is electrically connected to the power circuit, and the power input circuit includes an input capacitor CIN.
[0020] Furthermore, the PWM signal input is provided by the output end of the photoelectric coupler, and the output end of the photoelectric coupler is connected to the EN pin signal of the constant current drive chip.
[0021] Further, one end of the sensing resistor RSNS is connected to the power input circuit and the CSP pin of the constant current driving chip respectively, and the other end of the sensing resistor RSNS is connected to the CSN pin of the constant current driving chip.
[0022] Furthermore, the Buck step-down topology circuit is composed of components such as a P-channel field effect transistor Q1, an inductor L1, a freewheeling diode D1, and an output capacitor CO.
[0023] Furthermore, the off-time control circuit is composed of a resistor ROFF and a capacitor COFF.
[0024] Furthermore, the voltage-dividing circuit is composed of a voltage-dividing resistor RUV1 and a voltage-dividing resistor RUV2, and the voltage-dividing circuit is electrically connected to the Buck step-down topology circuit.
[0025] Furthermore, the EN pin of the constant current driver chip is used for PWM dimming.
[0026] Furthermore, the four LED strip light sources are all machine vision light sources.
[0027] Furthermore, the four LED strip light sources are placed above the object to be measured and are located in four directions respectively. When working, they will irradiate the object to be measured from four directions. The camera is placed directly above the object to be measured and above the four LED strip light sources.
[0028] The beneficial effect of the utility model is that the utility model sends a signal to the LED light source controller online through the host computer to control the posture of four LED strip light sources through four electrodes, thereby realizing different working modes of the LED strip light sources and providing flexible and changeable lighting conditions for the photometric stereoscopic imaging process. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0030] Figure 1 It is a simplified structural diagram of an online controlled photometric stereo imaging device in an embodiment of the utility model;
[0031] Figure 2 It is a structural block diagram of a core control board in an online controlled photometric stereo imaging device in an embodiment of the utility model;
[0032] Figure 3 It is a structural block diagram of a light source driving circuit board in an online controlled photometric stereo imaging device in an embodiment of the utility model;
[0033] Figure 4 It is a circuit schematic diagram of a LM3409 (HV) dimming circuit in a driving circuit board in an online-controlled photometric stereoscopic imaging device in an embodiment of the utility model;
[0034] Figure 5 It is a schematic diagram of an online controlled photometric stereoscopic imaging device in an embodiment of the utility model.
[0035] Figure numerals: 1. LED light source controller; 2. PC host computer; 3. LED strip light source; 4. Camera; 5. Core control board; 6. Power supply circuit; 7. Light source driver circuit board; 8. WIFI module; 9. Motor driver; 51. MCU; 52. Debug module; 53. Reset module; 54. Clock module; 55. USART serial port; 56. TIM timer; 57. IO interface; 71. LM3409HV dimming circuit; 72. Optocoupler; 711. LM3409 (HV) constant current driver chip; 712. Power input circuit; 713. PWM signal input; 714. Sensing resistor RSNS; 715. Buck step-down topology circuit; 716. Turn-off time control circuit; 717. Voltage divider circuit. DETAILED DESCRIPTION
[0036] This section will describe in detail the specific embodiments of the utility model. The preferred embodiments of the utility model are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the utility model, but it cannot be understood as a limitation on the protection scope of the utility model.
[0037] In the description of the present invention, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0038] In the description of the present utility model, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood to exclude the number itself, and "above", "below", "within" etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0039] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0040] like Figure 1 As shown, the present embodiment provides an online controlled photometric stereo imaging device, including an LED light source controller 1, a PC host computer 2, four LED strip light sources 3, a camera 4, and a motor 10. The PC host computer 2 is connected to the LED light source controller 1 via a WIFI wireless signal to transmit a dimming instruction. The four LED strip light sources 3 are electrically connected to the LED light source controller 1. The LED light source controller 1 provides voltage drive for the four LED strip light sources 3. The camera 4 is signal-connected to the PC host computer 2. The camera 4 uploads the collected image information to the PC host computer 2. The four motors 10 are electrically connected to the LED light source controller 1. The LED light source controller 1 provides drive for the four motors 10 respectively. The four motors 10 are coaxially mechanically connected to the four LED strip light sources 3 respectively. When the motor 10 rotates, it drives the LED strip light sources 3 to rotate along the axis.
[0041] It should be noted that the host computer in this embodiment is a PC host computer, but other types of host computers can also realize the functions of the device in this embodiment, such as smart terminals, tablet computers, etc., which should fall within the protection scope of this application. Similarly, in this embodiment, the wireless communication method is WiFi communication, but wireless communication methods such as Bluetooth communication and Zebee are applicable to this embodiment, so these communication methods should fall within the protection scope of this application.
[0042] In a preferred embodiment, Figure 1 As shown, the LED light source controller 1 includes a core control board 5, a power supply circuit 6, a light source driving circuit board 7, and a motor driver 9. The PC host computer 2 is connected to the core control board 5 by a WIFI wireless signal. The core control board 5 sends a PWM dimming signal to be connected to the light source driving circuit board 7 by a signal. The light source driving circuit board 7 outputs a voltage to be electrically connected to the four LED strip light sources 3. The core control board 5 sends a PWM motor speed regulation signal and an IO signal to be connected to the motor driver 9 by a signal. The motor driver 9 provides drive for the four motors 10 respectively. The power supply circuit 6 is electrically connected to the core control board 5, the light source driving circuit board 7 and the motor driver 9.
[0043] In a preferred embodiment, Figure 2 As shown, the core control board 3 includes MCU51, a debugging module 52, a reset module 53, a clock module 54, and a WIFI module 8. The MCU51 model is an STM32 series microprocessor, which has numerous IO ports and numerous timers, and the timer can output multiple PWM signals. At the same time, it has rich communication interfaces, can realize various types of communications, and can meet the needs of the light source controller.
[0044] The debugging module 52, reset module 53 and clock module 54 are electrically connected to the MCU51. The debugging module 52 is used for code burning of the MCU51. The reset module 53 is used for restarting the MCU51 when an abnormality occurs during operation or after burning is completed. The clock module 54 is used to configure the clock frequency of the MCU51.
[0045] The WIFI module 8 is selected as ESP8266, which has the advantages of high integration, fast communication speed, low power consumption and low cost. The WIFI module 7 is configured as AP mode through software to send WIFI signals. The PC host computer 2 realizes signal connection by connecting the WIFI signal sent by it. The PC host computer 2 can wirelessly send light source control instructions to the WIFI module 8 through software. The WIFI module 8 is connected to the MCU51 signal through the USART serial port 53 to realize signal transmission between the PC host computer 2 and the MCU51. The light source control instructions received by the WIFI module 8 can be sent to the MCU51 for processing and responding according to the program.
[0046] In a preferred embodiment, Figure 2 As shown, the MCU 51 includes eight TIM timers 56 and twelve IO interfaces 57, wherein four of the TIM timers 56 correspond to the four IO interfaces 57 one by one, and the PWM dimming signals generated by the four TIM timers 56 are output to the light source driving circuit board 7 through the corresponding four IO interfaces 57. The frequency and duty cycle of the PWM dimming signal output by the TIM timer 56 are changed according to the dimming instruction issued by the host computer, and the duty cycle of the PWM dimming signal determines the brightness of the LED strip light source 3. The other four TIM timers correspond to four of the IO interfaces 57 one by one, and the PWM motor speed control signals generated by the four TIM timers 56 are output to the motor driver 9 through the four IO interfaces 57. The motor driver 9 changes the motor input current according to different PWM motor speed control signals, thereby changing the rotation rate of the motor 10. In addition to the above-mentioned eight IO interfaces 57, there are four IO interfaces 57 that are connected to the motor driver 9 by outputting IO signals, and the IO signals are used to control the output of the motor driver 9, thereby controlling the rotation of the motor 10.
[0047] In a preferred embodiment, Figure 3 As shown, the driving circuit board 7 includes four LM3409 (HV) dimming circuits 71 and four photoelectric couplers 72, the input ends of the four photoelectric couplers 72 are connected to the four IO interfaces 57 in a one-to-one signal connection, the photoelectric coupler 72 is used to isolate the electrical signals of the core control board 9 and the light source driving circuit board 7 to avoid circuit damage caused by direct contact between strong and weak electrical signals, the output ends of the four photoelectric couplers 72 are connected to the four LM3409 (HV) dimming circuits 71 in a one-to-one signal connection, the four LM3409 (HV) dimming circuits 71 are electrically connected to the four LED strip light sources 3 in a one-to-one electrical connection, and the LM3409 (HV) dimming circuit 71 outputs a voltage to drive the four LED strip light sources 3.
[0048] In a preferred embodiment, Figure 4 As shown, the LM3409 (HV) dimming circuit 71 includes a constant current driver chip 711 and a peripheral circuit of the LM3409 (HV) constant current driver chip 711. The LM3409 (HV) constant current driver chip 711 is a Buck type P-channel MosFET (PFET) control chip, developed and produced by Texas Instruments (TI) of the United States, and can provide a wide input voltage of 6V-42V (75V), has a PWM dimming function and has a PWM dimming range of 10000:1. The output ends of the four photocouplers 72 output PWM dimming signals, which are directly connected to the EN pin of the LM3409 (HV) constant current driver chip 711 in the LM3409 (HV) dimming circuit 71 for PWM dimming.
[0049] In a preferred embodiment, Figure 4 As shown, the peripheral circuit includes a power input circuit 712, a PWM signal input 713, a sensing resistor RSNS714, a Buck buck topology circuit 715, a turn-off time control circuit 716, and a voltage divider circuit 717, and the constant current drive chip 711 is respectively connected to the power input circuit 712, the PWM signal input 713, the sensing resistor RSNS714, the Buck buck topology circuit 715, the turn-off time control circuit 716, and the voltage divider circuit 717.
[0050] In a preferred embodiment, Figure 4 As shown, the power input circuit 712 is electrically connected to the power circuit 6. In this embodiment, the 36V DC voltage provided by the power circuit 6 is directly input to the VIN (voltage input) pin of the LM3409 (HV) constant current driver chip 711. The power input circuit 712 also includes an input capacitor CIN, which is used to reduce the input voltage ripple.
[0051] The function of the EN pin of the constant current driver chip 711 is to start the device by applying a voltage above 1.74V and to shut down the device by applying a voltage below 0.5V, so this pin can be used for PWM dimming.
[0052] In a preferred embodiment, Figure 3 , Figure 4 As shown, the PWM signal input 713 is provided by the output end of the photocoupler 72 , and the output end of the photocoupler 72 is connected to the EN pin signal of the constant current driving chip 711 .
[0053] In a preferred embodiment, Figure 4As shown, one end of the sensing resistor RSNS714 is respectively connected to the power input circuit 712 and the CSP pin of the constant current driver chip 711, and the other end of the sensing resistor RSNS714 is connected to the CSN pin of the constant current driver chip 711. When working, the LM3409 (HV) constant current driver chip 711 controls the output of the PGATE pin of the LM3409 (HV) constant current driver chip 711 by detecting the voltage across the sensing resistor RSNS714 and comparing it with the threshold voltage, thereby controlling the conduction and disconnection of the P-channel field effect transistor Q1.
[0054] In a preferred embodiment, Figure 4 As shown, the Buck buck topology circuit 715 is composed of a P-channel field effect transistor Q1, an inductor L1, a freewheeling diode D1, an output capacitor CO and other components. The gate of the P-channel field effect transistor Q1 is connected to the PGATE pin of the LM3409 (HV) constant current driver chip 711, the source of the P-channel field effect transistor Q1 is connected to the other end of RSNS, the drain of the P-channel field effect transistor Q1 is respectively connected to the cathode of the freewheeling diode D1 and one end of the inductor L1, the anode of the freewheeling diode D1 is grounded, and the other end of the inductor L1 is respectively connected to the switch. One end of the off-time control resistor ROFF in the off-time control circuit 716 is connected to the LED bar light source 3 and one end of the output capacitor CO, and the other end of the output capacitor CO is grounded. When working, when the P-channel field effect transistor Q1 is turned on, the Schottky diode D1 is turned off, and the input voltage charges the capacitor L1 and directly drives the LED bar light source 3. When the P-channel field effect transistor Q1 is turned off, the Schottky diode D1 is turned on to form a loop with the capacitor L1 and the LED bar light source 3 to drive the LED bar light source 3.
[0055] In a preferred embodiment, Figure 4 As shown, the off-time control circuit 716 is composed of an off-time control resistor ROFF and an off-time control capacitor COFF. One end of the off-time control resistor ROFF is connected to the other end of the capacitor L1, and the other end of the off-time control resistor ROFF is connected to the COFF pin of the LM3409 (HV) constant current driver chip 711 and one end of the off-time control capacitor COFF. The other end of the off-time control capacitor COFF is grounded. When the off-time starts, the voltage across the off-time control capacitor COFF is zero, and the off-time control capacitor COFF starts to charge according to the time constant provided by itself and the off-time control resistor ROFF. When the voltage across the off-time control capacitor COFF reaches the off-time threshold, the off-time ends, the P-channel field effect transistor Q1 is controlled to be turned on, and the voltage across the off-time control capacitor COFF is reset to zero.
[0056] In a preferred embodiment, Figure 4As shown, the voltage divider circuit 717 is composed of voltage divider resistors RUV1 and RUV2, one end of the voltage divider resistor RUV1 is connected to the UVLO pin of the LM3409 (HV) constant current driver chip 711 and one end of the voltage divider resistor RUV2, the other end of the voltage divider resistor RUV1 is grounded, and the other end of the voltage divider resistor RUV2 is connected to the common point of the power supply circuit 6 and the VIN pin of the LM3409 (HV) constant current driver chip 711.
[0057] In a preferred embodiment, the four LED strip light sources 3 are 24V machine vision light sources.
[0058] In a preferred embodiment, Figure 5 As shown, the four LED strip light sources 3 are placed above the object to be measured and are respectively located in four directions. When working, they can illuminate the object to be measured from four different directions. The camera 4 is placed directly above the object to be measured and above the four LED strip light sources 3, which can meet the requirements of the photometric stereo imaging method.
[0059] The working principle of the online controlled photometric stereo imaging device is as follows: the power supply circuit 6 supplies power to the core control board 5, the light source driving circuit board 7 and the motor controller 9; the PC host computer 2 establishes a WIFI connection with the LED light source controller 1; the light source control instruction is sent to the core control board 5 in the LED light source controller 1 through the PC host computer 2; after receiving the light source control instruction, the core control board 5 processes the instruction and changes the parameters of the output PWM dimming signal or the PWM motor speed control signal and the IO signal according to the instruction; then the core control board 5 outputs the PWM dimming signal to the light source driving circuit board 7; the light source driving circuit board 7 controls the lighting mode of the LED strip light source 3 according to the PWM dimming signal; or the core control board 5 outputs the PWM motor speed control signal and the IO signal to the motor driver 9; the motor driver 9 controls the rotation of the motor 10 according to the above two signals, thereby controlling the lighting angle of the LED strip light source 3. More specifically:
[0060] The driving mode of the online-controlled photometric stereoscopic imaging device is constant current driving, and the dimming mode is PWM dimming, that is, the current passing through the LED light source remains unchanged. Under the action of the PWM dimming signal, the current flowing through the LED light source is repeatedly turned on and off, and the brightness is adjusted by adjusting the time ratio of the current on and off. As long as the PWM dimming signal frequency is higher than 100Hz, the human eye cannot perceive the light source on and off (stroboscopic). At the same time, the time of LED current on and off can be averaged, thereby identifying the brightness of the light source. Then, the brightness of the LED can be adjusted by controlling the duty cycle of the PWM wave.
[0061] During the initialization process of the core control board 5, the WIFI module 8 receives instructions from the MCU51 via the USART serial port 55 to establish a WIFI wireless network and its server. After the PC host computer 2 connects to its WIFI wireless network and its server, it can establish a wireless network connection with the WIFI module 7. After the connection is established, the PC host computer 2 can send light source control instructions to the WIFI module 7.
[0062] After the WIFI module 7 receives the light source control instruction sent from the PC host computer 2, it sends it to the MCU51 through the USART serial port 35. The MCU51 then identifies and processes the dimming instruction, and adjusts the various parameters of the TIM timer 56 according to the instruction content, thereby outputting a PWM dimming signal with a duty cycle that meets the instruction requirements through the IO interface 57, or outputting a motor control signal through the IO interface 57.
[0063] After the PWM dimming signal is isolated by the photocoupler 72, it is input to the EN pin of the LM3409 (HV) constant current driver chip 711 in the LM3409 (HV) dimming circuit 71, thereby performing PWM dimming. When the level of the input PWM dimming signal is high, the LM3409 (HV) dimming circuit 71 works normally, and the P-channel field effect transistor Q1 is repeatedly turned on and off, so that the Buck buck topology circuit 715 outputs a periodic ripple current, which can be approximated as a constant current, so that the LED strip light source 3 is in a constant current drive mode. When the level of the input PWM dimming signal is low, the LM3409 (HV) dimming circuit 71 enters sleep mode, and the LED strip light source 3 has no power input and is in an off state.
[0064] After the motor control signal is input to the motor driver 9, the motor driver 9 drives the motor 10 to rotate as required by the light source control instruction. The motor 9 is coaxially connected to the LED strip light source 10, so the rotation of the motor 9 will drive the LED strip light source 10 to rotate, thereby realizing that the LED light source 10 illuminates at different angles.
[0065] During operation, the PC host computer 2 changes the working modes of the four LED strip light sources 3 by sending various instructions online, so that the image information of the object to be measured can be quickly collected by the camera 4 under different lighting conditions, which greatly improves the efficiency.
[0066] In summary, the online-controlled photometric stereoscopic imaging device of the utility model can wirelessly send light source control instructions to the LED light source controller 1 through the PC host computer 2, and use the PWM dimming method to adjust the brightness of the LED strip light source 3. The motor 9 can also be used to adjust the lighting angle of the LED strip light source 3, and the LED strip light source 3 can be automatically controlled. Compared with the existing photometric stereoscopic imaging device, it has strong operational flexibility, high efficiency, and a wide range of applications.
[0067] In summary, compared with the prior art, the device proposed by the utility model has at least the following advantages and beneficial effects:
[0068] (1) The core control board in the utility model includes a WIFI module. The WIFI module can be connected to the PC host computer through a WIFI wireless network. The WIFI module is connected to the MCU through a USART serial port. Wireless data transmission between the PC host computer and the MCU can be realized through the WIFI module, thereby realizing remote online control of the LED light source using the PC host computer, effectively solving the problems of the light source control end of the photometric stereoscopic imaging device being unable to move, the control method being inconvenient, and the complex on-site cable deployment.
[0069] (2) The MCU is controlled by a PC host computer, and various lighting modes of the light source of the photometric stereo imaging device are realized by changing the output of the PWM dimming signal. At the same time, the motor output can be controlled by setting the PWM speed regulation signal and the IO motor signal, so that the light source rotates with the axis, and the object under test can be illuminated at different angles. This greatly improves the control flexibility of the light source in the photometric stereo imaging process and has a wide range of applications.
[0070] (3) The signal outputs of multiple channels can be controlled simultaneously, thereby controlling multiple light sources of the photometric stereo imaging device at the same time, thereby achieving automatic control of lighting conditions and greatly improving efficiency.
[0071] (4) The PWM signal output by the MCU on the core control board is isolated by a photocoupler before entering the driver circuit board, effectively preventing damage to the equipment caused by direct contact between strong and weak electrical signals.
[0072] (5) The utility model provides an online controlled photometric stereo imaging device which can be applied to the photometric stereo imaging detection process. The PC host computer sends a signal to the LED light source controller online to control the LED strip light source, thereby realizing different working modes of the LED strip light source and providing flexible and changeable lighting conditions for the photometric stereo imaging process.
[0073] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention, and these equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. An online controlled photometric stereo imaging device, characterized in that: It includes a host computer, an LED light source controller, a camera, four LED strip light sources and four motors; The host computer is connected to the LED light source controller signal by wireless communication, the four LED strip light sources are electrically connected to the LED light source controller, and the four motors are electrically connected to the LED light source controller; The camera is connected to the host computer by signal; One of the motors corresponds to one of the LED strip light sources, and a coaxial mechanical connection is formed between the two.
2. The on-line controlled photometric stereo imaging device according to claim 1, characterized in that: The LED light source controller includes a core control board, a power supply circuit, a light source drive circuit board, and a motor driver; The host computer is connected to the core control board signal by wireless communication, the core control board sends a PWM signal to be connected to the light source driver circuit board, the light source driver circuit board is electrically connected to the four LED strip light sources, the core control board sends a PWM signal and an IO signal to be connected to the motor driver, the motor driver is electrically connected to the four motors respectively, and the power supply circuit is electrically connected to the core control board, the light source driver circuit board and the motor driver.
3. The on-line controlled photometric stereo imaging device according to claim 2, characterized in that: The core control board includes a single MCU, a debugging module, a reset module, a clock module and a WIFI module; The debugging module, the reset module and the clock module are all electrically connected to the MCU, the WIFI module is connected to the host computer signal via a WIFI wireless signal, and the WIFI module is connected to the MCU signal via a USART serial port.
4. The on-line controlled photometric stereo imaging device according to claim 3, characterized in that: The MCU includes eight TIM timers and twelve IO interfaces; Among them, eight of the TIM timers are connected to the eight IO interfaces in a one-to-one correspondence. Among the eight TIM timers, four of the TIM timers each generate a PWM dimming signal that is output to the light source driving circuit board through the corresponding four IO interfaces; the other four TIM timers each generate a PWM motor speed regulation signal that is output to the motor driver through the corresponding four IO interfaces; in addition to the eight IO interfaces that output PWM signals, there are another four IO interfaces that send IO signals to connect signals with the motor driver.
5. The on-line controlled photometric stereo imaging device according to claim 4, characterized in that: The light source driving circuit board includes four photocouplers and four LM3409 (HV) dimming circuits; The input ends of the four photoelectric couplers are signal-connected to the four IO interfaces in a one-to-one correspondence, the output ends of the four photoelectric couplers are signal-connected to the four LM3409 (HV) dimming circuits in a one-to-one correspondence, and the four LM3409 (HV) dimming circuits are electrically connected to the four LED strip light sources in a one-to-one correspondence.
6. The on-line controlled photometric stereo imaging device according to claim 5, characterized in that: The LM3409 (HV) dimming circuit includes a constant current driver chip and a peripheral circuit of the constant current driver chip; The peripheral circuit includes a power input circuit, a PWM signal input, a sensing resistor RSNS, a Buck buck topology circuit, a shutdown time control circuit, and a voltage divider circuit; the constant current drive chip is respectively connected to the power input circuit, the PWM signal input, the sensing resistor RSNS, the Buck buck topology circuit, the shutdown time control circuit, and the voltage divider circuit.
7. The on-line controlled photometric stereo imaging device according to claim 6, characterized in that: The power input circuit is electrically connected to the power circuit, and the power input circuit includes an input capacitor CIN; The PWM signal input is provided by the output end of the photoelectric coupler, and the output end of the photoelectric coupler is connected to the EN pin signal of the constant current drive chip; One end of the sensing resistor RSNS is connected to the power input circuit and the CSP pin of the constant current driver chip respectively, and the other end of the sensing resistor RSNS is connected to the CSN pin of the constant current driver chip; The Buck step-down topology circuit includes a P-channel field effect transistor Q1, an inductor L1, a freewheeling diode D1, and an output capacitor CO; The off time control circuit is composed of a resistor ROFF and a capacitor COFF; The voltage divider circuit is composed of a voltage divider resistor RUV1 and a voltage divider resistor RUV2, and the voltage divider circuit is electrically connected to the Buck step-down topology circuit.
8. The on-line controlled photometric stereo imaging device according to claim 6, characterized in that: The EN pin of the constant current driver chip is used for PWM dimming.
9. The on-line controlled photometric stereo imaging device according to claim 1, characterized in that: The four LED strip light sources are all machine vision light sources.
10. The on-line controlled photometric stereo imaging device according to claim 1, characterized in that: The four LED strip light sources are placed above the object to be measured and are located in four directions respectively. When working, they will irradiate the object to be measured from four directions. The camera is placed directly above the object to be measured and above the four LED strip light sources.
