You are on page 1of 32

Supervised By: Engr Abdul Rafay  Khatri

Final Year Poject/Thesis Group

Wahab uddin Nazar (GL) 06ES56


Sami Illahi (AGL) 06ES50
Wasim Abbas 06ES51
Sharyar Jamali 06ES11
Latif gul 06ES20
Controlling the computer remotely
h ?
why?
Almost everybody today is used to operating a remote 
control. 
t l
y TV
y DVD player
DVD player
y Air conditioner 
Continue……

y This small essential device called remote control is 
not so common in the computer world
y Each day the computer is used more and more as a 
multimedia center playing music movies TV
multimedia center, playing music, movies, TV, 
photographs
y Why then not include a remote control like the one 
Why then not include a remote control like the one
included with the appliances the computer is 
emulating?
y The purpose of this project is to construct a very  
different existing solutions so as to control the 
computer remotely in a simple way
computer remotely in a simple way.
Objectives and Aims
Object ves a d s

y launch an application, volume control , stop , 
play/pause type of different operations using TV remote 
/ f ff
from the distance. 

y This project can be extended to control PC  as a remote 
mouse 
Methodology:
et odo ogy:
y Option 1: Add an IrDA port to the computer

•Option 2: Transfer data between an electronic 
circuit and the PC via IrDA
circuit and the PC via IrDA
Continue…..
y This project is an implementation of RC5‐remote 
reception on an 8051microcontroller. 

y The received code is decoded and sent to the PC 
h i d d i d d d d h
remote software written in Visual Basic.

y The cursor position is moved according to the keys 
The cursor position is moved according to the keys
pressed.
Hardware and software to be used
a d a e a d so t a e to be used
HARDWARE:‐

y AT89C2051 MICROCONTROLLER
y MAX 232
y TSOP1738 IR RECEIVER
y TV REMOTE
y 11.0592 MHz CRYSTAL
y PC COM PORT CONNECTOR
SOFTWARE::‐

y Visual Basic 6.0
Third‐generation event‐driven programming language and 
integrated development environment (IDE) from Microsoft for its 
COM
COM programming model. VB is also considered a relatively easy to 
i d l VB i l id d l i l
learn and use programming language, because of its graphical 
development features and BASIC heritage.
y KEIL µVISION‐3
KEIL µVISION‐3
The µVision IDE from Keil combines project management, make
facilities, source code editing, program debugging, and complete
simulation in one p powerful environment. The µ
µVision development
p
platform is easy‐to‐use and it helps you quickly create embedded
programs that work. The µVision editor and debugger are integrated
in a single application that provides a seamless embedded project
development environment.
environment
Testing Technologies used:
est g ec o og es used:

y Checking  Port using hyper terminal of PC
y Infrared sensor testor circuit
y RC5 decoder  implementing on 8051 microcontroller
What contribution would the project make?:
p j

y While using media files, we can control it’s different


operations from the distance.
y This project makes us realize that there is a whole new
world lives on printed circuit boards
and probably more efficient.
y It brings us one more step closer to the future world and
b ild our confidence.
builds fid
Microcontroller AT89C2051:‐
c oco t o e 89C 05 :

Features :‐
92K Bytes of Reprogrammable Flash Memory 
9 Endurance: 10,000 Write/Erase Cycles
9
92.7V to 6V Operating Range
i
9Fully Static Operation: 0 Hz to 24 MHz
9Two‐level Program Memory Lock
9128 x 8 bit Internal RAM
9128 x 8‐bit Internal RAM
915 Programmable I/O Lines
9Two 16‐bit Timer/Counters
9Six Interrupt Sources
9Six Interrupt Sources
9 Programmable Serial UART Channel
9Direct LED Drive Outputs
9 On‐chip Analog Comparator
p g p
MAX232 Line Driver
3 e e

y Microcontroller 8051 works on TTL voltage levels which 
cannot be used to communicate over RS‐232 CMOS level
y level converter is needed which can convert TTL to 
RS232 and RS232 to TTL voltage levels. 
y The most commonly used RS‐232 level converter is 
The most commonly used RS 232 level converter is
MAX232.
y RS232 voltage levels (
RS232 voltage levels (‐10V
10V and 
and +10V)
10V) from 5V power 
from 5V power
supply
Features
ea u es
y Operates From a Single 
5‐V Power Supply With 
1.0‐_F Charge‐Pump 
Capacitors
y Operates Up To 120 Kit/s
y Two Drivers and Two 
Two Drivers and Two
Receivers
y ±30‐V Input Levels
y Low Supply Current . . . 8 
mA Typical
Standard serial interface of MAX232
IR sensor TSOP1738
se so SO 38
y Received modulated infrared signal and converts 
into electrical signal.
i t l ti l i l
Applications:‐
Infrared remote control
Infrared remote control.
Features::‐
y Photodetector and preamplifier circuit in the one package.
y Receives and amplifies the infrared signal without any external component.
Receives and amplifies the infrared signal without any external component
y 5 V output (active at level 0).
y 38 kHz integrated oscillator.
y High sensitivity
High sensitivity.
y High level of immunity to ambient light.
y Improved shielding against electrical field interference.
y TTL and CMOS compatibility
TTL and CMOS compatibility.
Technical
ec ca specification:‐
spec ca o :
y Supply: 5 V
y Power consumption: 0.4 to 1.0 mA (low)
y Min. Ee irradiation: 0.35 mW/m2 typ.
y Angle of detection: 90
A l f d t ti 90
y Dimensions of the casing (mm)12.5 x10x Thickness 5.8
y Temperature range: 
Temperature range: ‐25
25 C to +85 C
C to +85 C
TV remote
e oe
Introduction to RC5 protocol
oduc o o 5 p o oco

y Most audio and video systems are equipped with an 
infrared remote control. A common used standard 
protocol for infrared data communication is the RC5
protocol for infrared data communication is the RC5 
code
y The RC‐5 code from Philips is possibly the most used 
protocol by hobbyists, wide availability of cheap remote 
l b h bb i id il bili f h
controls. 

y The protocol is well defined for different device types 
ensuring compatibility with your whole entertainment 
system.
t
Features
ea u es
y 5 bit address and 6 bit command length (7 
command bits for RC5X) 
y Bi‐phase coding (aka Manchester coding) 
y Carrier frequency of 36kHz 
i f f k
y Constant bit time of 1.778ms (64 cycles of 36 kHz) 
y 2048 different commands which are divided
2048 diff t d hi h di id d
32 addresses each of 64 commands.
cont……
co
The transmitted code is a data word which consists of 
14 bits
9 2 start bits for the automatic gain control in the 
infrared receiver
infrared receiver. 
9 1 toggle bit (change every time when a new 
button is pressed on the ir transmitter)
button is pressed on the ir
9 5 address bits for the system address 
9 6 instruction bits for the pressed key 
6 st uct o b ts o t e p essed ey
PC COM PORT CONNECTOR:‐

y Old PC's used 25 pin connectors but only about 9 
pins were actually used so today most connectors 
i t ll d t d t t
are only 9pin. 
y Each of the 9 pins usually connects to a wire. Besides 
the two wires used for transmitting and receiving 
h i df i i d i i
data.
CONT……..
O
Cont…………….
PIN                             DIRCTION OF SIGNAL
1. ( )( ) g g
Carrier Detect (CD) (from DCE) Incoming signal from a 
modem
2. Received Data (RD) Incoming Data from a DCE
3. Transmitted Data (TD) Outgoing Data to a DCE
4. Data Terminal Ready (DTR) Outgoing handshaking signal
5. Signal Ground Common reference voltage
6. Data Set Ready (DSR) Incoming handshaking signal
7. Request To Send (RTS) Outgoing flow control signal
8. Clear To Send (CTS) Incoming flow control signal
9. Ring Indicator (RI) (from DCE) Incoming signal from a modem
PC Remote control software

•PC Remote Control is a versatile software that allows you to 
control the computer in a simple way, as you do with a TV or 
l h i i l d i h TV
DVD player. 
Available actions

All Numerical Keys  Window keys
Arithmetic Keys  Calculator
Enter Notepad
Escape CD drive control Control
Help panel
Refresh Computer log off
Caps lock Reboot/shutdown 
Tab Volume control  
Back space 5 User defined     
Delete programs. 
Left/Right 
Up/down arrows
Page up/ down
More frequent uses:

y Control of the computer during 
C l  f  h    d i  
multimedia reproduction.
9 Windows media player 

y Presentations

9 Microsoft Power point
Further implementation in future

Control home appliances & devices such as
9 Room lights
9 Fans 
9 Door lock and unlock
9 Washing machines
9 Microwave oven and other  stuff of home appliances
Microwave oven and other stuff of home appliances
Other uses
9 Utility consumption remote meter reading
9 Contact‐less apparatus control
9 Telemetry data transmission
9 Car security systems.
y y
THANKX

You might also like