Problems with receiving a signal from LED020

Hello.

I want my robot to be controlled via IR, I'm using LED020 receiver. I'm using this scheme:

And this code to get any readings from my remote:

SYMBOL IR_PIN = pin0
symbol infra = b0

WaitForSignal:

irin 0, infra
debug infra

GOTO WaitForSignal

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.

Please, somebody help me, I am desperate :(

insignificant(?) remarks to your code

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

Still no luck

Thanks for a fast reply.

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 is how it looks like, right now:

let b0 = 255 
WaitForSignal:
debug
irin [30, WaitForSignal], 0, b0  
debug
GOTO WaitForSignal

stop looking for code changes

The value for b0 stays at 255, I am guessing?

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.

Then if anyone is in a mood

Then if anyone is in a mood for some help on my circuit, this is how I hooked everything up:

334jjbo.jpg

ajpidj.jpg

k4in41.jpg

...It cannot get more basic than this and I still do something wrong :D

Yes, exactly. It is stuck on

Yes, exactly. It is stuck on 255 and do not change.

Hmmm…

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

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…

Yes, try that. I had trouble

Yes, try that. I had trouble in past finding proper remote control. Ended up using 08M to send signal.

IMHO still soldering on board suspicious to me… where did you get that schematic from?

Right here

http://www.rev-ed.co.uk/docs/axe040.pdf

Well, if RevEd says to

Well, if RevEd says to solder into boards, they probably know for sure… So, thing left to check is RC…

soldering

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.

Good luck.

Problem solved. Used

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).

 

Thanks everybody for helping me out :slight_smile: