circuit diagram of mobile controlled home appliances

15
 Circuit diagram of mobile controlled home appliances

Upload: subhasreekonar

Post on 02-Jun-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 2: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 2/15

Components required for home automation

1. Regulated power supply

2. DTMF decoder IC (M-8870)

3. Resistors (100Ω; 100kΩ; 70kΩ; 390kΩ)

4. Capacitors (0.1µFx 2)

5. Crystal oscillator (3.579545MHz)

6. IC 7474 D flip flop

7. BC547 Transistor

8. 6V relay

9. DTMF BASED HOME APPLIANCES CONTROL

INTRODUCTION:

Today’s the demand for better home security systems has drifted over to a need for homeautomation. Not only does a home need to be secure but home appliances need a more refinedcontrol system. Home appliances should not be limited to only local control. There needs to bea simple and elegant way to avoid this type of situation and allow people the freedom of

Page 3: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 3/15

having complete control of their house from anywhere. With this fact in mind we have build aproject for the home automation controls. The key to this control system will be the use of atelephone for a two way communication path to the central control unit.With this system, it is possible to operate domestic electrical devices safety by using public ormobile phones from any places all over the world.The basic idea of this project is to take advantage of the vast network of telephone lines andthe proliferation of cell phones to extend human’s reach and possibilities. The system, throughtelephone networks, connects the user home appliances at home and gives him/her the abilityto switch them ON or OFF. The user dials the home telephone number like an ordinarytelephone call. The telephone at home rings and if nobody picks the call, then the system picksup the call. The system then asks for the password. The user enters the password. Once thepassword is entered, the user will be offered a voice menu and asked to choose from thatmenu. The user chooses an item from the menu by pressing a button on the phone keypad.Pressing a button on the phone generates a DTMF signal which, through the telephone network,will reach the system at home. The system will recognize the received signal and based on thatwill switch on/off the chosen appliance.This project uses DTMF technology for the controls.DTMF, better known as touch-tone, is a system of signal tones used in telecommunications.Applications include voice mail, help desks, telephone banking, etc.There are twelve DTMF signals, each of which is made up of two tones from the followingselection: 697 Hz, 770 Hz, 852 Hz, 941 Hz, 1209 Hz, 1336 Hz, 1477 Hz. The tones are divided

AIM & OBJECTIVE

AIM:-1.To make a CELL-PHONE operated DTMF HOME AUTOMATION SYSTEM.2.To make a home security system.3.To prepare remote sensing security system.

OBJECTIVE:-

In the view today society demand it is essential to made a better home security systems. Notonly does a home need to be secure but home appliances need a more refined control system.Home appliances should not be limited to only local control.From the above point of view we have tried to prepare a model for home automation controland security system.

COMPONENTS USED10.

Component name specification quantity

Microcontroller AT89C51 - 1

Page 4: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 4/15

Diode IN4007 2

Crystal Oscillator 12 MHz

3.57Mhz

1

1

Capacitor 0.1µF,63V

33pf

3

2

Relay 10 A,120 V,50 Hz 2

Resistors

Pull up

100 KΩ

1KΩ

4.7 KΩ

10 KΩ

2

4

6

1

BC547(npn) - 3

2 pin connector

Female

male

5V

220V

220V

2

2

2

bulb 60W,230V 1

6 pin connector - 1

4 pin switch 1

Buzzer 5V 1

LCD base - 1

LCD 5V 1

IC base 40 pin

20 pin

18 pin

1

1

1

General purpose PCB 14x9 cm 1

Page 5: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 5/15

11.

12. HOME AUTOMATION MODEL

13.

14. The core of the project is the 8051 microcontroller; it will determine what actions need to

be sent out to the rest of the system. The microcontroller will determine when each sub

part needs to be activated .Other parts include the Phone interface, the decoder and the

appliance connected through the relay.

15.

16.

17. Phone Interface:

18. The telephone line is hooked to the another phone attached to the system This will

communicate directly with the microcontroller through the CM8870 decoder which decodes all16 DTMF tone pairs into a four bit code.

19. CM8870/70C (DTMF decoder):

20.

CM8870/70C is a Full DTMF receiver, uses less than 35mW power consumption, uses quartzcrystal or ceramic resonators, has adjustable acquisition and release times, works in Industrial

Page 6: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 6/15

temperature range and is available in 18-pin DIP, 18-pin DIP EIAJ, 18-pin SOIC, 20-pinPLCC..

Pin Diagram of CM8870C

21.

ATMEL AT89C52 (Microcontroller):

22. he AT89C52 is a low-power, high-performance CMOS 8-bit microcomputer with 8K Flash bytesof Flash programmable and erasable read only memory (PEROM). The device is manufacturedusing Atmel’s high-density nonvolatile memory technology and is compatible with the industry-standard 80C51 and 80C52 instruction set and pinout. The on-chip Flash allows the programmemory to be reprogrammed in-system or by a conventional nonvolatile memory programmer.By combining a versatile 8-bit CPU with Flash on a monolithic chip, the Atmel AT89C52 is apowerful microcomputer which provides a highly-flexible and cost-effective solution to many

embedded control applications.

Pin Diagram of AT89C52

Page 7: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 7/15

23.

1N 4007 DIODE:

24.

It has the following features:1. Low forward voltage drop2. High surge current capacity3. Low reverse leakage current4. V(rrm) = peak repetitive reverse voltage = 1000 V5. I (fsm) = average rectified forward current = 1A6. V(f) = forward voltage = 1.1 V

BC 548 TRANSISTOR: It is general purpose NPN transistor, having the following features:1. Vcbo = 30 V

2. Ic = 100 mA3. Ptotal = 50 mW4. f = 300 MHz

25. LM7805 DC POWER REGULATOR :

26.

It has the following characteristics:1. Operating current - 1 A

Page 8: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 8/15

2. Operating voltages - 5 , 6 , 8 , 9 Vetc

27.

RF TAG:

28.

It has a 4-bit data input

29.

16 X 2 LCD :

30.

It has 16 characters, 2-line display and is used for general purpose.

31.

IC 74LS147 :

32.

It is a 10 to 4 line priority encoder. It encodes 10-line decimal to 4-line BCD.

33.

LCD (JHD162A series)

34.

Display Content: 16 Char x 2 RowCharacter Dots: 5 x 8Driving mode: 1/16D

Available Types:Reflective with EL or Led BacklightEL/100 V AC 400 HzLED/4.2 V DC

LCD pin Diagram:

Page 9: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 9/15

35.

RELAY:

Page 10: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 10/15

A relay is a type of electrically operated switch which is controlled by an electronic circuit. Within

the relay is a coil of wire which generates a magnetic field when a current flows through it. If

sufficient current at the correct voltage flows through the coil, the generated magnetic field

attracts a metal lever which changes the position of the switch.

The advantage of a relay is that it permits a low voltage DC circuit to control a completely

separate high-power circuit - for example a 240V AC mains electricity powered appliance.

CIRCUIT DIAGRAM:

Page 11: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 11/15

CODE OBJECTIVE

Make pin P2.5 = 1 when key ‘1’ is pressed and make P2.5=0 when key ‘2’ is pressed.

ORG 0000h

MOV P2, #0FFH //Configure P2 as Input

Main:

JNB P2.0, $ //Wait till a High Pulse is received from StD

MOV A, P2 //Take data in from the output Latch

ANL A, #1EH //Mask the unwanted bitsRRC A

CJNE A, #01H, C1_MAIN //CHECK IF KEY PRESSED IS ‘1’

SETB P2.5 //IF YES P2.5=1

JMP Main

C1_MAIN:

CJNE A, #01H, MAIN //CHECK IF KEY PRESSED IS ‘2’

CLR P2.5 //IF YES P2.5=0

JMP Main36.

1.

INCLUDE reg_52.pdf

2.

3.

STD EQU P3.0 ;DTMF OUTPUT

4.

Q3 EQU P3.1

5. Q2 EQU P3.2

6.

Q1 EQU P3.3

7.

Q0 EQU P3.4

8.

9.

RING EQU P3.5

Page 12: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 12/15

10.

11.

DIS_A EQU P0.0

12.

DIS_B EQU P0.1

13.

DIS_C EQU P0.2

14.

DIS_D EQU P0.3

15. DIS_E EQU P0.416.

DIS_F EQU P0.5

17.

DIS_G EQU P0.6

18.

19.

DSEG ; This is internal data memory

20. ORG 20H ; Bit adressable memory

21.

22.

DTMF: DS 1

23.

D0 BIT DTMF.0

24.

D1 BIT DTMF.1

25. D2 BIT DTMF.2

26.

D3 BIT DTMF.3

27.

CSEG ; Code begins here

28.

;---------==========----------==========---------=========-

--------

29.

; PROCESSOR INTERRUPT AND RESET VECTORS

30. ;---------==========----------==========---------=========-

--------

31.

ORG 00H ; Reset

32.

MOV SP,#60H

33.

MOV R2,#15H

34.

CALL DISP ;Display - symbol on display35. SETB STD ;Make STD pin as input

36.

37.

TOP: JNB STD,$ ;wait for new data

38.

CALL READ ;Read Data

39.

MOV R2,DTMF

40. CALL DISP ;Display Dialled Data

41.

JB STD,$ ;Wait until the key is

released

42.

AJMP TOP ;Repeat the function

43.

;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

44.

; READ DTMF TONES

45. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

46.

READ:

47.

MOV DTMF,#00H

48.

SETB Q0

49.

SETB Q1

50. SETB Q2

Page 13: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 13/15

Page 14: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 14/15

96.

CLR DIS_D

97.

CLR DIS_G

98.

SETB DIS_E

99.

SETB DIS_F

100. RET

101.

AS4: CJNE R2,#04H,AS5102.

CLR DIS_B

103.

CLR DIS_C

104.

CLR DIS_F

105. CLR DIS_G

106.

SETB DIS_A

107.

SETB DIS_D

108.

SETB DIS_E

109.

RET

110. AS5: CJNE R2,#05H,AS6

111.

CLR DIS_A

112.

CLR DIS_C

113.

CLR DIS_D

114.

CLR DIS_F

115. CLR DIS_G

116.

SETB DIS_B

117.

SETB DIS_E

118.

RET

119.

AS6: CJNE R2,#06H,AS7

120. CLR DIS_A

121.

CLR DIS_C

122.

CLR DIS_D123.

CLR DIS_E

124.

CLR DIS_F

125. CLR DIS_G

126.

SETB DIS_B

127.

RET

128.

AS7: CJNE R2,#07H,AS8

129.

CLR DIS_A

130. CLR DIS_B

131.

CLR DIS_C

132.

SETB DIS_D

133.

SETB DIS_E

134.

SETB DIS_F

135. SETB DIS_G

136.

RET

137.

AS8: CJNE R2,#08H,AS9

138.

CLR DIS_A

139.

CLR DIS_B

140. CLR DIS_C

Page 15: Circuit Diagram of Mobile Controlled Home Appliances

8/11/2019 Circuit Diagram of Mobile Controlled Home Appliances

http://slidepdf.com/reader/full/circuit-diagram-of-mobile-controlled-home-appliances 15/15

141.

CLR DIS_D

142.

CLR DIS_E

143.

CLR DIS_F

144.

CLR DIS_G

145. RET

146.

AS9: CJNE R2,#09H,AS10147.

CLR DIS_A

148.

CLR DIS_B

149.

CLR DIS_C

150. CLR DIS_D

151.

CLR DIS_F

152.

CLR DIS_G

153.

SETB DIS_E

154.

RET

155. AS10: CJNE R2,#15H,AS11 ;symbol for -

156.

SETB DIS_A

157.

SETB DIS_B

158.

SETB DIS_C

159.

SETB DIS_D

160. SETB DIS_E

161.

SETB DIS_F

162.

CLR DIS_G

163.

RET

164.

AS11:

165. CJNE R2,#16H,AS12 ;switch off all disp

166.

SETB DIS_A

167.

SETB DIS_B168.

SETB DIS_C

169.

SETB DIS_D

170. SETB DIS_E

171.

SETB DIS_F

172.

SETB DIS_G

173.

RET

174.

AS12:

175. RET

176.

;**********************************************************

177.

END