A gamma debugging temperature control system based on single chip PWM control

Through a temperature control system based on PWM control of microcontrollers, the existing gamma debugging platform has been solved, and the temperature control effect of miniaturization, cost reduction and rapid response is achieved.

CN119759129APending Publication Date: 2025-04-04LAKESIDE LIGHTNING SEMICONDUCTOR (JIANGSU) CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411930865.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

Due to the high cost and large space consumption of existing gamma debugging platforms, it is difficult to meet the needs of production requirements.

Method used

A temperature control system based on PWM control of a microcontroller is adopted, and is connected to the upper computer, TEC refrigeration plate and temperature sensor system through the microcontroller system to generate a PWM output to adjust the temperature.

Benefits of technology

It realizes miniaturization and cost reduction of gamma debugging temperature control system, and has fast response and temperature maintenance functions, which is suitable for production needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759129A_ABST
    Figure CN119759129A_ABST
Patent Text Reader

Abstract

The present application discloses a gamma debugging temperature control system based on single-chip microcomputer PWM control, and relates to the technical field of screen gamma debugging. The method comprises: a host computer, a single-chip microcomputer system, a TEC cooling piece, and a temperature sensor system; the single-chip microcomputer system is respectively connected to the host computer, the TEC cooling piece, and the temperature sensor system; the host computer is used to obtain a set temperature; the temperature sensor system is used to obtain the ambient temperature during gamma debugging; the single-chip microcomputer system is used to generate a PWM output according to the difference between the ambient temperature and the set temperature; the TEC cooling piece is used to adjust the temperature during gamma debugging based on the PWM output. The present application makes the single-chip microcomputer system miniaturized by setting the single-chip microcomputer system, and at the same time reduces the cost of temperature control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of screen gamma debugging, and in particular to a gamma debugging temperature control system based on single-chip microcomputer PWM control. Background Art

[0002] When gamma debugging the screen, it is necessary to ensure the stability of the temperature and humidity around the screen to reduce the impact of environmental variables on gamma debugging. The current gamma debugging platform is generally composed of a controllable power supply, a thermocouple sensor, a temperature controller, a TEC cooling sheet, etc.; the cost is high, the space occupancy rate is high, and it is not conducive to production needs. Summary of the invention

[0003] The purpose of this application is to provide a gamma debugging temperature control system based on single-chip microcomputer PWM control, which has the characteristics of miniaturization and reduces the cost of temperature control.

[0004] To achieve the above objectives, this application provides the following solutions:

[0005] In a first aspect, the present application provides a gamma debugging temperature control system based on single-chip microcomputer PWM control, comprising: a host computer, a single-chip microcomputer system, a TEC cooling sheet and a temperature sensor system;

[0006] The single chip computer system is connected to the host computer, the TEC cooling sheet and the temperature sensor system respectively;

[0007] The host computer is used to obtain the set temperature;

[0008] The temperature sensor system is used to obtain the ambient temperature during gamma debugging;

[0009] The single chip computer system is used to generate a PWM output according to the difference between the ambient temperature and the set temperature;

[0010] The TEC cooling sheet is used to adjust the temperature during gamma debugging based on PWM output.

[0011] Optionally, the single chip microcomputer system includes:

[0012] Main chip circuit, H-bridge drive circuit, external crystal oscillator circuit, working indicator light circuit, debugging circuit, network port to serial port circuit, microcontroller reserved pin circuit and RS485 communication circuit;

[0013] The main chip circuit is respectively connected to the H-bridge driving circuit, the external crystal oscillator circuit, the working indicator light circuit, the debugging circuit, the network port to serial port circuit, the single-chip microcomputer reserved pin circuit and the RS485 communication circuit.

[0014] Optionally, the main chip circuit includes a chip U1, a resistor R1, a resistor R4 and a resistor R6;

[0015] The model of the chip U1 is: STM32F103C8T6TR;

[0016] The VBAT pin of the chip U1 and the VDD_1 pin of the chip U1 are both connected to a power source;

[0017] Pin 48 of the chip U1 and pin 36 of the chip are both connected to a power source;

[0018] The VSSA pin of the chip U1, the VSS_1 pin of the chip U1, the 47 pin of the chip U1 and the 35 pin of the chip U1 are all grounded;

[0019] Pin 32 of the chip U1 and pin 29 of the chip U1 are both connected to the H-bridge driving circuit;

[0020] The PD0-OSC_IN pin of the chip U1 and the PD1-OSC_OUT pin of the chip U1 are both connected to the external crystal oscillator circuit;

[0021] The PB10 pin of the chip U1 is connected to the working indicator light circuit;

[0022] Pin 37 of the chip U1 and pin 34 of the chip U1 are both connected to the debugging circuit;

[0023] The PA2 pin of the chip U1 and the PA3 pin of the chip U1 are both connected to the network port to serial port circuit;

[0024] The PA4 pin of the chip U1, the PA5 pin of the chip U1, the PA6 pin of the chip U1, the PA7 pin of the chip U1, the PB0 pin of the chip U1, the PB1 pin of the chip U1, the 40 pin of the chip U1, the 39 pin of the chip U1, the 28 pin of the chip U1, the 27 pin of the chip U1, the 26 pin of the chip U1 and the 25 pin of the chip U1 are all connected to the reserved pin circuit of the single-chip microcomputer;

[0025] Pin 31 of the chip U1, pin 30 of the chip U1 and pin 28 of the chip U1 are all connected to the RS485 communication circuit;

[0026] Pin 44 of the chip U1 is connected to one end of the resistor R1; the other end of the resistor R1 is grounded;

[0027] The NRST pin of the chip U1 is connected to one end of the resistor R4; the other end of the resistor R4 is connected to a power supply;

[0028] The PB2 pin of the chip U1 is connected to one end of the resistor R6; the other end of the resistor R6 is connected to a power supply;

[0029] The PC13-TAMPER-RTC pin of the chip U1, the PC14-OSC32_IN pin of the chip U1, the PC15-OSC32_OUT pin of the chip U1, the VDDA pin of the chip U1, the PA0-WKUP pin of the chip U1, the PA1 pin of the chip U1, the PB11 pin of the chip U1, the 46 pin of the chip U1, the 45 pin of the chip U1, the 43 pin of the chip U1, the 42 pin of the chip U1, the 41 pin of the chip U1, the 38 pin of the chip U1, the 36 pin of the chip U1 and the 33 pin of the chip U1 are all open circuited.

[0030] Optionally, the H-bridge driving circuit includes: an N-type field effect transistor N1, an N-type field effect transistor N2, a P-type field effect transistor P2, a P-type field effect transistor P3, a transistor Q1, a transistor Q2, a resistor R2, a resistor R3, a resistor R8, a resistor R9, a resistor R12, a resistor R13 and a TEC power supply port circuit;

[0031] The first end of the resistor R3, the source of the P-type field effect transistor P2, the source of the P-type field effect transistor P3 and the first end of the resistor R2 are all connected to a power source;

[0032] The second end of the resistor R3, the gate of the P-type field effect transistor P2, the collector of the transistor Q1 and the first end of the resistor R12 are connected;

[0033] The second end of the resistor R12 is connected to the gate of the N-type field effect transistor N1;

[0034] The base of the transistor Q1 is connected to the first end of the resistor R8;

[0035] The second end of the resistor R8 is connected to the pin 32 of the chip U1;

[0036] The second end of the resistor R2, the gate of the P-type field effect transistor P3, the emitter of the transistor Q2 and the first end of the resistor R13 are connected;

[0037] The second end of the resistor R13 is connected to the gate of the N-type field effect transistor N2;

[0038] The base of the transistor Q2 is connected to the first end of the resistor R9;

[0039] The second end of the resistor R9 is connected to the pin 29 of the chip U1;

[0040] The drain of the N-type field effect transistor N1, the drain of the N-type field effect transistor N2, the drain of the P-type field effect transistor P2 and the drain of the P-type field effect transistor P3 are all connected to the TEC power supply port circuit;

[0041] The emitter of the transistor Q1 , the source of the N-type field effect transistor N1 , the source of the N-type field effect transistor N2 , and the collector of the transistor Q2 are all grounded.

[0042] Optionally, the external crystal oscillator circuit includes: a resistor R5, a capacitor C6, a capacitor C7 and a crystal oscillator tube U2;

[0043] The first end of the resistor R5, the first end of the capacitor C6 and the first end of the crystal oscillator U2 are all connected to the PD0-OSC_IN pin of the chip U1;

[0044] The second end of the resistor R5, the first end of the capacitor C7 and the second end of the crystal oscillator U2 are all connected to the PD1-OSC_OUT pin of the chip U1;

[0045] The second end of the capacitor C6 and the second end of the capacitor C7 are both grounded.

[0046] Optionally, the working indicator light circuit includes: a resistor R7 and a light emitting diode D1;

[0047] The first end of the resistor R7 is connected to a power source;

[0048] The second end of the resistor R7 is connected to the positive electrode of the light emitting diode D1;

[0049] The cathode of the light emitting diode D1 is connected to the PB10 pin of the chip U1.

[0050] Optionally, the debugging circuit includes: a chip P1 and a capacitor C1;

[0051] The model of the chip P1 is Header4;

[0052] Pin 1 of the chip P1 and the first end of the capacitor C1 are both connected to a power source;

[0053] The second end of the capacitor C1 and the 4th pin of the chip P1 are both grounded;

[0054] Pin 2 of the chip P1 is connected to pin 37 of the chip U1;

[0055] Pin 3 of the chip P1 is connected to pin 34 of the chip U1.

[0056] Optionally, the network port to serial port circuit includes: a chip U5 and a capacitor C14;

[0057] The model of the chip U5 is USR-K7;

[0058] Pin 11 of the chip U5 and the first end of the capacitor C14 are both connected to a power source;

[0059] The second end of the capacitor C14 and the pin 10 of the chip U5 are both grounded;

[0060] The first NC pin of the chip U5, the second NC pin of the chip U5, the CTS pin of the chip U5, the RST pin of the chip U5, the RTS pin of the chip U5, the Reload pin of the chip U5, the third NC pin of the chip U5, the 14th pin of the chip U5, the 13th pin of the chip U5 and the 12th pin of the chip U5 are all open circuited;

[0061] Pin 9 of the chip U5 is connected to pin PA3 of the chip U1;

[0062] Pin 8 of the chip U5 is connected to pin PA2 of the chip U1.

[0063] Optionally, the single chip microcomputer reserved pin circuit includes: chip P6, resistor R14, resistor R10, resistor R15 and resistor R11;

[0064] The model of the chip P6 is Header 7X2;

[0065] The PA10 pin of the chip P6 is connected to the first end of the resistor R14; the second end of the resistor R14 is connected to the first end of the resistor R10; the second end of the resistor R10 is connected to the power supply;

[0066] The PA11 pin of the chip P6 is connected to the first end of the resistor R15; the second end of the resistor R15 is connected to the first end of the resistor R11; the second end of the resistor R11 is connected to the power supply;

[0067] The PB4 pin of the chip P6 is connected to the 40 pin of the chip U1;

[0068] The PA4 pin of the chip P6 is connected to the PA4 pin of the chip U1;

[0069] The PA5 pin of the chip P6 is connected to the PA5 pin of the chip U1;

[0070] The PA6 pin of the chip P6 is connected to the PA6 pin of the chip U1;

[0071] The PA7 pin of the chip P6 is connected to the PA7 pin of the chip U1;

[0072] The PB0 pin of the chip P6 is connected to the PB0 pin of the chip U1;

[0073] The PB1 pin of the chip P6 is connected to the PB1 pin of the chip U1;

[0074] The PB15 pin of the chip P6 is connected to the 28 pin of the chip U1;

[0075] The PB14 pin of the chip P6 is connected to the 27 pin of the chip U1;

[0076] The PB13 pin of the chip P6 is connected to the 26 pin of the chip U1;

[0077] The PB12 pin of the chip P6 is connected to the 25 pin of the chip U1;

[0078] The PB3 pin of the chip P6 is connected to the 39 pin of the chip U1.

[0079] Optionally, the RS485 communication circuit includes: a chip P7;

[0080] The model of the chip P7 is RSL83485;

[0081] Pin 1 of the chip P7 is connected to pin 31 of the chip U1;

[0082] Pin 2 of the chip P7 and pin 3 of the chip P7 are both connected to pin 28 of the chip U1;

[0083] Pin 4 of the chip P7 is connected to pin 30 of the chip U1.

[0084] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0085] The present application provides a gamma debugging temperature control system based on single-chip microcomputer PWM control, which realizes the temperature control of the gamma debugging platform based on the single-chip microcomputer PWM control of the TEC cooling plate. The solution uses a DC 12V power supply to directly drive the TEC cooling plate, and controls the PWM duty cycle and the positive and negative pole conversion of the TEC cooling plate through the communication between the host computer and the single-chip microcomputer; thereby realizing the functions of heating and cooling the temperature control platform, as well as rapid response and temperature maintenance. The circuit driver board is small in size and low in cost, eliminating high-cost equipment such as controllable power supplies and temperature controllers, which is conducive to production needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0087] Figure 1 This is a module diagram of a gamma debugging temperature control system based on single-chip microcomputer PWM control in one embodiment of the present application.

[0088] Figure 2 This is a circuit diagram of the main chip in one embodiment of the present application.

[0089] Figure 3 Schematic diagram of an H-bridge driving circuit in one embodiment of the present application.

[0090] Figure 4 This is a circuit diagram of a TEC power supply port in one embodiment of the present application.

[0091] Figure 5 This is a circuit diagram of an external crystal oscillator in one embodiment of the present application.

[0092] Figure 6 This is a circuit diagram of a working indicator light in one embodiment of the present application.

[0093] Figure 7 This is a debugging circuit diagram in an embodiment of the present application.

[0094] Figure 8 This is a circuit diagram of a network port to serial port conversion in one embodiment of the present application.

[0095] Fig. 9 This is a circuit diagram of the reserved pins for the single chip microcomputer in one embodiment of the present application.

[0096] Fig.10 This is a RS485 communication circuit diagram in one embodiment of the present application.

[0097] Fig.11 This is a 12V to 5V circuit diagram in one embodiment of the present application.

[0098] Fig.12 This is a 5V to 3.3V circuit diagram in one embodiment of the present application.

[0099] Fig.13 This is a 12V power interface circuit diagram in one embodiment of the present application.

[0100] Fig.14 This is a decoupling filter circuit diagram in one embodiment of the present application.

[0101] Fig.15 This is a PCB design diagram of a single-chip microcomputer system in one embodiment of the present application.

[0102] Fig.16 This is a diagram of the upper computer interface in one embodiment of the present application. DETAILED DESCRIPTION

[0103] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0104] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0105] In an exemplary embodiment, Figure 1 As shown, a gamma debugging temperature control system based on single-chip microcomputer PWM control is provided, including: a host computer, a single-chip microcomputer system, a TEC cooling piece and a temperature sensor system. The single-chip microcomputer system is connected to the host computer, the TEC cooling piece and the temperature sensor system respectively. The host computer is used to obtain the set temperature. The temperature sensor system is used to obtain the ambient temperature during gamma debugging. The single-chip microcomputer system is used to generate a PWM output according to the difference between the ambient temperature and the set temperature. The TEC cooling piece is used to adjust the temperature during gamma debugging based on the PWM output.

[0106] The host computer sends temperature setting instructions through the network cable, the microcontroller receives and processes the instructions, controls the PWM output, and then controls the operation of the TEC cooling plate; the host computer reads the current platform temperature returned by the microcontroller for interface display; the temperature sensor system monitors the platform temperature and uploads it to the microcontroller for communication between the microcontroller and the host computer.

[0107] like Figure 2 The single-chip microcomputer system includes: main chip circuit, H-bridge drive circuit, external crystal oscillator circuit, working indicator light circuit, debugging circuit, network port to serial port circuit, single-chip microcomputer reserved pin circuit and RS485 communication circuit, as well as 12V to 5V circuit (such as Fig.11 )、5V to 3.3V circuit (such as Fig.12 )、12V power interface circuit (such as Fig.13 ) and decoupling filter circuits (such as Fig.14 The main chip circuit is respectively connected with the H-bridge driving circuit, the external crystal oscillator circuit, the working indicator light circuit, the debugging circuit, the network port to serial port circuit, the single-chip microcomputer reserved pin circuit and the RS485 communication circuit.

[0108] like Figure 2The main chip circuit includes chip U1, resistor R1, resistor R4 and resistor R6. The model of chip U1 is: STM32F103C8T6TR.

[0109] The VBAT pin of chip U1 and the VDD_1 pin of chip U1 are both connected to the power supply. The 48 pin of chip U1 and the 36 pin of chip U1 are both connected to the power supply. The VSSA pin of chip U1, the VSS_1 pin of chip U1, the 47 pin of chip U1 and the 35 pin of chip U1 are all grounded. The 32 pin of chip U1 and the 29 pin of chip U1 are both connected to the H-bridge drive circuit. The PD0-OSC_IN pin of chip U1 and the PD1-OSC_OUT pin of chip U1 are both connected to the external crystal oscillator circuit. The PB10 pin of chip U1 is connected to the working indicator light circuit. The 37 pin of chip U1 and the 34 pin of chip U1 are both connected to the debugging circuit. The PA2 pin of chip U1 and the PA3 pin of chip U1 are both connected to the network port to serial port circuit. The PA4 pin of chip U1, the PA5 pin of chip U1, the PA6 pin of chip U1, the PA7 pin of chip U1, the PB0 pin of chip U1, the PB1 pin of chip U1, the 40 pin of chip U1, the 39 pin of chip U1, the 28 pin of chip U1, the 27 pin of chip U1, the 26 pin of chip U1 and the 25 pin of chip U1 are all connected to the reserved pin circuit of the microcontroller. The 31 pin of chip U1, the 30 pin of chip U1 and the 28 pin of chip U1 are all connected to the RS485 communication circuit. The 44 pin of chip U1 is connected to one end of resistor R1. The other end of resistor R1 is grounded. The NRST pin of chip U1 is connected to one end of resistor R4. The other end of resistor R4 is connected to the power supply. The PB2 pin of chip U1 is connected to one end of resistor R6. The other end of resistor R6 is connected to the power supply. The PC13-TAMPER-RTC pin of chip U1, the PC14-OSC32_IN pin of chip U1, the PC15-OSC32_OUT pin of chip U1, the VDDA pin of chip U1, the PA0-WKUP pin of chip U1, the PA1 pin of chip U1, the PB11 pin of chip U1, the 46 pin of chip U1, the 45 pin of chip U1, the 43 pin of chip U1, the 42 pin of chip U1, the 41 pin of chip U1, the 38 pin of chip U1, the 36 pin of chip U1 and the 33 pin of chip U1 are all open circuited.

[0110] like Figure 3, the H-bridge driving circuit is controlled by PWM to realize the positive and negative polarity power supply of DC power, so as to realize the heating and cooling of TEC cooling plate; and the output voltage is adjusted by the duty cycle of PWM to realize the rapid response and stability of temperature. The H-bridge driving circuit includes: N-type field effect transistor N1, N-type field effect transistor N2, P-type field effect transistor P2, P-type field effect transistor P3, transistor Q1, transistor Q2, resistor R2, resistor R3, resistor R8, resistor R9, resistor R12, resistor R13 and TEC power supply port circuit (such as Figure 4 ). The first end of resistor R3, the source of P-type field effect transistor P2, the source of P-type field effect transistor P3 and the first end of resistor R2 are all connected to the power supply. The second end of resistor R3, the gate of P-type field effect transistor P2, the collector of transistor Q1 and the first end of resistor R12 are connected. The second end of resistor R12 is connected to the gate of N-type field effect transistor N1. The base of transistor Q1 is connected to the first end of resistor R8. The second end of resistor R8 is connected to pin 32 of chip U1. The second end of resistor R2, the gate of P-type field effect transistor P3, the emitter of transistor Q2 and the first end of resistor R13 are connected. The second end of resistor R13 is connected to the gate of N-type field effect transistor N2. The base of transistor Q2 is connected to the first end of resistor R9. The second end of resistor R9 is connected to pin 29 of chip U1. The drain of the N-type field effect transistor N1, the drain of the N-type field effect transistor N2, the drain of the P-type field effect transistor P2 and the drain of the P-type field effect transistor P3 are all connected to the TEC power supply port circuit. The emitter of the transistor Q1, the source of the N-type field effect transistor N1, the source of the N-type field effect transistor N2 and the collector of the transistor Q2 are all grounded.

[0111] like Figure 5 , the external crystal oscillator circuit includes: a resistor R5, a capacitor C6, a capacitor C7 and a crystal oscillator U2. The first end of the resistor R5, the first end of the capacitor C6 and the first end of the crystal oscillator U2 are all connected to the PD0-OSC_IN pin of the chip U1. The second end of the resistor R5, the first end of the capacitor C7 and the second end of the crystal oscillator U2 are all connected to the PD1-OSC_OUT pin of the chip U1. The second end of the capacitor C6 and the second end of the capacitor C7 are both grounded.

[0112] like Figure 6 The working indicator light circuit includes: a resistor R7 and a light emitting diode D1. The first end of the resistor R7 is connected to the power supply. The second end of the resistor R7 is connected to the positive electrode of the light emitting diode D1. The negative electrode of the light emitting diode D1 is connected to the PB10 pin of the chip U1.

[0113] like Figure 7The debugging circuit includes: a chip P1 and a capacitor C1. The model of the chip P1 is Header 4. The 1st pin of the chip P1 and the first end of the capacitor C1 are both connected to the power supply. The second end of the capacitor C1 and the 4th pin of the chip P1 are both grounded. The 2nd pin of the chip P1 is connected to the 37th pin of the chip U1. The 3rd pin of the chip P1 is connected to the 34th pin of the chip U1.

[0114] like Figure 8 , the network port to serial port circuit includes: chip U5 and capacitor C14. The model of chip U5 is USR-K7. Pin 11 of chip U5 and the first end of capacitor C14 are both connected to the power supply. The second end of capacitor C14 and pin 10 of chip U5 are both grounded. The first NC pin of chip U5, the second NC pin of chip U5, the CTS pin of chip U5, the RST pin of chip U5, the RTS pin of chip U5, the Reload pin of chip U5, the third NC pin of chip U5, the 14th pin of chip U5, the 13th pin of chip U5 and the 12th pin of chip U5 are all open circuited. Pin 9 of chip U5 is connected to pin PA3 of chip U1. Pin 8 of chip U5 is connected to pin PA2 of chip U1.

[0115] like Fig. 9 , the single chip microcomputer reserved pin circuit includes: chip P6, resistor R14, resistor R10, resistor R15 and resistor R11. The model of chip P6 is Header 7X2. The PA10 pin of chip P6 is connected to the first end of resistor R14. The second end of resistor R14 is connected to the first end of resistor R10. The second end of resistor R10 is connected to the power supply. The PA11 pin of chip P6 is connected to the first end of resistor R15. The second end of resistor R15 is connected to the first end of resistor R11. The second end of resistor R11 is connected to the power supply. The PB4 pin of chip P6 is connected to the 40 pin of chip U1. The PA4 pin of chip P6 is connected to the PA4 pin of chip U1. The PA5 pin of chip P6 is connected to the PA5 pin of chip U1. The PA6 pin of chip P6 is connected to the PA6 pin of chip U1. The PA7 pin of chip P6 is connected to the PA7 pin of chip U1. The PB0 pin of chip P6 is connected to the PB0 pin of chip U1. The PB1 pin of chip P6 is connected to the PB1 pin of chip U1. The PB15 pin of chip P6 is connected to the 28 pin of chip U1. The PB14 pin of chip P6 is connected to the 27 pin of chip U1. The PB13 pin of chip P6 is connected to the 26 pin of chip U1. The PB12 pin of chip P6 is connected to the 25 pin of chip U1. The PB3 pin of chip P6 is connected to the 39 pin of chip U1.

[0116] like Fig.10, the RS485 communication circuit includes: chip P7. The model of chip P7 is RSL83485. Pin 1 of chip P7 is connected to pin 31 of chip U1. Pin 2 of chip P7 and pin 3 of chip P7 are both connected to pin 28 of chip U1. Pin 4 of chip P7 is connected to pin 30 of chip U1.

[0117] PCB design of single chip microcomputer system Fig.15 As shown, the overall board size is 10cm×9cm, which reduces space and facilitates assembly; the board thickness is 2mm, the copper thickness is 135um, and many ground holes are drilled around the power supply to improve the heat dissipation capacity of the board; there are windows on the back of the entire board, windows on the front where the high-current circuit is located, and the rest of the board is paved with green oil. The main function in the microcontroller system code completes the initialization of the serial port and PWM; the serial port interrupt function receives the set temperature sent by the host computer, and then compares it with the currently read temperature, and controls the output direction of the pwm through the temperature difference, and adjusts the duty cycle to control the temperature change speed, and waits until it stabilizes and reaches the preset value to achieve dynamic temperature balance. The operating interface of the temperature control system host computer is as follows Fig.16 As shown. Connect the target IP through the network cable, you can set the temperature by yourself between -30℃ and 60℃, or modify the step temperature and modify the platform temperature according to the step temperature. The temperature set each time will be displayed in the text column of the output log; the temperature curve shows the platform temperature change within 60S. Between -20℃ and 50℃ is judged as the normal temperature range, the green light is on, greater than 50℃, high temperature warning, red light is on, less than -20℃, low temperature warning, blue light is on.

[0118] The traditional temperature control solution controls the temperature rise and fall of TEC by controlling the adjustable power supply and relay through PLC. The cost of the controllable power supply is relatively high. The relay uses mechanical contacts. Frequent switching operations over a long period of time may cause wear and poor contact of the contacts, thus affecting their life and reliability. The temperature control solution provided by this application controls the temperature rise and fall of TEC by controlling the MOS tube through the PWM of the single-chip microcomputer. The driver board is small in size, which is conducive to production layout. The driver board cost is low, which is conducive to reducing production costs. The MOS tube has no mechanical parts, so there is no wear problem, and the life is usually longer than that of the relay.

[0119] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A gamma debugging temperature control system based on single chip microcomputer PWM control, characterized in that: include: Host computer, single chip computer system, TEC cooling chip and temperature sensor system; The single chip computer system is connected to the host computer, the TEC cooling sheet and the temperature sensor system respectively; The host computer is used to obtain the set temperature; The temperature sensor system is used to obtain the ambient temperature during gamma debugging; The single chip computer system is used to generate a PWM output according to the difference between the ambient temperature and the set temperature; The TEC cooling sheet is used to adjust the temperature during gamma debugging based on PWM output.

2. The gamma debugging temperature control system based on single chip microcomputer PWM control according to claim 1 is characterized in that: The single chip microcomputer system comprises: Main chip circuit, H-bridge drive circuit, external crystal oscillator circuit, working indicator light circuit, debugging circuit, network port to serial port circuit, microcontroller reserved pin circuit and RS485 communication circuit; The main chip circuit is respectively connected to the H-bridge driving circuit, the external crystal oscillator circuit, the working indicator light circuit, the debugging circuit, the network port to serial port circuit, the single-chip microcomputer reserved pin circuit and the RS485 communication circuit.

3. The gamma debugging temperature control system based on single chip microcomputer PWM control according to claim 2 is characterized in that: The main chip circuit includes a chip U1, a resistor R1, a resistor R4 and a resistor R6; The model of the chip U1 is: STM32F103C8T6TR; The VBAT pin of the chip U1 and the VDD_1 pin of the chip U1 are both connected to a power source; Pin 48 of the chip U1 and pin 36 of the chip are both connected to a power source; The VSSA pin of the chip U1, the VSS_1 pin of the chip U1, the 47 pin of the chip U1 and the 35 pin of the chip U1 are all grounded; Pin 32 of the chip U1 and pin 29 of the chip U1 are both connected to the H-bridge driving circuit; The PD0-OSC_IN pin of the chip U1 and the PD1-OSC_OUT pin of the chip U1 are both connected to the external crystal oscillator circuit; The PB10 pin of the chip U1 is connected to the working indicator light circuit; Pin 37 of the chip U1 and pin 34 of the chip U1 are both connected to the debugging circuit; The PA2 pin of the chip U1 and the PA3 pin of the chip U1 are both connected to the network port to serial port circuit; The PA4 pin of the chip U1, the PA5 pin of the chip U1, the PA6 pin of the chip U1, the PA7 pin of the chip U1, the PB0 pin of the chip U1, the PB1 pin of the chip U1, the 40 pin of the chip U1, the 39 pin of the chip U1, the 28 pin of the chip U1, the 27 pin of the chip U1, the 26 pin of the chip U1 and the 25 pin of the chip U1 are all connected to the reserved pin circuit of the single-chip microcomputer; Pin 31 of the chip U1, pin 30 of the chip U1 and pin 28 of the chip U1 are all connected to the RS485 communication circuit; Pin 44 of the chip U1 is connected to one end of the resistor R1; the other end of the resistor R1 is grounded; The NRST pin of the chip U1 is connected to one end of the resistor R4; the other end of the resistor R4 is connected to a power supply; The PB2 pin of the chip U1 is connected to one end of the resistor R6; the other end of the resistor R6 is connected to a power supply; The PC13-TAMPER-RTC pin of the chip U1, the PC14-OSC32_IN pin of the chip U1, the PC15-OSC32_OUT pin of the chip U1, the VDDA pin of the chip U1, the PA0-WKUP pin of the chip U1, the PA1 pin of the chip U1, the PB11 pin of the chip U1, the 46 pin of the chip U1, the 45 pin of the chip U1, the 43 pin of the chip U1, the 42 pin of the chip U1, the 41 pin of the chip U1, the 38 pin of the chip U1, the 36 pin of the chip U1 and the 33 pin of the chip U1 are all open circuited.

4. The gamma debugging temperature control system based on single chip microcomputer PWM control according to claim 3 is characterized in that: The H-bridge driving circuit includes: an N-type field effect transistor N1, an N-type field effect transistor N2, a P-type field effect transistor P2, a P-type field effect transistor P3, a transistor Q1, a transistor Q2, a resistor R2, a resistor R3, a resistor R8, a resistor R9, a resistor R12, a resistor R13 and a TEC power supply port circuit; The first end of the resistor R3, the source of the P-type field effect transistor P2, the source of the P-type field effect transistor P3 and the first end of the resistor R2 are all connected to a power source; The second end of the resistor R3, the gate of the P-type field effect transistor P2, the collector of the transistor Q1 and the first end of the resistor R12 are connected; The second end of the resistor R12 is connected to the gate of the N-type field effect transistor N1; The base of the transistor Q1 is connected to the first end of the resistor R8; The second end of the resistor R8 is connected to the pin 32 of the chip U1; The second end of the resistor R2, the gate of the P-type field effect transistor P3, the emitter of the transistor Q2 and the first end of the resistor R13 are connected; The second end of the resistor R13 is connected to the gate of the N-type field effect transistor N2; The base of the transistor Q2 is connected to the first end of the resistor R9; The second end of the resistor R9 is connected to the pin 29 of the chip U1; The drain of the N-type field effect transistor N1, the drain of the N-type field effect transistor N2, the drain of the P-type field effect transistor P2 and the drain of the P-type field effect transistor P3 are all connected to the TEC power supply port circuit; The emitter of the transistor Q1 , the source of the N-type field effect transistor N1 , the source of the N-type field effect transistor N2 , and the collector of the transistor Q2 are all grounded.

5. The gamma debugging temperature control system based on single chip microcomputer PWM control according to claim 3 is characterized in that: The external crystal oscillator circuit includes: a resistor R5, a capacitor C6, a capacitor C7 and a crystal oscillator tube U2; The first end of the resistor R5, the first end of the capacitor C6 and the first end of the crystal oscillator U2 are all connected to the PD0-OSC_IN pin of the chip U1; The second end of the resistor R5, the first end of the capacitor C7 and the second end of the crystal oscillator U2 are all connected to the PD1-OSC_OUT pin of the chip U1; The second end of the capacitor C6 and the second end of the capacitor C7 are both grounded.

6. The gamma debugging temperature control system based on single chip microcomputer PWM control according to claim 3 is characterized in that: The working indicator light circuit comprises: a resistor R7 and a light emitting diode D1; The first end of the resistor R7 is connected to a power source; The second end of the resistor R7 is connected to the positive electrode of the light emitting diode D1; The cathode of the light emitting diode D1 is connected to the PB10 pin of the chip U1.

7. The gamma debugging temperature control system based on single chip microcomputer PWM control according to claim 3 is characterized in that: The debugging circuit includes: a chip P1 and a capacitor C1; The model of the chip P1 is Header4; Pin 1 of the chip P1 and the first end of the capacitor C1 are both connected to a power source; The second end of the capacitor C1 and the 4th pin of the chip P1 are both grounded; Pin 2 of the chip P1 is connected to pin 37 of the chip U1; Pin 3 of the chip P1 is connected to pin 34 of the chip U1.

8. The gamma debugging temperature control system based on single chip microcomputer PWM control according to claim 3 is characterized in that: The network port to serial port circuit includes: a chip U5 and a capacitor C14; The model of the chip U5 is USR-K7; Pin 11 of the chip U5 and the first end of the capacitor C14 are both connected to a power source; The second end of the capacitor C14 and the pin 10 of the chip U5 are both grounded; The first NC pin of the chip U5, the second NC pin of the chip U5, the CTS pin of the chip U5, the RST pin of the chip U5, the RTS pin of the chip U5, the Reload pin of the chip U5, the third NC pin of the chip U5, the 14th pin of the chip U5, the 13th pin of the chip U5 and the 12th pin of the chip U5 are all open circuited; Pin 9 of the chip U5 is connected to pin PA3 of the chip U1; Pin 8 of the chip U5 is connected to pin PA2 of the chip U1.

9. The gamma debugging temperature control system based on single chip microcomputer PWM control according to claim 3 is characterized in that: The single chip microcomputer reserved pin circuit includes: chip P6, resistor R14, resistor R10, resistor R15 and resistor R11; The model of the chip P6 is Header 7X2; The PA10 pin of the chip P6 is connected to the first end of the resistor R14; the second end of the resistor R14 is connected to the first end of the resistor R10; the second end of the resistor R10 is connected to the power supply; The PA11 pin of the chip P6 is connected to the first end of the resistor R15; the second end of the resistor R15 is connected to the first end of the resistor R11; the second end of the resistor R11 is connected to the power supply; The PB4 pin of the chip P6 is connected to the 40 pin of the chip U1; The PA4 pin of the chip P6 is connected to the PA4 pin of the chip U1; The PA5 pin of the chip P6 is connected to the PA5 pin of the chip U1; The PA6 pin of the chip P6 is connected to the PA6 pin of the chip U1; The PA7 pin of the chip P6 is connected to the PA7 pin of the chip U1; The PB0 pin of the chip P6 is connected to the PB0 pin of the chip U1; The PB1 pin of the chip P6 is connected to the PB1 pin of the chip U1; The PB15 pin of the chip P6 is connected to the 28 pin of the chip U1; The PB14 pin of the chip P6 is connected to the 27 pin of the chip U1; The PB13 pin of the chip P6 is connected to the 26 pin of the chip U1; The PB12 pin of the chip P6 is connected to the 25 pin of the chip U1; The PB3 pin of the chip P6 is connected to the 39 pin of the chip U1.

10. The gamma debugging temperature control system based on single chip microcomputer PWM control according to claim 3 is characterized in that: The RS485 communication circuit comprises: a chip P7; The model of the chip P7 is RSL83485; Pin 1 of the chip P7 is connected to pin 31 of the chip U1; Pin 2 of the chip P7 and pin 3 of the chip P7 are both connected to pin 28 of the chip U1; Pin 4 of the chip P7 is connected to pin 30 of the chip U1.