Professional Documents
Culture Documents
Controlling PC Using TV Remote
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
Company:HI-REL
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.
HARDWARE:
AT89C2051 MICROCONTROLLER
MAX 232
TSOP1738 IR RECEIVER
TV REMOTE
11.0592 MHz CRYSTAL
PC COM PORT CONNECTOR
SOFTWARE:
VB
KAIL VISION-3
MULTISIM
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
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.
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.
Direction of signal:
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.