A circuit for rapid detection of pesticide residues in tea leaves

By combining an STM32 microcontroller and a multispectral sensor, the complexity and high cost of pesticide residue detection in tea have been solved, enabling rapid and accurate pesticide residue detection, which is suitable for tea quality control.

CN225031882UActive Publication Date: 2026-11-27JIANGXI AGRICULTURAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202522363106.4
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-11-07
Publication Date
2026-11-27
Estimated Expiration
2035-11-07

AI Technical Summary

Technical Problem

Existing methods for detecting pesticide residues in tea are complex, expensive, and require skilled operation, making it difficult to achieve rapid and accurate detection.

Method used

Using an STM32 microcontroller combined with a three-chip AS7265x multispectral sensor and a wireless transmission module, the rapid detection of pesticide residues in tea is achieved through spectral data acquisition and processing. This includes a 12V light source driving circuit, touch screen interaction, and WIFI wireless transmission.

Benefits of technology

It achieves low-cost, fast, stable, and real-time accurate detection of pesticide residues in tea, improving efficiency by 10 times, and is suitable for data transmission in multiple scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN225031882U_ABST
    Figure CN225031882U_ABST
Patent Text Reader

Abstract

The utility model belongs to tea pesticide residue rapid detection technical field relates to a circuit for pesticide residue rapid detection in tea. The circuit includes relay, 12V light source drive circuit, 12V halogen lamp, 3.3V voltage reducing stabilizing circuit, spectral data acquisition circuit, STM32 microcontroller, touch screen interaction, USB serial port circuit, key input and WIFI wireless transmission module. The STM32 microcontroller passes through the relay control 12V light source drive circuit drive 12V halogen lamp work, after light source stabilization, control spectral data acquisition circuit gathers spectral information. The STM32 microcontroller adopts STM32H750VBT6 as core controller, spectral data acquisition circuit adopts three AS7265x series sensors, sensor built-in integrated gaussian filter's CMOS chip, combines the precise light hole design, effectively suppresses stray light interference. The utility model has the advantages of low cost, fast detection, supports wireless transmission, is suitable for the online real -time monitoring of tea pesticide residue.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model belongs to the field of rapid detection technology of pesticide residues in tea, and relates to a circuit for rapid detection of pesticide residues in tea. Background Technology

[0002] Tea, as a healthy beverage, is favored by consumers worldwide. Chemical pesticides, due to their effective insecticidal and herbicide properties, are widely used in tea cultivation. However, improper use of chemical pesticides can easily lead to excessive pesticide residues in tea, affecting consumer health and hindering tea export trade. Therefore, quickly, accurately, and in real-time monitoring of pesticide residue levels in tea is crucial for ensuring tea quality and safety.

[0003] Current methods for analyzing pesticide residues in tea often suffer from limitations such as complex pretreatment steps, expensive equipment requirements, and reliance on skilled operators. Therefore, this invention designs a circuit for rapid detection of pesticide residues in tea. This circuit boasts advantages such as low cost, rapid detection, long service life, stable operation, and real-time accurate data transmission. It can effectively monitor pesticide residue levels in tea, meeting practical production needs and showing promising application prospects. Utility Model Content

[0004] To address the aforementioned problems, this invention primarily provides a circuit for the rapid detection of pesticide residues in tea.

[0005] The principle of this invention is that different pesticide molecules in the pretreated tea sample have different absorption characteristics at a specific wavelength.

[0006] This invention involves collecting data through experiments, processing the collected data to build a model, and then porting the model to an STM32 microcontroller. In practical applications, predictions are made based on data measured by the spectral acquisition circuit to determine the types and concentrations of pesticide residues in the currently monitored sample.

[0007] To achieve the objectives of this utility model, the following technical solution is adopted:

[0008] A circuit for rapid detection of pesticide residues in tea is disclosed. This circuit is used for online detection of pesticide residue data in tea samples. It includes a relay, a 12V light source driving circuit, a 12V halogen lamp, a 3.3V step-down regulator circuit, a spectral data acquisition circuit, an STM32 microcontroller, a touchscreen interface, a USB-to-serial converter circuit, button input, and Wi-Fi wireless transmission. The STM32 microcontroller controls the 12V light source driving circuit to illuminate the 12V halogen lamp via the relay. After the light source stabilizes, it controls the spectral data acquisition circuit to acquire spectral information. The 12V light source driving circuit is connected to the 3.3V step-down regulator circuit. The 3.3V step-down regulator circuit is connected to the STM32 microcontroller. The touchscreen interface is connected to the STM32 microcontroller. The USB-to-serial converter circuit is connected to the STM32 microcontroller. The button input is connected to the STM32 microcontroller. The Wi-Fi wireless transmission is connected to the STM32 microcontroller.

[0009] The 12V light source driving circuit lights up the 12V halogen lamp after the relay receives the signal from the STM32 microcontroller. After the light source stabilizes, the STM32 microcontroller controls the spectral data acquisition circuit to acquire spectral information. The acquired signal is then processed by the STM32 microcontroller.

[0010] The 3.3V step-down voltage regulator circuit first steps down the 12V light source driver circuit to 5V, and then stabilizes the 5V voltage to 3.3V through the voltage regulator chip, providing the required voltage for other circuits.

[0011] The spectral data acquisition circuit uses a three-chip AS7265x multispectral sensor chipset to acquire spectral data. This chipset consists of three independent spectral sensors: AS72651, AS72652, and AS72653. The AS72651 serves as the main controller for the three chips, and its RX and TX pins are connected to the PB6 and PB7 pins of the STM32 microcontroller. The STM32 microcontroller connects via I / O... 2 C1 receives the data acquired by the spectral data acquisition circuit; at the same time, the RESN and INT pins of the spectral data acquisition circuit are connected to the PC4 and PC5 pins of the STM32 microcontroller.

[0012] The touchscreen interaction is connected to the serial port 2 of the STM32 microcontroller via the RX and TX pins, realizing bidirectional communication between the touchscreen interaction and the STM32 microcontroller. The user selects the detection object and starts the detection through the touchscreen, and the detection result is displayed on the touchscreen after the detection is completed.

[0013] The USB-to-serial circuit is connected to the STM32 microcontroller via pins PA9 and PA10. The USB-to-serial circuit can quickly and stably transmit data to the host computer and realize data visualization.

[0014] The button inputs are connected to the STM32 microcontroller via pins PA4, PA5, PA6, and PA7. Users can select the detection object and start the detection by pressing the buttons. The button signals are detected and responded to by the STM32 microcontroller in real time, ensuring the immediacy and reliability of the operation.

[0015] The WIFI wireless transmission is connected to the PA9 and PA10 pins of the STM32 microcontroller via RXD0 and TXD0, enabling wireless uploading and remote monitoring of detection data.

[0016] Preferably, the STM32 microcontroller uses a 32-bit STM32H750VBT6 microcontroller with an ARM Cortex-M7 core as the core controller, with a working frequency of up to 480MHz. In the STM32 minimum system part, the main frequency is provided by an external high-speed clock, and a 25 MHz quartz crystal oscillator is connected to pins 12 and 13.

[0017] Preferably, the spectral data acquisition circuit employs a three-chip AS7265x multispectral sensor. This chipset consists of three independent spectral sensors, AS72651, AS72652, and AS72653, each measuring only 4.5mm × 4.4mm × 2.5mm in a compact LGA package. These three sensors directly integrate Gaussian filters onto a standard CMOS chip, and a precise aperture design controls the light entering the sensor array, effectively suppressing stray light interference. Its spectral response range is 410–940 nm, with a full width at half maximum (FWHM) of approximately 20 nm for each channel. It provides 18 independent channels with wavelength center points of 410, 435, 460, 485, 510, 535, 560, 585, 610, 645, 680, 705, 730, 760, 810, 860, 900, and 940 nm.

[0018] In summary, the beneficial effects of this utility model are:

[0019] 1. The circuit uses a three-chip AS7265x multispectral sensor to collect spectral data and uses an STM32H750VBT6 for data processing. It can complete the process from sampling to result output within 10 minutes, which is more than 10 times more efficient than traditional laboratory testing.

[0020] 2. The circuit has a reliable data transmission system, and the dual-mode transmission solution of WIFI wireless and wired backup meets different scenarios. Attached Figure Description

[0021] Figure 1 This is the overall circuit design diagram for the rapid detection of pesticide residues in tea according to this utility model.

[0022] Figure 2 This is the overall circuit schematic diagram of the present invention for rapid detection of pesticide residues in tea.

[0023] In the diagram: 1. Relay; 2. 12V light source drive circuit; 3. 12V halogen lamp; 4. 3.3V step-down regulator circuit; 5. Spectral data acquisition circuit; 6. STM32 microcontroller; 7. Touch screen interaction; 8. USB to serial port circuit; 9. Button input; 10. WIFI wireless transmission. Detailed Implementation

[0024] Now combined with the appendix Figure 1 —2. The embodiments of the present invention are described in detail, and the present invention is further described in detail.

[0025] Unless otherwise specified, the term “connection” used in the textual description herein should be interpreted in its broad sense. For example, “connection” in this text can be understood as the connection between circuits or between electronic components, achieving a direct electrical connection between them. If the above interpretation of the term is not understood, its specific meaning can be understood according to the specific context in which the term is used in this text.

[0026] The relay 1 is an HK4100F, used to control the on / off state of the 12V halogen lamp 3, and to achieve precise control of the light source in conjunction with the timing of spectral data acquisition.

[0027] The 12V light source driving circuit 2 is powered by a 12V voltage and uses an LM2596-12 voltage regulator module to stabilize the input voltage to 12V, ensuring that the halogen lamp's operating voltage is constant and avoiding changes in light source intensity due to voltage fluctuations, which would affect the accuracy of spectral acquisition.

[0028] The 12V halogen lamp 3 uses an OSRAM 12V 10W halogen light source, which has a stable and continuous spectral output covering the 380-2500nm wavelength band, and can effectively excite the characteristic absorption peaks of pesticide molecules in the sample.

[0029] The 3.3V step-down regulator circuit 4 uses an LM2596-5 module to step down the 12V voltage to 5V, and then converts it to 3.3V through an AMS1117-3.3 regulator chip to provide a stable power supply for the main control chip, sensors and communication modules.

[0030] The spectral data acquisition circuit 5 uses three AS7265x spectral sensors cascaded on an I²C bus to achieve multi-channel synchronous sampling. The sampled data is transmitted to the STM32 microcontroller through the I²C interface.

[0031] The STM32 microcontroller 6 downloads the spectral data acquisition program to the STM32H750VBT6 microcontroller via pins PA13 and PA14, enabling the acquisition of spectral data from 18 channels of tea samples, thus obtaining spectral data for different pesticide contents in the tea samples. Based on the acquired spectral data, the system uses an imported model to quantitatively analyze the pesticide residues in the tea.

[0032] The touchscreen interaction 7 uses a 4.3-inch TFT capacitive touchscreen, which supports multi-touch and graphical interface operation. Users can select the type of pesticide to be detected on the touchscreen, click to confirm the detection, and the detection result will be displayed after the detection is completed.

[0033] The USB-to-serial circuit 8 uses the CH340N chip, which is a USB bus adapter chip. This chip can realize USB-to-serial conversion and transmit signals to the host computer.

[0034] The button input 9 uses a membrane switch button, which is waterproof and dustproof, and has a reasonable layout, making it easy for users to quickly complete operations such as pesticide selection and confirmation during the testing process.

[0035] The WIFI wireless transmission 10 uses an ESP8266 module, and its working mode is configured through AT commands to realize wireless communication between the detection data and the cloud server.

[0036] The embodiments described above with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention. For those skilled in the art, modifications and parameter substitutions can be made to these embodiments without departing from the principles and spirit of the present invention. The scope of the present invention is determined by the appended claims and their equivalents.

Claims

1. A circuit for rapid detection of pesticide residues in tea, used for online detection of pesticide residue data in tea, comprising a relay (1), a 12V light source driving circuit (2), a 12V halogen lamp (3), a 3.3V step-down regulator circuit (4), a spectral data acquisition circuit (5), an STM32 microcontroller (6), a touch screen interaction (7), a USB to serial port circuit (8), a key input (9), and WIFI wireless transmission (10); the STM32 microcontroller (6) controls the 12V light source driving circuit (2) to light up the 12V halogen lamp (3) through the relay (1), and controls the spectral data acquisition circuit (5) to acquire spectral information after the light source stabilizes; the 12V light source driving circuit (2) is connected to the 3.3V step-down regulator circuit (4); the 3.3V step-down regulator circuit (4)... The V step-down regulator circuit (4) is connected to the STM32 microcontroller (6); the touch screen interaction (7) is connected to the STM32 microcontroller (6); the USB to serial port circuit (8) is connected to the STM32 microcontroller (6); the key input (9) is connected to the STM32 microcontroller (6); the WIFI wireless transmission (10) is connected to the STM32 microcontroller (6); the 12V light source driving circuit (2) lights up the 12V halogen lamp (3) after the relay (1) receives the signal from the STM32 microcontroller (6); after the light source is stable, the STM32 microcontroller (6) controls the spectral data acquisition circuit (5) to acquire spectral information; the acquired signal enters the STM32 microcontroller (6) for processing.

2. The circuit for rapid detection of pesticide residues in tea according to claim 1, characterized in that, The 3.3V step-down voltage regulator circuit (4) first steps down the 12V light source driving circuit (2) to 5V, and then stabilizes the 5V voltage to 3.3V through the voltage regulator chip, providing the required voltage for other circuits.

3. The circuit for rapid detection of pesticide residues in tea according to claim 1, characterized in that, The spectral data acquisition circuit (5) uses a three-chip AS7265x multispectral sensor chipset to acquire spectral data. This chipset consists of three independent spectral sensors, AS72651, AS72652, and AS72653. AS72651 serves as the main controller for the three chips, and its RX and TX pins are connected to the PB6 and PB7 pins of the STM32 microcontroller (6). The STM32 microcontroller (6) communicates with the STM32 microcontroller (6) via I... 2 C1 receives the data acquired by the spectral data acquisition circuit (5); at the same time, the RESN and INT pins of the spectral data acquisition circuit (5) are connected to the PC4 and PC5 pins of the STM32 microcontroller (6).

4. The circuit for rapid detection of pesticide residues in tea according to claim 1, characterized in that, The touch screen interaction (7) is connected to the serial port 2 of the STM32 microcontroller (6) through the RX and TX pins to realize bidirectional communication between the touch screen interaction (7) and the STM32 microcontroller (6). The user selects the detection object and starts the detection through the touch screen. After the detection is completed, the detection result is displayed on the touch screen.

5. The circuit for rapid detection of pesticide residues in tea according to claim 1, characterized in that, The USB to serial port circuit (8) is connected to the STM32 microcontroller (6) through the PA9 and PA10 pins. The USB to serial port circuit (8) can quickly and stably transmit data to the host computer and realize data visualization.

6. The circuit for rapid detection of pesticide residues in tea according to claim 1, characterized in that, The key input (9) is connected to the STM32 microcontroller (6) through the PA4, PA5, PA6 and PA7 pins. The user can select the detection object and start the detection by pressing the key. The key signal is detected and responded to by the STM32 microcontroller (6) in real time to ensure the immediacy and reliability of the operation.

7. The circuit for rapid detection of pesticide residues in tea according to claim 1, characterized in that, The WIFI wireless transmission (10) is connected to the PA9 and PA10 pins of the STM32 microcontroller (6) through RXD0 and TXD0 to realize wireless uploading and remote monitoring of detection data.