all 3 comments

[–]CulinarilySpeakingtiny10duino 0 points1 point ago


I have done this with many different remotes using my own IR code, and as good as Ken Shirriff's IR library is, I've never actually come across a remote that strictly adhered to one of the standard(but outdated) protocols. Reading the raw codes with his library is probably the best bet, but still no guarantee. I've encountered codes with anywhere from 16 bits to 64 bits and with very different timing schemes.

But you can do it on your own and enjoy the learning experience. First, use an arduino scope or logic analyzer sketch to take a look at the signal. I like the gillham logic analyzer sketch(google gillham arduino logic analyzer). I think Adafruit has a nice tutorial about something like this.

Once you have an idea of what the signal length and timing look like, you can easily write a simple sketch to receive and send your remote's codes.

[–]johndavid400 0 points1 point ago


Typically each button press will send a string of pulses that should then be converted to a specific code for that button. To do this, I wrote some code to "booleanize" the pulses which are always one of two lenghts - 600uS or 1100uS. By making each pulse either a 0 or 1, you can then more easily see the codes that each pulse represents. As for a library, you will have to get the remote that corresponds to that libray - so to use your own remote, you will likely have to open up a serial monitor and do some testing with your remote to see what codes are sent across when you press different buttons. Then record those codes and use them to diferentiate between functions in your sketch. I wrote some example code a while back for a project that decodes an infrared helicopter remote to control a tank-steering robot, but this test snippet should work for any infrared remote:

this is as simple of code as I could come up with to decode the ir signals and output them into a string format that can be compared against using substring matching.

[–]ruat_caelum 0 points1 point ago


I have not done this aspect of hardware. Is there not data sheets provided by Hitachi or Panasonic for the IR codes?

If not by the manufactures by some governing body (much like protocol for wireless are dictated by IEEE, or electrical standards by UL or safety by OSHA.

Somewhere there is documentation on minimum pulse length and communication protocols.

I'm not sure if that helps I did a quick search and could not find a standard. Perhaps if we have model numbers etc.