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