Sie sind auf Seite 1von 18

Project Title

USING TV REMOTE AS A CORDLESS


MOUSE FOR THE COMPUTER
Under the Guidance of

Submitted by

ABSTRACT
A typical TV remote sends coded infrared data that is read by an IR
sensor duly interfaced to a microcontroller and then to the com port of a
PC.
This IR code is traditionally RC5 code as followed by remotes from
PHILIPS.
The same data is then burnt to a microcontroller the output of which
shall drive desired operation through serial port connection as
conventionally performed by the PC Mouse.
Up - down, right - left buttons of the TV remote can be used for as
similar operation to that of a mouse and remotely thus achieving the same
function.

BLOCK DIAGRAM

HARDWARE REQUIREMENTS
POWER SUPPLY
MICROCONTROLLER (AT89S52/AT89C51)

TSOP1738
MAX232
DB9 CONNECTOR

LED
1N4007
RESISTORS
CAPACITORS

230 V AC
50 Hz

Bridge rectifier

5v Regulator

5V
DC
12V step down
transformer

Filter(470f)

It is a smaller computer

Has on-chip RAM, ROM, I/O ports...

CPU

RAM ROM

A single chip
I/O
Port

Serial
Timer COM
Port

Microcontroller

External interrupts
Interrupt
Control

On-chip
ROM for
program
code

Timer/Counter

On-chip
RAM

Timer 1
Timer 0

CPU

OSC

Bus
Control

4 I/O Ports

P0 P1 P2 P3

Address/Data

Serial
Port

TxD RxD

Counter
Inputs

Compatible with MCS-51 Products


8K Bytes of In-System Programmable (ISP) Flash Memory
Endurance: 10,000 Write/Erase Cycles

4.0V to 5.5V Operating Range


Fully Static Operation: 0 Hz to 33 MHz
256 x 8-bit Internal RAM

32 Programmable I/O Lines


Three 16-bit Timer/Counters
Eight Interrupt Sources

Full Duplex UART Serial Channel


Interrupt Recovery from Power-down Mode
Watchdog Timer

Dual Data Pointer

MAX 232
The MAX232 is an integrated circuit that
converts signals from an RS-232serial 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 .
When a MAX232 IC receives a TTL level to
convert, it changes a TTL Logic 0 to

between +3 and +15V, and changes TTL


Logic 1 to between -3 to -15V, and vice
versa for converting from RS232 to TTL.

DB9 CONNECTOR
The DB9 (originally DE-9) connector is an
analog 9-pin plug of the D-Sub miniature
connector family (D-Sub or Sub-D).

Its a standard IR remote control


receiver
supporting all major transmission codes
Pin1 Connected to Ground
Pin2 Connected to Vcc
Pin3 Output Pin
In Between 1st Pin and 2nd Pin we have
to connect one Capacitor
TSOP 1738 Receives 14bit of data

Photo detector and preamplifier in one package


Internal filter for PCM frequency
TTL and CMOS compatibility
Output active low
Low power consumption
High immunity against ambient light
Continuous data transmission possible (up to 2400 bps)
Suitable burst length .10 cycles/burst

Working of project
The project uses an IR receiver such as TSOP1738 that responds to only
specific frequency of 38 kHz
A standard TV remote that delivers infrared codes at 38 kHz is thus
received by the TSOP receiver feeding a 14 bit data so emitted from the
remote to the controller through receiver. The program is so returned that
it recognizes the 14 bit data relating to a particular number being pressed
at the remote.
Here the channel ON & OFF buttons and volume low to volume high
buttons of the TV remote buttons are used for sending specific 14 bit data
to pin 13 of port 3.3.
Software used at the PC receives these commands the serial port being
connected to the MC through MAX232, RS232 interface. Thus the TV
remote works like a mouse from a distance

Keil an ARM Company makes C compilers, macro assemblers, real-time

kernels, debuggers, simulators, integrated environments, evaluation


boards,

and

emulators

for

ARM7/ARM9/Cortex-M3,

XC16x/C16x/ST10, 251, and 8051 MCU families.

Compilers are programs used to convert a High Level Language to

object code. Desktop compilers produce an output object code for the
underlying microprocessor, but not for other microprocessors.

i.e the programs written in one of the HLL like C will compile

the code to run on the system for a particular processor like x86
(underlying microprocessor in the computer).

For example compilers for Dos platform is different from the

Compilers for Unix platform So if one wants to define a compiler


then compiler is a program that translates source code into object
code.

The 8051 Microcontroller and Embedded systems by

Muhammad Ali Mazidi and Janice Gillispie Mazidi , Pearson

Education.
ATMEL 89S52 Data Sheets.
www.atmel.com
www.beyondlogic.org
www.wikipedia.org
www.howstuffworks.com
www.alldatasheets.com

Das könnte Ihnen auch gefallen