第38卷第1期2015年2月电子器件ChineseJournalofElectronDevicesVol.38No.1Feb.20156117202951206082613021892014-01-162014-02-19DesignofIntelligentIndoorAirPurificationSystem*YAOJia1ZHANGZijia12*ZHULi11.DepartmentOfInformationandControlNanjingUniversityofInformationScienceandTechnologyNanjing210044China2.JiangsuCollaborativeInnovationCenteronAtmosphericEnvironmentandEquipmentTechnologyNanjing210000ChinaAbstractThepurificationofindooraircanimprovetheairqualityinourworkingandlivingenvironment.Anintel-ligentindoorairpurificationsystembasedonC8051F020microcontrollerwasdesigned.ThesystemincludesdataacquisitionmoduledrivercontrolmoduleofmotorandUVlightfeedbacksignaldetectionmoduleofUVlampTFTLCDtouchdisplaymoduleinfraredremotemoduleandthebuzzersoundingmodule.AnintelligentcontrolofindoorairpurificationwasimplementandafriendlyinterfaceTFTLCDtouchdisplaywasprovided.Experimentalresultsshowthatthesystemisreliablestableandeffectivewhichcanbeadaptedtodifferentapplications.KeywordsC8051F020microcontrollerindoorairpurificationsystemintelligentcontrolfriendlyinterfaceEEACC7720doi10.3969/j.issn.1005-9490.2015.01.043*112*11.2100442.210000。C8051F020、、、TFT、TFT。、、。C8051F020TP23A1005-9490201501-0203-061。。、、、2。C8051F020C8051F020、、CO23.2inchTFT、、。1、、CO2DNA。电子器件第38卷、、33、、3。。。。。6h“”。CO2“”。。C8051F020、、、TFT、。DHT11、DSM501、MG811CO2、MQ138。1。图1系统结构框图22.1C8051F0208051、25Mindication/s4352byteRAM64kbyteflash64kbyte。12bit100ksample/s8ADC8bit500ksample/s8ADCPGA212bitDAC。8byteI/OSMBusI2CTMSPITMUART。516bit16bit53。51。2.24-6。DSM501SYHITECHPWM1μm。、、。DSM5015V100K1。MG811CO2CO2、。CO2EMF。3。MQ138、、、。、。。。DHT11。7-9。DSM501DHT11C8051F020I/OMG811CO2MQ138AD。C8051F02012ADCADC402第1期姚佳张自嘉等智能室内空气净化系统设计100ksample/s±1LSB。8840.5~16。ADAD1100ksample/s3、ADC。C8051F0202。图2气体传感器阵列与C8051F020连接图2.3。。13103、、3。。24VP4.0~P4.3、、3。P4.2P4.3P4.2。、。220V、3。图3电机和紫外灯控制电路2.4。502电子器件第38卷、C8051F020P7.54LAMP_INLM393C8051F020P7.5LAMP_INLAMP_IN。图4灯管信号反馈电路图5ILI9320与液晶屏连接电路2.5TFTLCD12864。ILI93203.2inchTFT。TFT262144240×320。ILI93201137FPCi80/8-bit、i80/16-bit、VSYNCSPI。i80/16-bit5。ADS7846X、YSPIMCU12。。6。图6触摸屏驱动电路33.1、、、、、、、、、7。图7控制系统软件总体设计方框图3.2。8。49。20m3。602第1期姚佳张自嘉等智能室内空气净化系统设计图8控制系统主程序流程图、、10。11。、、。图9控制驱动主板连接实物图图10净化前图11净化后5C8051F020。、C8051F020、、。、、、702电子器件第38卷、、。1.J.2013364554-558.2.AVRD.2010.3CYGNAL.Mixed-Signal64kbyteISPFLASHMCUDatasheet.4MaXTWangHYWangL.IndoorAirQualityDetectandControlSystemBasedonGasSensorArrayJ.JournalofTransducerTech-nology2002211124-27.5.J.200923839-43.6.J.2011107-9.7.J.2011324903-912.8.J.201233142-48.9.C8051F064J.2007302628-632.10.J.201336362-66.11ILITechnologyCorp.ILI9320DatasheetR.12.LM3S1138J.2012417-19.1988-、yaojia1220@126.com1964-、zhzijia@126.com。802