Intro: DIY Android Bluetooth Remote.
In this Instructable, one can know how to control TV using an Android device through Bluetooth.
Using remotes to control TV is outdated. They are very fragile and go missing every time. So, I thought of building my own Mobile Bluetooth remote with Custom App which I designed from MIT App Inventor.
LINK : http://appinventor.mit.edu/explore/
It is FUN to build and when it works it will be Awesome.
Step 1: Things You Need to Get Started
Main Parts :
1. ARDUINO UNO.
2. HC - 05 Bluetooth Module.
3. 2N2222 NPN transistor.
4. IR LED 950nm.
5. IR Receiver (anyone will do, I have used SM0038)
Sub Parts :
Resistors : 4.7K, 2.2K, 100R.
Some male Jumper pins.
Step 2: DECODING...... IR REMOTE SIGNALS.!!
To start with, you have to download The Arduino-IRremote library from GitHub. I have already downloaded and attached the file in this step you can download it from here only.
Download the Arduino code attached in this step and make the circuit connections as shown in the images.
Connect the OUT pin of IR receiver to DIGITAL PIN 6 of the Arduino Uno
Connect GND of IR Receiver to Arduino GND and Vs of the IR Receiver to the Arduino VCC ( 5V)
Upload the code to the Arduino board and open Serial Monitor.
NOW take your TV remote and press the Buttons of which you want to have control of and note down its corresponding IR Code Type(NEC in my case) and the following HEX Code (for example : 14EB18E7) and the Number of Bits (32 in my case) which are all displayed in the serial monitor when the button is pressed.
After taking the IR CODE information of all the desired buttons save it in note pad with Specifiers of your choice
(FOR Example: I have used SB_POW for ON/OFF button of Setup Box).
Now disconnect all the circuit connections. And go to next step.
Step 3: MAIN CIRCUIT
Now the main receiver circuit board is built as shown in the pictures. Make the connections as shown in the pictures. Download the Code attached in this step and upload to the Arduino (do not connect Bluetooth Module while uploading the code).
The Bluetooth Module works at a logic level of 3.3V so while connecting the transmit pin of the Arduino to Bluetooth module we will use a Resistor Voltage Divider ( 4.7K and 2.2K ).
I made the connections on Breadboard to confirm that everything works fine and then I made the permanent version on a piece of Perforated PCB board. I trimmed the board to the size of Arduino Uno before hand and drilled 3 mm holes to mount it to the Arduino Uno.
Then I placed the board near the TV and pointed the IR LED towards the IR Receiver of the TV.
NOW almost Done just one Last step.
Step 4: The App!!!
Here, I developed an app for Android device to send signals to Arduino through Bluetooth. Developing an app is not difficult.With MIT app inventor any one can build an app. Its very simple. I tried my best to make the app as Professional as possible.
I have designed the app to send the Specifiers that i used in the code when the corresponding button is pressed. I have attached both .apk and .aia files in this step. Those who don't want to change anything in the Arduino Code and in app can download .apk file.Those who want to change the specifiers can download the .aia file and edit it in MIT app Inventor website.
The app is very simple to use. After Installing,when you open the App you will see some buttons. ( NOTE : Turn Bluetooth on before opening the app).
Among those buttons click on the Blue Connect button.
A new screen with list of Bluetooth devices will appear. Click on HC-05 and it will get connected to the device. ( you may need to enter password if you are connecting for the first time. The password will be usually 0000 or 1234)
Now it will get back to the main screen.
Now as soon as you press the button in your Android Device you will notice the corresponding change in your TV.
That's it! it's done.It is that simple.
If you face any problems in recreating this project or if you have any doubt feel free to comment below and if you like this please share this project and vote for the same in the contest.