自制带红外遥控的数字显

📅 发布时间:2013-03-11 09:36 👁️ 浏览:1 🏷️ 标签: 红外遥控 数字

自制带红外遥控的数字显示温度控制器(含PCB文件及烧录程序)

自制带红外遥控的数字显示温度控制器(含PCB文件及烧录程序)

 

本文介绍的是带红外遥控的数字显示温度控制器制作,当温度超过40℃,将会报警并打开继电器开启风扇,可以使温度保持在一定水平。红外线控制器可采用philips电视遥控器,用到的功能键是1,2,3,4。数字键1,2,3对应手动打开/关闭三个继电器。数字键4用来控制报警器的开启。

 

该电路的核芯片器件是一51单片机AT89c51,数据转换器ADC0804,它将温度传感器LM35的输入转成数字信号与51单片机的P1口链接。继电器驱动器采用达林顿阵列ULN2003(ULN2003中文资料下载:http://www.dz3w.com/articlescn/materials/0083236.html).

 

This circuit measures temperature in Celsius scale and displays it on an alphanumeric LCD screen When temperature rise to 40 C an alarm is activated and at the same time a relay is also activated which drives a fan to keep the temperature at a level.



Another feature of this circuit is that you can use the keys "1,2,3,4" of a Philips TV IR remote to turn on or off three relays, The key ''4'' is used to turn on or off the over temperature alarm.



Hardware



The brain of this circuit is AT89C51 microcontroller. LM35 is a 3 pin chip which is easily available in TO-92

package. LM35 can sense temperature from 0 C to 100 C but it gives analogue output the microcontroller does not understand analogue data, so ADC0804 (analogue to digital converter) is used to convert it to digital form.



This digital data is given to port 1 of microcontroller. (See the circuit diagram) this data is processed by microcontroller and temperature is displayed on lcd connected to port 2.The control pins of lcd are connected to port 0. port 0 also controls the relays and alarm.

The ULN2003 chip is used to drive the relays because the microcontroller pins don''t have enough current to drive them. so relays cant be connected to microcontroller pins directly further more the relays are inductive load and reverse current is generated in them. Pin 1 to 7 are the inputs and 10to 16 are respective outputs. Pin 8 is ground and pin 9 is connected to the output of 7808 voltage regulator.

The 7805 voltage regulator drives rest of the circuit. I used a standard buzzer driven by LM555 timer/Oscillator chip. The chip is wired as a monostable multivibrator and at its output (i.e. pin no 3) a buzzer is connected.

Use any IR module and connect its Data out to pin 10 of microcontroller. The Relay connected to pin 13 of ULN2003 turns on when temp rises above 40 C so connect the fan to this relay.

带红外遥控功能的数字显示温度控制器



Hardware

As this circuit has many components I advice don''t use Vero boards or point to point boards.



Use a standard pcb. A pcb file is included in the zip file it opens with a software called EAGLE You can download the demo version here its quiet simple and easy to use. So print the pcb on a glossy paper. now place the glossy paper on the pcb. The print should be on the copper side now use an iron to transfer the print on the pcb. After you are done dip the pcb in any enchant I used FeCl3 (ferric chloride). When your pcb is ready pour lots of water to remove any FeCl3 and remove the print using steel wool. Now drill holes and place components.



download the zip folder it contains the images of completed



project, hex file circuit diagram and pcb file.



点击下面链接下载PCB,电路原理图及HEX源程序。

点击下载:数字显示温度控制器PCB及源程序

 

 

实际制作效果图

 

 

 

(点击图片看大图)

 

 

 

觉得这篇文章有帮助吗?