Title: United Arab Emirates University College of Engineering Electrical Department Graduation Project II E
1United 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
2Outlines
- Introduction Design Description.
- Objectives.
- System Operation Details.
- Microcontroller Programming.
- Software Hardware Testing.
- Health, Safety Environment Issues.
- Conclusions Recommendations.
3Wireless Doorbell Intercom System
4Objectives
- 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.
5Work 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.
6System Operation Details
- System Flow Chart.
- System Block Diagram Activities.
7(No Transcript)
8System Block Diagram
9Block Diagram Activities
10PIN Diagram System Main Components
11Pin Diagram
12System Main Components
- Doorbell Intercom
- GSM Mobile phone
- Microcontroller
- GM29 Wireless Modem
- Power Supply
- Max 232
- DTMF
13Doorbell Intercom
- What is an intercom?
- What is a Doorbell Intercom?
- Product Used
14KOCOM INTERCOM
15Microcontroller
- What is Microcontroller?
- Why is it used?
- What type of Microcontroller is used in our
project?
16Wireless Modem
- What is the Wireless Modem?
- Why is it used?
- What is the modem chosen for the project?
17GM 29 Sony Ericsson Wireless Modem
Sub-D socket, 9 pin (RS232 serial port)
18MAX 232
- A full duplex dual driver/receiver chip
- Reduces the RS232 voltage to 5V
19MAX 232 Pin Diagram
20MAX 232 CONNECTION
21DTMF
- What does DTMF stand for?
- Why is it used?
- What kind of DTMF was chosen for our project??
MC145436AP
22DTMF Frequency band
23DTMF Connection
24Power 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.
25Power Supply Components
- Transformer
- Rectifier
- Potentiometer
26Continue
- LM317 Regulator
-
- A regulator converts varying input voltage and
produces a constant "regulated" output voltage.
27LM317 Regulator Circuit
28Power Supply Circuit
29Power Supply Design Calculations
- To calculate the output voltage of the
transformer, the input voltage to the rectifier
was calculated.
30Continue..
- To calculate the value of the filter capacitor
31Continue
- R load was calculated as follows
32Final Power Supply
33GSM Mobile Phone
- What is the GSM Mobile Phone?
- Why is it used in this project?
34Microcontroller Programming
- Software Processes
- PIC Basic Pro Compiler
- How PBC works
- Sample Code for testing
- Implementation issues
- Completed Program
35Software 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.
36PICBasic Compiler Pro
- First computer module based on BASIC language
(1995). - PBASIC used EEPROM (Electrical Erasable
Programmable Read Only Memory). - PicBasic (PBC)
- - faster.
- - limitation.
37How 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.
38PICBasic Pro Compiler Sample Code for testing
39Scrolling LED Program
40Implementation Issues
- Dialing the number
- Mobile State
- Releasing the door latch
41Dialing 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
42Mobile 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
44Releasing the door latch Function Code
45Completed 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
46Completed 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
47Completed 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
48Completed Program
latch DTMFOut PORTB.1,2 IF PORTB.1 Then High
Lock Else Low Lock End IF Return
49Mobile to Microcontroller
50Microcontroller to Modem
51Microcontroller to Intercom
52Health, 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.
53Health, 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.
54Conclusion
- 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.
55References
- 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/
56Thank you for listening
57Any Questions???