United Arab Emirates University College of Engineering Electrical Department Graduation Project (II) - ELEC 590 - PowerPoint PPT Presentation

1 / 57
About This Presentation
Title:

United Arab Emirates University College of Engineering Electrical Department Graduation Project (II) - ELEC 590

Description:

LM317 Regulator Circuit Power Supply Circuit Power ... the following functions were ... nemesis.lonestar.org/reference/telecom/signaling/dtmf.html http ... – PowerPoint PPT presentation

Number of Views:248
Avg rating:3.0/5.0
Slides: 58
Provided by: stud1329
Category:

less

Transcript and Presenter's Notes

Title: United Arab Emirates University College of Engineering Electrical Department Graduation Project (II) - ELEC 590


1
United Arab Emirates UniversityCollege of
EngineeringElectrical Department Graduation
Project (II) - ELEC 590
Wireless Intercom (Range U.A.E)
Advisors Name Dr. Qurban Ali
Students Names ID Numbers Abeer M.Al
Naimi 200105311 Arwa Abdul Qader
199904138 Halima Abdulla Al Har
200105207 Yousra Abu-Baker Al Siddig
200107215
2
Outlines
  • Introduction Design Description.
  • Objectives.
  • System Operation Details.
  • Microcontroller Programming.
  • Software Hardware Testing.
  • Health, Safety Environment Issues.
  • Conclusions Recommendations.

3
Wireless Doorbell Intercom System
4
Objectives
  • Providing wireless communication bridge between
    mobile phone and intercom.
  • Implementing wireless doorbell intercom system
  • Construct and integrate system modules.
  • deal with the necessary controlling software
  • troubleshoot any problems within development and
    construction phase.

5
Work Strategy
  • Graduation project I
  • Specifying the design.
  • Choosing the design parts and components
  • Studying the theory of wireless communications
  • Studying the microcontroller
  • Studying different system interfaces
  • Graduation project II
  • Writing the software program for the
    microcontroller
  • Implementing the hardware connections.
  • Testing Debugging of the integrated system.

6
System Operation Details
  • System Flow Chart.
  • System Block Diagram Activities.

7
(No Transcript)
8
System Block Diagram
9
Block Diagram Activities
Activity Number
Press the button. 1
Detection of the pressed button. 2
Enable/ disable dialing. 3
Dial the stored number. 4
Mobile state (Busy / Switch off). 5
Play message on intercom. 6
Owner's mobile phone rings. 7
Enable/disable voice communication. 8
Voice communication. 9
Door key decision. 10
Press key "A". 11
Press key "B". 12
Detect key "B" and release door latch. 13
Disconnect the call. 14
10
PIN Diagram System Main Components
11
Pin Diagram
12
System Main Components
  • Doorbell Intercom
  • GSM Mobile phone
  • Microcontroller
  • GM29 Wireless Modem
  • Power Supply
  • Max 232
  • DTMF

13
Doorbell Intercom
  • What is an intercom?
  • What is a Doorbell Intercom?
  • Product Used

14
KOCOM INTERCOM
Specification Item
KOCOM Korea Communications Company Company
DP-306H Model
AC 110/220 V 50/60Hz Used Power
1 Melody Signal Sound
050 oC Assurance Temperature
15
Microcontroller
  • What is Microcontroller?
  • Why is it used?
  • What type of Microcontroller is used in our
    project?

16
Wireless Modem
  • What is the Wireless Modem?
  • Why is it used?
  • What is the modem chosen for the project?

17
GM 29 Sony Ericsson Wireless Modem
Sub-D socket, 9 pin (RS232 serial port)
18
MAX 232
  • A full duplex dual driver/receiver chip
  • Reduces the RS232 voltage to 5V

19
MAX 232 Pin Diagram
20
MAX 232 CONNECTION
No. Name Purpose Connected to
1 C1 connector for capacitor C1 ve end of a 1 µF capacitor
2 Vs output of voltage pump 1 µF capacitor which is connected to a 5V from a side and parallel to an other 1 µF from the other side.
3 C1- - connector for capacitor C1 -ve end of the 1 µF which is connected to C1
4 C2 connector for capacitor C2 ve end of a 1 µF capacitor
5 C2- - connector for capacitor C2 -ve end of the 1 µF which is connected to C1
6 Vs- output of voltage pump / inverter 1 µF capacitor which is connected to an inverter.
7 T2out Driver 2 output -
8 R2in Receiver 2 input -
9 R2out Receiver 2 output -
10 T2in Driver 2 input -
11 T1in Driver 1 input RB7 pin of the 16F876 Microchip
12 R1out Receiver 1 output RB6 pin of the 16F876 Microchip
13 R1in Receiver 1 input Pin 3 of the DB9 side of the RS232 cable
14 T1out Driver 1 output Pin 2 of the DB9 side of the RS232 cable
15 GND Ground Ground
16 VCC Power supply 5V power supply.
21
DTMF
  • What does DTMF stand for?
  • Why is it used?
  • What kind of DTMF was chosen for our project??

MC145436AP
22
DTMF Frequency band
High-Group Frequencies High-Group Frequencies High-Group Frequencies High-Group Frequencies
1633 Hz 1477 Hz 1336 Hz 1209 Hz
A DEF 3 ABC 2 1 697 Hz Low-Group Frequencies
B MNO 6 JKL 5 GHI 4 770 Hz Low-Group Frequencies
C WXY 9 TUV 8 PRS 7 852 Hz Low-Group Frequencies
D OPER 0 941 Hz Low-Group Frequencies
23
DTMF Connection
24
Power Supply Design
  • The voltage required for IC is 5 V.
  • The designed power supply provides a variable
    output DC voltage ranging from 0-15V with a
    voltage ripple 100 mV.

25
Power Supply Components
  • Transformer
  • Rectifier
  • Potentiometer

26
Continue
  • LM317 Regulator
  • A regulator converts varying input voltage and
    produces a constant "regulated" output voltage.

27
LM317 Regulator Circuit
28
Power Supply Circuit
29
Power Supply Design Calculations
  • To calculate the output voltage of the
    transformer, the input voltage to the rectifier
    was calculated.

30
Continue..
  • To calculate the value of the filter capacitor

31
Continue
  • R load was calculated as follows

32
Final Power Supply
33
GSM Mobile Phone
  • What is the GSM Mobile Phone?
  • Why is it used in this project?

34
Microcontroller Programming
  • Software Processes
  • PIC Basic Pro Compiler
  • How PBC works
  • Sample Code for testing
  • Implementation issues
  • Completed Program

35
Software Processes
  • According to the software specifications planned
    for this project, the following functions were
    taken into consideration
  • Connection
  • Modem Initialization.
  • Establishing communication between voice
    handling device and the mobile phone.
  • On board device at home (controller)
  • Dialing the stored number.
  • Deciding mobile phone state (Busy/Switch off).
  • Playing message.
  • Detecting key 'B' and releasing door-latch.
  • Disconnecting the call.

36
PICBasic Compiler Pro
  • First computer module based on BASIC language
    (1995).
  • PBASIC used EEPROM (Electrical Erasable
    Programmable Read Only Memory).
  • PicBasic (PBC)
  • - faster.
  • - limitation.

37
How PBC Works
  • The PBC are a batch of short little assembly
    language program written to do certain tasks.
  • When the compiler is run, it groups those little
    programs together according to the PBC program
    structure.

38
PICBasic Pro Compiler Sample Code for testing
  • Scrolling LED Project

39
Scrolling LED Program
40
Implementation Issues
  • Dialing the number
  • Mobile State
  • Releasing the door latch

41
Dialing Function Code
  • Dial
  • High TXD
  • HSerout"AT" Check the modem status
  • Low TXD
  • Pause 1000
  • High TXD
  • HSerout"ATD0507532112" Store the number
  • Low TXD
  • Pause 1000
  • High TXD
  • HSerout"ATDME0507532112" Dial the stored
    number
  • Low TDX
  • Pause 1000
  • Return

42
Mobile State Function code
me
HIGH TXD HSEROUT "ATX2" ' busy line LOW
TXD PAUSE 2 IF HIGH RXD THEN HSERIN
500,ME,wait("OK") GOSUB msg ELSE HIGH TXD
HSEROUT"ATH" TXD0 RETURN
43
msg
RXD0 High PORTB.0 Sound PORTB.0,dur,freq
'play msg on intercom Pause 6000 Low
PORTB.0 Return
44
Releasing the door latch Function Code

45
Completed Program
DEFINE LOADER_USED1 'only required if
bootloader is used to program PIC DEFINE
HSER_RCSTA 18h 'set recieve register to
receiver enabled DEFINE HSER_TXSTA 98h 'set
transmit register to transmitter enabled DEFINE
HSER_BAUD 9600 'set baud rate DEFINE
HSER_SPBRG 99h 'set SPBRG directly DEFINE
HSER_CLROERR 1 INCLUDE "modedefs.bas" init TRI
SA111000 ' set port A
status TRISB10000010 ' set port
B status PORTA000000 ' initial
state of port A PORTB00000000 '
initial state of port B TXD VAR
PORTB.6 ' Transmit to modem
RXD VAR PORTB.7 ' Recieve from
modem freq VAR WORD dur VAR
WORD Lock VAR PORTB.4
46
Completed Program
main GoSub Dial freq4000 dur7000 GoSub
ME GoSub latch End Dial High TXD HSerout"AT"
'Initialize the Modem Low TXD Pause
2000 High TXD HSerout"ATD0507532112"
'Store number Low TXD Pause 2000 High
TXD HSerout"ATDME0507532112" 'Dial the
stored number Low TXD Pause 2000 Return
47
Completed Program
Pause 2000 Pause 2000 Return ME High
TXD HSerout"ATX2" ' busy line Low
TXD Pause 2 HSerin 500,ME,wait("OK") IF RXD1
Then GoSub msg Else High TXD HSerout "ATH"
Low TXD Pause 2000 EndIF Return msg Low
RXD High PORTB.0 Sound PORTB.0,dur,freq
'play msg on intercom Pause 6000 Low
PORTB.0 Return
48
Completed Program
latch DTMFOut PORTB.1,2 IF PORTB.1 Then High
Lock Else Low Lock End IF Return
49
Mobile to Microcontroller
50
Microcontroller to Modem
51
Microcontroller to Intercom
52
Health, Safety Environment Issues
  • Metal parts should be removed when switching on
    the system.
  • The device (to be installed) inside the house
    should be installed at a location that is not
    reachable by a child to avoid electricity
    contact, and setting of the switch in the away
    mode this would unnecessarily connect to mobile
    phone while owner is in the house.

53
Health, Safety Environment Issues
  • If possible, the device inside the house should
    be housed in safe cover.
  • The frequencies used by the system are GSM
    signals, and are considered safe in the public
    domain.

54
Conclusion
  • The aim is to implement a wireless intercom which
    communicate within the range of UAE.
  • Increase the system mobility and easy to use.
  • Provided us with the opportunity to learn and
    gain experience in many fields.
  • Work with different standards instead of GSM
    standard only, such as GPRS, UMTS, etc.

55
References
  • Intercom, http//www.answers.com/library/Wikipedia
    -cid-965636858, (20/2/2006).
  • What is a Microcontroller, http//www.wisegeek.com
    /what-is-a-microcontroller.htm, (18/4/2006).
  • Code Loader Program, theByteFactory,
    http//www.thebytefactory.com/, (23/4/2006)
  • PIC16F876 Microcontroller, Futurlec,
    http//www.futurlec.com/Microchip/PIC16F876.shtml,
    (23/4/2006)
  • http//www.kmitl.ac.th/kswichit/MAX232/MAX232.htm
  • http//www.datasheetcatalog.com/datasheets_pdf/M/A
    /X/2/MAX232.shtml
  • http//nemesis.lonestar.org/reference/telecom/sign
    aling/dtmf.html
  • http//innovexpo.itee.uq.edu.au/2003/exhibits/s400
    7360/

56
Thank you for listening
57
Any Questions???
Write a Comment
User Comments (0)
About PowerShow.com