摘要随着我国国民经济的迅速发展,环境问题越来越得到人民的关注,尤其是大气和水体污染问题。总而言之,环境问题已经成为当今社会的一个热点话题,政府部门也相继推出了一系列相关方针和政策。要完成对环境的实时监测和保护,并预测预报未来环境状况,研制一套能够准确、安全、稳定和实时的环境监测系统尤为重要。本文结合实际情况设计一个基于单片机的环境监测系统。系统以STC89C52单片机为核心的控制,通过温湿度传感器和光强传感器采集环境信息,并通过数码管显示。且具有与单片机通信的功能和超限报警功能。关键词:温湿度;光强传感器;单片机;串口通信AbstractWiththerapiddevelopmentofChina'snationaleconomy,environmentalproblemsbecomemoreandmoregetpeople'sattention,especiallyinairandwaterpollutionproblems.Tomakealongstoryshort,theenvironmentalproblemhasbecomeahottopicintoday'ssociety;governmentdepartmentshavealsolaunchedaseriesofrelatedguidelinesandpolicies.Tocompletetheenvironmentalmonitoringandprotection,andforecastthefuturestateoftheenvironment,developmentofanaccurate,safe,stableandreal-timeenvironmentalmonitoringsystemisparticularlyimportant.Inthispaper,combinedwiththeactualsituationofthedesignofanenvironmentmonitoringsystembasedonmcu.ThecontrolsystembasedonSTC89C52microcontrollerasthecore,throughthetemperatureandhumiditysensorsandlightintensitysensorstocollectenvironmentalinformation,andthroughthedigitaldisplay.WiththeMCUcommunicationfunctionandalarmfunction.Keywords:temperatureandhumidity;lightintensitysensor;MCU;serialcommunication目录1.引言................................................................................................................................12.环境监测系统总体设计.................................................................................................12.1系统设计要求......................................................................................................12.2方案的论证与选择.................................................................................................22.3系统总体框图......................................................................................................43.环境监测系统硬件设计...............................................................................................53.1芯片介绍..............................................................................................................53.1.1STC89C52单片机...................................................................................53.1.2RE200B热释电红外传感器......................................................................53.1.3BISS0001芯片....................................!………………………………63.1.4ISD1420语音芯片..........................错误!未定义书签。3.2语音录放电路的设计............................................................................................83.3串口电路的设计..................................................................................................83.4热释电红外感测电路的设计..............................................................................93.5振荡电路的设计..................................................................................................94.环境监测系统的软件设计..........................................................................................114.1主程序分析.......................!……………………………………………………114.2子程序分析.......................................................