Summary of the invention
It is an object of the invention to, it is achieved the display of variety classes reagent paper test result, preservation, it is provided that one
Plant detection method and the device of universal household reagent paper reader, overcome the inconvenience that tradition reagent paper test is read.
The present invention realizes its purpose and be the technical scheme is that
Thering is provided a kind of domestic reagent paper reader device, this device includes sealing detection space, this sealing detection
Spatially being provided with active window, be provided with motor in it, this motor is provided with for placing tested
The pallet of reagent paper, pallet is arranged over convex lens, and convex lens is provided above color sensor, on pallet
Side is additionally provided with secondary light source;This device also includes microprocessor, is connected with motor;Pallet sets
Contact, pallet is had to be also arranged above the sense contact being connected with microprocessor;This device is additionally provided with data and deposits
Reservoir, is connected with microprocessor;
This sealing detection space is externally provided with liquid crystal display and button, is all connected with microprocessor.
In device of the present invention, outside this sealing detection space, it is additionally provided with Temperature Humidity Sensor, with micro-place
Reason device connects.
In device of the present invention, this active window is for renovating window.
In device of the present invention, this microprocessor is additionally provided with wireless communication module, host computer or end
End is connected with microprocessor by this wireless communication module.
In device of the present invention, this device is additionally provided with USB interface and external keyboard.
The present invention also provides for a kind of test paper detecting method based on said apparatus, comprises the following steps:
White balance detects;
Selecting stationery to be tested other by button, microprocessor sends control instruction, and drive stepping motor is transported
OK, driving pallet to move and stretch out sealing detection space, motor moves the sense contact above pallet;
Tested reagent paper is placed on pallet, by button operation, microprocessor driven motor, will hold in the palm
Dish moves in sealing detection space;
Starting secondary light source, the reflection light on tested reagent paper, through convex lens focus, enters color sensing
Device, the frequency signal of the output trichroism correspondence of RGB, microprocessor gathers the frequency values that RGB is corresponding respectively,
Through computing, be converted to HSV color model, calculate corresponding tone value h, by h value and be stored in data
In storehouse, the standard testing strips Data Comparison of corresponding kind, obtains the measured value of tested reagent paper;
The measured value of tested reagent paper is shown on a liquid crystal display.
In method of the present invention, the measured value of tested reagent paper is transmitted supreme by wireless communication interface
Position machine or terminal processes.
In method of the present invention, further comprise the steps of:
Select mode of extension by button, input the title of new standard testing strips, read this standard testing strips
All classifications, carry out the conversion of color space, and RGB is converted to hsv color space, determine that standard is tried
The tone of paper determines decision area thresholding, and inputs corresponding test result, is stored in standard testing strips data base
In.
In method of the present invention, when standby, by liquid crystal display display time, temperature and wet
Degree.
Use the method have the advantages that in the present invention and gathers tested reagent paper by color sensor
Color, by the standard testing strips comparing with storage, it is thus achieved that the test result of tested reagent paper, overcomes
The personal error existed measured by reagent paper, and surveyed data can show and store.
Further, reagent paper test approaches can be extended by on-the-spot or remote upgrade, uses giant-screen to show
Showing, the old people etc. being particularly well-suited to achromate, visual disorder uses, and this device also has clock day
Go through, indoor temperature and humidity display function.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and
Embodiment, is further elaborated to the present invention.Should be appreciated that described herein being embodied as
Example only in order to explain the present invention, is not intended to limit the present invention.
The universal household reagent paper reader device of the embodiment of the present invention, as it is shown in figure 1, include sealing detection
Space 1, this sealing detection space 1 is provided with active window, is provided with motor 6 in it, this stepping electricity
Machine 6 is provided with the pallet 16 for placing tested reagent paper, and pallet 16 is arranged over convex lens 3, convex lens
3 are provided above color sensor 2, are also arranged above secondary light source 4 at pallet 16;This device also includes micro-
Processor 7, is connected with motor 6;Being provided with contact 15 on pallet 16, this electric shock 15 can be arranged
In pallet 16 side, pallet 16 is also arranged above the sense contact 14 being connected with microprocessor 7;This dress
Put and be additionally provided with data storage 10, be connected with microprocessor 7;
This sealing detection space 1 is externally provided with liquid crystal display 9 and button, is all connected with microprocessor 7.
In the embodiment of the present invention, as it is shown in figure 1, by color sensor 2, convex lens 3, secondary light source 4,
Tested reagent paper 5, pallet 16, motor 6, microprocessor 7, data storage 10 and radio communication
Module 11 is built in sealing detection space 1, can overcome the impact of ambient light, button and liquid crystal display
Device 9 is placed in outside, convenient operation.
In one embodiment of the present of invention, active window can be set to renovate window.
Further, this device is additionally provided with USB interface and keyboard 8.This USB interface may be used for device
Charging.When can be extended again by external keyboard 8, the title of input reagent paper.
This device can control motor 6 by microprocessor 7 and move pallet 16 and pass in and out sealing detection space
1, conveniently place or take away tested reagent paper 5;Secondary light source 4 is for the tested reagent paper of uniform irradiation 5, and it is anti-
Penetrate light and concentrate on color sensor 2 through convex lens 3, it is thus achieved that reagent paper color parameter (RGB);Micro-place
Reason device 7, through processing, carries out the conversion of color space, RGB is directly converted to hsv color space,
The tone of establishing criteria reagent paper determines decision area thresholding, compares and obtains the test result of tested reagent paper.
Wireless communication module and host computer communication, can pass through radio communication by the test structure of tested reagent paper
Mode is transferred to host computer storage and preserves, and by the new standard testing strips test data of extension by wireless
Communication mode is transferred to this detection device, and upgrade Test paper data base.
This device can control motor 6 by microprocessor 7 and move pallet 16 and pass in and out sealing detection space
1, simultaneously in the contact 15 that Tray side leaves, it is simple to detection tray position, fixed tray removal and immigration
Final position, as shown in Figure 2.
The color sensor data of this device process through microprocessor 7, carry out the conversion of color space,
Directly RGB being converted to hsv color space, the tone of establishing criteria reagent paper determines decision area thresholding,
Compare and obtain the test structure of tested reagent paper.Its operation method is
The color rgb value of color sensor collecting sample (r, g, b), represent respectively the red, green of color and
Blue value, if the maximum that is respectively in r, g, b of max, min and minima.
Changing from RGB to hsv color space, corresponding relation is
V=max
Color value r of RGB model, g, b are 0~255.Hsv color space is can get according to above formula,
(h, s, v) in color model, h represents tone, the behalf saturation i.e. purity of color to HSV, and v represents
Lightness, h value 0~360 degree, for hue angle, red corresponding to 0 °, green is corresponding to 120 °, blue
Color corresponds to 240 °.Obviously, the color value of RGB model is converted to hue angle h, can distinguish not
Same color.RGB color value according to standard testing strips test is converted to hue angle h, and by standard testing strips
Color be converted to hue angle h and reagent paper test structure with test paper result corresponding relation corresponding, and draw according to this
Divide the comparison threshold of standard testing strips, as the standard of comparison of tested reagent paper.
It is additionally provided with Temperature Humidity Sensor, with micro-outside the sealing detection space of the reagent paper reader device of the present invention
Processor 7 connects.Digital thermometer can be used, microprocessor 7 by with temperature and humidity sensing
The port processing humiture information that device connects.Temperature Humidity Sensor may be disposed at the device back side, liquid crystal display
Device display reagent paper test value, time standby, liquid crystal display can show calendar, time successively, and temperature,
Humidity.
In the preferred embodiment, when carrying out detection paper by said apparatus, by tested reagent paper
Being placed on pallet, measuring method comprises the following steps:
1, carrying out bottom in white balance detection, i.e. pallet before detection is blank sheet of paper, detects its color, carries out
White balance processes;
2, selecting stationery to be tested other by button, microprocessor sends control instruction, drive stepping motor
Running, drive pallet to move and stretch out sealing detection space, motor moves to sense contact 14, user
Tested reagent paper is placed on pallet, by button operation, microprocessor driven motor, pallet is moved
Enter in sealing detection space;
3, starting secondary light source, the reflection light on tested reagent paper, through convex lens focus, enters color and passes
Sensor, the frequency signal of the output trichroism correspondence of RGB, microprocessor gathers the frequency values that RGB is corresponding respectively,
Through computing, be converted to HSV (h, s, v) color model, calculate corresponding tone value h, by h value with deposit
Storage is the standard testing strips Data Comparison of corresponding kind in data base, obtains the measured value of tested reagent paper;
4, the measured value of tested reagent paper can be locally displayed, or is processed by wireless communication transmissions to host computer.
The method that extension reagent paper is measured comprises the following steps:
1, carrying out bottom in white balance detection, i.e. pallet before detection is blank sheet of paper, detects its color, carries out
White balance processes;
2, select extension reagent paper function key by button, new reagent paper classification can be inputted by external keyboard, micro-
Processor sends control instruction, and drive stepping motor is run, and drives pallet to move and stretches out sealing space, step
Entering motor to move to contact 14, tested standard testing strips is placed on pallet by user, by button operation, micro-
Processor drive stepping motor, moves into pallet and seals in space;
3, starting secondary light source, the reflection light on tested reagent paper, through convex lens focus, enters color and passes
Sensor, the frequency signal of the output trichroism correspondence of RGB, microprocessor gathers the frequency values that RGB is corresponding respectively,
Through computing, (h, s, v) color model, calculate corresponding tone value h, stores h to be converted to HSV
Value, and input measured value corresponding to this standard testing strips (such as concentration, content etc.);
4, all standard testing strips of repeated measure, the measured value that storage is corresponding;
5, button prompting terminates reagent paper test, and microprocessor will calculate thresholding according to measured tone value, point
The standard testing strips measured value that pairing is answered, and be stored in data storage;
6, wireless communication unit can be used for system upgrade, extends tested reagent paper kind.
Key Circuit realizes with device
1, the control of tray position
Tray position space is controlled by two contact positions, as shown in Figure 2.When step motor drive torr
When dish is moved to arrange position, pallet contact contact 14, signal becomes 0 to microprocessor from 1
Port p1.7, controls motor out of service;When step motor drive pallet moves into and arranges position, torr
Dish contact contact 13, signal becomes 0 from 1 and stops to the port p1.6 of microprocessor, control motor
Running, pull-up resistor R1, R2 value is 1k Ω.
2, sensor circuit
As it is shown on figure 3, this intelligent detection device comprises color sensor, Temperature Humidity Sensor, all with micro-
Processor is connected, and color sensor selects TCS230 here, and Temperature Humidity Sensor selects SHT10, micro-
Processor is MSP430F4270.The wherein port assignment microprocessor MSP430F4270 of TCS230
I/O port is P6.0~p6.4, and the I/O port of the port assignment microprocessor MSP430F4270 of SHT10 is
P6.6~p6.6, the I/O port of the port assignment microprocessor MSP430F4270 of liquid crystal display be P2.0~
P2.7, P5.0~p5.7
3, charging circuit
This device uses cocoa rechargeable battery powered, charging circuit selection LTC4054-4.2V, as shown in Figure 4,
The 5V voltage that USB inputs is transferred to 4.2V voltage, and by diode blood pressure lowering, obtains 3.0V~3.6V voltage,
Work for system.
4, appearance assumption diagram
The appearance assumption diagram of the present invention is as it is shown in figure 5, i.e. can hang, can also be placed on desktop.Panel
Upper end is liquid crystal display, and bottom is button operation district, and side is pallet discrepancy port, it is also possible at panel
Lower section is offered and is renovated window, directly inserts tested reagent paper.Temperature Humidity Sensor is placed in the back side, liquid crystal display
Reagent paper test value, shows calendar, time, and temperature, humidity successively time standby.It is in low time standby
Power consumption mode, working power is that rechargeable battery is powered.
It should be appreciated that for those of ordinary skills, can be changed according to the above description
Enter or convert, and all these modifications and variations all should belong to the protection domain of claims of the present invention.