I am having problems creating a remote control for my Sony TV this is my setup
Picaxe 28x1
Ir led ( http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=160-1061-ND)
Sony Lcd TV KDF-E50A10
Here is my code:
I can not think of any thing else that could be wrong. Thanks for any help you can give.
Picaxe 28x1
Ir led ( http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=160-1061-ND)
Sony Lcd TV KDF-E50A10
Here is my code:
Everything is wired correctly and it emits the infrared light. I even hooked up my 18x with a detector and infrain2 and it transmitted correctly. The TV's remote also works with the infrain2 tansmitting the correct codes.setfreq em16
symbol Outbyte = b1
symbol counter = b2
symbol CUP = 016
symbol CDOWN = 017
symbol VUP = 018
symbol VDOWN = 019
symbol POWER = 021
symbol POWER_OFF = 047
symbol VONE = 064
symbol VTWO = 065
main:
if pin0 = 1 then 'turn Channel Up
outbyte = CUP
gosub ir
goto main
else if pin1 = 1 then 'turn Channel Down
outbyte = CDOWN
gosub ir
goto main
else if pin2 = 1 then 'turn Volume Up
outbyte = VUP
gosub ir
goto main
else if pin3 = 1 then 'turn Volume Down
outbyte = VDOWN
gosub ir
goto main
else if pin4 = 1 then 'turn TV on
outbyte = POWER
gosub ir
goto main
else if pin5 = 1 then 'turn TV off
outbyte = Power_off
gosub ir
goto main
else if pin6 = 1 then 'turn To video 1
outbyte = VONE
gosub ir
goto main
else if pin7 = 1 then 'turn to video 2
outbyte = VTWO
gosub ir
goto main
endif
goto main
ir:
for counter = 1 to 4
irout 0,1,Outbyte
pause 45
next counter
return
I can not think of any thing else that could be wrong. Thanks for any help you can give.