I started this project my freshman year in college, before I even really knew what an Arduino was, and now I see it as a super simple project that anybody with an Arduino and a computer can do.
Step 1: Materials
-IR LED 940nm
-some jumper wires
-Bluetooth SPP app for Android(optional)
Step 2: Setup/IR Code Retrieval
After reviewing the supplied code in the tutorial, I modified it slightly so that when the serial terminal printed what it read from the IR sensor, I could just copy and paste it into the corresponding function in my emulator code. I have all of my source code attached in this Instructable.
The first step in finding out what signals your remote is outputting, we need to connect your Arduino to an IR sensor as shown in the picture.
After this is done, we can upload some code to Arduino and have it output the on/off cycle for each button on your remote. Upload the 'IR_Read' from my source. When this is running, open up a serial terminal, point your remote at the IR sensor and press one of the buttons that you will want to emulate. The output should look something like this...
...and so on.
We need to get this output for every button that you plan to emulate. I would open a word document or notepad and and copy the serial output and post it somewhere that you can access it later, and be sure to label it so you know which button it corresponds to.
Step 3: Arduino Library for Your Remote
Step 4: Arduino Emulation Code
Step 5: PC Desktop Application
After making the plain, boring program that just had buttons, I wanted to get lazier. I have done a little bit of work with Windows voice recognition so I decided to include that into this program as well. This allowed me to just yell at my computer and it would change my TV channel or anything else that I could program in.
Step 6: Expansion Into Android
I hope you enjoy! If anyone decides to develop an Android app I would love to see it!!
!!!!!!!!!!**********But wait!! There's new stuff!!**********!!!!!!!!!!
Thanks to user subduck and the Instructable I was sent to, https://www.instructables.com/id/How-control-arduino-board-using-an-android-phone-a/
I have created a simple app now for my Droid Razr and it seems to be working quite well. Just like with most of my projects, I'm sure that I will constantly be changing it and making it look different/better. I will do my best to keep an update on here. Right now this app only has power, mute, last and the number buttons. I added a small speech recognition that I am really only using for testing. It is only set up to control mute for right now. I have attached the App Inventor application that you can download then add to your existing projects.
Step 7: Updates
I have made some adjustments to the Android application. I am also including the source and apk file. I have added more speech recognition options for all buttons on the remote. There should be all of the buttons that are needed included in the remote.