1、 I 摘 要 太阳能是现在社会的绿色能源,人们利用太阳能可以节省好多的能源,所以要 好好利用太阳能,发挥它应有的作用。太阳能热水器因利用太阳能、无污染、使用 方便、长期使用投入费用低等特点而倍受人们的青睐,得到很好的发展。 本设计以单片机 AT89C52 做为控制核心并协调整个系统的工作, 通过数字温度 传感器检测当前水的温度,由于是数字信号就直接送入单片机 AT89C52 内,通过单 片机的处理在 LED 数码管上显示当前的温度值。 另外一路是在水箱中的水压传感器 测水的压力从而得到水位的高低,水压传感器输出的是 05V 的模拟量,要经过 A/D 转换成为数字量再送入单片机 AT89C52
2、进行处理,在 LED 数码管上显示水位 值。按键用来设定想要控制的温度值,单片机在内部通过比较设定的温度和当前温 度,当前温度不满足设定温度时就会闭合电磁开关,开启加热装置。满足设定温度 时断开开关停止加热。自动上水方面是设置水位的上限和下限,水位低于下限时就 会闭合电磁开关,开始上水,当水位高于上线时就会自动断开电磁开关,停止上水。 温度和水位值在时时检测,达到控制目的。 关键词:太阳能热水器;传感器;控制器;单片机 II ABSTRACT Now,solar energy is a green resources, people use solar power can save a lot
3、 of energy, so make good use of solar energy, will play its proper role. Solar water heater also due to use of solar energy, no pollution, easy to use, long-term use of inputs and low cost has attracted peoples favor, well developed. This design used AT89C52 micro controller core as a control and co
4、ordinate the work of the entire system, digital temperature sensor by detecting the current water temperature, because the number of digital signal directly into the MCU AT89C52, through SCM handle LED digital tube displays the current temperature. Another way is the pressure in the tank pressure se
5、nsor measuring the water level to get the water level, water pressure sensor output is 0 5V for analog to go through A/D converted into digital and then processed into the MCU AT89C52, in LED digital tube display level value. Button is used to set the desired temperature and micro controller interna
6、lly by comparing the set temperature and current temperature, current temperature is less than the set value will be closed when the electromagnetic switch, open the heating device. Aspect automatically set the upper limit water level, water level less than the lower limit will be closed electromagnetic switch, will begin to water, the water level reaches the line is automatically disconnected when the electromagnetic switch, stop watering . Temperature and water values detect constantly to