单片机的一种智能校园控制系统的设计

目 录
第一章.前言
第二章.智能控制系统设计的方案设计
2.1功能需求的分析 5
2.2系统的构建 5
第三章.硬件设计
3.1时间模块电路设计
3.1.1 STC12C5A60S2的最小系统 7
3.1.2 LCD显示电路 9
3.1.3 时钟发生电路 10
3.1.4数据储存电路 11
3.1.5温度检测电路 14
3.1.6按键电路 14
3.2路灯模块电路 15
3.3灌溉电路 16
第四章.软件设计
4.1系统软件设计整体思路 17
4.2路灯电路软件设计 18
4.3灌溉模块软件设计 19
第五章.智能校园控制系统的调试
5.1路灯模块调试 20
5.2灌溉模块调试 21
第六章.总结 22
致谢 23
参考文献 24
附录 程序代码 25
Abstract
The design based on MCU a campus intelligent control system, aimed at the use of intelligent characteristics of single chip microcomputer and sensors make the campus street lamp and the watering system automatic control, intelligent, save the cost of la *好棒文|www.hbsrm.com +Q: *351916072* 
bor and reduce energy waste. Design firstly the background and requirement of narrative cuts into the subject, then the hardware design and software design of the whole system and the function of the actual debugging analysis of key, which in the hardware design respectively on the selected device is a brief description of introduced, such as buttons, temperature sensors, soil moisture sensors, STC12C5A60S2 microcontroller, LCD1602 LCD display, clock chip and data storage chip and so on. Finally, on this design were a summary. Is used in the design of the digital clock chip DS1302 time and by soil moisture sensor and photosensitive resistance to soil moisture and light according to the detection of intensity, when detecting the humidity is higher than the set value of the driving motor for watering, below a certain value off the motor. When the detection light intensity is higher than a certain value closed street, which is lower than a certain value the open street, through the buttons can set the system time and rang the bell, as well as the threshold, will set a good digital through memory chip for storage, the power down is not lost. The hardware structure of this system is simple, operation is flexible, and it is developed by C language, and the software of KEIL4 program is designed as the tool of development.
Keywords:STC12C5A60S2 microcontroller temperature sensor soil moisture sensor intelligent campus control system;
第一章.前言
随着社会经济的快速发展,人们的生活水平也在不断的提高,伴随着能源及资源的浪费现象也越来越频繁,其中比较突出的就是水电资源的浪费。我们知道目前在很多地区都存在缺水的现象,在南方地区可能由于地理位子比较好,相对来说水资源比较丰富,这时候人们对水的爱惜程度不是很高,尤其是学校。学校内有大量的绿化地,那些都是需要每天不断进行灌溉的,如果通过人力来进行灌溉将是一个非常大的劳力,而且通过人进行浇灌首先人们不知道什么时候浇灌才是比较好的,还有就是要浇灌多久,如果不停的浇灌将会极大的浪费水资源,同时对植被也是一中损害,因此需要设计一个能自动检测土壤湿度的装置,通过检测土壤湿度来控制浇灌。在社会生活中,人们对电的浪费也是非常多的,学校内有很多条道路,为了学生们及工作人员的行走方便,每条道路内都覆盖了路灯,路灯的数量也是非常多的,这些都是通过管理员人为进行控制,当天黑后,管理员就需要打开路灯,等到天亮后就关闭路灯,如果管理员一下忘记关闭的话,那么多的路灯同时点亮将是对电能的极大浪费。因此还需要能够通过检测光线强度来自动控制路灯的开和关。还有就是学校内的打铃系统,能够通过设定几个时间使其自动到达时间后打铃,无需人工干预。综上所述,需要设计一个基于单片机的一种智能校园控制系统,能够自动控制学校内打铃系统,浇灌系统,路灯控制系统的装置。
第二章.一种智能控制系统设计的方案设计
2.1功能需求的分析
在现代社会,全世界都在提倡节能,作为育人为本的学校,首先要给学子门做一个好的榜样。我们知道,如今的学校,不管是大学,中学,还是小学,其规模都已经很大了,尤其是大学。为了能够方便人们行走,每条道路基本上都已经设置了路灯。但是此路灯基本上都是通过管理员人为进行开关,等到天黑管理员打开路灯,天亮关闭路灯。如果管理员不记得关闭,那么整个校园的路灯将白白在那里点亮,对能源是一种极大的浪费。因此需要对路灯进行一个系统的控制,通过使用传感器感应光线强度,能够让其自动打开关闭路灯,这将大量节约能源,也可以有效利用人力资源。学校里面不仅仅只是对路灯进行智能控制,还有学校内的浇灌系统,学校内的绿化是非常大的,如果不能即使有效的对花草进行灌溉,那么整个绿化将严重损坏,我们知道,大面积的绿化其成本是非常高的,如果仅仅因为一次缺水损坏,那将是非常大的一个错误。灌溉也是有条件的,植物对水的吸收及水含量都是有要求的。如果一味灌溉同样会照成植物死去,同时还另外浪费了水资源。因此也需要一个能够自动进行浇灌的系统,通过判断土壤湿度来控制浇水和关闭。

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/dzxx/txgc/1751.html

好棒文