基于GPRS的显微镜自动控制设计及在孢子中的应用

2018-12-10 12:12:56李相张春光
计算技术与自动化 2018年3期

李相 张春光

摘 要:为了方便用CCD相机采集显微镜下的图像,设计了一种实现显微镜自动控制的方法。利用THB6128芯片驱动步进电机实现焦距的电控调节,利用PT4115芯片控制LED灯实现照明灯光亮暗的调节。上位机通过控制GPRS给单片机发送指令,然后单片机再控制步进电机运动和调节灯光的亮暗,实现显微镜的自动控制;实验证明,上位机通过GPRS,向下位机发送指令,通过调节LED灯的亮暗以及步进电机转动带动载物台的上下移动,实现了在一个合适的光照和焦距下获取清晰的图像;使显微镜控制更加的简化与精确,便于图像的采集。

关键词:STM32;GPRS;步进电机;LED;图像采集

中图分类号:TP2 文献标识码:A

Abstract: In order to use the CCD camera image acquisition under the microscope is convenient,design a method to realize the automatic control of the microscope,drive the stepper motor to achieve the focal length controlled by THB6128 chip control,LED lamp and the lamp can light the dark regulation by the use of PT4115 chip.The host computer through the GPRS control to give instruction to the MCU,then MCU to control stepping motor and adjust the lighting brightness,to achieve automatic control of microscope;experiments show that the host computer through the GPRS command,the crew sent LED,by adjusting the brightness of a lamp and a stepper motor rotates to drive the next stage mobile,can obtain the clear image in a proper light under the microscope and the focal length;more simplified and accurate control,easy image acquisition.

Key words: STM32;GPRS;stepper motor;LED;image acquisition

1 引 言

中國是一个农业发展的大国,为了保证粮食的产量,达到每个居民正常的生活需要,如何保证农产品的质量就变得很重要,所以要对农作物的病害进行提前发现,预防以及治疗[1-2]。水稻作为世界最为重要的粮食作物之一,其病虫防害尤为关键。经调查显示,真菌病害在感染植物时,一般是靠细菌的有性的孢子,作为传播的方法[3-4]。农作物在受到感染后,在潮湿的条件下,一般会产生孢子和菌丝,形成各式各样的白色的丝状物,或者粉末状物体,然后通过空气,水等方式传播出去,因此只要检测空气中孢子的含量,就可以判断农作物是否受到感染[5]。传统的计数方式基本为将在田间采集到的孢子样本,带回实验室后,利用显微镜进行人工计数,但是由于孢子个体小,数量大,利用该方法费时费力,且误差较大[6]。……

登录APP查看全文