+ All Categories
Home > Documents > File-1389423849

File-1389423849

Date post: 18-Jul-2016
Category:
Upload: saba-nasir
View: 214 times
Download: 0 times
Share this document with a friend
Description:
study
18
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER Under the Guidance of Submitted by Project Title
Transcript

USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER

Under the Guidance of

Submitted by

Project Title

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

5V DC

12V step down transformer

Filter(470µf)

5v RegulatorBridge rectifier

It is a smaller computerHas on-chip RAM, ROM, I/O ports...

RAM ROM

I/O Port

TimerSerial COM Port

Microcontroller

CPU

A single chip

CPU

On-chip RAM

On-chip ROM for program code

4 I/O Ports

Timer 0

Serial PortOSC

Interrupt Control

External interrupts

Timer 1

Timer/Counter

Bus Control

TxD RxDP0 P1 P2 P3

Address/Data

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 CONNECTORThe DB9 (originally DE-9) connector is an analog 9-pin plug of the D-Sub miniature connector family (D-Sub or Sub-D).

It’s 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 14—bit 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

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

Working of project

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

THANKYOU


Recommended