Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

How to interface IR to uC?

Status
Not open for further replies.

ltg

Member level 4
Joined
Feb 24, 2002
Messages
76
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
533
mcp2120 osram

Hi,

I use Op-amp to amplifier signal from phototransitor. I don't know which is best to interface output from Op-amp to a AD I/O or a digital I/O.
I use IR led to send out binary pattern. Would some of you please give me some tips? Thanks in advance!

Best Regards,
ltg
 

waterman

Member level 5
Joined
Mar 27, 2002
Messages
80
Helped
2
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
562
I guess you want to make an remote control.
If so, you could use an IR receiver from makers
(e.g., Sharp) to receive and get an envelop.

Then you could use a counter to count periods
to get remote control code.
 

mr_ghz

Full Member level 5
Joined
Apr 1, 2002
Messages
289
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,298
Activity points
3,551
Hi ltg

as waterman wrote, I think it's best if you use a complete IR receiver.
Normally a transmitted binary datastream is modulated with a carrier-
frequency (e.g. 40kHz). If this signal is 'seen' it would be a logic '1', if
not it's a logic '0'.
You can also build your own receiver (with photodiode and OP's). In this
case you must implement an (high gain) amplifier, a bandpass and after
this a comperator. The output of the comperator drives directly a digital
input of your uC. Perhaps (it depends on the protocol) you can use the
UART-input of your uC.

Greets
 

Analyzer

Full Member level 6
Joined
Nov 18, 2001
Messages
374
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
3,518
Hi,

Maybe you interest at instant hybrid ir-ic's like minisir (www.novalog.com) It is a very talented ic and you can easily connect it to your mcu.

Analyzer.
 

psubiaco

Member level 2
Joined
Apr 6, 2003
Messages
42
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
Italy
Activity points
610
Vishay distribute TSOP1838 which is a complete IR receiver with high sensibility... the IR signal must be modulated at 38KHz, as TV remote controllers do.
In alternative you can use a BJT which amplify the phototransistor signal, taking care to use DC decoupling to avoid sun noise.
Regards. Paolo
 

ltg

Member level 4
Joined
Feb 24, 2002
Messages
76
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
533
Hi,

Thanks a lot for your tips. I'm using SFH420 and SFH320 (OSRAM). But they don't work in dark. I don't why, because IR should be independent which evironment you are?! Do I have wrong amplifier? I use two resistants and an Op-amp.
Best Regards
ltg
 

luben111

Advanced Member level 1
Joined
Mar 2, 2002
Messages
490
Helped
111
Reputation
223
Reaction score
107
Trophy points
1,323
Location
UK
Activity points
3,885

velislav

Junior Member level 2
Joined
Jan 15, 2002
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
71
RC-5 to RS232 converter

A very good explanation of the RC-5 coding and an RC-5 to RS232 converter is described here:

hxxp://www.telesys.ru/projects/proj036/index.shtml
(in russian)
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top