A photoelectric detection and control system
Through the combined neural network model of photoelectric detection temperature compensation unit and automatic gain control unit, the accuracy problem of photoelectric detection devices under the influence of temperature and noise is solved, the integration of photoelectric detection and control is realized, the detection accuracy and real-time data are improved, and remote control and multi-function processing are supported.
Patent Information
- Application Number
- CN202211532209.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-01
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2042-12-01
AI Technical Summary
The existing photoelectric detection devices lack the ability to send and save real-time data, and the detection accuracy is affected by temperature and noise, making it difficult to achieve integrated photoelectric detection and control.
The photoelectric detection temperature compensation unit and the automatic gain control unit are used, and nonlinear error compensation is performed in combination with the neural network model. Data processing is performed through the temperature acquisition module and the illuminance acquisition module, and real-time control and data storage are used to support Internet of Things communication.
It realizes the integration of photoelectric detection and control, improves detection accuracy, reduces noise errors, enhances real-time data and multi-function processing capabilities, and supports remote control and real-time data viewing.
Smart Images

Figure CN115855246B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of photoelectric detection and control, in particular to a photoelectric detection and control system. Background Art
[0002] Photoelectric detection technology is an emerging detection technology that combines optics and electronics. It primarily utilizes electronics to detect optical signals and further transmit, store, control, calculate, and display them. In principle, photoelectric detection technology can detect all non-electrical quantities that can affect the quantity and properties of light. It uses an optical system to convert the non-electrical information to be detected into easily receivable optical information. Photoelectric detection devices then convert the optical information into electrical quantities, which are then amplified and processed by circuits to produce electrical output signals.
[0003] Currently, the photoelectric detection devices available on the market are suitable for field testing, but the detected light data cannot be transmitted or stored in real time. Furthermore, existing control devices based on photoelectric detection devices are mainly large laboratory detection instruments and small portable detection devices. Although large laboratory detection instruments have high detection accuracy and strong computing power, their functional applicability is limited and their large size makes them difficult to carry. Small portable detection devices have weak detection accuracy and are also short on data storage and computing power. As the application of photoelectric detection becomes more and more extensive, embedded products that integrate photoelectric detection and photoelectric control are gradually becoming a development trend.
[0004] In theory, the optical signal and the electrical signal converted by the photoelectric detection device should exhibit a perfectly linear relationship. However, due to the influence of external noise within the photoelectric detection system, the measured electrical signal often fails to truly reflect the information carried by the optical signal. This external noise is external interference to the photoelectric detection system, including random fluctuations in the optical radiation source and additional optical modulation, turbulence and background fluctuations in the optical transmission medium, incident stray light, and electromagnetic interference within the detection system. Furthermore, the responsivity of the photoelectric detection device is significantly affected by the operating temperature. The performance of the photoelectric detection device varies with the operating temperature. Exceeding the temperature tolerance generally leads to a gradual degradation of the characteristics. The presence of errors caused by temperature and noise limits detection accuracy, creating a sharp conflict between system complexity and the precision of control technology. Therefore, temperature drift compensation must be implemented for relevant photoelectric detection systems to reduce noise-induced errors and improve photoelectric detection accuracy. Summary of the Invention
[0005] The purpose of the present invention is to provide a photoelectric detection and control system to realize the integration of photoelectric detection and photoelectric control while improving the photoelectric detection accuracy.
[0006] In order to achieve the above-mentioned purpose, the technical methods adopted by the present invention are as follows:
[0007] A photoelectric detection and control system comprises a light intensity acquisition module, a temperature acquisition module, a photoelectric detection module, a photoelectric control module and a power supply module, wherein the power supply module supplies power to the photoelectric detection module and the photoelectric control module; the photoelectric detection module comprises a photoelectric detection temperature compensation unit and an automatic gain control unit; the output end of the light intensity acquisition module is connected to the input end of the photoelectric detection temperature compensation unit, the output end of the photoelectric detection temperature compensation unit is connected to the input end of the automatic gain control unit, the automatic gain control unit is connected to the photoelectric control module in a two-way communication manner, and the output end of the temperature acquisition module is connected to the input end of the photoelectric control module.
[0008] As a limitation: the photoelectric detection and control system also includes a host computer, which is loaded with a trained neural network model. The photoelectric control module is connected to the host computer in a two-way communication manner. The photoelectric control module samples the voltage signal output by the automatic gain control unit and converts it into photocurrent data, which is then converted into illuminance data; the neural network model uses two input end nodes and one output end node, the two input end nodes are the photocurrent data output by the photoelectric control module and the temperature data output to the photoelectric control module by the temperature acquisition module, and one output end node is the illuminance; the neural network model is trained through temperature, photocurrent and calibrated illuminance, and nonlinear error compensation is performed on the photocurrent data output by the photoelectric control module and the temperature data output to the photoelectric control module by the temperature acquisition module.
[0009] As a further limitation: the illuminance acquisition module is a silicon photodiode, and the temperature acquisition module is a temperature sensor; the photoelectric detection temperature compensation unit includes a temperature compensation link, a transimpedance amplifier circuit and a positive and negative power supply circuit, the temperature compensation link includes a drift coefficient load resistor and a thermistor, the drift coefficient load resistor and the thermistor are connected in parallel to perform photocurrent shunting, the silicon photodiode collects illuminance and converts the illuminance into a current signal, and the current signal output end of the silicon photodiode is connected to the drift coefficient load resistor and the thermistor respectively; the transimpedance amplifier circuit includes a first operational amplifier chip, the feedback branch of the first operational amplifier chip is connected to a filter capacitor, and the feedback branch of the first operational amplifier chip is connected to a filter capacitor. A load amplifier resistor is connected to the upper portion for converting the current signal input to the first operational amplifier chip into a voltage signal. The current signal output end of the drift coefficient load resistor is connected to the current signal input end of the first operational amplifier chip, and the voltage signal output end of the first operational amplifier chip is connected to the voltage signal input end of the automatic gain control unit. The positive and negative power supply circuit includes two power conversion chips, one power conversion chip supplies positive power to the first operational amplifier chip, and the other power conversion chip supplies negative power to the first operational amplifier chip. The input end of each power conversion chip is connected to a capacitor as a decoupling capacitor, and the output filtering of each power conversion chip adopts an LC circuit.
[0010] As a further limitation: the automatic gain control unit includes a secondary operational amplifier circuit, a comparator and a positive and negative power supply circuit, the secondary operational amplifier circuit includes a second operational amplifier chip, a digital potentiometer for feeding back the feedback signal of the photoelectric control module is connected to the feedback branch of the second operational amplifier chip, a reverse end of the second operational amplifier chip is connected to a reverse end input resistor, the voltage signal output end of the first operational amplifier chip is connected to the voltage signal input end of the second operational amplifier chip, the voltage signal output end of the second operational amplifier chip is connected to the positive input end of the comparator, the threshold voltage signal output end of the photoelectric control module is connected to the negative input end of the comparator, and the comparator compares the numerical values of the positive output end and the negative input end signals and outputs a high-level signal The positive and negative power supply circuit includes two power conversion chips, one power conversion chip supplies positive power to the second operational amplifier chip, and the other power conversion chip supplies negative power to the second operational amplifier chip. The input end of each power conversion chip is connected to a capacitor as a decoupling capacitor, and the output filtering of each power conversion chip adopts an LC circuit.
[0011] As a further limitation: The calculation formula for the gain G of the secondary operational amplifier circuit is The magnification factor is R f is the resistance of the digital potentiometer, R i It is the reverse input resistor of the second operational amplifier chip, wherein the reverse input resistor is used to adjust the input load capacity and the amplification factor of the secondary operational amplifier circuit.
[0012] As a further limitation: the photoelectric control module includes a main control chip, a storage unit, a control button and a display unit; the A / D conversion channel of the main control chip is connected to the voltage signal output terminal of the second operational amplifier chip, and the feedback signal output terminal of the main control chip is connected to the feedback signal input terminal of the digital potentiometer; the main control chip uses a median filtering algorithm to perform noise reduction sampling on the voltage signal output by the second operational amplifier chip, and the main control chip is provided with a light intensity limit, a temperature limit, a voltage upper limit value and a threshold voltage, with 10% of the input upper limit of the A / D conversion channel serving as the threshold voltage of the main control chip, and 90% of the input upper limit of the A / D conversion channel serving as the voltage upper limit value of the main control chip; The threshold voltage output end of the main control chip is connected to the negative input end of the comparator; the output end of the temperature sensor is connected to the input end of the main control chip, the host computer and the main control chip are bidirectionally communicated, and the main control chip and the storage unit are bidirectionally communicated, and the storage unit is used to store temperature data and illuminance data transmitted to the main control chip; the buttons include a system reset button, an illuminance limit self-increasing button, an illuminance limit self-decreasing button and a storage unit read-write switching button, all of which are set on the main control chip; the output end of the main control chip is connected to the input end of the display unit, and the display unit is used to display the temperature data and illuminance data transmitted to the main control chip, as well as the temperature limit set in the main control chip.
[0013] As a further limitation: the photoelectric control module also includes an alarm unit, a first relay and a second relay. The alarm unit includes an LED light and a buzzer. The LED light and the buzzer are both connected to the output end of the main control chip. The output end of the main control chip is respectively connected to the input ends of the first relay and the second relay.
[0014] As a further limitation: the photoelectric control module also includes a communication unit, a cloud server and a mobile phone APP with an MQTT plug-in. The control main control chip is connected to the cloud server through the communication unit. The main control chip sends the temperature data and illuminance data transmitted to the main control chip to the cloud server through the communication unit. The cloud server is communicated with the mobile phone APP. The mobile phone APP is used to view the illuminance, temperature and set temperature limit, remotely control the opening of the first relay, the opening of the second relay, the closing of the first relay, the closing of the second relay, the reset of the system, the switching of the storage unit reading and writing, the automatic increase of the illuminance limit and the automatic decrease of the illuminance limit.
[0015] As a further limitation: the main control chip uses STM32F103ZET6, the main control chip runs the FreeRTOS operating system, and the FreeRTOS operating system is used to assign the priority of each task function.
[0016] As a further limitation: the neural network model includes two hidden layers, each with 25 neurons; the transfer function used by the neural network model is tansig, the training function is trainscg, and the error performance function is mes.
[0017] Due to the adoption of the above solution, the present invention has the following beneficial effects compared with the prior art:
[0018] The present invention provides a photoelectric detection and control system, which, by providing a photoelectric detection temperature compensation unit and an automatic gain control unit, not only ensures that the error of photoelectric detection under the influence of temperature noise is minimized, but also ensures stable signal output of photoelectric detection under different environments; temperature compensation is based on a drift coefficient load resistor and a thermistor connected in parallel to perform photocurrent shunting, which can make the current signal of the silicon photodiode output signal consistent in different environments, thereby reducing the complexity of the circuit to a certain extent; by providing a photoelectric control module, it supports functions such as key control, Internet of Things wireless communication technology, data storage and expansion control, thereby ensuring the multifunctional processing of light data and the accuracy of photoelectric detection under different environments. At the same time, the data can be viewed in real time through a mobile phone APP, and the relevant control functions of the system can be remotely controlled; the main control chip collects voltage signals through a median filtering algorithm, effectively eliminating excessively high or low signal noise; the photocurrent data is nonlinearly compensated through a trained neural network model, further reducing the error influence of temperature noise on the light data; and by using the FreeRTOS operating system to concurrently process multiple tasks, the real-time performance of the data is greatly enhanced.
[0019] The present invention is suitable for photoelectric detection and control. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
[0021] Figure 1 This is a structural block diagram of a photoelectric detection and control system according to an embodiment of the present invention;
[0022] Figure 2 This is a schematic diagram of a circuit for photoelectric detection according to an embodiment of the present invention;
[0023] In the figure: 1. Photoelectric detection module; 2. Photoelectric detection temperature compensation unit; 3. Automatic gain control unit; 4. Temperature compensation link; 5. Photoelectric control module. DETAILED DESCRIPTION
[0024] The present invention will be further described below with reference to the following embodiments. However, those skilled in the art should understand that the present invention is not limited to the following embodiments, and any improvements and equivalent changes made based on the specific embodiments of the present invention are within the scope of protection of the claims of the present invention.
[0025] Embodiment A photoelectric detection and control system
[0026] A photoelectric detection and control system, its structural block diagram is as follows Figure 1 As shown, it includes an illuminance acquisition module, a temperature acquisition module, a photoelectric detection module 1, a photoelectric control module 5, a host computer and a power supply module, and the power supply module supplies power to the photoelectric detection module 1 and the photoelectric control module 5; the photoelectric detection module 1 includes a photoelectric detection temperature compensation unit 2 and an automatic gain control unit 3; the photoelectric control module 5 includes a main control chip, a storage unit, a control button, a display unit, an alarm unit, a first relay, a second relay, a communication unit, a cloud server and a mobile phone APP with an MQTT plug-in; the photoelectric detection temperature compensation unit 2 includes a temperature compensation link 4, a transimpedance amplifier circuit and a positive and negative power supply circuit, the temperature compensation link 4 includes a drift coefficient load resistor and a thermistor, and the drift coefficient load resistor and the thermistor are connected in parallel to perform photocurrent shunting; the automatic gain control unit 3 includes a secondary operational amplifier circuit, a comparator and a positive and negative power supply circuit, and the automatic gain control unit 3 shares a positive and negative power supply circuit with the photoelectric detection temperature compensation unit 2. The positive and negative power supply circuit includes two power conversion chips, one power conversion chip supplies positive power to the first operational amplifier chip and the second operational amplifier chip, and the other power conversion chip supplies negative power to the first operational amplifier chip and the second operational amplifier chip. The input end of each power conversion chip is connected to a capacitor as a decoupling capacitor, and the output filtering of each power conversion chip adopts an LC circuit.
[0027] The circuit diagram of photoelectric detection is as follows Figure 2 As shown, the silicon photodiode collects light intensity and converts it into a current signal. Figure 2 APD-OUT represents a silicon photodiode. The current signal output end of the silicon photodiode is connected to the drift coefficient load resistor and the thermistor respectively. Figure 2 R0 represents the drift coefficient load resistance, R M represents a thermistor; the transimpedance amplifier circuit includes a first operational amplifier chip, a filter capacitor is connected to the feedback branch of the first operational amplifier chip, and a load amplifier resistor is connected to the feedback branch of the first operational amplifier chip for converting a current signal input to the first operational amplifier chip into a voltage signal. Figure 2 Medium R loadrepresents the load amplification resistor in the transimpedance amplifier circuit, and the current signal output end of the drift coefficient load resistor is connected to the voltage signal input end of the first operational amplifier chip; the secondary operational amplifier circuit includes a second operational amplifier chip, and the voltage signal output end of the first operational amplifier chip is connected to the voltage signal input end of the second operational amplifier chip. A digital potentiometer for feeding back the feedback signal of the photoelectric control module 5 is connected to the feedback branch of the second operational amplifier chip, and a reverse end input resistor is connected to the reverse end of the second operational amplifier chip. Figure 2 R in i Represents the reverse input resistance; the calculation formula of the gain G of the secondary operational amplifier circuit is
[0028] The magnification factor is R f is the resistance of the digital potentiometer, R iThe reverse input resistor of the second operational amplifier chip is used to adjust the load capacity of the input and the amplification factor of the secondary operational amplifier circuit; the voltage signal output terminal of the second operational amplifier chip is connected to the positive input terminal of the comparator, the threshold voltage signal output terminal of the main control chip is connected to the negative input terminal of the comparator, the comparator compares the numerical values of the positive output terminal and the negative input terminal signals and outputs a high level signal or a low level signal, the level signal output terminal of the comparator is connected to the level signal input terminal of the main control chip, the feedback signal output terminal of the main control chip is connected to the feedback signal input terminal of the digital potentiometer, and the feedback signal of the digital potentiometer is connected to the feedback signal input terminal of the digital potentiometer. The signal output end is connected to the feedback signal input end of the second operational amplifier chip, and the A / D conversion channel of the main control chip is connected to the voltage signal output end of the second operational amplifier chip; the main control chip samples the voltage signal output by the second operational amplifier chip and converts it into photocurrent data, and then converts it into illuminance data through the comparison function of the photocurrent and illuminance of the silicon photodiode; the main control chip adopts the median filtering algorithm to sample the voltage signal output by the second operational amplifier chip; the main control chip is provided with illuminance limit, temperature limit and voltage limit; the output end of the temperature sensor is connected to the input end of the main control chip through the digital signal input line, and the host computer is connected to the main control chip. The main control chip is connected via a USB serial port, and the main control chip and the storage unit are connected via an SPI bus. The storage unit is used to store the temperature data and illuminance data transmitted to the main control chip. The buttons include a system reset button, an illuminance limit self-increasing button, an illuminance limit self-decreasing button, and a storage unit read-write switching button, all of which are set on the main control chip. The IO port of the main control chip is connected to the input end of the display unit. The display unit is used to display the temperature data and illuminance data transmitted to the main control chip, as well as the temperature limit set in the main control chip. The alarm unit includes an LED light and a buzzer. The IO port of the main control chip is connected to the LED light and the buzzer. The main control chip The output end is connected to the input end of the first relay and the second relay respectively, and the control main control chip is connected to the cloud server through the communication unit. The main control chip sends the temperature data and illuminance data transmitted to the main control chip to the cloud server through the communication unit. The main control chip and the communication unit are connected through a serial port bus. The cloud server is connected to the mobile phone APP for communication. The mobile phone APP is used to view the illuminance, temperature and set temperature limit, and remotely control the opening of the first relay, the opening of the second relay, the closing of the first relay, the closing of the second relay, the reset of the system, the switching of the storage unit reading and writing, the automatic increase of the illuminance limit and the automatic decrease of the illuminance limit.
[0029] A trained neural network model is loaded in the host computer. The neural network model uses two input nodes and one output node. The two input nodes are the photocurrent data output by the main control chip and the temperature data output by the temperature acquisition module to the main control chip. One output node is the illuminance. The neural network model also includes two hidden layers, each with 25 neurons; the transfer function used by the neural network model is tansig, the training function is trainscg, and the error performance function is mes; the neural network model is trained through temperature, photocurrent and calibrated illuminance, and performs nonlinear error compensation on the photocurrent data output by the main control chip and the temperature data output by the temperature acquisition module to the main control chip.
[0030] The neural network model selects 100 data points at intervals of illuminance 1500Lux-2500Lux and temperatures of 10℃, 15℃, 20℃, 25℃, and 30℃, respectively; 100 data points at intervals of illuminance 10Lux-100Lux and temperatures of 10℃, 15℃, 20℃, 25℃, and 30℃, respectively; 150 data points are selected from the extended time from 1500Lux-2500Lux to 10Lux-100Lux and at intervals of 15℃, 20℃, 25℃, and 30℃ as training samples, set the learning rate to 0.05, and set the number of learning times to 1000; the validation data set is added for verification, and the mean square error between the illuminance output by the neural network surface model and the actual illuminance is 0.0000433.
[0031] In this embodiment, the first relay and the second relay serve as a control switch based on light intensity, and can serve as a basic circuit board for other functional circuits based on the circuit control board of this embodiment, facilitating subsequent expansion and development of other control functions.
[0032] In this embodiment, the power supply module adopts a 7.4V, 4000mA lithium battery pack, the light intensity acquisition module is a silicon photodiode, which is suitable for visible light wavelengths of 320nm-780nm, infrared suppression, dark current of 10nA, and spectrum response maximum peak wavelength of 525nm; the temperature acquisition module is a temperature sensor, which adopts a DS18B20 digital temperature sensor, the first operational amplifier chip adopts AD825, and the bias current is 15pA; the second operational amplifier chip adopts OPA657, the digital circuit adopts X9C104, and the comparator adopts LM339. The power conversion chip uses TPS5430, which has single power input and dual power output. The output voltage of the power conversion chip is determined by the output resistance of the VSNS pin of the power conversion chip; the display unit uses LCD1602 display liquid crystal screen, the storage unit uses W25Q64 storage chip, and the communication unit uses ESP-01S wireless communication module; the main control chip uses STM32F103ZET6, and the main control chip runs the FreeRTOS operating system, which uses the FreeRTOS operating system to assign the priority of each task function; the neural network model uses BP neural network.
[0033] The specific process of photoelectric detection and control is:
[0034] The silicon photodiode collects light intensity, converts the light intensity into a corresponding current signal, and performs current shunting through the thermistor and the drift coefficient load resistor. The current signal passing through the low-temperature drift coefficient resistor is converted into a voltage signal through the transimpedance amplifier circuit and amplified to obtain the primary amplified voltage signal. The primary amplified voltage signal enters the automatic control gain unit and is amplified by the secondary operational amplifier circuit. The secondary amplified voltage signal is input to the positive input terminal of the comparator, and the threshold voltage set by the main control chip is input to the negative input terminal of the comparator. The comparator compares the secondary amplified voltage signal with the threshold voltage of the main control chip and outputs a high level signal or a low level signal to the main control chip. The main control chip determines whether to sample the secondary amplified voltage signal based on the level signal. If the secondary amplified voltage signal is sampled, the comparator outputs a high level signal or a low level signal to the main control chip. The amplified voltage signal is sampled, and the main control chip compares the sampled voltage signal with the voltage upper limit value of the A / D conversion channel of the main control chip. The main control chip outputs the corresponding control signal to the digital potentiometer according to the comparison result to adjust the resistance of the digital potentiometer; 10% of the input upper limit of the A / D conversion channel is used as the threshold voltage of the main control chip, and 90% of the input upper limit of the A / D conversion channel is used as the voltage upper limit value of the main control chip; the main control chip samples the secondary amplified voltage signal through the A / D conversion channel, and the collected voltage signal is converted into the corresponding digital quantity by the internal arithmetic unit of the main control chip. According to the ratio of the digital quantity to the maximum value of the digital quantity of the A / D conversion channel is equal to the ratio of the collected voltage signal to the A / D collection voltage upper limit value, the real voltage signal size can be obtained. The formula ADC represents the conversion of the voltage value sampled by the main control chip into the corresponding digital value, V in2 Represents the voltage value sampled by the main control chip. 4095 is the maximum value of the AD sampling accuracy of the main control chip. V ref The maximum voltage sampled by the main control chip AD; according to the gain of the secondary operational amplifier circuit, the amplified voltage signal after the transimpedance amplifier circuit can be obtained, and then according to the size of the load amplifier resistor in the transimpedance amplifier circuit, the photocurrent size after photoelectric conversion can be obtained. In the formula, V in1 is the voltage signal amplified by the transimpedance amplifier circuit, R load is the load amplifier resistance in the transimpedance amplifier circuit, I current is the photocurrent after photoelectric conversion; the main control chip obtains the illuminance through the comparison function of the photocurrent and illuminance of the silicon photodiode; the temperature sensor collects temperature information and uploads it to the main control chip; when the system reset button on the main control chip is pressed, the photoelectric control module 5 is reset, the communication unit reconnects to the cloud server, and re-performs photoelectric detection; when the illuminance limit self-increase button is pressed, the set illuminance limit is increased; when the illuminance limit self-decrease button is pressed, the set illuminance limit is reduced; when the memory read-write switch button is pressed, the storage unit switches the read-write state If it is switched to the write state, the illuminance data is stored, and the display unit displays the illuminance data, temperature data and temperature limit; if it is switched to the read state, the main control chip is connected to the host computer, and the data is viewed through the host computer or the photocurrent data and temperature data are input into the neural network model for nonlinear error compensation, and the illuminance is output to the main control chip. At this time, the display unit no longer displays the data, but displays the prompt word of reading the data. Other functional units suspend work and switch to the write state. Each functional unit restores the default working state, and the storage unit stores data. The main control chip uploads the light intensity data and temperature data to the cloud server through the communication unit, and then displays the data in the mobile phone APP through the cloud server. The mobile phone APP is used to view the light intensity, temperature and the set temperature limit, and remotely control the opening of the first relay, the opening of the second relay, the closing of the first relay, the closing of the second relay, the reset of the system, the switching of the storage unit reading and writing, the self-increment of the light intensity limit and the self-decrement of the light intensity limit; the main control chip compares the actual light intensity data with the set light intensity limit. If the actual light intensity data is greater than the set light intensity limit, the buzzer alarms and the LED starts flashing. At the same time, the first relay starts to connect the normally closed contact and the second relay connects the normally open contact; when the actual light intensity data is less than the set light intensity limit, the buzzer stops alarming, the LED stops flashing, the second relay starts to connect the normally closed contact, and the first relay connects the normally open contact. Finally, according to the information returned by the communication unit that the data is sent successfully, the light intensity data and temperature data are stored.
Claims
1. A photoelectric detection and control system, characterized in that: The system includes an illumination acquisition module, a temperature acquisition module, a photoelectric detection module, a photoelectric control module, a power supply module and a host computer. The power supply module supplies power to the photoelectric detection module and the photoelectric control module. The photoelectric detection module includes a photoelectric detection temperature compensation unit and an automatic gain control unit. The output end of the illumination acquisition module is connected to the input end of the photoelectric detection temperature compensation unit, the output end of the photoelectric detection temperature compensation unit is connected to the input end of the automatic gain control unit, the automatic gain control unit is connected to the photoelectric control module in a two-way communication manner, and the output end of the temperature acquisition module is connected to the input end of the photoelectric control module. The host computer is loaded with a trained neural network model. The module is connected to the host computer through two-way communication. The photoelectric control module samples the voltage signal output by the automatic gain control unit and converts it into photocurrent data, which is then converted into illuminance data. The neural network model uses two input nodes and one output node. The two input nodes are the photocurrent data output by the photoelectric control module and the temperature data output by the temperature acquisition module to the photoelectric control module, and the output node is the illuminance. The neural network model is trained through temperature, photocurrent and calibrated illuminance, and nonlinear error compensation is performed on the photocurrent data output by the photoelectric control module and the temperature data output by the temperature acquisition module to the photoelectric control module.
2. A photoelectric detection and control system according to claim 1, characterized in that: The illuminance acquisition module is a silicon photodiode, and the temperature acquisition module is a temperature sensor; the photoelectric detection temperature compensation unit includes a temperature compensation link, a transimpedance amplifier circuit and a positive and negative power supply circuit. The temperature compensation link includes a drift coefficient load resistor and a thermistor. The drift coefficient load resistor and the thermistor are connected in parallel to perform photocurrent shunting. The silicon photodiode collects illuminance and converts it into a current signal. The current signal output end of the silicon photodiode is connected to the drift coefficient load resistor and the thermistor respectively; the transimpedance amplifier circuit includes a first operational amplifier chip, a filter capacitor is connected to the feedback branch of the first operational amplifier chip, and a filter capacitor is connected to the feedback branch of the first operational amplifier chip. A load amplification resistor is used to convert the current signal input to the first operational amplifier chip into a voltage signal. The current signal output end of the drift coefficient load resistor is connected to the current signal input end of the first operational amplifier chip, and the voltage signal output end of the first operational amplifier chip is connected to the voltage signal input end of the automatic gain control unit. The positive and negative power supply circuit includes two power conversion chips, one power conversion chip supplies positive power to the first operational amplifier chip, and the other power conversion chip supplies negative power to the first operational amplifier chip. The input end of each power conversion chip is connected to a capacitor as a decoupling capacitor, and the output filtering of each power conversion chip adopts an LC circuit.
3. A photoelectric detection and control system according to claim 2, characterized in that: The automatic gain control unit includes a secondary operational amplifier circuit, a comparator and a positive and negative power supply circuit. The secondary operational amplifier circuit includes a second operational amplifier chip. A digital potentiometer for feeding back the feedback signal of the photoelectric control module is connected to the feedback branch of the second operational amplifier chip. The reverse end of the second operational amplifier chip is connected to a reverse end input resistor. The voltage signal output end of the first operational amplifier chip is connected to the voltage signal input end of the second operational amplifier chip. The voltage signal output end of the second operational amplifier chip is connected to the positive input end of the comparator. The threshold voltage signal output end of the photoelectric control module is connected to the negative input end of the comparator. The comparator compares the numerical values of the positive output end and the negative input end signals and outputs a high level signal or a low level signal. The level signal is connected to the level signal input terminal of the photoelectric control module, the feedback signal output terminal of the photoelectric control module is connected to the feedback signal input terminal of the digital potentiometer, the feedback signal output terminal of the digital potentiometer is connected to the feedback signal input terminal of the second operational amplifier chip, and the sampling input terminal of the photoelectric control module is connected to the voltage signal output terminal of the second operational amplifier chip; the positive and negative power supply circuit includes two power conversion chips, one power conversion chip supplies positive power to the second operational amplifier chip, and the other power conversion chip supplies negative power to the second operational amplifier chip. The input terminal of each power conversion chip is connected to a capacitor as a decoupling capacitor, and the output filtering of each power conversion chip adopts an LC circuit.
4. A photoelectric detection and control system according to claim 3, characterized in that: The calculation formula for the gain G of the secondary operational amplifier circuit is: , where the magnification is , is the resistance value of the digital potentiometer, It is the reverse input resistor of the second operational amplifier chip, wherein the reverse input resistor is used to adjust the input load capacity and the amplification factor of the secondary operational amplifier circuit.
5. A photoelectric detection and control system according to claim 4, characterized in that: The photoelectric control module includes a main control chip, a storage unit, a control button and a display unit; the A / D conversion channel of the main control chip is connected to the voltage signal output terminal of the second operational amplifier chip, and the feedback signal output terminal of the main control chip is connected to the feedback signal input terminal of the digital potentiometer; the main control chip uses a median filtering algorithm to perform noise reduction sampling on the voltage signal output by the second operational amplifier chip. The main control chip is provided with an illumination limit, a temperature limit, a voltage upper limit and a threshold voltage. 10% of the input upper limit of the A / D conversion channel is used as the threshold voltage of the main control chip, and 90% of the input upper limit of the A / D conversion channel is used as the voltage upper limit of the main control chip; the main chip The threshold voltage output end of the temperature sensor is connected to the negative input end of the comparator; the output end of the temperature sensor is connected to the input end of the main control chip, the host computer and the main control chip are bidirectionally communicated, the main control chip and the storage unit are bidirectionally communicated, and the storage unit is used to store temperature data and illuminance data transmitted to the main control chip; the buttons include a system reset button, an illuminance limit self-increasing button, an illuminance limit self-decreasing button and a storage unit read-write switching button, all of which are set on the main control chip; the output end of the main control chip is connected to the input end of the display unit, and the display unit is used to display the temperature data and illuminance data transmitted to the main control chip, as well as the temperature limit set in the main control chip.
6. A photoelectric detection and control system according to claim 5, characterized in that: The photoelectric control module also includes an alarm unit, a first relay and a second relay. The alarm unit includes an LED light and a buzzer. The LED light and the buzzer are both connected to the output end of the main control chip. The output end of the main control chip is respectively connected to the input ends of the first relay and the second relay.
7. A photoelectric detection and control system according to claim 6, characterized in that: The photoelectric control module also includes a communication unit, a cloud server and a mobile phone APP with an MQTT plug-in. The control main control chip is connected to the cloud server through the communication unit. The main control chip sends the temperature data and illuminance data transmitted to the main control chip to the cloud server through the communication unit. The cloud server is connected to the mobile phone APP for communication. The mobile phone APP is used to view the illuminance, temperature and set temperature limit, remotely control the opening of the first relay, the opening of the second relay, the closing of the first relay, the closing of the second relay, the reset of the system, the switching of the storage unit reading and writing, the automatic increase of the illuminance limit and the automatic decrease of the illuminance limit.
8. A photoelectric detection and control system according to any one of claims 5 to 7, characterized in that: The main control chip uses STM32F103ZET6, and the main control chip runs the FreeRTOS operating system, which uses the FreeRTOS operating system to assign the priority of each task function.
9. A photoelectric detection and control system according to any one of claims 1 to 7, characterized in that: The neural network model includes two hidden layers, each with 25 neurons; the transfer function used by the neural network model is tansig, the training function is trainscg, and the error performance function is mes.
Citation Information
Patent Citations
Detecting circuit for light intensity
CN102788641A
Optical signal collection system
CN103644926A