[go: up one dir, main page]

CN104019902B - Household test paper reader device and detection method thereof - Google Patents

Household test paper reader device and detection method thereof Download PDF

Info

Publication number
CN104019902B
CN104019902B CN201410269974.XA CN201410269974A CN104019902B CN 104019902 B CN104019902 B CN 104019902B CN 201410269974 A CN201410269974 A CN 201410269974A CN 104019902 B CN104019902 B CN 104019902B
Authority
CN
China
Prior art keywords
microprocessor
paper
tray
test paper
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410269974.XA
Other languages
Chinese (zh)
Other versions
CN104019902A (en
Inventor
熊俊俏
刘海英
戴璐平
戴丽萍
杨晓婧
王逸文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Chuang Yi Ling Technology Co Ltd
Wuhan Institute of Technology
Original Assignee
Wuhan Chuang Yi Ling Technology Co Ltd
Wuhan Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Chuang Yi Ling Technology Co Ltd, Wuhan Institute of Technology filed Critical Wuhan Chuang Yi Ling Technology Co Ltd
Priority to CN201410269974.XA priority Critical patent/CN104019902B/en
Publication of CN104019902A publication Critical patent/CN104019902A/en
Application granted granted Critical
Publication of CN104019902B publication Critical patent/CN104019902B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Investigating Or Analysing Materials By The Use Of Chemical Reactions (AREA)
  • Investigating Or Analysing Biological Materials (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The invention discloses a kind of domestic reagent paper reader device and detection method thereof, wherein this device includes sealing detection space, this sealing detection is spatially provided with active window, motor it is provided with in it, this motor is provided with the pallet for placing tested reagent paper, pallet is arranged over convex lens, and convex lens is provided above color sensor, is also arranged above secondary light source at pallet;This device also includes microprocessor, is connected with motor;Being provided with contact on pallet, pallet is also arranged above the sense contact being connected with microprocessor;This device is additionally provided with data storage, is connected with microprocessor;This sealing detection space is externally provided with liquid crystal display and button, is all connected with microprocessor.The present invention can show testing result automatically, the impact of anthropic factor during can avoiding manually reading.

Description

家用试纸阅读器装置及其检测方法Household test paper reader device and detection method thereof

技术领域technical field

本发明涉及不同试纸的自动检测,尤其涉及一种家用试纸阅读器装置及其检测方法。The invention relates to automatic detection of different test papers, in particular to a household test paper reader device and a detection method thereof.

背景技术Background technique

随着生化检测技术的发展,试纸检测的范围越来越广,除科研院所、高校、以及医学检测外,越来越多的试纸检测方法进入了千家万户,如自来水的检测(PH值、重金属含量)、农药残留检测、家居环境检测(甲醛检测)、人体生化指标检测(早孕、血糖);由于试纸种类众多、检测方法各异,给检测带来了不便,同时考虑到色盲患者、老年人的视觉障碍等,试纸对比测量存在较大的人为误差。With the development of biochemical detection technology, the scope of test paper detection is becoming wider and wider. In addition to scientific research institutes, universities, and medical testing, more and more test paper detection methods have entered thousands of households, such as the detection of tap water (PH value , heavy metal content), pesticide residue detection, home environment detection (formaldehyde detection), human biochemical index detection (early pregnancy, blood sugar); due to the variety of test papers and different detection methods, it brings inconvenience to the detection. For the visual impairment of the elderly, etc., there is a large human error in the comparative measurement of the test paper.

随着颜色科学理论与检测技术的发展,颜色信息的测量与处理在工业自动化应用越来越广泛,主要体现在质量控制、分类识别等方面。颜色测量主要有分光光度计和光电色度计,两者的测量原理不同。分光光度计通过测量反射光的光谱计算颜色值,其精度高但成本也过高,光电色度计是模拟人眼的颜色感知过程,进行的颜色测量,其结果简单、成本低,如CCD成像技术和颜色传感器,通过颜色计算与颜色识别,依据色差最小原则,获得接近人体视觉感受。利用颜色传感器将试纸颜色采集,并进行色度计算,与标准试纸进行比对,获得测量结果,具有快速、简单的优点。With the development of color science theory and detection technology, the measurement and processing of color information is more and more widely used in industrial automation, mainly in quality control, classification and identification, etc. There are mainly spectrophotometers and photoelectric colorimeters for color measurement, and the measurement principles of the two are different. The spectrophotometer calculates the color value by measuring the spectrum of the reflected light, which has high precision but the cost is too high. The photoelectric colorimeter simulates the color perception process of the human eye and performs color measurement. The result is simple and the cost is low, such as CCD imaging Technology and color sensor, through color calculation and color recognition, according to the principle of minimum color difference, to obtain close to the human visual experience. The color sensor is used to collect the color of the test paper, and the chromaticity calculation is performed, compared with the standard test paper, and the measurement result is obtained, which has the advantages of fast and simple.

发明内容Contents of the invention

本发明的目的在于,实现不同种类试纸测试结果的显示、保存,提供一种家用万能试纸阅读器的检测方法与装置,克服传统试纸测试阅读的不便。The purpose of the present invention is to realize the display and storage of test results of different types of test paper, provide a detection method and device of a household universal test paper reader, and overcome the inconvenience of traditional test paper test reading.

本发明实现其目的所采用的技术方案是:The technical scheme that the present invention realizes its object adopts is:

提供一种家用试纸阅读器装置,该装置包括密封检测空间,该密封检测空间上设有活动窗口,其内设有步进电机,该步进电机上设有用于放置被测试纸的托盘,托盘上方设有凸透镜,凸透镜上方设置颜色传感器,在托盘上方还设有辅助光源;该装置还包括微处理器,与步进电机连接;在托盘上设有触点,托盘上方还设有与微处理器连接的感应触点;该装置还设有数据存储器,与微处理器连接;A household test paper reader device is provided, the device includes a sealed detection space, a movable window is arranged on the sealed detection space, a stepping motor is arranged in it, and a tray for placing the tested paper is arranged on the stepping motor, the tray There is a convex lens on the top, a color sensor is set above the convex lens, and an auxiliary light source is set above the tray; the device also includes a microprocessor, which is connected with the stepping motor; contacts are set on the tray, and there is also a microprocessor on the tray. Inductive contacts connected to the device; the device also has a data memory, which is connected to the microprocessor;

该密封检测空间外设有液晶显示器和按键,均与微处理器连接。A liquid crystal display and buttons are arranged outside the sealed detection space, all of which are connected with the microprocessor.

本发明所述的装置中,该密封检测空间外还设有温湿度传感器,与微处理器连接。In the device of the present invention, a temperature and humidity sensor is provided outside the sealed detection space, which is connected with the microprocessor.

本发明所述的装置中,该活动窗口为翻盖窗口。In the device of the present invention, the movable window is a flip window.

本发明所述的装置中,该微处理器上还设有无线通信模块,上位机或终端通过该无线通信模块与微处理器连接。In the device of the present invention, the microprocessor is further provided with a wireless communication module, and the upper computer or the terminal is connected with the microprocessor through the wireless communication module.

本发明所述的装置中,该装置还设有USB接口和外置键盘。In the device of the present invention, the device is also provided with a USB interface and an external keyboard.

本发明还提供一种基于上述装置的试纸检测方法,包括以下步骤:The present invention also provides a test paper detection method based on the above device, comprising the following steps:

白平衡检测;White balance detection;

通过按键选择待测试纸类别,微处理器发出控制指令,驱动步进电机运行,带动托盘移动伸出密封检测空间,步进电机移动至托盘上方的感应触点;Select the type of paper to be tested by pressing the button, the microprocessor sends out a control command, drives the stepping motor to run, drives the tray to move out of the sealed detection space, and the stepping motor moves to the sensing contact above the tray;

将被测试纸置于托盘上,通过按键操作,微处理器驱动步进电机,将托盘移入密封检测空间内;Put the paper to be tested on the tray, and through key operation, the microprocessor drives the stepping motor to move the tray into the sealed detection space;

启动辅助光源,被测试纸上的反射光线经过凸透镜聚焦,进入颜色传感器,输出RGB三色对应的频率信号,微处理器分别采集RGB对应的频率值,经过运算,转换为HSV彩色模型,计算对应的色调值h,将h值与存储在数据库中对应种类的标准试纸数据对比,得到被测试纸的测量值;Start the auxiliary light source, the reflected light on the test paper is focused by the convex lens, enters the color sensor, and outputs the frequency signals corresponding to the RGB three colors. The hue value h of the h value is compared with the standard test paper data of the corresponding type stored in the database to obtain the measured value of the tested paper;

将被测试纸的测量值在液晶显示器上显示。The measured value of the tested paper is displayed on the liquid crystal display.

本发明所述的方法中,将被测试纸的测量值通过无线通信接口传输至上位机或者终端处理。In the method of the present invention, the measured value of the tested paper is transmitted to the host computer or terminal for processing through the wireless communication interface.

本发明所述的方法中,还包括步骤:In the method of the present invention, also comprise step:

通过按键选择扩展模式,输入新的标准试纸的名称,读取该标准试纸的所有分级,进行颜色空间的变换,将RGB转换为HSV颜色空间,确定标准试纸的色调确定判决区门限,并输入对应的测试结果,存储于标准试纸数据库中。Select the extended mode by pressing the button, input the name of the new standard test paper, read all the grades of the standard test paper, perform color space conversion, convert RGB to HSV color space, determine the color tone of the standard test paper, determine the threshold of the judgment area, and input the corresponding The test results are stored in the standard test strip database.

本发明所述的方法中,在待机时,通过液晶显示器显示时间、温度和湿度。In the method of the present invention, when in standby, the time, temperature and humidity are displayed by the liquid crystal display.

使用本发明具有以下有益效果:本发明中通过颜色传感器采集被测试纸颜色,通过与存储的标准试纸数据比对,获得被测试纸的测试结果,克服了试纸测量存在的人为误差,所测数据可显示和存储。Using the present invention has the following beneficial effects: in the present invention, the color of the paper to be tested is collected by the color sensor, and the test result of the paper to be tested is obtained by comparing with the stored standard test paper data, which overcomes the human error in the test paper measurement, and the measured data Can be displayed and stored.

进一步地,试纸测试种类可以通过现场或远程升级扩展,采用大屏幕显示,特别适用于色盲患者、视觉障碍的老年人等使用,该装置还具有时钟日历、室内温湿度显示功能。Furthermore, the types of test strips can be upgraded and expanded through on-site or remote upgrades, and the large-screen display is used, which is especially suitable for color-blind patients and elderly people with visual impairments. The device also has clock calendar, indoor temperature and humidity display functions.

附图说明Description of drawings

下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with accompanying drawing and embodiment, in the accompanying drawing:

图1是本发明实施例家用万能试纸阅读器装置结构图;Fig. 1 is the structural diagram of the household universal test paper reader device of the embodiment of the present invention;

图2是本发明实施例托盘位置检测电路原理图;Fig. 2 is a schematic diagram of a pallet position detection circuit according to an embodiment of the present invention;

图3是本发明实施例颜色传感器与温湿度检测电路原理图;3 is a schematic diagram of a color sensor and a temperature and humidity detection circuit according to an embodiment of the present invention;

图4是本发明实施例USB接口充电电路原理图;4 is a schematic diagram of a USB interface charging circuit according to an embodiment of the present invention;

图5是本发明实施例家用万能试纸阅读器装置外观结构图。Fig. 5 is an appearance structure diagram of a household universal test paper reader device according to an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例的家用万能试纸阅读器装置,如图1所示,包括密封检测空间1,该密封检测空间1上设有活动窗口,其内设有步进电机6,该步进电机6上设有用于放置被测试纸的托盘16,托盘16上方设有凸透镜3,凸透镜3上方设置颜色传感器2,在托盘16上方还设有辅助光源4;该装置还包括微处理器7,与步进电机6连接;在托盘16上设有触点15,该触电15可设置在托盘16侧面,托盘16上方还设有与微处理器7连接的感应触点14;该装置还设有数据存储器10,与微处理器7连接;The household universal test paper reader device of the embodiment of the present invention, as shown in Figure 1, comprises a sealed detection space 1, a movable window is provided on the sealed detection space 1, and a stepping motor 6 is arranged in it, and a stepping motor 6 is provided on the stepping motor 6. A tray 16 for placing the paper to be tested is provided, a convex lens 3 is arranged above the tray 16, a color sensor 2 is arranged above the convex lens 3, and an auxiliary light source 4 is also arranged above the tray 16; the device also includes a microprocessor 7, and a stepper The motor 6 is connected; a contact 15 is provided on the tray 16, and the electric contact 15 can be arranged on the side of the tray 16, and an induction contact 14 connected with the microprocessor 7 is also provided above the tray 16; the device is also provided with a data memory 10 , is connected with microprocessor 7;

该密封检测空间1外设有液晶显示器9和按键,均与微处理器7连接。The sealed detection space 1 is provided with a liquid crystal display 9 and buttons, both of which are connected with the microprocessor 7 .

本发明实施例中,如图1所示,将颜色传感器2、凸透镜3、辅助光源4、被测试纸5、托盘16、步进电机6、微处理器7、数据存储器10和无线通信模块11内置于密封检测空间1内,可克服环境光线的影响,按键和液晶显示器9置于外部,方便操作。In the embodiment of the present invention, as shown in Figure 1, the color sensor 2, the convex lens 3, the auxiliary light source 4, the paper to be tested 5, the tray 16, the stepper motor 6, the microprocessor 7, the data memory 10 and the wireless communication module 11 It is built in the sealed detection space 1, which can overcome the influence of ambient light, and the buttons and liquid crystal display 9 are placed outside, which is convenient for operation.

本发明的一个实施例中,活动窗口可设为翻盖窗口。In one embodiment of the present invention, the active window can be set as a flip window.

进一步地,该装置还设有USB接口和键盘8。该USB接口可以用于装置的充电。通过外置的键盘8可以再扩展时,输入试纸的名称。Further, the device is also provided with a USB interface and a keyboard 8 . The USB interface can be used for charging the device. When it can be extended by the external keyboard 8, the name of the test paper can be input.

该装置通过微处理器7可控制步进电机6移动托盘16进出密封检测空间1,方便放置或取走被测试纸5;辅助光源4用于均匀照射被测试纸5,其反射光线经过凸透镜3集中于颜色传感器2,获得试纸颜色参数(RGB);微处理器7经过处理,进行颜色空间的变换,直接将RGB转换为HSV颜色空间,依据标准试纸的色调确定判决区门限,进行比对获得被测试纸的测试结果。The device can control the stepping motor 6 to move the tray 16 in and out of the sealed detection space 1 through the microprocessor 7, which is convenient for placing or removing the tested paper 5; the auxiliary light source 4 is used to uniformly illuminate the tested paper 5, and its reflected light passes through the convex lens 3 Concentrate on the color sensor 2 to obtain the color parameters (RGB) of the test paper; after processing, the microprocessor 7 performs the transformation of the color space, directly converts RGB to the HSV color space, determines the threshold of the judgment area according to the hue of the standard test paper, and compares it to obtain The test results of the tested paper.

无线通信模块与上位机通信,可以将被测试纸的测试结构通过无线通信方式传输给上位机存储保存,以及将扩展的新的标准试纸测试数据通过无线通信方式传输给该检测装置,升级检测试纸数据库。The wireless communication module communicates with the upper computer, and can transmit the test structure of the tested paper to the upper computer for storage and storage through wireless communication, and transmit the expanded new standard test paper test data to the detection device through wireless communication, and upgrade the test paper. database.

该装置通过微处理器7可控制步进电机6移动托盘16进出密封检测空间1,同时在托盘侧面留有的触点15,便于检测托盘位置,固定托盘移出和移入的最终位置,如图2所示。The device can control the stepper motor 6 to move the tray 16 into and out of the sealing detection space 1 through the microprocessor 7, and at the same time, the contact 15 left on the side of the tray is convenient for detecting the position of the tray and fixing the final position of the tray moving out and in, as shown in Figure 2 shown.

该装置的颜色传感器数据经过微处理器7处理,进行颜色空间的变换,直接将RGB转换为HSV颜色空间,依据标准试纸的色调确定判决区门限,进行比对获得被测试纸的测试结构。其运算方法为The color sensor data of the device is processed by the microprocessor 7 to convert the color space, directly convert RGB to HSV color space, determine the threshold of the judgment area according to the hue of the standard test paper, and compare to obtain the test structure of the tested paper. Its operation method is

颜色传感器采集样本的颜色RGB值(r,g,b),分别代表颜色的红、绿和蓝值,设max、min分别为r、g、b中的最大值和最小值。The color RGB values (r, g, b) of the sample collected by the color sensor represent the red, green and blue values of the color respectively. Let max and min be the maximum and minimum values of r, g and b respectively.

从RGB到HSV颜色空间转换,对应关系为From RGB to HSV color space conversion, the corresponding relationship is

sthe s == 00 ,, if if maxmax == 00 11 -- minmin maxmax ,, otherwiseotherwise

v=maxv=max

RGB模型的颜色值r,g,b均为0~255。依据上式可得到HSV颜色空间,HSV(h,s,v)彩色模型中,h代表色调,s代表饱和度即色彩的纯度,v代表明度,h取值0~360度,为色相角,红色对应于0°,绿色对应于120°,蓝色对应于240°。显然,将RGB模型的颜色值转换为色相角h,可以区分不同的颜色。根据标准试纸测试的RGB颜色值转换为色相角h,并将标准试纸的颜色与试纸结果对应关系转换为色相角h与试纸测试结构对应,并依此划分标准试纸的比较门限,作为被测试纸的比较标准。The color values r, g, and b of the RGB model are all 0-255. According to the above formula, the HSV color space can be obtained. In the HSV (h, s, v) color model, h represents the hue, s represents the saturation, that is, the purity of the color, v represents the lightness, and h takes a value from 0 to 360 degrees, which is the hue angle. Red corresponds to 0°, green to 120° and blue to 240°. Obviously, converting the color value of the RGB model into the hue angle h can distinguish different colors. According to the RGB color value of the standard test paper test, it is converted into the hue angle h, and the corresponding relationship between the color of the standard test paper and the test paper result is converted into the hue angle h corresponding to the test paper test structure, and the comparison threshold of the standard test paper is divided accordingly, as the tested paper standard of comparison.

本发明的试纸阅读器装置的密封检测空间外还设有温湿度传感器,与微处理器7连接。可采用数字化温湿度传感器,微处理器7通过与温湿度传感器连接的端口采集温湿度信息。温湿度传感器可设置于装置背面,液晶显示器显示试纸测试值,待机时液晶显示器可依次显示日历、时间,以及温度、湿度。The test paper reader device of the present invention is also provided with a temperature and humidity sensor outside the sealed detection space, which is connected with the microprocessor 7 . A digital temperature and humidity sensor can be used, and the microprocessor 7 collects temperature and humidity information through a port connected to the temperature and humidity sensor. The temperature and humidity sensor can be installed on the back of the device, and the liquid crystal display can display the test value of the test paper. When the device is in standby, the liquid crystal display can display the calendar, time, temperature, and humidity in sequence.

在本发明的较佳实施例中,通过上述装置进行试纸检测时,将被测试纸置于托盘上,测量方法包括以下步骤:In a preferred embodiment of the present invention, when the test paper is detected by the above-mentioned device, the paper to be tested is placed on the tray, and the measuring method includes the following steps:

1、在检测前进行白平衡检测,即托盘上底层为白纸,检测其颜色,进行白平衡处理;1. Carry out white balance detection before detection, that is, the bottom layer on the tray is white paper, detect its color, and perform white balance processing;

2、通过按键选择待测试纸类别,微处理器发出控制指令,驱动步进电机运行,带动托盘移动伸出密封检测空间,步进电机移动至感应触点14,用户将被测试纸置于托盘上,通过按键操作,微处理器驱动步进电机,将托盘移入密封检测空间内;2. Select the type of paper to be tested by pressing the button, the microprocessor sends a control command, drives the stepping motor to run, drives the tray to move out of the sealed detection space, the stepping motor moves to the sensing contact 14, and the user puts the tested paper on the tray On the top, through key operation, the microprocessor drives the stepping motor to move the tray into the sealing detection space;

3、启动辅助光源,被测试纸上的反射光线经过凸透镜聚焦,进入颜色传感器,输出RGB三色对应的频率信号,微处理器分别采集RGB对应的频率值,经过运算,转换为HSV(h,s,v)彩色模型,计算对应的色调值h,将h值与存储在数据库中对应种类的标准试纸数据对比,得到被测试纸的测量值;3. Start the auxiliary light source, the reflected light on the test paper is focused by the convex lens, enters the color sensor, and outputs the frequency signals corresponding to the three colors of RGB, and the microprocessor collects the frequency values corresponding to RGB, and converts them into HSV (h, s, v) color model, calculate the corresponding hue value h, compare the h value with the standard test paper data of the corresponding type stored in the database, and obtain the measured value of the tested paper;

4、被测试纸的测量值可以本地显示,或通过无线通信传输至上位机处理。4. The measured value of the tested paper can be displayed locally, or transmitted to the host computer through wireless communication for processing.

扩展试纸测量的方法包括以下步骤:The method for extending test paper measurement comprises the following steps:

1、在检测前进行白平衡检测,即托盘上底层为白纸,检测其颜色,进行白平衡处理;1. Carry out white balance detection before detection, that is, the bottom layer on the tray is white paper, detect its color, and perform white balance processing;

2、通过按键选择扩展试纸功能键,通过外置键盘可输入新试纸类别,微处理器发出控制指令,驱动步进电机运行,带动托盘移动伸出密封空间,步进电机移动至触点14,用户将被测标准试纸置于托盘上,通过按键操作,微处理器驱动步进电机,将托盘移入密封空间内;2. Select the extended test paper function key through the button, and enter the new test paper category through the external keyboard. The microprocessor sends out a control command to drive the stepping motor to run, driving the tray to move out of the sealed space, and the stepping motor moves to the contact point 14. The user puts the standard test paper to be tested on the tray, and through key operation, the microprocessor drives the stepping motor to move the tray into the sealed space;

3、启动辅助光源,被测试纸上的反射光线经过凸透镜聚焦,进入颜色传感器,输出RGB三色对应的频率信号,微处理器分别采集RGB对应的频率值,经过运算,转换为HSV(h,s,v)彩色模型,计算对应的色调值h,存储h值,并输入该标准试纸对应的测量值(如浓度、含量等);3. Start the auxiliary light source, the reflected light on the test paper is focused by the convex lens, enters the color sensor, and outputs the frequency signals corresponding to the three colors of RGB, and the microprocessor collects the frequency values corresponding to RGB, and converts them into HSV (h, s, v) color model, calculate the corresponding hue value h, store the h value, and input the measured value (such as concentration, content, etc.) corresponding to the standard test paper;

4、重复测量所有标准试纸,存储对应的测量值;4. Repeatedly measure all standard test papers and store the corresponding measured values;

5、按键提示结束试纸测试,微处理器将依据所测量色调值计算门限,分配对应的标准试纸测量值,并存储于数据存储器中;5. Press the button to prompt to end the test paper test, the microprocessor will calculate the threshold based on the measured tone value, assign the corresponding standard test paper measurement value, and store it in the data memory;

6、无线通信单元也可以用于系统升级,扩展被测试纸种类。6. The wireless communication unit can also be used for system upgrades to expand the types of paper to be tested.

关键电路与装置实现Realization of key circuits and devices

1、托盘位置的控制1. Tray position control

托盘位置空间通过两个触点位置控制,如图2所示。当步进电机驱动托盘移出至设置位置时,托盘触点接触触点14,信号从1变为0给微处理器的端口p1.7,控制电机停止运行;当步进电机驱动托盘移入至设置位置时,托盘触点接触触点13,信号从1变为0给微处理器的端口p1.6,控制电机停止运行,上拉电阻R1、R2取值为1kΩ。The pallet position space is controlled by two contact positions, as shown in Figure 2. When the stepping motor drives the tray to move out to the setting position, the contact of the tray touches contact 14, the signal changes from 1 to 0 to the port p1.7 of the microprocessor, and the control motor stops running; when the stepping motor drives the tray to move into the setting position position, the tray contact contacts contact 13, and the signal changes from 1 to 0 to the port p1.6 of the microprocessor to control the motor to stop running, and the pull-up resistors R1 and R2 take a value of 1kΩ.

2、传感器电路2. Sensor circuit

如图3所示,该智能检测装置包含颜色传感器、温湿度传感器,均与微处理器相连接,这里颜色传感器选用TCS230,温湿度传感器选用SHT10,微处理器为MSP430F4270。其中TCS230的端口分配微处理器MSP430F4270的IO口为P6.0~p6.4,SHT10的端口分配微处理器MSP430F4270的IO口为P6.6~p6.6,液晶显示的端口分配微处理器MSP430F4270的IO口为P2.0~p2.7、P5.0~p5.7As shown in Figure 3, the intelligent detection device includes a color sensor and a temperature and humidity sensor, both of which are connected to a microprocessor. Here, the color sensor is selected as TCS230, the temperature and humidity sensor is selected as SHT10, and the microprocessor is MSP430F4270. Among them, the port of TCS230 is assigned to the IO port of the microprocessor MSP430F4270 as P6.0~p6.4, the port of SHT10 is assigned to the IO port of the microprocessor MSP430F4270 as P6.6~p6.6, and the port of the liquid crystal display is assigned to the microprocessor MSP430F4270 The IO port is P2.0~p2.7, P5.0~p5.7

3、充电电路3. Charging circuit

本装置采用可可充电电池供电,充电电路选用LTC4054-4.2V,如图4所示,将USB输入的5V电压转为4.2V电压,并通过二极管降压,得到3.0V~3.6V电压,供系统工作。The device is powered by a rechargeable battery, and the charging circuit is LTC4054-4.2V. As shown in Figure 4, the 5V voltage input by the USB is converted to 4.2V voltage, and the voltage is stepped down by a diode to obtain a voltage of 3.0V ~ 3.6V for the system Work.

4、外观结构图4. Appearance structure diagram

本发明的外观结构图如图5所示,即可以悬挂、也可以置于桌面上。面板上端为液晶显示,下部为按键操作区,侧面为托盘出入端口,也可以在面板下方开设翻盖窗口,直接置入被测试纸。温湿度传感器置于背面,液晶显示试纸测试值,待机时依次显示日历、时间,以及温度、湿度。待机时处于低功耗模式,工作电源为可充电电池供电。The appearance structure diagram of the present invention is shown in Figure 5, which can be hung or placed on the desktop. The upper part of the panel is a liquid crystal display, the lower part is a key operation area, and the side is a tray access port. A flip window can also be set up under the panel to directly insert the tested paper. The temperature and humidity sensor is placed on the back, and the test value of the test paper is displayed on the liquid crystal display, and the calendar, time, temperature, and humidity are displayed in sequence when the device is in standby mode. It is in a low power consumption mode when it is in standby mode, and the working power supply is powered by a rechargeable battery.

应当理解的是,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,而所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should belong to the protection scope of the appended claims of the present invention.

Claims (9)

1.一种家用试纸阅读器装置,其特征在于,该装置包括密封检测空间,该密封检测空间上设有活动窗口,其内设有步进电机,该步进电机上设有用于放置被测试纸的托盘,托盘上方设有凸透镜,凸透镜上方设置颜色传感器,在托盘上方还设有辅助光源;该装置还包括微处理器,与步进电机连接;在托盘上设有触点,托盘上方还设有与微处理器连接的感应触点;该装置还设有数据存储器,与微处理器连接;1. A household test paper reader device, characterized in that the device comprises a sealed detection space, the sealed detection space is provided with a movable window, and a stepping motor is provided in it, and the stepping motor is provided with a window for placing the tested window. The paper tray is provided with a convex lens above the tray, a color sensor is arranged above the convex lens, and an auxiliary light source is provided above the tray; the device also includes a microprocessor connected with a stepping motor; There is an inductive contact connected with the microprocessor; the device also has a data memory connected with the microprocessor; 该密封检测空间外设有液晶显示器和按键,均与微处理器连接。A liquid crystal display and buttons are arranged outside the sealed detection space, all of which are connected with the microprocessor. 2.根据权利要求1所述的装置,其特征在于,该密封检测空间外还设有温湿度传感器,与微处理器连接。2. The device according to claim 1, characterized in that a temperature and humidity sensor is provided outside the sealing detection space, which is connected to the microprocessor. 3.根据权利要求1所述的装置,其特征在于,该活动窗口为翻盖窗口。3. The device according to claim 1, wherein the movable window is a flip window. 4.根据权利要求1所述的装置,其特征是在于,该微处理器上还设有无线通信模块,上位机或终端通过该无线通信模块与微处理器连接。4. The device according to claim 1, characterized in that, the microprocessor is also provided with a wireless communication module, and the host computer or terminal is connected to the microprocessor through the wireless communication module. 5.根据权利要求1所述的装置,其特征是在于,该装置还设有USB接口和外置键盘。5. The device according to claim 1, characterized in that, the device is also provided with a USB interface and an external keyboard. 6.一种基于权利要求1的试纸检测方法,其特征在于,包括以下步骤:6. a test paper detection method based on claim 1, is characterized in that, comprises the following steps: 白平衡检测;White balance detection; 通过按键选择待测试纸类别,微处理器发出控制指令,驱动步进电机运行,带动托盘移动伸出密封检测空间,步进电机移动至托盘上方的感应触点;Select the type of paper to be tested by pressing the button, the microprocessor sends out a control command, drives the stepping motor to run, drives the tray to move out of the sealed detection space, and the stepping motor moves to the sensing contact above the tray; 将被测试纸置于托盘上,通过按键操作,微处理器驱动步进电机,将托盘移入密封检测空间内;Put the paper to be tested on the tray, and through key operation, the microprocessor drives the stepping motor to move the tray into the sealed detection space; 启动辅助光源,被测试纸上的反射光线经过凸透镜聚焦,进入颜色传感器,输出RGB三色对应的频率信号,微处理器分别采集RGB对应的频率值,经过运算,转换为HSV彩色模型,计算对应的色调值h,将h值与存储在数据库中对应种类的标准试纸数据对比,得到被测试纸的测量值;Start the auxiliary light source, the reflected light on the test paper is focused by the convex lens, enters the color sensor, and outputs the frequency signals corresponding to the RGB three colors. The hue value h of the h value is compared with the standard test paper data of the corresponding type stored in the database to obtain the measured value of the tested paper; 将被测试纸的测量值在液晶显示器上显示。The measured value of the tested paper is displayed on the liquid crystal display. 7.根据权利要求6所述的方法,其特征在于,将被测试纸的测量值通过无线通信接口传输至上位机或者终端处理。7. The method according to claim 6, characterized in that the measured value of the tested paper is transmitted to a host computer or a terminal for processing through a wireless communication interface. 8.根据权利要求6所述的方法,其特征在于,还包括步骤:8. The method according to claim 6, further comprising the steps of: 通过按键选择扩展模式,输入新的标准试纸的名称,读取该标准试纸的所有分级,进行颜色空间的变换,将RGB转换为HSV颜色空间,确定标准试纸的色调确定判决区门限,并输入对应的测试结果,存储于标准试纸数据库中。Select the extended mode by pressing the button, input the name of the new standard test paper, read all the grades of the standard test paper, perform color space conversion, convert RGB to HSV color space, determine the color tone of the standard test paper, determine the threshold of the judgment area, and input the corresponding The test results are stored in the standard test strip database. 9.根据权利要求6所述的方法,其特征在于,在待机时,通过液晶显示器显示时间、温度和湿度。9. The method according to claim 6, characterized in that, when the device is in standby, the time, temperature and humidity are displayed on a liquid crystal display.
CN201410269974.XA 2014-06-16 2014-06-16 Household test paper reader device and detection method thereof Expired - Fee Related CN104019902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410269974.XA CN104019902B (en) 2014-06-16 2014-06-16 Household test paper reader device and detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410269974.XA CN104019902B (en) 2014-06-16 2014-06-16 Household test paper reader device and detection method thereof

Publications (2)

Publication Number Publication Date
CN104019902A CN104019902A (en) 2014-09-03
CN104019902B true CN104019902B (en) 2016-09-28

Family

ID=51436782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410269974.XA Expired - Fee Related CN104019902B (en) 2014-06-16 2014-06-16 Household test paper reader device and detection method thereof

Country Status (1)

Country Link
CN (1) CN104019902B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104316470B (en) * 2014-11-06 2017-03-29 深圳市领治医学科技有限公司 Domestic Urine Analyzer
CN104337137B (en) * 2014-11-13 2016-11-09 广东交通职业技术学院 A kind of achromate of auxiliary distinguishes the Intelligent bracelet of color and distinguishes color method
CN104732644B (en) * 2015-01-19 2017-10-31 广州广电运通金融电子股份有限公司 Method of quality control and its system that bank note differentiates
CN109324039A (en) * 2017-07-31 2019-02-12 爱威科技股份有限公司 Test strips reaction density detection method, device, storage medium and computer equipment
CN108020645A (en) * 2018-02-01 2018-05-11 长春万成生物电子工程有限公司 A kind of water analysis outfit
CN111060460A (en) * 2019-12-24 2020-04-24 煜宜(上海)健康管理有限公司 Instrument for identifying liquid culture medium color
JPWO2023189428A1 (en) * 2022-03-31 2023-10-05

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474937A (en) * 2000-11-10 2004-02-11 ������������ʽ���� Method for correcting sensor output
CN102466520A (en) * 2010-11-11 2012-05-23 香港纺织及成衣研发中心 Multispectral imaging color measurement system and imaging signal processing method thereof
CN203929231U (en) * 2014-06-16 2014-11-05 武汉工程大学 Test paper reader

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NZ526028A (en) * 2003-05-21 2006-02-24 Pure Depth Ltd Backlighting system for display screen utilised to control the distribution of power to at least one light source
JP2006250765A (en) * 2005-03-11 2006-09-21 Mitsubishi Electric Corp State evaluation device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474937A (en) * 2000-11-10 2004-02-11 ������������ʽ���� Method for correcting sensor output
CN102466520A (en) * 2010-11-11 2012-05-23 香港纺织及成衣研发中心 Multispectral imaging color measurement system and imaging signal processing method thereof
CN203929231U (en) * 2014-06-16 2014-11-05 武汉工程大学 Test paper reader

Also Published As

Publication number Publication date
CN104019902A (en) 2014-09-03

Similar Documents

Publication Publication Date Title
CN104019902B (en) Household test paper reader device and detection method thereof
JP6375557B2 (en) System and method for measuring and categorizing surface colors and spectra
CN107860473A (en) A kind of intelligent handhold spectrometer based on cloud data
US20240353385A1 (en) Analyzer and Control Method Thereof
CN203949857U (en) Hand-held colloidal gold strip card reader
CN101598599A (en) A multi-channel portable colloidal gold test strip rapid testing device
CN103344329A (en) Handheld optical irradiance meter and correction method thereof
CN101458817A (en) Color analysis system and method
CN108709968A (en) A kind of food safety detection system
CN203929231U (en) Test paper reader
CN114739991B (en) A kind of urine dry chemical routine detection method and detection device
CN202256140U (en) Multispectral water quality analyzer
CN108956512A (en) A kind of Multifunctional water Portable rapid detector and its application method and detection method
CN102735683A (en) Reading instrument of pH test paper
CN205691513U (en) A kind of palm Urine Analyzer convenient to operate
CN206804135U (en) A kind of portable multi-function synthesis constitution analyzer and system
CN207074439U (en) A kind of integrated bar code detector
CN201697915U (en) Gold labeled test strip detection device
CN203858795U (en) Color sensitive detector teaching experimental instrument
CN112504460A (en) Electronic temperature measuring box integrating harmful gas detection function
CN209961689U (en) Portable test paper strip scanning and reading instrument
CN102279046A (en) Portable Color Temperature Luminance Meter with RGB Analysis
CN111707371B (en) Broadcasting method of handheld color recognition voice broadcaster
CN205920062U (en) Infrared leather detection device
CN206627207U (en) Acoustic measurement instrument

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
CB03 Change of inventor or designer information

Inventor after: Xiong Junqiao

Inventor after: Liu Haiying

Inventor after: Dai Luping

Inventor after: Dai Liping

Inventor after: Yang Xiaojing

Inventor after: Wang Yiwen

Inventor before: Xiong Junqiao

Inventor before: Liu Haiying

Inventor before: Dai Luping

Inventor before: Dai Liping

Inventor before: Yang Xiaojing

COR Change of bibliographic data
TA01 Transfer of patent application right

Effective date of registration: 20160706

Address after: 430074 Wuhan, Hongshan Province District, hung Chu street, No. 693

Applicant after: Wuhan Institute of Technology

Applicant after: Wuhan Chuang Yi Ling Technology Co., Ltd.

Address before: 430074 Wuhan, Hongshan Province District, hung Chu street, No. 693

Applicant before: Wuhan Institute of Technology

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160928

Termination date: 20180616