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.

How to control a relay using IR detector signal output?

Status
Not open for further replies.

wanbong

Newbie level 5
Joined
Sep 23, 2008
Messages
10
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,350
I'm working on a project using IR Led and IR detector to control a relay.
I created a circuit using 555 timer to create 38Khz square wave so that my IR Led can transmit at 38Khz.
Can anyone explain to me what kind of signal that will be output from the IR detector? As I saw from the oscilloscope my IR detector receive a wave form that look like

-|---|---|---|---|---|

the ' | ' appear when my IR Led waveform has an edge.
If this is correct I don't know how to control a relay from this signal output.
 

Re: IR controller

May i ask for what are you aiming to control through the relay? If you are planning to design an automatic tap or a hand dryer, i can send you a complete working PCB including sensors, and relay. If intrested, please PM me. Good luck.
 

IR controller

at first I'm intend to test the circuit by turning on off a Led light. when I switch on the IR transmitter the Led will switch on -> off or off -> on
 

IR controller

that edge comes out when 38khz is received, to transmit data you have to modulate carrier frequency with data you want to send, on the receiver side it's the modulation that is decoded as data, one popular protocol is RC5, many sites discuss about it and quite easy to understand
 

IR controller

I kind of understand about the RC5, the problem is that I don't know how to read that edge, for example if I use an PIC16f877 I don't know how to make the PIC understand that egde. I saw some sites they let the output from IR detector go through op amp and control a relay, but I don't understand how can it work
 

IR controller

if you only need to switch relay on or off then an IR diode --> op amp --> flip flop (with delay) can do the job, whenever IR signal is received op amp will raise the voltage enough to trigger flop flop

try searching the net you can find schematics of this circuit
 

IR controller

thanks for all ur reply I finish my IR remote control :D
FYI, I use a 555 circuit to generate a 38kHz and NAND it with a PIC that send out serial data.
on the receiver side, I use a TSOP2238 (38kHz) IR detector, the output go through a inverter and go to a PIC. I think this way is easier than using RC5 method
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top