Color sorter light source control system and control method based on PID temperature control
By adopting a light source control system based on PID temperature control in the color sorting machine, the precise cooling of the lamp panel is achieved, and the problems of insufficient cooling intensity and high cost in the prior art are solved, and the reliability and timeliness of the system are improved.
Patent Information
- Application Number
- CN202510246988.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-06-06
Smart Images

Figure CN120111744A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of temperature control, and in particular to a color sorter light source control system and a control method based on PID temperature control. Background Art
[0002] The light board in the color sorter is used to illuminate the objects to be inspected so that the color sorter can accurately detect the color of the objects. The light board is equipped with a main light for lighting and a background light for background auxiliary lighting. During use, the light board in the color sorter will generate heat. As the use time increases, the heat will also increase. Therefore, the light board in the color sorter needs to be cooled.
[0003] In the prior art, fans or water cooling devices are mainly used to cool down the lamp panels. However, when fans are used for cooling, the cooling intensity is low and it is difficult to apply to lamp panels with high temperature rise. When water cooling devices are used for cooling, the cost is high and it is difficult to avoid circuit short circuits caused by water pipe leakage. Therefore, a color sorter light source control system and control method based on PID temperature control are proposed. Summary of the invention
[0004] In order to solve the technical problems existing in the prior art, the present invention provides a color sorter light source control system and a control method based on PID temperature control.
[0005] The present invention is implemented by the following technical scheme: a color sorter light source control system based on PID temperature control, comprising an interactive module, the interactive module is connected to a light source control system, the light source control system is connected to a main light, a background light and a TEC module, the light source control system comprises a control component, an isolation module and a drive component connected in sequence, the control component comprises an MCU module connected to the interactive module, the MCU module is connected to an FPGA module connected to the isolation module; the drive component comprises a conversion module connected to the isolation module, the conversion module is connected to a main light power module, a background light power module and a TEC control module, the main light power module is connected to the main light, the background light power module is connected to the background light, the TEC control module is connected to the TEC module, and the MCU module is connected to a temperature sensor.
[0006] As a further improvement of the above solution, the interaction module is used to transmit setting parameters, control instructions and display of system status to the MCU module.
[0007] As a further improvement of the above solution, the MCU module is used to parse the setting parameters and control instructions transmitted by the interactive module and form control instructions, and the FPGA module is used to receive the control instructions issued by the MCU module to form power control content and TEC control content.
[0008] As a further improvement of the above solution, the isolation module is used to isolate the signal between the control component and the drive component.
[0009] As a further improvement of the above scheme, the conversion module is used to convert and enlarge and reduce the content sent by the FPGA module, the main light power module forms the main light driving current according to the content sent by the FPGA module, the background light power module forms the background light driving current according to the content sent by the FPGA module, and the TEC control module forms the TEC driving current according to the content sent by the FPGA module.
[0010] As a further improvement of the above solution, the temperature sensor is used for detecting the temperature of the main light, the background light and the working environment; the main light is used for main light source lighting, the background light is used for auxiliary lighting, and the TEC module is used to provide a cold source for cooling.
[0011] As a further improvement of the above scheme, the conversion module includes a DAC module connected to the isolation module, and the DAC module is connected to at least three groups of OP modules; the main light power module, the background light power module and the TEC control module are connected to the OP modules; the DAC module is used to convert the content sent by the FPGA module into an analog signal, and the OP module is used to amplify or reduce the analog signal converted by the DAC module.
[0012] As a further improvement of the above solution, the main light and the background light adopt strip lights, the temperature sensor is arranged on the strip lights, the main light and the background light are installed on a light board, the light board is provided with a heat dissipation strip, and the heat dissipation strip is connected to the TEC module.
[0013] As a further improvement of the above solution, the TEC module adopts a semiconductor refrigeration module.
[0014] A control method for a color sorter light source control system based on PID temperature control, comprising the following steps:
[0015] Step S1: Set the control parameters through the interactive module, including the target temperature T after adjustment SET , parameters of the proportional coefficient pid.Kp, parameters of the integral coefficient pid.Ki and parameters of the differential coefficient pid.Kd;
[0016] Step S2: the control component generates a light source control instruction and a temperature control instruction, and the isolation module performs signal isolation between the control component and the drive component;
[0017] Step S3: The driving component controls the power of the main light, the background light and the TEC module according to the light source control instruction and the temperature control instruction under the control component.
[0018] Compared with the prior art, the present invention has the following beneficial effects:
[0019] 1. The present invention improves the reliability of the entire system by isolating signals in the control and power parts of the light source control system;
[0020] 2. The present invention controls the brightness parameters of the light source by command, and the brightness can be accurately adjusted. The output current is controlled by the hardware circuit to control the cooling intensity of the cooler, and the temperature of the light board is accurately controlled, thereby improving the life of the light source and the reliability of the equipment;
[0021] 3. The present invention can effectively reduce the temperature rise of the lamp board through PID temperature control, and can dynamically adjust the cooling intensity of the lamp board according to the actual temperature in the box, and has strong timeliness. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of the structure of a color sorter light source control system based on PID temperature control provided by the present invention;
[0023] Figure 2 A schematic diagram of the structure of a conversion unit 1 provided by the present invention;
[0024] Figure 3 A schematic diagram of the structure of the capacitor isolation provided by the present invention;
[0025] Figure 4 A schematic diagram of the structure of a DAC module provided by the present invention;
[0026] Figure 5 A schematic diagram of the structure of the OP module provided by the present invention;
[0027] Figure 6 A schematic diagram of the structure of the main lamp power module provided by the present invention;
[0028] Figure 7 This is a structural schematic diagram of the TEC control module provided by the present invention. DETAILED DESCRIPTION
[0029] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.
[0030] Embodiment 1:
[0031] Please combine Figure 1-Figure 2In this embodiment, a color sorter light source control system based on PID temperature control includes an interactive module, the interactive module is connected to a light source control system, the light source control system is connected to a main light, a background light and a TEC module, the light source control system includes a control component, an isolation module and a drive component connected in sequence, the control component includes an MCU module connected to the interactive module, the MCU module is connected to an FPGA module connected to the isolation module; the drive component includes a conversion module connected to the isolation module, the conversion module is connected to a main light power module, a background light power module and a TEC control module, the main light power module is connected to the main light, the background light power module is connected to the background light, the TEC control module is connected to the TEC module, and the MCU module is connected to a temperature sensor.
[0032] The interactive module is used to transmit setting parameters, control instructions and display system status to the MCU module.
[0033] The MCU module is used to parse the setting parameters and control instructions transmitted by the interactive module and form control instructions, and the FPGA module is used to receive the control instructions sent by the MCU module to form power control content and TEC control content.
[0034] The isolation module is used for signal isolation between the control component and the drive component.
[0035] The conversion module is used to convert and enlarge and reduce the content sent by the FPGA module. The main light power module forms the main light driving current according to the content sent by the FPGA module, the background light power module forms the background light driving current according to the content sent by the FPGA module, and the TEC control module forms the TEC driving current according to the content sent by the FPGA module.
[0036] The temperature sensor is used for detecting the temperature of the main lamp, the background lamp and the working environment; the main lamp is used for main light source lighting, the background lamp is used for auxiliary lighting, and the TEC module is used for providing a cold source for cooling.
[0037] The conversion module includes a DAC module connected to the isolation module, the DAC module is connected to at least three groups of OP modules; the main light power module, the background light power module and the TEC control module are connected to the OP modules; the DAC module is used to convert the content sent by the FPGA module into an analog signal, and the OP module is used to amplify or reduce the analog signal converted by the DAC module.
[0038] The main light and the background light adopt strip lights, the temperature sensor is arranged on the strip lights, the main light and the background light are installed on a light board, the light board is provided with a heat dissipation strip, and the heat dissipation strip is connected to the TEC module.
[0039] The TEC module adopts a semiconductor refrigeration module.
[0040] Embodiment 2:
[0041] A control method for a color sorter light source control system based on PID temperature control, comprising the following steps:
[0042] Step S1: Set the control parameters through the interactive module, including the target temperature T after adjustment SET , parameters of the proportional coefficient pid.Kp, parameters of the integral coefficient pid.Ki and parameters of the differential coefficient pid.Kd;
[0043] Step S2: the control component generates a light source control instruction and a temperature control instruction, and the isolation module performs signal isolation between the control component and the drive component;
[0044] The temperature sensor is used to collect the real-time temperature of the lamp board. The MCU module uses the PID algorithm to generate control instructions. The control instructions are transmitted to the FPGA module. The FPGA module sends a control signal to the conversion module according to the content of the control instruction. The MCU module generates the error e(t) through the PID algorithm (byParameter, byData2) instruction, where byParameter is the channel number instruction and byData2 is the data instruction. The MCU module sends these parameters to the FPGA module, and the FPGA module controls the DAC module to output analog quantities, thereby controlling the output of the corresponding power unit.
[0045] Among them, the MCU module uses the following steps to generate control instructions:
[0046] Step S21: Determine proportional output information according to the target temperature and the current temperature:
[0047] The MCU module uses the PID algorithm to subtract the target temperature pid.Sv from the current temperature pid.Pv to obtain the current temperature deviation value pid.Ek, and multiplies the current temperature deviation value pid.Ek by the preset proportional coefficient pid.Kp to obtain the proportional output information pid.Pout. At the same time, the current temperature deviation value pid.Ek is calculated with the historical deviation sum pid.SEk to obtain the current historical deviation sum pid.SEk;
[0048] Step S22: Determine the integral output information according to the target temperature and the current temperature:
[0049] Calculate the difference between the two most recent deviations pid.Ek and pid.Ek_1 to get DelEk, divide the current sampling period pid.T by the current sampling integration time pid.Ti to get the value of ti, multiply ti by the integration coefficient pid.Kp to get the target value ki, and multiply the target value ki by the total historical deviation pid.SEk to get the integral output information pid.Iout;
[0050] Step S23: taking the sum of the proportional output information and the integral output information as the control instruction and sending it to the FPGA module:
[0051] Add the proportional output pid.Pout to the integral output pid.Iout to get pid.out. Assign pid.out to the duty cycle instruction byData2.
[0052] Step S3: the driving component realizes power control of the main light, the background light and the TEC module according to the light source control instruction and the temperature control instruction under the control component;
[0053] The conversion module converts and enlarges and reduces the control signal, and finally realizes the power control of the main light power module, the background light power module and the TEC control module. The main light power module, the background light power module and the TEC control module complete the control of the corresponding main light, background light and TEC module.
[0054] Embodiment 3:
[0055] Combination Figure 3 and Figure 4 , based on Example 1, this embodiment is further improved in that: the first output signal of the isolation module chip U4 is transmitted along pin 14 to pin 3 of the DAC module chip U27; the second output signal of the capacitor isolation chip U4 is transmitted along pin 13 to pin 4 of the DAC module chip U27; the third output signal of the capacitor isolation chip U4 is transmitted along pin 12 to pin 5 of the DAC module chip U27; the fourth output signal of the capacitor isolation chip U4 is transmitted along pin 11 to pin 7 of the DAC module chip U27;
[0056] like Figure 4 and 5 As shown, the output terminals 14, 13, 12 and 11 of the DAC module are sequentially used as the input terminals of the OP module and connected to the resistor R93 of the OP module;
[0057] like Figure 4-Figure 7 The output terminal IADJ1 of the OP module shown is used as the input terminal of the main light power module, the background light power module and the TEC control module. The signal transmitted by the OP module is transmitted along the output terminal IADJ1 to the pin 8 of the chip U31 of the main light power module and the background light power module. The signal transmitted by the OP module is transmitted along the output terminal IADJ1 to the EN / SY pin of the TEC control module.
[0058] The present invention improves the reliability of the entire system by isolating signals in the control and power parts of the light source control system; the brightness of the light source can be accurately adjusted through the brightness parameters of the command, the output current is controlled by the hardware circuit to control the cooling intensity of the cooler, the temperature of the lamp board is accurately controlled, and the life of the light source and the reliability of the equipment are improved; the temperature rise of the lamp board can be effectively reduced through PID temperature control, and the cooling intensity of the light strip board can be dynamically adjusted according to the actual temperature in the box, and the timeliness is strong.
[0059] 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 color sorter light source control system based on PID temperature control, characterized in that: The invention comprises an interactive module, wherein the interactive module is connected with a light source control system, wherein the light source control system is connected with a main light, a background light and a TEC module, wherein the light source control system comprises a control component, an isolation module and a drive component which are connected in sequence, wherein the control component comprises an MCU module connected with the interactive module, wherein the MCU module is connected with an FPGA module connected with the isolation module; wherein the drive component comprises a conversion module connected with the isolation module, wherein the conversion module is connected with a main light power module, a background light power module and a TEC control module, wherein the main light power module is connected with the main light, the background light power module is connected with the background light, the TEC control module is connected with the TEC module, and the MCU module is connected with a temperature sensor.
2. A color sorter light source control system based on PID temperature control as claimed in claim 1, characterized in that: The interactive module is used to transmit setting parameters, control instructions and display system status to the MCU module.
3. A color sorter light source control system based on PID temperature control as claimed in claim 1, characterized in that: The MCU module is used to parse the setting parameters and control instructions transmitted by the interactive module and form control instructions, and the FPGA module is used to receive the control instructions sent by the MCU module to form power control content and TEC control content.
4. A color sorter light source control system based on PID temperature control as claimed in claim 1, characterized in that: The isolation module is used for signal isolation between the control component and the drive component.
5. A color sorter light source control system based on PID temperature control as claimed in claim 1, characterized in that: The conversion module is used to convert and enlarge and reduce the content sent by the FPGA module. The main light power module forms the main light driving current according to the content sent by the FPGA module, the background light power module forms the background light driving current according to the content sent by the FPGA module, and the TEC control module forms the TEC driving current according to the content sent by the FPGA module.
6. A color sorter light source control system based on PID temperature control as claimed in claim 1, characterized in that: The temperature sensor is used for detecting the temperature of the main lamp, the background lamp and the working environment; the main lamp is used for main light source lighting, the background lamp is used for auxiliary lighting, and the TEC module is used for providing a cold source for cooling.
7. A color sorter light source control system based on PID temperature control as claimed in claim 1, characterized in that: The conversion module includes a DAC module connected to the isolation module, the DAC module is connected to at least three groups of OP modules; the main light power module, the background light power module and the TEC control module are connected to the OP modules; the DAC module is used to convert the content sent by the FPGA module into an analog signal, and the OP module is used to amplify or reduce the analog signal converted by the DAC module.
8. A color sorter light source control system based on PID temperature control as claimed in claim 1, characterized in that: The main light and the background light adopt strip lights, the temperature sensor is arranged on the strip lights, the main light and the background light are installed on a light board, the light board is provided with a heat dissipation strip, and the heat dissipation strip is connected to the TEC module.
9. A color sorter light source control system based on PID temperature control as claimed in claim 1, characterized in that: The TEC module adopts a semiconductor refrigeration module.
10. A control method for a color sorter light source control system based on PID temperature control according to any one of claims 1 to 9, characterized in that: The following steps are involved: Step S1: Set the control parameters through the interactive module, including the target temperature T after adjustment SET , parameters of the proportional coefficient pid.Kp, parameters of the integral coefficient pid.Ki and parameters of the differential coefficient pid.Kd; Step S2: the control component generates a light source control instruction and a temperature control instruction, and the isolation module performs signal isolation between the control component and the drive component; Step S3: The driving component controls the power of the main light, the background light and the TEC module according to the light source control instruction and the temperature control instruction under the control component.