Universal Remote I use, which is now programmed to work with any Sony TV :
Problem is, that debug window does not show anything, just a blank space, where the reading should be. I am sure I wired everything correctly, because I did some readings with the multimeter and voltage of the led020 changes when a button on the remote is pressed.
SYMBOL IR_PIN = pin0 ’ you do not use this symbol in your code anywhere symbol infra = b0 ’ lose this symbol as well, so code cleans up a lot
WaitForSignal:
irin 0, infra debug infra ’ use debug without the variable or byte name - that’s an old practise
GOTO WaitForSignal
’ my proposed code… let b0 = 255 ’ if this value shows up in debug, you know where it came from: you WaitForSignal: debug ’ put in an extra debug, so you know if irin is waiting infinitely for a signal irin 0, b0 ’ consider using the optional timeout feature like this: irin [3000, WaitForSignal] 0, b0 debug GOTO WaitForSignal ’ or rather GOTO picaxe_manual2.pdf
The first suggested code didin’t work, the programming editor said “Error: Unknown symbol - infra”, I changed the ‘infra’ to b0 in the code, the debug window showed up, but no luck - same as it was in the beginning.
But…
The second code finally shows something in the debug window. Unfortunately, the b0 variable stays the same all the time.
This means your IR receiver is not giving any signal to the picaxe. Start looking for advice on your circuit. I never used an IR receiver, so I cannot give you any.
Well, first of all, this soldering on Picaxe board looks suspicious to me for some reason…
What I’d suggest first of all - desolder all what you soldered into that board, and replicate circuit shown in Picaxe manual 2 on page 91. You should then have 3 wires going to Picaxe board: V+, GND and signal to input Pin. Best to make circuit on small piece of PCB, but if you have none, freeforming would do.
Another thing is remote control… Do you have another picaxe chip, so you could use IR LED and irout command to test? Good luck!
I tried making the circuit in the beginning, but it did not work, so I thought that this method I am using right now should work for sure. And No, I ain’t got any spare picaxe chips to make a remote. When I was ordering my parts, I thought everything should work just fine with stuff I’ve got right now, but apparently I was wrong.
My best choice probably would be borrowing an original Sony remote from somebody and then test what the debug window shows…
It appears as if you followed the instructions exactly. However, the twisted wires make for lousy connections. Solder those as well and put some tape around them to prevent shorting.
Problem solved. Used ORIGINAL SONY TV REMOTE and everything works just flawlessly. If anybody has a similar problem I recommend to use either a sony tv remote or a second picaxe chip (isotope’s suggestion).