[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107167243A - A kind of four-way Color Recognition System based on TCS3200D - Google Patents

A kind of four-way Color Recognition System based on TCS3200D Download PDF

Info

Publication number
CN107167243A
CN107167243A CN201710540339.4A CN201710540339A CN107167243A CN 107167243 A CN107167243 A CN 107167243A CN 201710540339 A CN201710540339 A CN 201710540339A CN 107167243 A CN107167243 A CN 107167243A
Authority
CN
China
Prior art keywords
color
module
data
recognition system
color recognition
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.)
Pending
Application number
CN201710540339.4A
Other languages
Chinese (zh)
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.)
Harbin University of Science and Technology
Original Assignee
Harbin University of Science and 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 Harbin University of Science and Technology filed Critical Harbin University of Science and Technology
Priority to CN201710540339.4A priority Critical patent/CN107167243A/en
Publication of CN107167243A publication Critical patent/CN107167243A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J3/00Spectrometry; Spectrophotometry; Monochromators; Measuring colours
    • G01J3/46Measurement of colour; Colour measuring devices, e.g. colorimeters
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The invention discloses a kind of Color Recognition System, Optical system module, data collecting system module, data handling system module, display system module etc. are included.Whole system is that, by the processing module using the FPGA of Cyclone IV as core, four-way TCS3200D sensors, optical system and LCD1602 erect what is come.High efficiency fpga chip is taken as data processor, compared to conventional one-piece machine and the Color Detecting System of sensor, there is high-performance, it is low-power consumption, low cost, easily operated and safeguard, while small volume, development ability are strong, the requirement of user's practical application can be met.

Description

A kind of four-way Color Recognition System based on TCS3200D
Technical field
The present invention relates to a kind of Color Recognition System, more particularly to a kind of four-way colour recognition system based on TCS3200D System, belongs to colour recognition control field.
Background technology
With the continuous progress of society, colour recognition is increasingly widely applied in today's society life.Each The extensive use of different field causes colour recognition technology to have quick development, by being organically combined with other technologies, can be Industry Control, product manufacturing provide superior technique with numerous industries such as detection and supported.
Currently, colour recognition technology is mainly realized by single-chip microcomputer simple in construction, easy to use.In society not Under disconnected progressive, colour recognition in industrial and agricultural production with acting on increasing in detecting so that the requirement to colour recognition is gradually carried Height, control cost is not required nothing more than, the raising of practicality and accuracy is also required.Other in the market colour recognition instrument is mainly pin To industrial, and its is expensive, is adapted to colour recognition instrument that medium-sized and small enterprises and personal user use seldom, and precision It is not high.
A kind of Color Recognition System and method of such as Application No. " 20120222489.8 ", wherein Color Recognition System Including white light source, color acquisition module, single-chip microcomputer and LCD display, white light source module includes white light source and connected with it The sealing passage connect, the light of white light source after the sealing passage by being radiated on testee;Color acquisition module includes face Colour sensor and collector lens, collector lens are arranged on before color sensor, and the light of testee reflection passes through the collector lens Gathered by color sensor;The optical signal collected is converted into data signal and is sent to single-chip microcomputer by color sensor enters line number According to processing, the HSI values and rgb value of different color modes are obtained, and is sent to LCD display progress data display.The invention Color Recognition System it is simple in construction, optical system imperfection, precision is not high, if carry out practical application, in addition it is also necessary to have larger Lifting and optimization space.
A kind of and for example wood color identifying system of Application No. " 201510607998.6 ", it includes white luminous light Source, TCS3200D color sensors, programmable controller, LCD liquid crystal touch screens, the light that white emitting light source is sent are anti-through plank Inject into color sensor, color sensor, white emitting light source, LCD liquid crystal touch screens are connected with programmable controller.Should Wood color identifying system is simple in construction, but is due to lack entire optical system, color sensor and tested wood surface Distance is needed to be maintained at the short length ability normal works of 10mm, and the sensor in moving process is easily damaged, and easily occurs thing Therefore.
The content of the invention
The technical problems to be solved by the invention are the deficiencies for background technology, are designed a kind of based on TCS3200D's Four-way Color Recognition System.
In order to solve the above-mentioned technical problem the present invention, devises a set of light for including light source, lens, polarising means and diaphragm System and the four-way Tansducer For Color Distiguishing module based on TCS3200D.Technical scheme is as follows:
A kind of four-way Color Recognition System based on TCS3200D, including optical system, data collecting system, data processing system System, display system etc..
Above-mentioned Color Recognition System, its optical system includes white light LEDs, speculum, collimation lens, the polarizer, incident light Door screen, reflecting surface(Determinand), analyzer, reflection diaphragm, convergent lens.
Above-mentioned Color Recognition System, its data collecting system includes four TCS3200D color sensors, in acquisition system In be positioned over unified plane into field word arrangement.
Above-mentioned Color Recognition System, its data handling system, are employed by A Ertela(Altera)Company's production The Series FPGA chip EP4CE6E22 of Cyclone IV as data handling system main control chip.It is all the said firm to be aided with simultaneously The EPCS16 configuration chips of product and other peripheral circuits constitute whole data handling system.
Above-mentioned Color Recognition System, it shows that the display device of system is LCD1602 liquid crystal displays.
Tetra- controlling switch of S0, S1, S2, S3, are connected by above-mentioned quad-channel sensor in each chip corresponding position respectively Come, then be connected with I/O mouths on main control chip, after four enable OE interconnections and be connected to the I/O mouths of main control chip, four OUT is connected respectively to I/O mouthfuls, will finally be connected with the mains between the VCC and GND of four sensor chips after eight 104 electric capacity in parallel VCC and GND.
The above technical scheme that the present invention takes with existing single-chip microcomputer compared with the technology of sensor combinations, with following skill Art feature:
1. the present invention carries out colour recognition based on FPGA processor and four-way TCS3200D sensors, accuracy of identification is high, expand Property is strong;
2. optical system designed by the present invention the making an uproar of introducing of veiling glare and internal light source to external world before optical signal enters sensor Sound is controlled and removed, and reduces the influence of extraneous veiling glare and internal light source to measurement result;
3. four groups of data that quad-channel sensor involved in the present invention is measured in same object plane are averaging processing, increase Accidental error is reduced while sensor light-receiving area;
4. the data acquisition and processing (DAP) part of the present invention is using TCS3200D sensors as detector, using FPGA as computing, control Core processed, it has the advantages that high-performance, low cost, easily operated and safeguard, while small volume, development ability are strong, user Just the requirement of user's practical application can be met.
Brief description of the drawings
The present invention is used as below in conjunction with drawings and Examples and further illustrated, in accompanying drawing:
Fig. 1 is the system structure diagram of the present invention;
Fig. 2 is the optical system diagram of the present invention;
Fig. 3 is flow chart of the method for the present invention;
Fig. 4 is the main program flow chart of present system work.
Embodiment
In order that the purpose of the present invention, technical scheme and its advantage are more clearly understood, below in conjunction with accompanying drawing and embodiment party Case, the present invention will be described in further detail.
As shown in figure 1, the Color Recognition System of the present invention includes white light source module 20, four-way color acquisition module 30th, FPGA10, LCD display 50 and optical system 40, wherein white light source and with the detailed condition of its optical system referring to figure 2.White light source takes high-brightness white-light LED, the power module for also including powering for its each several part in Color Recognition System(In figure Do not represent to embody)
In the present invention, FPGA10 uses efficient data processor EP4CE6E22C8 fpga chips, to quad-channel sensor The signal that detection comes carries out data processing, has benefited from the high-performance of FPGA device, and the design is used when carrying out data processing A large amount of concurrent operations, improve data processing and response speed.
The color sensor of the present invention uses TCS3200D, for this sensor, is pasted using the SOIC surfaces of 8 pins Dress formula is encapsulated, and 64 photodiodes is integrated with one chip, these photodiodes are divided into four types, wherein 16 Diode carries red filter;16 diodes carry green filter;16 diodes carry blue electric-wave filter;Residue 16 It is individual without any wave filter, so can be through whole optical informations.Simultaneously photodiode in chip not in sequence Arrangement, takes the mode of crossed array, can so reduce incident light and be irradiated to uneven on sensor, reduce colour recognition Difficulty;On the other hand, the identical photodiode of color is in parallel, is evenly distributed on chip, is missed for eliminating position Difference.The typical reference frequency output of the sensor, by programmable two pins, is selected according to demand from 2Hz-500kHz The wave filter of different colours, can also be by two programmable pins come from 100%, 20% or 2% different export ratio The factor, or power remove pattern, output-scale-factor make the output of sensor can adapt to different measurement ranges, improve it Adaptability.
Color acquisition module 30, integrates four TCS3200D sensors and adds capacitor filtering squelch circuit and design Quad-channel sensor module, main purpose is in order to receive the flashlight of diverse location everywhere in the same plane, in order to eliminate Accidental error in system.It thereby may be ensured that color sensor exports accurate frequency.
Four-way color sensor is enabled by FPGA and controlled, and the optical signal collected is converted into pulse duration frequency signal, And FPGA10 progress data processings are sent to, it is colour recognition, obtains the rgb value of color to be measured, and pass through conversion decoding hair Give the display that LCD display 50 carries out RGB tristimulus values.
In the present invention, the dutycycle of four-way TCS3200D color sensors output is the pulse of 50% different frequency, institute To realize frequency counter circuit with FPGA design, the four group pulse numbers up to I/O mouthfuls are recorded to it.There are two methods to calculate The three-component values of RGB.The first:Red wave filter is controlled, allows its timer with regular time timing, frequency meter starts work Make, when timer overflows, extract the numerical value in counter, obtain red count value.Indigo plant can be respectively obtained according to aforesaid operations The numerical value of color, green component, then by white balance adjusting, then can obtain the RGB tristimulus values for the color to be measured surveyed.Second Method:Red filter is controlled, allows frequency meter to work, timer starts simultaneously at timing, when the numerical value of frequency meter reaches 255, The time in timer is extracted, according to the method described above, blueness, the time of green component can be measured, then by white balance adjusting, then It can obtain the RGB tristimulus values for the color to be measured surveyed.Tested by multiple contrast experiment, obtain the accidental mistake of first method Difference is less than second, so the system is counted using first method.
Light source selected by the present invention is CIE standard light source D65, but is due to that the factors such as external environment can be a certain degree of Measurement result is influenceed, in order to ensure the accuracy of measurement result, the offset error brought by external environment is reduced.In measurement Before, white balance calibration is carried out to instrument first.So-called white balance calibration, can be divided into Zero point calibration and standard white plate calibration two Kind, in the present invention, because being accomplished that the identification measurement of color, using blank calibration as white balance calibrating method, Comprise the following steps that:
Color detection is carried out to standard white plate using a whole set of chromatic measuring system under total darkness environment, so as to obtain three data values, remembered For,,
Will,,These three values as the system reference value.
In the color measuring carried out after, by obtained RGB tristimulus values and reference value,,Business is respectively, Using this as measurement final result.
As shown in Fig. 2 in figure:S201 is white light LEDs;S202 is collimation lens;S203 is the polarizer;S204 is incident light Door screen;S205 is determinand reflecting surface;S206 is analyzer;S207 is reflection diaphragm;S208 is convergent lens;S209 is four-way TCS3200D sensors.
Inside the optical system of color acquisition system, the light from spot light LED is formed by parabolic mirror Directional light.Directional light makes light become homogeneous soft through one piece of collimation lens.Light changes polarization direction through polarizer.Most By diaphragm irradiation, a certain amount of light completes incident light irradiation on the test object afterwards;According to principle of reflection, launch from determinand The light for carrying colouring information enters reflection channel, and the flashlight of mirror-reflection is eliminated by polarizer, is hidden again by diaphragm The unnecessary light of gear, allows light uniformly to converge on quad-channel sensor through plus lens.
As shown in figure 3, Color Recognition System of the present invention, measuring process is as follows:
S301, by optical system by uniform, the soft irradiation of white light on the test object;
S302, by FPGA control sensor enable, measure testee reflection come optical signal;
The optical signal collected is switched to data signal by S303, color sensor, and is transferred to FPGA data processing center;
S304, FPGA are handled the data collected;
S305, by the RGB tristimulus values obtained after data processing, be sent to LCD display carry out data display;
In the present invention, the main program flow chart of Color Recognition System work is as shown in figure 4, comprise the following steps:
S401, Color Recognition System beginning;
S402, Color Recognition System are initialized, predominantly sensor Enable Pin, I/O mouthfuls of data transfer and LCD display I/O mouthfuls of 8 data initialization;
After the completion of S403, initialization, system white balance adjusting is carried out;
S404, if desired progress white balance adjusting, enable white balance module, gather white balance RGB component, calculate white balance and adjust Save the factor;If need not if be directly entered s405;
S405, judge whether to detect colour recognition instruction;
S406, if detect colour recognition instruction if carry out data reading and processing, if not detecting colour recognition Instruction, which is then returned, to be continued to detect;
S407, judge whether processing terminates RGB tristimulus values;
If S408, processing terminate, into LCD display module, the RGB tristimulus values measured is shown;If processing does not terminate, Continue whether detection process terminates, untill processing terminates;
Patent of the present invention is a kind of four-way Color Recognition System based on TCS3200D, and whole system is by with Cyclone IV FPGA erects what is come for processing module, four-way TCS3200D sensors, optical system and the LCD1602 of core.Take height Efficiency FPGA data process chip, compared to conventional one-piece machine and the Color Detecting System of sensor, with high-performance, low-power consumption, It is inexpensive, easily operated and the advantages of safeguard, while small volume, development ability are strong, the requirement of user's practical application can be met.
Those skilled in the art of the present technique it is understood that unless otherwise defined, all terms used herein have with The general understanding meaning of those of ordinary skill in art of the present invention is identical.
To those skilled in the art, it can according to the above description be improved or be converted, and it is all these Modifications and variations belong to the protection domain of appended claims of the present invention.

Claims (6)

1. a kind of four-way Color Recognition System based on TCS3200D comprising Optical system module, data collecting system module, Data handling system module, display system module, standard sources module, it is characterised in that:
Color acquisition system S30 Enable Pins, the light projected by standard sources S20 are directly controlled by FPGA programmable I/O interfaces Line is projected on color acquisition system S30 after being handled through optical system S40, and the processing of data and LCD display decodings are in FPGA Complete, data are shown in piece by outside independent display module S50.
2. the Color Recognition System described in claim 1, it is characterised in that:Described color acquisition system S30 sensors are in field Font is arranged, and its chip model is TCS3200D, while being integrated with capacitor filtering squelch circuit on piece and using containing silver wire Welding.
3. Color Recognition System according to claim 1, it is characterised in that:Described data processing module S10 is employed EP4CE622C8 main control chips in the FPGA of Cyclone IV and combining with the EPCS16 configuration chips of altera corp are built Active serial configuration circuit, uses jtag port to carry out data download and draw whole I/O pins to arrange aciculiform formula.
4. Color Recognition System according to claim 1, it is characterised in that:Described display module S50 uses LCD1602 Display screen simultaneously carries out instruction write-in using the drive circuit realized in FPGA pieces to it.
5. Color Recognition System according to claim 1, it is characterised in that:Described optical system S40, knows in this color The collimated lens processing of light projected in other system by light source is projected into after the polarizer to be radiated on object plane to be measured through diaphragm, The flashlight of reflection injects convergent lens through analyzer and diaphragm processing again, and most flashlight is incident upon in sensor plane at last.
6. Color Recognition System according to claim 1, it is characterised in that:The light source S20 is CIE standard light source D65, This light source is placed in paraboloid reflecting cup focal point, while reflector uses vacuum evaporation of aluminum technique plated film.
CN201710540339.4A 2017-07-05 2017-07-05 A kind of four-way Color Recognition System based on TCS3200D Pending CN107167243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710540339.4A CN107167243A (en) 2017-07-05 2017-07-05 A kind of four-way Color Recognition System based on TCS3200D

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710540339.4A CN107167243A (en) 2017-07-05 2017-07-05 A kind of four-way Color Recognition System based on TCS3200D

Publications (1)

Publication Number Publication Date
CN107167243A true CN107167243A (en) 2017-09-15

Family

ID=59822605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710540339.4A Pending CN107167243A (en) 2017-07-05 2017-07-05 A kind of four-way Color Recognition System based on TCS3200D

Country Status (1)

Country Link
CN (1) CN107167243A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107576391A (en) * 2017-10-20 2018-01-12 哈尔滨理工大学 A kind of blue light detecting system
CN108255005A (en) * 2017-12-29 2018-07-06 花花猫显示科技有限公司 For the three primary light source control of laser projection and color measurement system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
许超等: "基于TCS3200的颜色检测装置设计及光路优化", 《微处理机》 *
马文秀等: "基于TCS3200D 数字式颜色测试仪的研究", 《微型机与应用》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107576391A (en) * 2017-10-20 2018-01-12 哈尔滨理工大学 A kind of blue light detecting system
CN108255005A (en) * 2017-12-29 2018-07-06 花花猫显示科技有限公司 For the three primary light source control of laser projection and color measurement system

Similar Documents

Publication Publication Date Title
CN205246547U (en) Urine analysis detecting system based on color sensor
CN109839364A (en) A kind of gas sensor probe and detection device based on multiple spot reflecting helix optical path
CN203949857U (en) Hand-held colloidal gold strip card reader
CN101556240B (en) Chlorophyll measuring apparatus based on RGB (red, green and blue) three-primary colors digital signals
CN101183025A (en) Color measurement color difference instrument and color measurement method thereof
CN104000600B (en) Percutaneous Photobiology detection device and Percutaneous Jaundice Instrumentation
CN201408167Y (en) Color collecting device of urine analyzer
CN101210951B (en) Built-in illuminating source photo-sensor detection device and test bench possessing same
CN107167243A (en) A kind of four-way Color Recognition System based on TCS3200D
CN202267534U (en) Portable color detector
CN202734965U (en) Color recognition system
CN115773817A (en) Liquid color space RGB value detection device and detection method and application thereof
CN103090899A (en) Test device and test method for sensor
CN207180875U (en) A kind of four-way Color Recognition System based on TCS3200D
CN208751744U (en) A kind of temperature sensor AD 590 quick comparison test device
CN203337259U (en) Hand-held optical radiation meter
CN107153000A (en) A kind of portable filter optical performance detecting device and its detection method
CN101556244B (en) Measurement method for chlorophyll content in cucumber leaves based on RGB chlorophyll meter
CN203688071U (en) Fiber digital portable color photometer
CN207317934U (en) A kind of blue light detecting system
CN102279046A (en) Portable color temperature luminance meter with RGB (red, green, blue) analysis
CN206818389U (en) A kind of portable filter optical performance detecting device
CN203349929U (en) Light quality and illumination intensity sensing detection system
CN108827889A (en) A kind of glue class material discrimination method based on optical characteristics
CN107907487A (en) Nitrogen content intelligent monitoring device during a kind of chemical fertilizer production

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170915