Let's Make Robots!

Help with IR Sensor LED020 (UPDATED)


Attached are photos of my circuit on a breadboard.

 

UPDATE IT WORKS!

I posted a video. Ignore the TV in the background. When the universal remote sends a signal it is decoded by the PICAXE (not done manually I found a setting that the sensor can read and decode itself). A LED flashes to show a signal was read. It then shows the number of the code that was sent in the debug window. In a few days I will delete this post and add a turorial. Then its off to making my robot WOOHOO.

 As an added bonus the sensor reads signals from 360 degrees and the remote even made it work when it was under the table. Its nice how much infrared light bounces around the room.

 

SYMBOL IR_PIN  = pin0
SYMBOL LED_PIN = 0
symbol infra = b14

LOW LED_PIN

WaitForSignal:

irin 0, infra
debug infra
HIGH LED_PIN
PAUSE 250
LOW LED_PIN

GOTO WaitForSignal   

AttachmentSize
100_0931.JPG330.71 KB
100_0933.JPG72.05 KB
100_0934.JPG2.57 MB
100_0935.JPG104.12 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

The remote came with my Daewoo TV. If I find a universal remote I am assuming I could program it to work on the same wavelength. I dont want to buy the kit because it costs too much an dI would need 2 of them. I may buy a cheap universal remoter and find a setting that works with it. I also added a pic of the new set up to verify that it should work. Building the circuit is the hard part for me I have the coding experience but electrical engineering is still fairly new ;)

Assuming I want to use my current remote is there a way to make the sensor work if I know the wavelength the remote is using?

If you have an IR-LED and any other picaxe chip lying around; you could set that up as a transmitter. See the infraout command in the picaxe manual picaxe_manual2.pdf That way ou can see if your setup works.  

BTW I's definately go for a cheap universal remote. It will allmost certainly support the sony frequencies and commands. 

infraout stinks, SEROUTs and SERINs are much better, you don't even need an irout-compatible picaxe.
I did consider making my own remote but I would need to make 2 of them. I would also have to order more chips since I am getting low and need to buy something to use for buttons. It is cheaper to just get 2 universal remotes. When I am not on a budget I will make my own remotes because it would make this project a lot more fun and remove the possible problem of the 2 people controlling each bot to not interfere with each other.

I strongly encourage you to make the "circuit". It's between commas because it is no more than a led, with one lead connected to an output pin and the other connected to a pwm....it is 99% of coding.

But assuming you want to stay on the remote, as i sad, you have to search on the net for the protocol used by these daewoo remotes. Once you get thoes informations, you can make your own program which interprets the different pulse lenghts of this protocol. So basically:

1-search for the protocol (internet)

2-check if the frequency is the same (or similar)

3-make the coding (not too easy) 

I think I will get a universal remote. The hope was for the robot to be able to be controlled by a remote at whomevers house I was at. I have the basic cuit on my breadboard already so I have made the "circuit" I was just wanted to make sure the issue was with the remote and sensor not being compatible rather than a small problem with my circuit. Last question ;) This is the first time I've tried to read a value from a pin. Usually it is high 7, low 7, etc. How do I take the value from pin 0 and toss it to b14 so I can see what its value is in the debugger?

Have a look at the documentation for the IR remote upgrade kit. axe040.pdf 

I think this is how it should be set up. In the schematics it shows a 4K7 and a 330 Ohm resistor. Maybe you misread the last one for 33K

 

Picaxe_IR.jpg 

I tried this on a breadboard with my remote control unit, but it could only pick up a few of the buttons. 

That diagram is much better than the ones in the datasheet for the sensor itself...