Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

interfacing IR receiver to 8051 uc

Status
Not open for further replies.

Dhans

Junior Member level 3
Joined
Sep 14, 2005
Messages
30
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,473
ir receiver 8051

hi

i am doing a project which includes ,IR LED and IR receiver(TSOP 1738)I have to get the receiver output and that output is going to control the stepper motor thro 8051.
I dont know how to write program for receiving the signals from the IR receiver.
can anyone help???

Regards,
dhans.
 

infrared 8051

TSOP1738 receive IR signal and remove modulated portion, output pure digital level signal to your processor.
Next step you have to measure the on/off periode of that signal to determine what code is transmitted.

The are many coding scheme of IR signal, please take a look at :
https://www.epanorama.net/links/irremote.html
 

ir 8051

What is at the transmitter side to send the data for ex rc5 remote/ 555 in astable mode with switch etc. with out know the txd side how you can programme.
 

interfacing infrared

you can use bascom 8051
it is a basic compiler for 8051
it has a command called " getrc4"

here is an example





Dim New As Bit
Dim Command As Byte , Subaddress As Byte

Reset Tcon.0 'triggered by rising edge
On Int0 Receiverc5
Enable Int0
Enable Interrupts
Do
If New = 1 Then 'received new code
Disable Int0
Print Command ; " " ; Subaddress
New = 0 'reset new bit
Enable Int0
End If
Loop



Receiverc5: 'interrupt routine
'the getrc5 routine uses 30 bytes ! of the stack for measuring
'the interval between the bits
Getrc5(subaddress , Command)
New = 1 'set flag
Return




so it receives rc5 code without tedious programming



check also the following links

**broken link removed**

http://www.ustr.net/infrared/infrared1.shtml
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top