NEW 1 READIR 2 IF A=0 1 3 A=F 4 B=7 5 IF A>B 1 6 LED=1 7 C=A 8 DELAY 5 10 READIR 11 IF A=0 10 12 A=F 13 B=18 14 IF A=B 20 15 B=19 16 IF A=B 22 17 GOTO 10 20 G=1 21 GOTO 25 22 G=0 25 LED=0 26 DELAY 3 30 A=C 31 A=A*2 32 A=A+40 33 GOTO A 40 RELAY1=G 41 GOTO 1 42 RELAY2=G 43 GOTO 1 44 RELAY3=G 45 GOTO 1 46 RELAY4=G 47 GOTO 1 48 RELAY5=G 49 GOTO 1 50 RELAY6=G 51 GOTO 1 52 RELAY7=G 53 GOTO 1 54 RELAY8=G 55 GOTO 1 this line and the lines below are comments and can be removed with a text editor or the errors caused by trying to upload them can be ignored ------------------------------- irrelay2.tmb for the RC51-IR Waits for two IR transmissions from handheld remote control unit, turns relays on and off based only on Function code. If first button is within range the LED will go on, and when the second button is within range the LED will go off and the relay will operate. relay 1 on = button 1, code 0, followed by volume up, code 18 relay 1 off = button 1, code 0, followed by vol down, code 19 (relays 2-8, same, using buttons 2-8)