摘要
为了方便对光色成分进行检测和分析,设计了一种以STC89C52单片机和TCS230传感器为核心的颜色检测系统。给出了该检测系统的硬件设计电路以及检测过程的程序流程。用TCS230传感器直接将颜色分量转化为不同频率的脉冲波,通过单片机的I/O口直接获取某一颜色的RGB亮度值,并将结果显示到三位数码管上,以验证该系统对颜色识别的准确性。实验表明:该系统具有准确的颜色识别性能和良好的稳定性。
In order to facilitate detection and analysis of the light color components,a STC89C52MCU and TCS230sensor as the core of the color detection system is designed.The hardware design circuit of the detection system and the program flow of the test results are given.The color component is converted into a pulse wave of different frequency by using the TCS230sensor.The I/Oport of the microcontroller directly obtains the RGB brightness value of a color and the result is displayed on the three bit digital tube to verify the accuracy of the system.Experiments show that the system has accurate color recognition performance and good stability.
作者
李静
梁鹏超
LI Jing;LIANG Pengchao(School of Electronic Information Engineering,Xi'an Technological University,Xi..an 710032)
出处
《计算机与数字工程》
2017年第5期984-987,共4页
Computer & Digital Engineering