它是多通道IR遥控器,因此您可以不仅仅执行单一但具有此遥控器的许多功能。微控制器89C51用于接收器部分,因此可编程遥控器。您可以将其编程为执行特定任务或特定应用程序。我开发的一些应用程序是“Remote control for home appliances”, “Remotely operated DC Motor controller”,“Remotely operated Stepper motor controller”.
If you are not satisfied with single channel remote control then this project will probably satisfy you. It is multi channel IR remote control so you can perform not just single but so many functions with this remote control and its receiving unit. This is multi channel system but here I have utilize only 4 channels but you can add more switches (and also more functions) up to 8 or even more than that. First we will see some of the features of this system
特征:-
- 简单,小巧而方便的遥控器组成IC 556.(或两者IC 555)
- 基于微控制器(89C51)接收单元
- Multi functional, programmable receiving unit
- 工业用途微控制器的应用具体编程
- It’s multi functional unit so can be attached to any application
- 它可以在行业中使用远程控制/操作任何应用/设备
- It can be used in homes/offices to operate any appliance remotely like fan, bulb, air cooler, table lamp etc.
Now let us see some of its applications. Because it’s programmable and multifunctional unit you can find hundreds of its different application but here I am telling you about the applications that I have successfully implemented with this system.
Applications:-
In homes/offices:- It can be used
#远程开/关任何230V交流设备
# As a remote fan/air cooler regulator. Means you can ON/OFF
fan/air cooler and even increase/decrease it’s speed remotely
在行业: - 它可以用作
#AC / DC驱动器的远程控制。你可以控制所有
AC / DC驱动器从安全偏远地点的功能。
# Remote operated DC-Motor controller
# Remote operated Stepper-Motor controller
通过所有这些功能和应用程序,您应该非常兴奋地构建该系统。同样有两个部分是发射器,另一部分是接收器。
1)IR遥控器(变送器)
2)微控制器(89C51基于的接收器单元
IR Remote Control
IR Remote control:-
用于多通道IR遥控器的电路如电路图选项卡所示。
The main components of the circuit are IC 556(dual IC 555) and IC 74LS00 (4 2inputs Nand gates). Both 555 ICs are connected in astable mode. First one U1A is used to generate low frequency signal around 70-500Hz.Second one U1B generates high frequency of 38KHz.
First 555 IC generates 4 different signals of different frequencies depending upon the switch you press (either S1, S2, S3 or S4). All the frequencies are between 70Hz to 500Hz and it depends upon the pots (R5, R6, R7 and R8). This o/p is given to reset i/p of second 555 IC through nand gate. One i/p to nand gate is tide high so it will work as inverter for second i/p. Initially when all keys are open the o/p of U1A is high so because of inverting operation reset pin of U1B will be held low and thus o/p of U1B is also low.
Waveform
Waveform
Whenever you press any switch it completes the path for astable operation of U1A and it will generate low frequency signal. This signal is inverted and given to reset input of U1B. U1B will generate 38KHz signal only when it’s reset pin is high. So o/p of U1A will frequently switch the o/p of U1B ON or OFF.这是well understood by the waveforms given below.
第一个波形是signal given to reset i/p of U1B。Second waveform iso/p of U1B if it’s reset pin is constantly high。因为第一个波形会打开或关闭O / P,所以我们将获得类似于第三波形的O / P。这是询问(幅度移位键控)调制输出。这里由U1A产生的信号将是调制信号,U1B将作为载波(38kHz)发生器。
该调制输出给出2红外LED.(以及一个红色LED)通过晶体管BC546。这些IR LED将产生38kHz的IR光束。
现在最主要的事情。你必须生成特定的frequency every time when any switch is pressed. You can generate range of frequencies from 70 to 500 Hz as you vary 10K pot from min to max. I have chosen some particular values that are 250Hz, 225Hz, 200Hz and 175Hz.
To generate these specific frequencies you need to take help of CRO. Connect the o/p of U1A to CRO. Now short the switch S1. You will get square pulses on CRO. Now start varying pot R8. The frequency will also change. Continuously measure it and stop varying pot when frequency is near about 250Hz (should be in range between 245-255Hz). Do the same procedure for getting other frequencies. The table given below will give you more idea about this.
sr.no. |
转变 |
电位计 |
Frequency (Hz) |
Range (Hz) |
|
Resistor |
Value (K?) |
||||
1 |
S1 |
R8 |
2.63 |
250 |
245-255 |
2 |
S2 |
R5 |
2.9 |
225 |
220-230 |
3 |
S3 |
R6 |
3.3 |
200. |
195-205 |
4 |
S4 |
R7 |
3.8 |
175. |
170-180 |
If you want to increases number of channels you need to have more switches and more different frequencies. You can just go on same way and choose frequencies like 150Hz, 125Hz, 100Hz and so on. Please keep in mind these two things
1)不choose any odd number frequency like 136Hz, 166Hz etc.
2)不要选择彼此非常接近的频率。至少离开
两个频率之间的20Hz的间隙。
(Note:- All the switches are of push button type used in telephone. Trimmers are used as variable resistors. they are very small tiny variable resistors can be varied only by a screw driver. 9V standard battery is used as power supply.)
微控制器(89C51) based receiver unit
微控制器(89C51) based receiver unit:-
单位的框图如下所示
You need only two main components one isIR传感器TSOP 1738另一个是89c51微控制器。要查看此微控制器的功能,请参阅它的数据表。IR传感器的特性是,当它检测到38kHz的红外线时,它将给出低O / P,否则它将提供高O / P。因此,由IR遥控器生成的调制O / P将由该传感器解调,并且脉冲将被给予微控制器。
The o/p of sensor is connected with two i/p pins of micro-controller. One is intrupt1 (pin no.13(P3.3)) and other is timer0 (pin no.14(P3.4)). So when ever pulses detected by sensor and given to microcontroller it will be中断and it will start counting external pulses. Micro-controller will count pulses for 1 second. After 1 second it will store the count oftimer.Because of 1 second time period this count would be exactly same as remote control frequency. This will be better understood by an example.
示例: - 假设按Switch S1。所以传输的频率将是250Hz。意味着1秒内的250个脉冲。微控制器将在中断时开始计数,并将其恰好1秒钟恰好计数,以便计时器中的计数为250或约250。
Now you have to start comparing this count with stored data in micro-controller. Max. and Min. range is given for every count that is +5 and -5. Means range for count 250 is from 245 to 250 (This is why I have suggested range for every frequency in remote control). so if the count falls between this range then micro-controller will lit the firstLED(red) on port P0 (corresponding to first switch S1).
Guess what happens when you press switch S2 (or S3, S4). Now the count doesn’t falls between first ranges (because it will be 225). So the program jumps to next range between 220 to 230. Because the count falls between the range program will lit second LED (green). Same process will repeat when you press switch S3 or S4.
因此,根据您从遥控器按下的开关,相应的LED将在接收器单元上发光。这里微控制器将工作为频率计数器也乐队通过过滤器检测遥控器生成的传入频率。而且它还可以执行特定任务,具体取决于您使用的特定应用程序。
Stay tuned more interesting part is coming now!!!!!!!!!
让我们看看这个系统的一些有趣的应用
Remotely operated DC Motor controller
电路图
提起:188金宝搏提款有问题吗
与本文相关的问题?
Ask and discuss onElectro-tech-online.com.andEdaboard.com论坛。
Tell Us What You Think!!
You must be登录to post a comment.