Peripheral portable spectrum detection device and method based on smart phone

By designing a portable spectral detection device and combining with a smartphone for spectral detection, the problems of poor optical path stability and low detection accuracy are solved, and high-precision and low-cost on-site detection are achieved, which is suitable for environmental monitoring and biomedicine fields.

CN120334190APending Publication Date: 2025-07-18XI AN JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510477680.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

The existing spectral detection technology based on smartphones has problems such as poor optical path stability, low detection accuracy, insufficient compatibility and high cost, which is difficult to meet the needs of rapid on-site inspection.

Method used

A peripheral portable spectral detection device based on smartphones is designed, including an opaque case, a light source, a slotted sample holder, a three-way adjustable displacement table, a power supply and a temperature control module. It combines a smartphone for spectral detection, adopts multi-wavelength excitation and three-dimensional adjustment of the optical path, and integrates a temperature control module to ensure detection accuracy and stability.

Benefits of technology

It realizes portable and high-precision spectral detection, which is suitable for environmental monitoring, food safety and biomedical fields, reduces equipment costs, improves optical path stability and accuracy of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120334190A_ABST
    Figure CN120334190A_ABST
Patent Text Reader

Abstract

The invention relates to a peripheral portable spectrum detection device and method based on a smart phone, and belongs to the technical field of spectrum detection, the device comprises a lightproof shell, a light source, a grooved sample holder, a three-way adjustable displacement table, a power supply, a mobile phone shooting port and a temperature control module; the sample holder with the groove is arranged on an output light path of the light source, the light source and the sample holder with the groove are arranged on a moving part of the three-way adjustable displacement table, and the mobile phone shooting port covers the moving range of the sample holder with the groove; the power supply supplies power to the light source; a light-proof rubber ring is arranged around the outer side of the mobile phone shooting port; by integrating the spectrograph peripheral module and the smart phone, the problems that a traditional spectrograph is large in size and high in cost and an existing portable device is poor in light path stability and low in precision are solved, and the spectrograph is suitable for the fields of environmental pollutant monitoring, food safety and rapid screening, biomedical field diagnosis and the like, has high portability, low cost and laboratory-level detection performance, and is suitable for popularization and application. And the method has a remarkable industrial application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of spectral detection, and particularly relates to a peripheral portable spectral detection device and method based on a smart phone. Background Art

[0002] With the rapid development of information technology and digital technology, the popularization of smart phones and mobile Internet has provided a new opportunity for the innovation of traditional experimental methods. The progress of mobile phone cameras, image processing technology, and big data analysis technology has promoted the transformation in the fields of optical analysis and chemical analysis. Although traditional spectral instruments have high precision, they have problems such as large volume, high price, and complex operation, making it difficult to meet the needs of on-site rapid detection. Therefore, how to use portable devices to achieve efficient data collection and analysis has become an important topic in research and industrial applications.

[0003] As a commonly used analysis method, spectral technology has gradually developed towards portability and intelligence in recent years. The spectral detection technology based on smart phones has emerged, but the existing technology still has the following limitations: poor optical path stability, vulnerable to interference from factors such as ambient light and temperature; insufficient device compatibility, difficult to adapt to different models of mobile phones; relatively low detection accuracy, lacking flexible algorithm support; high cost, difficult to achieve large-scale popularization and application. These problems seriously restrict the practical application of this technology, and there is an urgent need to develop a portable, stable, low-cost, and highly compatible spectral detection system and method.

[0004] Although the existing spectral analysis methods based on smart phones have to some extent solved the problems of high cost and poor portability of traditional instruments, they still face significant technical bottlenecks. First, the optical path stability is insufficient, and the mobile phone camera is vulnerable to shooting angle, light source intensity, and ambient light interference, resulting in large fluctuations in RGB values, making it difficult to meet the requirements of high-precision testing. Second, the existing technology lacks flexible optical path design and sample chamber integration capabilities, and the experimental variable control is inaccurate, affecting the accuracy and repeatability of the results. In addition, most existing systems adopt a fixed data analysis mode, lacking the function of modeling the mathematical relationship between user-defined spectral characteristic parameters (such as R / B, log(G / B), etc.) and the concentration of the target substance, which limits its adaptability and practicality in different application scenarios. Therefore, developing a spectral detection system with high stability, high precision, strong compatibility, and intelligent data analysis capabilities has become an urgent need in current research. Summary of the Invention

[0005] In order to solve the problems existing in the prior art, the present invention provides a peripheral portable spectral detection device and method based on a smart phone. By combining the spectrometer peripheral module with the smart phone, the device realizes portable and high-precision spectral detection and analysis, and is suitable for the rapid detection needs in fields such as environmental monitoring, food safety, and biomedicine.

[0006] To achieve the above object, the technical solution adopted by the present invention is: a portable spectral detection device for a peripheral device based on a smart phone, including an opaque outer shell, a light source, a sample holder with grooves, a three-way adjustable displacement stage, a power supply, a mobile phone shooting port, and a temperature control module; the sample holder with grooves is arranged on the output optical path of the light source, the light source and the sample holder with grooves are arranged on the moving part of the three-way adjustable displacement stage, and the mobile phone shooting port covers the moving range of the sample holder with grooves; the power supply provides electrical energy for the light source; an opaque rubber ring is arranged around the outside of the mobile phone shooting port, and the heating device and the monitoring device of the temperature control module are arranged on the sample holder with grooves.

[0007] Further, the opaque outer shell is made of polymethyl methacrylate material, and the surface of the opaque outer shell is subjected to matte treatment.

[0008] Further, the light source can support multi-wavelength excitation in the range from ultraviolet to visible light, the wavelength range is 200 - 800 nm, and it supports continuous or pulsed mode output.

[0009] Further, the light source is connected with a thread adjusting mechanism, and the adjusting direction of the thread adjusting mechanism is parallel to the optical path center line of the light source.

[0010] Further, the three-way adjustable displacement stage realizes adjustment in three directions of X, Y, and Z. In the three-way adjustable displacement stage, screw translation mechanisms are adopted in all three directions and are driven by a stepper motor.

[0011] Further, limiters are arranged at both ends of the stroke of the screw translation mechanism.

[0012] Further, the power supply includes an AC / DC power converter and a rechargeable lithium-ion battery with a capacity of not less than 5000 mAh.

[0013] Further, the temperature control module includes a PTC heating sheet, a thermistor, and a mechanical temperature control switch; the PTC heating sheet is attached to the bottom of the sample holder with grooves as the heating device of the temperature control module, the thermistor is embedded inside the sample holder with grooves as the monitoring device of the temperature control module, and the PTC heating sheet and the thermistor are connected to the mechanical temperature control switch.

[0014] On the other hand, a method for portable spectral detection of a peripheral device based on a smart phone according to the present invention, based on the above-mentioned portable spectral detection device for a peripheral device based on a smart phone, includes the following steps: Obtain the RGB image of the standard sample spectrum; Establish a mathematical model between different RGB response values and the standard sample concentration; Extract the optimal spectral characteristic parameters Output the spectral working curve in real time and invert to obtain the absorbance of the unknown sample.

[0015] Further, the optimal spectral features are extracted based on R2 Cross-validation with RSS yields the working curve.

[0016] Compared with the prior art, the present invention has at least the following beneficial effects: The present invention relates to a peripheral portable spectral detection device based on a smart phone, aiming to solve the problems of large volume, complex operation, and high cost of traditional spectral detection equipment, as well as poor optical path stability, low precision, and insufficient compatibility of existing smart-phone-based spectral detection technologies; By combining the spectrometer peripheral module with the smart phone, portable and high-precision spectral detection and analysis are realized, meeting the rapid detection needs in the fields of environmental monitoring, food safety, biomedicine, etc.; The outer shell is made of high-strength plastic material to reduce the interference of ambient light and ensure the stability of the optical path during the detection process; The three-way displacement stage can accurately adjust the sample position in three-dimensional space, optimize the optical path, and ensure the detection accuracy; The temperature control module is used to maintain the constant temperature of the sample during the detection process, further improving the accuracy and repeatability of the detection results.

[0017] The method of the present invention can process and analyze spectral data in real time, including image acquisition, data processing, model establishment, and result output. The user can import the sample image, view the RGB value in real time, and calculate the sample concentration based on a preset or custom mathematical model.

[0018] Furthermore, the light-tight outer shell is made of polymethyl methacrylate material and its surface is matte-treated to further reduce the reflection and refraction of ambient light; This material has the advantages of high strength, high plasticity, and cost-effectiveness.

[0019] Furthermore, the light source is connected with a threaded adjustment mechanism, and the adjustment direction of the threaded adjustment mechanism is parallel to the optical path center line of the light source 2, which can be used to adjust the distance between the light source and the grooved sample holder.

[0020] Furthermore, the three-way adjustable displacement stage realizes adjustment in three directions of X, Y, and Z. The three-way adjustable displacement stage adopts a screw translation mechanism and is driven by a stepper motor. The screw translation mechanism has a stable movement and is easy to achieve precise distance control, which is used to optimize the optical path and the distance between the light source and the sample.

[0021] Furthermore, a large-capacity rechargeable battery is set in the power supply, which supports long-term operation and has fast charging and low-power modes to meet the battery life requirements of on-site detection.

[0022] Furthermore, the present invention optimizes the model parameters through multi-index evaluation, such as R 2 Cross-validation with RSS to optimize the model parameters and ensure the accuracy and reliability of the detection results. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a structural diagram of the peripheral portable spectral detection device; Figure 2a It is a schematic diagram of the first perspective of the three-way displacement stage structure; Figure 2b It is a schematic diagram of the second perspective of the three-way displacement stage structure Figure 3 It is a user interface diagram of a smart phone; Figure 4 It is a flowchart of the operation of the Camera Detect App.

[0024] In the attached drawings, 1 - light-tight outer shell, 2 - light source, 3 - grooved sample holder, 4 - three-way adjustable displacement stage, 5 - top cover Detailed implementation manners Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0025] In the description of the present invention, it should be understood that the orientation or positional relationship indicated by terms such as "top", "outer", etc. is based on the orientation or positional relationship shown in the attached drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention.

[0026] Refer to Figure 1 、 Figure 2a and Figure 2bThe present invention provides a portable spectral detection device based on a smart phone, comprising a light-proof shell 1, a light source 2, a slotted sample holder 3, a three-way adjustable displacement stage 4, a power supply, a mobile phone shooting port 6, and a temperature control module; the slotted sample holder 3 is arranged on the output light path of the light source 2, the light source 2 and the slotted sample holder 3 are arranged on the moving part of the three-way adjustable displacement stage 4, and the mobile phone shooting port 6 covers the moving range of the slotted sample holder 3; the power supply provides electric energy for the light source 2; a light-proof rubber ring is arranged around the outer side of the mobile phone shooting port 6, and a heating device of the temperature control module is arranged on the slotted sample holder. As a smart phone peripheral, the device makes full use of the mobile phone camera as the detection core, avoids the complex optical path system and independent image sensor of the traditional spectrometer, and significantly reduces the hardware cost. Combined with the compact design of the three-way displacement stage, the overall structure is lightweight, which is convenient for rapid on-site detection; the three-way adjustable displacement stage allows the position of the light source and the sample holder to be adjusted at the micron level, ensuring the collimation of the optical path and reducing the error of the light spot offset; the light-proof shell and the rubber ring of the mobile phone shooting port form a double light-shielding barrier to suppress ambient light interference and improve the signal-to-noise ratio. The two work together to ensure the repeatability and accuracy of the test results, especially for capturing weak signals of low-concentration samples. The integrated temperature control module enables the device to control the sample reaction temperature, support biological detection that requires temperature dependence, and break through the limitation of traditional portable devices that are limited to room temperature detection. The integrated design of the sample rack and temperature control avoids the reliance on an external temperature box, further enhancing the on-site detection capability; the mobile phone camera port covers the full range of movement of the sample rack, and can be adapted to sample slots of different sizes with the adjustment of the translation stage to achieve multimodal detection of liquid and solid samples; the independent power module supplies power to the light source and temperature control, avoiding power consumption of the mobile phone and extending the continuous working time; the smartphone directly obtains spectral images and performs real-time analysis through the APP, using the mobile phone computing power to achieve a one-stop detection process, greatly improving the detection efficiency.

[0027] A top cover 5 is provided on the top of the light-proof shell 1. The opening at the top cover 5 is used for taking and placing samples. The top cover 5 is hinged to the top of the light-proof shell 1. Two card slots for placing mobile phones are provided on the outer side of the mobile phone shooting port 6. The two card slots are perpendicular to each other. When the mobile phone is placed on the mobile phone shooting port 6, the two card slots respectively fix two mutually perpendicular sides of the mobile phone.

[0028] As a further optimization, at the opening of the top cover 5, the light-proof shell 1 is provided with a step along the thickness direction. When the top cover 5 is covered, it is ensured that there is no gap between the top cover and the opening, and strict light-proofing can be achieved.

[0029] refer to Figure 2a and Figure 2b, it should be noted that the three-way displacement stage 4 is one of the key components in the peripheral portable spectral detection device based on a smart phone of the present invention. Its main function is to optimize the optical path by adjusting the position of the sample in three-dimensional space. The three-way displacement stage 4 includes translation mechanisms in the X, Y, and Z directions. Specifically, each translation mechanism in a direction includes a base, a stepper motor, a lead screw, a guide rail, and a lead screw nut slider. The lead screw is arranged on the base through bearings and bearing seats, and the output end of the stepper motor is connected to one end of the lead screw; preferably, a guide rail is arranged parallel to the lead screw, and the lead screw nut slider is connected to both the lead screw and the guide rail. Driven by the lead screw, the lead screw nut slider translates along the lead screw and the guide rail. Taking the X-axis direction (horizontal direction) as an example, by driving the lead screw to rotate through the stepper motor, the lead screw nut slider is driven to move in the horizontal direction, and precise positioning of the sample in the horizontal direction is achieved by controlling the number of steps of the stepper motor. In the description of the present invention, it should be understood that the X, Y, and Z directions are perpendicular to each other. For the convenience of description, the X direction and the Y direction are located in the horizontal plane, and the Z direction is perpendicular to the X direction and the Y direction; among them, the moving mechanism in the Y direction is integrally arranged on the moving lead screw nut slider in the X direction, and the moving mechanism in the Z direction is integrally arranged on the moving lead screw nut slider in the Y direction.

[0030] As a further optimization, the light source 2 can support multi-wavelength excitation in the range from ultraviolet to visible light, with a wavelength range of 200 - 800 nm, and supports continuous or pulsed mode output. The light source 2 is connected with a threaded adjustment mechanism, and the adjustment direction of the threaded adjustment mechanism is parallel to the optical path center line of the light source 2, which can be well applicable to light sources of different wavelengths and further improve the applicability of the device.

[0031] The power supply includes an AC / DC power converter and a rechargeable lithium-ion battery with a capacity of not less than 5000 mAh. It can use municipal power supply when convenient, and can also continuously work with the battery under field conditions or in working conditions without conditions.

[0032] The temperature control module adopts a low-cost and portable design strategy, including a PTC heating sheet, a thermistor, and a mechanical temperature control switch; the PTC heating sheet is attached to the bottom of the grooved sample holder 3, and its self-limiting temperature characteristic is used to achieve the heating function. When the temperature reaches the set value, the heating automatically stops to avoid the risk of overheating. The PTC heating sheet and the thermistor are connected to the mechanical temperature control switch. The thermistor is embedded inside the grooved sample holder to monitor the sample temperature in real time and feed the data back to the mechanical temperature control switch. The temperature control switch controls the on-off of the heating sheet according to the temperature feedback to ensure that the temperature fluctuation is controlled within the range of ±2°C. The shell of the temperature control module is made of lightweight ABS plastic, and the inside is wrapped with foam plastic or silica gel heat insulation pads to reduce heat dissipation. The entire module is powered by the device power supply without the need for an additional power module, with a simple structure and easy integration. The target temperature is set through the mechanical temperature control switch, and users can achieve temperature control without complex operations. This design significantly reduces the cost and weight while meeting the basic temperature control requirements, and is suitable for the large-scale production and practical application of portable spectral detection devices.

[0033] To make on-site detection more convenient, a universal wheel base is set up, and the universal wheel base is connected to a pull rod for easy carrying.

[0034] Reference Figure 4 , Example 2, the present invention provides a peripheral portable spectral detection method based on a smart phone. Based on the above-mentioned peripheral portable spectral detection device based on a smart phone, it includes the following steps: Chem01: Obtain the RGB image of the standard sample spectrum; in Chem01, the standard sample solution will produce color changes under the excitation of a specific wavelength, such as 365nm, such as changing from bright yellow-green to dark yellow. These color changes are captured by the smart phone camera and converted into RGB values. When shooting, the standard sample solution is placed on the grooved sample holder, and the smart phone is connected to the spectral detection device through the mobile phone shooting port to ensure consistent shooting conditions. The obtained RGB image contains the values of the red (R), green (G), and blue (B) channels, and these values reflect the color information of the standard sample solution. The RGB image is the basis for subsequent analysis and provides the original data for establishing a mathematical model.

[0035] Chem02: Establish a mathematical model between different RGB response values and the standard sample concentration; In Chem02, based on the RGB image obtained in Chem01, a mathematical relationship between the RGB response value and the standard sample concentration is established. The RGB values (R, G, B) are independent variables, and the standard sample concentration is the dependent variable. Through experimental data fitting, a mathematical model is established. For example, the linear regression model can be expressed as: C = aR + bG + cB + d.

[0036] Chem03: Extract the optimal spectral feature parameters In Chem03, multi-index evaluation (such as R 2 and RSS) is adopted to ensure the accuracy and reliability of the model. The channel value or combination of channel values with the highest correlation is selected as the optimal feature parameter, and the mathematical model correlates the RGB values with the concentration, providing a basis for concentration prediction.

[0037] Chem04: Output the spectral working curve in real time and invert to obtain the absorbance of the unknown sample; in Chem04, based on the optimal spectral feature parameters extracted in Chem03 and the mathematical model established in Chem02, the spectral working curve is output in real time, reflecting the relationship between the RGB response value and the sample concentration. Through the working curve, the RGB value of the unknown sample is obtained by taking a photo, and it is substituted into the model to invert the concentration of the unknown sample.

[0038] Example: In this example, a series of aqueous solutions of perfluorooctanoic acid (PFOA) with different concentrations are configured. The concentration of the aqueous solution of perfluorooctanoic acid (PFOA) is controlled at 0 μM - 10 μM, and the serial numbers corresponding to the 6 concentrations are 0, 1, 2, 3, 4, 5. A quantitative conjugated polymer PMNT is added, and the solution No. 3 is taken as the unknown sample for preliminary detection.

[0039] As Figure 3 shown in the schematic diagram of the smartphone user interface, it includes a picture import module, a real-time RGB display module, a function input module, a result display module, and a user interaction button area.

[0040] As Figure 3 shown in the operation process of the Camera Detect App, different channel values are extracted from the image obtained by mobile phone shooting, and the RGB values are normalized to eliminate the influence of light intensity. Taking the RGB values as independent variables and the sample concentration as the dependent variable, a mathematical model is established. For example, the linear regression model can be expressed as: C = aR + bG + cB + d where C is the sample concentration, R, G, and B are the RGB values, and a, b, c, and d are the model parameters.

[0041] Adopt multi-index evaluation. As an example, cross-evaluation of R² and RSS can be adopted to optimize the model parameters and ensure the accuracy and reliability of the model.

[0042] The mobile range of the mobile phone shooting port 6 covers the grooved sample holder 3. Just place the smart phone at the mobile phone shooting port 6, and the object to be measured can be presented within the shooting range of the mobile phone camera by adjusting the three-way adjustable displacement stage 4. The spectral detection device is connected to any type of smart phone through the mobile phone shooting port 6, ensuring its wide applicability. The Camera Detect App equipped on the smart phone uses a cross-platform development framework, supports iOS and Android operating systems, and can run on smart phones of different brands and models. The user interface of the App adopts a responsive design, automatically adapting to different screen sizes and resolutions to ensure the convenience and consistency of user operations. The spectral detection algorithm and data processing method are optimized to achieve consistent detection accuracy on smart phones with different performances. In actual tests, the device has been verified on various types of smart phones, including oppo A96, Huawei P40, Xiaomi 11, Samsung Galaxy S21, etc. The test results show that the performance of the device is consistent on different smart phones, and the detection results are highly repeatable.

[0043] In the present invention, under 365 nm excitation, the changes in the RGB values of the gradient mixtures No. 0, 1, 2, 4, and 5 were detected using Camera Detect, and the colorimetric quantitative relationship between PMNT and PFOA was established. As the concentration of PFOA increased, the solution gradually changed from bright yellowish green to dark yellow. Working curves were established between the RGB response values of the standard series solutions calculated using different mathematical models and the solution concentration, and the mathematical model Y = G was selected for calculating the sample response values. The calculation results showed that there was a good linear relationship between the G-channel values of the standard series solutions and the concentration, and R 2 was greater than 0.9999. The concentration of the unknown sample obtained by inversion was 4 μM, and the relative error was less than 1% compared with the true value, indicating that the designed digital visual detection program could quantitatively detect PFOA.

[0044] To further verify that the device still maintains accuracy and effectiveness while achieving portability, a fluorescence spectral analysis method was established based on the conjugated polymer PMNT. Through a fluorescence titration experiment, the PFOA concentration range was 0 μM - 10 μM, and the linear relationship between the fluorescence intensity and the PFOA concentration was fitted. In terms of method accuracy verification, the digital visual detection program was used to analyze the sample concentration and obtain concentration data, and then a fluorescence spectrophotometer was used to detect the same sample and obtain the corresponding concentration data. It can be seen that the concentration values obtained by the detection method established based on the digital visual detection program and fluorescence spectrum are consistent, indicating that the peripheral portable spectral detection device based on the smart phone and the related mathematical model adopted can accurately and quantitatively detect PFOA.

[0045] The peripheral portable spectral detection device and method based on a smart phone according to the present invention achieve efficient and accurate spectral detection through the collaborative work of a spectrometer peripheral module and a smart phone. Its core advantages lie in portability, intelligent operation, and high-precision detection capabilities, and it is particularly suitable for the concentration analysis of complex samples such as perfluorooctanoic acid solutions. Through the synergistic effect of components such as a light source, a three-way adjustable displacement stage, and a temperature control module, as well as the intelligent functions of a smart phone App, the device described in this application can meet various needs for laboratory and on-site detection and has broad application prospects.

[0046] The above content is only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution according to the technical idea proposed by the present invention fall within the protection scope of the claims of the present invention.

Claims

1. A peripheral portable spectral detection device based on a smart phone, characterized in that, It includes an opaque outer shell (1), a light source (2), a grooved sample holder (3), a three-way adjustable displacement stage (4), a power supply, a mobile phone shooting port (6), and a temperature control module; the grooved sample holder (3) is arranged on the output optical path of the light source (2), the light source (2) and the grooved sample holder (3) are arranged on the moving part of the three-way adjustable displacement stage (4), and the mobile phone shooting port (6) covers the moving range of the grooved sample holder (3); the power supply provides electrical energy for the light source (2); an opaque rubber ring is arranged around the outside of the mobile phone shooting port (6), and the heating device and the monitoring device of the temperature control module are arranged on the grooved sample holder (3).

2. The peripheral portable spectral detection device based on a smart phone according to claim 1, characterized in that, The opaque outer shell (1) is made of polymethyl methacrylate material, and the surface of the opaque outer shell (1) is matte-treated.

3. The peripheral portable spectral detection device based on a smart phone according to claim 1, characterized in that, The light source (2) can support multi-wavelength excitation in the range from ultraviolet to visible light, with a wavelength range of 200 - 800 nm, and supports continuous or pulsed mode output.

4. The peripheral portable spectral detection device based on a smart phone according to claim 1, wherein, The light source (2) is connected with a threaded adjustment mechanism, and the adjustment direction of the threaded adjustment mechanism is parallel to the optical path center line of the light source (2).

5. The peripheral portable spectral detection device based on a smart phone according to claim 1, characterized in that, The three-way adjustable displacement stage (4) realizes adjustment in three directions of X, Y, and Z. The three directions in the three-way adjustable displacement stage (4) all adopt a lead screw translation mechanism, and are driven by a stepper motor. The limiter is connected to the input end of the controller.

6. The peripheral portable spectral detection device based on a smart phone according to claim 5, wherein, Limiters are arranged at both ends of the stroke of the lead screw translation mechanism.

7. The portable spectral detection device for a smartphone-based peripheral according to claim 1, wherein The power supply includes an AC / DC power converter and a rechargeable lithium-ion battery with a capacity of not less than 5000 mAh.

8. The peripheral portable spectral detection device based on a smart phone according to claim 1, wherein, The temperature control module includes a PTC heating sheet, a thermistor, and a mechanical temperature control switch; the PTC heating sheet, as the heating device of the temperature control module, is attached to the bottom of the grooved sample holder (3), the thermistor, as the monitoring device of the temperature control module, is embedded inside the grooved sample holder, and the PTC heating sheet and the thermistor are connected to the mechanical temperature control switch.

9. A peripheral portable spectral detection method based on a smart phone, characterized in that, Based on the smartphone-based peripheral portable spectral detection device according to any one of claims 1 - 8, it includes the following steps: Obtain the RGB image of the standard sample spectrum; Establish a mathematical model between different RGB response values and the concentration of the standard sample; Extract the optimal spectral characteristic parameters, Input the optimal spectral characteristic parameters into the mathematical model, and output the spectral working curve in real time to inversely obtain the absorbance of the unknown sample.

10. The method for peripheral portable spectral detection based on a smart phone according to claim 8, wherein Extract the optimal spectral features based on R 2 Cross-validate with RSS to obtain the working curve.