Ir remote switch

Mike.

Member
Hello Guys !
I want to build 4-channel IR Receiver Switch circuit to control my fans and lights.
I have following parts on my table :

HARDWARE :

TRANSMITTER : RC-5 BASED TV REMOTE
MICRO-CONTROLLER : PICAXE-08M
IR SENSOR : TSOP1738 (38KHz IR )
POWER SUPPLY : 5V DC REGULATED POWER SUPPLY
LED : 4 LED
RELAY : 4 RELAY
and some resistor and capacitor...

SOFTWARE :
PICAXE PROGRAMMING EDITOR

I want to use my TV remote( RC-5 Protocol) to control my fan & lights.

Working :
As I press key 1 on my Tv remote the channel one relay should turn on.
As I press key 1 again on my Tv remote then channel one relay should turn off.
same for channel2,3 and 4.

If any help is provided then I will be very happy !
 

Goeytex

Senior Member
Mike,

As you probably learned from past experience here with the water tank fiasco, folks do not generally do projects for those that do not help themselves. If you are expecting someone to design the circuitry and write the code for you, that's probably not going to happen.

Here's what I suggest you do.

1. Draw up a schematic and build the circuit on a breadboard.
2. Write the Picaxe Code for the circuit and test.

Details on the Philips RC-5 protocol can be found below:

http://en.wikipedia.org/wiki/RC-5
http://www.sbprojects.com/knowledge/ir/rc5.php
http://www.pcbheaven.com/userpages/The_Philips_RC5_Protocol/
 

Mike.

Member
will this code work !!


'4 channel infrared receiver
main:
low 0
low 1
low 2
low 4

infrain2
'debug infra
'goto loop
if infra = 0 then sw1 'button1=0
if infra = 1 then sw2
if infra = 2 then sw3
if infra = 3 then sw4

goto main

sw1:
high 0
pause 20
goto loop
sw2: high 1
pause 20
goto loop
sw3: high 2
pause 20
goto loop
sw4: high 4
pause 20
goto loop
 

Mike.

Member
Picaxe IR commands only support the Sony Protocol and will not work with your RC-5 Remote
Thanks for your reply..
but Sony protocol means what : RC-4 , RC-5 or any thing else..
 
Top