You are on page 1of 13

CONTROLLING PC USING TV REMOTE

Submitted By:
Dhrumit K. Shukla
Sem: 7th, Branch: EC
Roll no.: 3774

Ishan J. Joshi
Sem: 7th, Branch: EC
Roll no.: 3762

Electronics and Communication Department


Vishwakarma Government Engineering College,
Chandkheda, Gandhinagar.

Company:HI-REL

Guided By:Mr. Anil Gondaliya


HI-REL,Unit-1
Sec-25,Gandhinagar

Title for the project:


CONTROLLING PC BY TV REMOTE

Why is the particular topic chosen? :


We can learn transmission and reception of IR signal and decoding of different IR
communication protocol. The purpose behind selecting this as a project is to enhance our
programming knowledge toward the VB(VISUAL BASICS) language.

Objective and scope of the project :


When using multimedia pc we can perform volume control , stop , play/pause type
of different operations using TV remote from the distance. We can also use TV remote as a
mouse .
This project can be extended to control all function of pc by TV remote.

Methodology:
This project is an implementation of RC5-remote reception on an 8051
microcontroller. The received code is decoded and sent to the PC IR remote software
written in Visual Basic. The cursor position is moved according to the keys pressed.
There are two modes of operation one is as mouse control and second is Windows
media player control.

Flow Chart Diagram of PC Controlling Using TV IR Remote:-

Hardware and software to be used:

HARDWARE:

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

SOFTWARE:

VB
KAIL VISION-3

Testing Technologies used:

CHECKING PORT USING HYPER TERMINAL OF PC

MULTISIM

Statement about the problem :


When watching movies, we frequently have to approach the pc to control the sound,
tracks, etc. In this project, we have to use particular coding protocol for specific remote, so
change of remote will need reprogramming of microcontroller.
What contribution would the project make?:
While using media files, we can control its different operations from the distance.
This project makes us realize that there is a whole new world lives on printed circuit boards
and probably more efficient. It brings us one more step closer to the future world and builds
our confidence.

1. Microcontroller AT89C2051:Features : 2K Bytes of Reprogrammable Flash Memory Endurance: 10,000 Write/Erase


Cycles
2.7V to 6V Operating Range
Fully Static Operation: 0 Hz to 24 MHz
Two-level Program Memory Lock
128 x 8-bit Internal RAM
15 Programmable I/O Lines
Two 16-bit Timer/Counters
Six Interrupt Sources
Programmable Serial UART Channel
Direct LED Drive Outputs
On-chip Analog Comparator
Low-power Idle and Power-down Modes Green (Pb/Halide-free) Packaging
Option

2. MAX232:-

The MAX232 is an integrated circuit that converts signals from an RS-232 serial port to
signals suitable for use in TTL compatible digital logic circuits. The MAX232 is a dual
driver/receiver and typically converts the RX, TX, CTS and RTS signals.
The drivers provide RS-232 voltage level outputs (approx. 7.5 V) from a single + 5 V
supply via on-chip charge pumps and external capacitors. This makes it useful for
implementing RS-232 in devices that otherwise do not need any voltages outside the 0 V to
+ 5 V range, as power supply design does not need to be made more complicated just for
driving the RS-232 in this case.
The receivers reduce RS-232 inputs (which may be as high as 25 V), to standard 5 V TTL
levels. These receivers have a typical threshold of 1.3 V, and a typical hysteresis of 0.5 V.
The later MAX232A is backwards compatible with the original MAX232 but may operate
at higher baud rates and can use smaller external capacitors 0.1 F in place of the 1.0 F
capacitors used with the original device

3. TSOP1738:Details:Received modulated infrared signal and converts into electrical signal.


Features: Photodetector and preamplifier circuit in the one package.
Receives and amplifies the infrared signal without any external component.
5 V output (active at level 0).
38 kHz integrated oscillator.
High sensitivity.
High level of immunity to ambient light.
Improved shielding against electrical field interference.
TTL and CMOS compatibility.
Applications:- Infrared remote control.
Technical specification: Supply: 5 V
Power consumption: 0.4 to 1.0 mA (low)
Min. Ee irradiation: 0.35 mW/m2 typ.
Angle of detection: 90
Dimensions of the casing (mm): 12.5 x 10 x Thickness 5.8
Temperature range: -25 C to +85 C

4. TV REMOTE:Introduction to RC5 Protocol

RC5 Protocol is a standard infrared data communication protocol used in remotes.


This protocol was developed by Philips. It has 2048 different commands which are divided
into 32 addresses each of 64 commands.
RC5 Bit Logic

RC5 standard uses fix bit length & fixed number of bits. It uses bi phase modulation
technique i.e. each bit consists of two part & has a level transition (high to low or low to
high). A '1' is defined by low to high transition & a '0' is defined by high to low transition.
The duration of each bit is equal to 1.778ms since the RC5 protocol consists of 14 bits so
the total duration is approximately 24.8ms. The carrier frequency used for transmitting is
36KHz.
As stated earlier this protocol consists of 14 bits as follows:

The first two bits are the start bits used for Automatic Gain Calibration (AGC) of
the receiver. These are basically two HIGH bits.
The third bit is TOGGLE BIT or CHECK BIT, this bit toggles every time a new
button is pressed.
The next 5 bits ADDRESS BITS each device has a specific address. This is used to
identify which kind of device executes the command bits.
The next 6 bits are COMMAND BITS. These bits are used to give instruction to the
addressed device i.e. what action to perform.

Since the carrier frequency of the RC5 code is 36 KHz we require a receiver with a
response frequency of 36KHz. one such receiver is TSOP1738. It is basically a 3 pin
device & gives demodulated output signal which can directly be decoded by the
microcontroller.

5. PC COM PORT CONNECTOR:-

Old PC's used 25 pin connectors but only about 9 pins were actually used so today most
connectors are only 9pin. Each of the 9 pins usually connects to a wire. Besides the two
wires used for transmitting and receiving data, another pin is signal ground. The voltage on
any wire is measured with respect to this ground.
Thus the minimum number of wires to use for 2-way transmission of data is 3. Except that
it has been known to work with no signal ground wire but with degraded performance and
sometimes with errors. There are still more wires which are for control purposes signalling
only and not for sending bytes. All of these signals could have been shared on a single wire,
but instead, there is a separate dedicated wire for every type of signal. Some (or all) of
these control wires are called "modem control lines". Modem control wires are either in the
asserted state (on) of +12 volts or in the negated state (off) of -12 volts. One of these wires
is to signal the computer to stop sending bytes out the serial port cable. Conversely, another
wire signals the device attached to the serial port to stop sending bytes to the computer. If
the attached device is a modem, other wires may tell the modem to hang up the telephone
line or tell the computer that a connection has been made or that the telephone line is
ringing.

9 Pin Connector on a DTE device (PC connection)


Male RS232
DB9
Pin Number

Direction of signal:

Carrier Detect (CD) (from DCE) Incoming signal from a modem

Received Data (RD) Incoming Data from a DCE

Transmitted Data (TD) Outgoing Data to a DCE

Data Terminal Ready (DTR) Outgoing handshaking signal

Signal Ground Common reference voltage

Data Set Ready (DSR) Incoming handshaking signal

Request To Send (RTS) Outgoing flow control signal

Clear To Send (CTS) Incoming flow control signal

Ring Indicator (RI) (from DCE) Incoming signal from a modem

Summery:-

This Project is basically enhancing our idea towards computer controlling. Visual
Basic is high level language which is widely used in computer field. So, we have chosen
this project in our 7th sem. Project work.
Our company in which we are currently working for this project is Hi-rel.Hi-rel is a
major name in UPS field. Our project head in hi-rel is Mr. Anil Gondaliya, who is a senior
engineer in testing department.

You might also like