IR Remote Codes Differ When I Push The Same Button?!

Hi Everybody,

Im trying to create my own remote control,

The plan was get IR code from remote, then use IR LED to transmit that code out.

I am receiving the IR codes fine, but when I press the same button again (standby button)
all the codes change?

Is this right?

This is my first IR project so I a little unsure how IR remote work.

Hope someone can help!

Cheers,

Is this a universal remote? Universal remotes can be placed in "code search" mode. That's where you keep pressing the power button and the remote sends a Sony code, then a Toshiba code, then a Samsung code, etc. When your TV finally responds, you hit another button to tell the remote to store that code and use it from then on.

You may need to read the manual that came with the remote to make sure it's not in code search mode.

It's not uncommon that a sender, being minimally a semi-intelligent device, will knock out a "repeat" code instead of the entire pulse train associated with a particular key.
The first time around a VOL+ code gets knocked out and thereafter "repeats" till there's a timeout or a different key is clicked.

Maybe that's what you're encountering.

Also, on a universal remote, the code output for a particular key depends upon the device selected. The UP key will put out a different code for a VCR versus a TV, for instance.

Hi,
A good overview and example code on IR is here; http://arduino-info.wikispaces.com/IR-RemoteControl

Thanks for the input guys.

The remote is for a projector and not universal;

cant get my head round it?!

Can you please post the sketch you are using to read the codes?

Are you using the excellent IRremote library? Its worked well for me.

Hi heres the link to where the sketches came from;

I did have a brief look at the IR library, but I got the impression that the remote needed to be from a particular brand i.e (sony etc), I need it for a less well know 'Ricoh'.

If you have any generic example sketches that would be cool!

Cheers,

olimason:
Hi heres the link to where the sketches came from;

http://www.instructables.com

Ok, I don't want to make myself sound like an expert programmer -- I'm not -- but that Instructables sketch is rubbish. I think you will have much better luck with the IRremote library.

Also, can you please post (a link to) the datasheet for your IR receiver? Some of them filter the 38kHz carrier and some do not, so your selection of hardware will change what you need to do on the software side.

The IRRemote library recognizes several IR formats. In the examples folder is IRdump which will identify the format of a remote, if it is of the known group.