IR Universal Send/Receive

Hello all,

Before I begin, I should mention I have successfully completed a similar project many years ago, so I know it's possible, but it's been a while and I can't find the code I originally used for relaying IR codes (or any other suitable solution, I've searched all over the internet and tried many pre-written solutions before reaching out via forum)

The program objective:
-Capture ANY tv IR codes
-Replay the codes on demand

The Application:
-Regulate TV volume via electret microphone

Logic of the program:
-Set desired TV volume via button and microphone
-Set remote Vol_up and Vol_down codes (eventually will save codes in SD card)
-send Vol_up or Vol_down IR signal based on microphone input (volume range).

What I've been able to do so far:
-The microphone portion is easy, I can view analog values of the microphone and set the volume range parameters

What else I need to do:
-Capture 2 IR codes and save them to deploy when the volume is out of range

Libraries I've tried to use:
-IRremote.h (obsolete)
-IRLib2 (not universal, or maybe I just don't understand it)

Components used:
-Arduino UNO
-Electret Microphone
-38kHz IR Reciever
-2-pin Buttons
-5mm IR Transmitter
-2N2222 Transistor
-Resistors, LED's, buttons, etc

Seems simple enough, but I would like the device to work for any TV, not just my specific model. Any help with IR signals would be greatly appreciated.

Thank you all!!!!

Why not do the same as You did the first time? Go the same way to find the solution?

I believe I was using the IRremote library, which no longer works (that library utilizes WProgram.h, even the example sketches don't compile)

Okey. Focus on the functions You used in that library and search for them in a more modern library.

So you have code that worked with the ancient (pre Arduino.h) IRremote library? And you need to make that code work with the newest version (>3.0) version of the IRremote library?

1 Like

I had no idea there's an updated version of IRremote. This solves my problem, thank you so much!

Be aware that the new version works quite a bit different from the old version. Read the documentation and example code to see the difference and how to fix older code to run under the new library version.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.