Sunteți pe pagina 1din 18

INFRARED REMOTE SWITCH USING 8085

Introduction

This Project “Infrared Remote Switch” is used to Switch On/Off an electrical appliances which
may be Light, Fan etc The Remote control used is an ordinary TV remote control which should
be pointed towards the Kit and by pressing any button the device connected to the system will
toggle on every button press. The above system is monitored and controlled by the 8 bit
Microprocessor. The Microprocessor continuously monitors the Infrared sensor and if it sense
infrared signal then it latches the sensor and the microprocessor toggle the load according to the
software stored on the RAM.

Block Diagram
Circuit Diagram
Flow Chart
Program
0001 0000 PORTA EQU 0CH
0002 0000 PORTB EQU 0DH
0003 0000 REG EQU 0FH
0004 0000 .ORG 4100H
0005 4100 3E 94 MVI A,94H
0006 4102 D3 0F OUT REG
0007 4104 3E 00 MVI A,00H ;Switch Off Lamp
0008 4106 06 00 MVI B,00H
0009 4108 D3 0D OUT PORTB
0010 410A 4F MOV C,A ;Generate Some
Delay
0011 410B 06 02 MVI B,02H
0012 410D 11 0F 00 LOOP1: LXI D,0FH
0013 4110 1B LOOP: DCX D
0014 4111 7B MOV A,E
0015 4112 B2 ORA D
0016 4113 C2 10 41 JNZ LOOP
0017 4116 05 DCR B
0018 4117 C2 0D 41 JNZ LOOP1
0019 411A DB 0C UP1: IN PORTA ;Read Infrared
Sensor
0020 411C E6 01 ANI 01H ;check Infrared
Sensor
0021 411E CA 1A 41 JZ UP1
0022 4121 4F MOV C,A ;Generate Some
Delay
0023 4122 06 02 MVI B,02H
0024 4124 11 0F 00 LOOP2: LXI D,0FH
0025 4127 1B LOOP3: DCX D
0026 4128 7B MOV A,E
0027 4129 B2 ORA D
0028 412A C2 27 41 JNZ LOOP3
0029 412D 05 DCR B
0030 412E C2 24 41 JNZ LOOP2
0031 4131 78 MOV A,B
0032 4132 2F CMA ;Complement
Load
0033 4133 47 MOV B,A
0034 4134 D3 0D OUT PORTB
0035 4136 11 FF FF LXI D,0FFFFH ;Delay
Routine
0036 4139 1B LOOP4: DCX D
0037 413A 7B MOV A,E
0038 413B B2 ORA D
0039 413C C2 39 41 JNZ LOOP4
0040 413F 4F MOV C,A ;Generate Some
Delay
0041 4140 06 02 MVI B,02H
0042 4142 11 0F 00 LOOP5: LXI D,0FH
0043 4145 1B LOOP6: DCX D
0044 4146 7B MOV A,E
0045 4147 B2 ORA D
0046 4148 C2 45 41 JNZ LOOP6
0047 414B 05 DCR B
0048 414C C2 42 41 JNZ LOOP5
0049 414F 4F MOV C,A ;Generate Some
Delay
0050 4150 06 02 MVI B,02H
0051 4152 11 0F 00 LOOP7: LXI D,0FH
0052 4155 1B LOOP8: DCX D
0053 4156 7B MOV A,E
0054 4157 B2 ORA D
0055 4158 C2 55 41 JNZ LOOP8
0056 415B 05 DCR B
0057 415C C2 52 41 JNZ LOOP7
0058 415F DB 0C UP2: IN PORTA ;Read Infrared
Sensor
0059 4161 E6 01 ANI 01H ;check Infrared
Sensor
0060 4163 C2 5F 41 JNZ UP2
0061 4166 4F MOV C,A ;Generate Some
Delay
0062 4167 06 02 MVI B,02H
0063 4169 11 0F 00 LOOP9: LXI D,0FH
0064 416C 1B LOOPA: DCX D
0065 416D 7B MOV A,E
0066 416E B2 ORA D
0067 416F C2 6C 41 JNZ LOOPA
0068 4172 05 DCR B
0069 4173 C2 69 41 JNZ LOOP9
0070 4176 C3 1A 41 JMP UP1
0071 4179 .END
Water level Controller

The water level Controller is a reliable circuit, it takes over the task of indicating
and Controlling the water level in the overhead water tanks. The level of the water
is displayed in the LED Bar graph. The Copper probes are used to sense the water
level. The probes are inserted into the water tank which is to be monitored. This
water-level Controller-cum-alarm circuit is configured around the well-known 8 bit
Microprocessor 8085. It continuously monitors the overhead water level and display
it and it also switch Off the Motor when the tank fills and it will automatically switch
On the Motor when the water level is low. The Microprocessor will also indicate the
water level over the LED display. All the input and output functions are done
through the Programmable Peripheral Interface IC 8255.

Block Diagram
Flow Chart
Circuit Diagram
Program
0001 0000 PORTA EQU 0CH
0002 0000 PORTB EQU 0DH
0003 0000 REG EQU 0FH
0004 0000 .ORG 4100H
0005 4100 3E 94 MVI A,94H
0006 4102 D3 0F OUT REG
0007 4104 3E 00 MVI A,00H ;Switch Off Motor
0008 4106 D3 0D OUT PORTB
0009 4108 DB 0C UP1: IN PORTA ;Read Low Sensors
0010 410A FE FC CPI 0FCH ;check Sensors
0011 410C CA 08 41 JZ UP1
0012 410F 4F MOV C,A
0013 4110 06 02 MVI B,02H
0014 4112 11 0F 00 LOOP1: LXI D,0FH ;Delay Program
0015 4115 1B LOOP: DCX D
0016 4116 7B MOV A,E
0017 4117 B2 ORA D
0018 4118 C2 15 41 JNZ LOOP
0019 411B 05 DCR B
0020 411C C2 12 41 JNZ LOOP1
0021 411F DB 0C IN PORTA ;Read High Sensors
0022 4121 FE FE CPI 0FEH ;check Sensors
0023 4123 CA 08 41 JZ UP1
0024 4126 3E FF MVI A,0FFH ;Switch ON Motor
0025 4128 D3 0D OUT PORTB
0026 412A DB 0C UP2: IN PORTA ;Read Sensors
0027 412C FE FC CPI 0FCH ;check Sensors
0028 412E C2 2A 41 JNZ UP2
0029 4131 4F MOV C,A
0030 4132 06 02 MVI B,02H ;Delay Program
0031 4134 11 0F 00 LOOP2: LXI D,0FH
0032 4137 1B LOOP3: DCX D
0033 4138 7B MOV A,E
0034 4139 B2 ORA D
0035 413A C2 37 41 JNZ LOOP3
0036 413D 05 DCR B
0037 413E C2 34 41 JNZ LOOP2
0038 4141 3E 00 MVI A,00H ;Switch Off Motor
0039 4143 D3 0D OUT PORTB
0040 4145 4F MOV C,A ;Delay Program
0041 4146 06 02 MVI B,02H
0042 4148 11 0F 00 LOOP5: LXI D,0FH
0043 414B 1B LOOP4: DCX D
0044 414C 7B MOV A,E
0045 414D B2 ORA D
0046 414E C2 4B 41 JNZ LOOP4
0047 4151 05 DCR B
0048 4152 C2 48 41 JNZ LOOP5
0049 4155 C3 08 41 JMP UP1
0050 4158 .END
Fire Monitor

This project “Fire Monitor” is used to monitor the Temperature of two Rooms and if
the sensor found any fire in the Room then the alarm will be switched ON until the
Fire is put off else the Reset button is pressed. The Fire was sensed by using the
Thermistor. The Thermistor is a passive device which has a Negative Temperature
Co-efficient (NTC), i.e when the temperature increases then the resistance of the
Thermistor will decrease. A analog comparator is used for the fire sensor circuit , at
normal temperature the output of the comparator is low, and if there is any fire
hazard, then the temperature increases and therefore the resistance of the
Thermistor decreases and the output of the comparator goes High which Trigger the
Microprocessor though the PPI 8255. Then the Microprocessor will switch ON the
Alarm for fire. The above system is monitored and controlled by the 8 bit
Microprocessor. The Microprocessor continuously monitors the two sensors and if
any one of the sensor sense Fire then it latches the sensor and the microprocessor
switch on the Alarm according to the software stored on the RAM.

Block Diagram
Flow chart
Circuit Diagram
Program
0001 0000 PORTA EQU 0CH
0002 0000 PORTB EQU 0DH
0003 0000 REG EQU 0FH
0004 0000 .ORG 4100H
0005 4100 3E 94 MVI A,94H
0006 4102 D3 0F OUT REG
0007 4104 3E 00 MVI A,00H ;Switch Off Alarm
0008 4106 D3 0D OUT PORTB
0009 4108 4F MOV C,A
0010 4109 06 02 MVI B,02H
0011 410B 11 0F 00 LOOP1: LXI D,0FH
0012 410E 1B LOOP: DCX D
0013 410F 7B MOV A,E
0014 4110 B2 ORA D
0015 4111 C2 0E 41 JNZ LOOP
0016 4114 05 DCR B
0017 4115 C2 0B 41 JNZ LOOP1
0018 4118 DB 0C UP1: IN PORTA ;Read Fire Sensors
0019 411A FE FF CPI 0FFH ;check Fire Sensors
0020 411C CA 18 41 JZ UP1
0021 411F 4F MOV C,A
0022 4120 06 02 MVI B,02H
0023 4122 11 0F 00 LOOP2: LXI D,0FH
0024 4125 1B LOOP3: DCX D
0025 4126 7B MOV A,E
0026 4127 B2 ORA D
0027 4128 C2 25 41 JNZ LOOP3
0028 412B 05 DCR B
0029 412C C2 22 41 JNZ LOOP2
0030 412F 3E FF MVI A,0FFH ;Switch ON Alarm
0031 4131 D3 0D OUT PORTB
0032 4133 DB 0C UP2: IN PORTA ;Read Fire Sensors
0033 4135 FE FF CPI 0FFH ;check Fire Sensors
0034 4137 C2 33 41 JNZ UP2
0035 413A 4F MOV C,A
0036 413B 06 02 MVI B,02H
0037 413D 11 0F 00 LOOP4: LXI D,0FH
0038 4140 1B LOOP5: DCX D
0039 4141 7B MOV A,E
0040 4142 B2 ORA D
0041 4143 C2 40 41 JNZ LOOP5
0042 4146 05 DCR B
0043 4147 C2 3D 41 JNZ LOOP4
0044 414A 3E 00 MVI A,00H ;Switch Off Alarm
0045 414C D3 0D OUT PORTB
0046 414E 4F MOV C,A
0047 414F 06 02 MVI B,02H
0048 4151 11 0F 00 LOOP6: LXI D,0FH
0049 4154 1B LOOP7: DCX D
0050 4155 7B MOV A,E
0051 4156 B2 ORA D
0052 4157 C2 54 41 JNZ LOOP7
0053 415A 05 DCR B
0054 415B C2 51 41 JNZ LOOP6
0055 415E C3 18 41 JMP UP1
0056 4161 .END
Access Control System
This project Access Control System is used in the places where we need more
security. It can also used to secure lockers and other protective doors. The system
comprises a number keypad and the keypads are connected to the 8 bit
microprocessor 8085 through the programmable peripheral IC 8255. This is one of
the popular microprocessor.
The microprocessor continuously monitor the keypad and if somebody enters the
password it will check the entered password with the password which was stored in
the memory and if it they are same then the microprocessor will switch on the
device.
In our Project we are controlling a electrical device. The password can be an four
digit number. If we enter the correct password then the microprocessor will switch
on the load. If we want to switch off the load simply press the digit 0 in the keypad.

Block Diagram

Flow Chart
Program

0001 0000 PORTA EQU 0CH


0002 0000 REG EQU 0FH
0003 0000
0004 0000 .ORG 4100H
0005 4100
0006 4100 3E 84 MVI A,84H
0007 4102 D3 0F OUT REG
0008 4104 3E DF MVI A,11011111B ;switch off dev and
alarm
0009 4106 D3 0C OUT PORTA
0010 4108
0011 4108 3E 01 MVI A,01H ;clear display
0012 410A 0E 03 MVI C,03
0013 410C CD 05 00 CALL 0005H
0014 410F 1E 00 MVI E,00H
0015 4111
0016 4111 TOP:
0017 4111 3E 05 MVI A,05H
0018 4113 CD 05 00 CALL 0005H ;get first digit
0019 4116
0020 4116 47 MOV B,A
0021 4117
0022 4117 FE 00 CPI 00H ;if 00 was pressed
switch off the device9
0023 4119 C2 25 41 JNZ DWN
0024 411C 3E DF MVI A,11011111B
0025 411E D3 0C OUT PORTA
0026 4120 1E 00 MVI E,00H
0027 4122 C3 11 41 JMP TOP
0028 4125
0029 4125 3E DE DWN: MVI A,11011110B ;switch on first led
0030 4127 D3 0C OUT PORTA
0031 4129
0032 4129 3E 05 MVI A,05H ;get second digit
0033 412B CD 05 00 CALL 0005H
0034 412E
0035 412E 4F MOV C,A
0036 412F 78 MOV A,B
0037 4130 07 RLC
0038 4131 07 RLC
0039 4132 07 RLC
0040 4133 07 RLC
0041 4134 B1 ORA C
0042 4135 4F MOV C,A ;mov the low digits to C
reg
0043 4136
0044 4136 3E DC MVI A,11011100B ;switch on second LED
0045 4138 D3 0C OUT PORTA
0046 413A
0047 413A 3E 05 MVI A,05H ;get third digit
0048 413C CD 05 00 CALL 0005H
0049 413F
0050 413F 47 MOV B,A
0051 4140
0052 4140 3E D8 MVI A,11011000B ;switch on third LED
0053 4142 D3 0C OUT PORTA
0054 4144
0055 4144 3E 05 MVI A,05H ;get fourth digit
0056 4146 CD 05 00 CALL 0005H
0057 4149
0058 4149
0059 4149 57 MOV D,A
0060 414A 78 MOV A,B
0061 414B 07 RLC
0062 414C 07 RLC
0063 414D 07 RLC
0064 414E 07 RLC
0065 414F B2 ORA D
0066 4150 57 MOV D,A ;mov the low digits to C reg
0067 4151
0068 4151 3E D0 MVI A,11010000B ;switch on forth LED
0069 4153 D3 0C OUT PORTA
0070 4155
0071 4155 3A 01 42 LDA 4201H ;load the lower two digits password
0072 4158 BA CMP D
0073 4159 CA 6A 41 JZ NEXT ;jmp if lower digits are equal
0074 415C 1C INR E ;increment error count
0075 415D 7B MOV A,E
0076 415E FE 03 CPI 03H ;chk if error count was 3
0077 4160 CA 86 41 JZ ALARM ;jmp if eror cnt is 3 to turn on
alarm
0078 4163 3E DF MVI A,11011111B
0079 4165 D3 0C OUT PORTA
0080 4167 C3 11 41 JMP TOP ;if not=3 jmp up
0081 416A 3A 02 42 NEXT: LDA 4202H
0082 416D B9 CMP C
0083 416E CA 7F 41 JZ ON ;JMP if password ok
0084 4171 1C INR E
0085 4172 7B MOV A,E
0086 4173 FE 03 CPI 03H ;chk if error count was 3
0087 4175 CA 86 41 JZ ALARM ;jmp if eror cnt is 3 to turn on
alarm
0088 4178 3E DF MVI A,11011111B
0089 417A D3 0C OUT PORTA
0090 417C C3 11 41 JMP TOP ;if not=3 jmp up
0091 417F
0092 417F 3E CF ON: MVI A,11001111B ;switch on the device
0093 4181 D3 0C OUT PORTA
0094 4183 C3 11 41 JMP TOP
0095 4186
0096 4186 3E FF ALARM: MVI A,11111111B ;switch on alarm
0097 4188 D3 0C OUT PORTA
0098 418A C3 8A 41 JMP $
0099 418D
0100 418D .END

S-ar putea să vă placă și