17
Microcontroller Based IR Remote Control Signal Decoder for Home Application JAHIR HUSSAIN.M- 1611110027 1 st YEAR MTECH -PED

MICROCONTROLLER BASED IR FOR HOME APPLICATION

Embed Size (px)

Citation preview

Page 1: MICROCONTROLLER BASED IR FOR HOME APPLICATION

Microcontroller Based IR Remote Control Signal Decoder for Home Application

JAHIR HUSSAIN.M- 16111100271st YEAR MTECH -PED

Page 2: MICROCONTROLLER BASED IR FOR HOME APPLICATION

ABSTRACT

Design and implementation of an infrared (IR) remote control signal decoder used to various home control applications.

Designed remote controlled fan regulator and ON-OFF power supply switch.

Enables the user to control a fan regulator and operate the mains power switch from about 10 meters away.

Page 3: MICROCONTROLLER BASED IR FOR HOME APPLICATION

DEVICE HARDWARE DESIGN

Page 4: MICROCONTROLLER BASED IR FOR HOME APPLICATION

The device consist of blocks namely IR transmitter, IR receiver, microcontroller as decoder, driver circuit.

IR pulses convert into electric pulses using IR sensor and given to microcontroller.

Electric pulses change into data byte using zero crossing detector and on chip timer and interrupt.

Data bytes are used to take control decisions.

Page 5: MICROCONTROLLER BASED IR FOR HOME APPLICATION

Pin Configurations

Page 6: MICROCONTROLLER BASED IR FOR HOME APPLICATION

IR remote transmitter

Page 7: MICROCONTROLLER BASED IR FOR HOME APPLICATION
Page 8: MICROCONTROLLER BASED IR FOR HOME APPLICATION

Zero crossing detectorZero crossing detector generates

pulses for every zero crossing of the input AC signal.

Pulses are fed to the microcontroller interrupt pin through the opto-coupler.

The opto-coupler is used for the isolation of the high voltage AC to the low voltage DC supply at the microcontroller side.

Microcontroller was interrupted for every zero crossing which triggers the TRIAC.

Page 9: MICROCONTROLLER BASED IR FOR HOME APPLICATION

Interfacing diagram

Page 10: MICROCONTROLLER BASED IR FOR HOME APPLICATION

Microcontroller unit as decoderMicrocontroller’s on-chip peripherals

like programmable I/O port, Timer and External Rest, RC-oscillator, EEPROM, Power On Reset (POR).

TSOP-1740 receiver module is used to receive the IR signal form transmitter

Present system to increase or decries output AC voltage the function keys used are ‘Volume +’ and ‘Volume -’ on IR remote transmitter and to ON-OFF AC mains switch ‘Power’ function key is used.

Page 11: MICROCONTROLLER BASED IR FOR HOME APPLICATION

Load DriverPower control device used triac BT136

being least expensive power switch to operate directly on the 110/240V mains.

It withstand a maximum load current 5A.output power is controlled by the phase

delay of the TRIAC drive.delay is referred to the zero crossing of

the Line voltage detected by Zero crossing

detector circuit. The control output from microcontroller

port pin is given to opto-coupler MOC3031M to trigger the triac.

Page 12: MICROCONTROLLER BASED IR FOR HOME APPLICATION

Flow chart

Page 13: MICROCONTROLLER BASED IR FOR HOME APPLICATION

The display circuitDevice provides 10 steep speed

controls from 0 to 9.Current speed is displayed on a

LCD module. The LCD module has on-board display controller.

The display unit is composed of 16 x 2 lines.

The LCD is configured in 4-bit mode with read-write control (WR) pin grounded.

Page 14: MICROCONTROLLER BASED IR FOR HOME APPLICATION

PROGRAM

ORG 0000H

CLR A

HERE JNB P3.0 ; HERE

MOV TMOD, #20H

MOV TH1, #FDH

MOV SCON, #50h

MOV P3, #FFh

MOV A, SBUF

MOV R0, A

CJNE R0, #10h ; HERE1

MOV R0, 255h

GO MOV TMOD, #10h

MOV TL1, #00h

MOV TH1, #DCh

SETB TR1

Page 15: MICROCONTROLLER BASED IR FOR HOME APPLICATION

AGAIN JNB TF1, AGAIN

DJNZ R0 , GO

HERE1 CJNE R0, #20h ; HERE2

MOV R0, 255h

GO1 MOV TMOD ,#20h

MOV TL1, #00h

MOV TH1, #EEh

SETB TR1

AGAIN 1 JNB TF1, AGAIN 1

DJNZ R0 , GO1

HERE2 CJNE R0, #30h ;

MOV R0, 255h

GO2 MOV TMOD ,#30h

MOV TL1, #00h

MOV TH1, #F7h

SETB TR1

AGAIN 2 JNB TF1, AGAIN 2

DJNZ R0 , GO2

Page 16: MICROCONTROLLER BASED IR FOR HOME APPLICATION

CONCLUSION

IR remote control signal decoder is implemented using microcontroller and its application is successfully demonstrated for home applications.

The system is quite cheap, reliable and easy to operate.

Page 17: MICROCONTROLLER BASED IR FOR HOME APPLICATION

THANK YOU