摘要
为了检测产品条形码是否正确,采用PC和条形码读码器检测、比对条形码数据,在PC端采用VB软件开发友好的人机界面显示条形码值以及设置相应参数,并进行数据的记录保存。同时将处理结果通过串口发送至飞思卡尔单片机,单片机再将信号通过SPI总线传输至nRF24L01无线模块发送端,接收端的nRF24L01无线模块将信号通过SPI总线传至单片机,根据条形码正确与否控制步进电机运行,并带动码盘输出条形码。该系统操作简单,可用于教学实训场合或企业产品质检环节。
In order to test the correctness of barcode,the system uses PC and reader of barcode todetect and compare the data of barcode,and uses man-machine interface which is developed by VBsoftware to display the barcode value and set the appropriate parameters,then records and keeps da-ta. Meanwhile the results are sent to Freescale single chip microcomputer through the serial port,then the signal is transferred to the nRF24L01 wireless module sender through SPI bus. At last,thesignal is sent into the single chip microcomputer by the nRF24L01 wireless module through SPI bus,then controls the operation of stepper motor according to the correctness of barcode and output thebarcode. The system is easy to operate,can be used for teaching and product quality detection.
出处
《江汉大学学报(自然科学版)》
2014年第3期63-66,共4页
Journal of Jianghan University:Natural Science Edition
基金
安徽省校企合作实践教育基地项目(2012sjjd047)
安徽省信息技术专业群教学团队项目(2013jxtd051)
关键词
无线传输
条形码
检错系统
wireless transmission
barcode
error detective system