Control TV With Any Phone (Even Phones Without IR Blaster)

by Gursimran Singh 425 in Circuits > Arduino

100151 Views, 496 Favorites, 0 Comments

Control TV With Any Phone (Even Phones Without IR Blaster)

56de94d0937ddbff1f0007a0.jpeg
DSCF2769.JPG
DSCF2770.JPG

Do you want to control your TV and several other gadgets that are IR controlled? Ya but my phone doesn't support it because it doesn't have an IR blaster.Don't worry here a gadget that gives IR control to any phone and the thing it needs is bluetooth!! YES!! bluetooth!! The gadget also increases the range of your control!! As it covers the distance range of bluetooth as well as infrared!! It was made in very less budget and requires some components including arduino uno and bluetooth module! Basically the phone sends signal to HC-05 (bluetooth module) and further bluetooth module sends the characters to arduino's serial port and arduino sends particular IR signal decoded from your remote!! It works with all TV remotes!!I etched the circuit on PCB to make it more efficient and useful!! Here 's a demo video of it but I'll publish full tutorial on making it soon..

Libraries

DSCF2643.JPG

You'll require to install IrLib master library that is attached below. Unzip it and then copy the files to libraries folder of arduino IDE. Either you can install it by directly opening IDE and under sketches install zipped libraries.

Downloads

Things Required

DSCF2588.JPG
DSCF2593.JPG

You'll need :-

  • Arduino UNO
  • HC-05 (bluetooth module)
  • IR L.E.D
  • IR Receiver
  • 2N2222 NPN Transistor
  • 470 ohms Resistor
  • 1 Kilo ohms resistor X 3 (Either you can use 1 kilo ohms resistor and 2 kilo ohms resistor)
  • Copper Clad Board
  • Photo Laser Paper
  • Thin Drill Bit usually 0.8 mm to 1.2 mm
  • Printer Cable (Arduino Cable)
  • Ferric Chloride
  • Male Headers
  • Female Headers
  • Breadboard
  • Jumper Wires
  • Soldering Iron
  • Solder
  • Laser Printer
  • Non-Metallic Container
  • Acetone
  • Scissors

Receiving Raw Signals

007.JPG
004.JPG
mp2.png
005.JPG

Take IR receiver and connect its :-

  • Signal ------ Digital Pin 11
  • Gnd ------ Gnd
  • Vcc ------ 5v

And then open Irrecvdump example from IrLib master library and the code is attached below also!!

Upload the code and serial monitor.

Downloads

Decoding

002.JPG
mp1.png
009.JPG
010.JPG

After opening the serial monitor press any button of your TV remote in front of IR receiver.You'll see the decoded data on the serial monitor.Don't close the serial monitor until you note down data of all buttons of your remote.

Getting Useful Data

007 (2).JPG
mp5.png
010 (2).JPG
mp6.png
006.JPG
mp4.png

Note down the value and the number in bits mentioned in serial monitor for every unique button.See pictures and screenshots for help.Value might be in numbers or alphabets like A90,2CE9 etc. And the value in bits be 12,15 etc.Note only the ones which you want to use via your phone means only the most useful ones.

Circuit (Please Ignore Resistance Values in Fritzing Image)

IR PROJECT PCB_bb.png
013 (2).JPG
001.JPG

Please refer to circuit in the pictures above,If you are using Arduino Leonardo then connect the resistor wire to Digital Pin 11.Sorry because the resistance value is not 220 ohms it is 470 ohms with transistor and all other are of 1 kilo ohms resistance.Collect all required things and get on to work again.

Circuit

020.JPG
016.JPG
015.JPG
016 (2).JPG

The Digital Pin 3 is PWM output that means Pulse Width Modulation.The transistor further corrects the output and 470 ohms resistor helps to reduce current!! Don't fry your bluetooth module.I added a voltage divider circuit to prevent HC-05 from getting damaged!!

HC-05

Vcc to 5v

Gnd to Gnd

Tx to Digital Pin 0 or Rx

Rx to resistors

Modifying Code

Capture.PNG

In the code attached in next step you may have to do some corrections.Change the value after 0x in code to the value that we noted down earlier and the value after comma in the last of bracket to the value in bits.

Uploading

023.JPG

After modifying the code now its time to upload it to arduino remove the connections of HC-05 from Digital Pin 1 and Digital Pin 0.These connections may cause interference while uploading code!!You can further modify the code by changing statements to change the characters sent through bluetooth see the settings section of Bluetooth RC Car Controller App.

Downloads

Install the App

y.png

You can install this app from play store and also pair your phone with arduino when it asks about passkeys then either type 0000 or 1234.

Connect and Test

021.JPG
019.JPG
020 (2).JPG

Finally connect you phone with arduino and test it,If it doesn't work then check the connections and double check the L.E.D polarity.It will work!! Congratulations if it worked!!

Designing the PCB

PCB.png
CHECK.png
OK.png

I used fritzing to design PCB for this project you can download the pdf file below!! Don't worry the file contains the design which will print our in same size as designed! Just print it on photo laser sheets using laser printer.

Toner Transferring

DSCF2596.JPG
DSCF2599.JPG

Using scrubber or sand paper rub the whole copper clad board to remove any oxidization or stains.Set the iron to maximum heat and then place the sheet on glossy paper and iron the sheet smoothly for about 15 minutes,then you will get proper print.In the picture this one is failed print,if this happens scrub it again using scrubber or sand paper.Try again!!Cut off the extra copper clad board.If you are using ferric chloride as etchant then no need to retry the toner transferring,shade the left lines using permanent marker.

Etching

DSCF2604.JPG
DSCF2603.JPG

Safety is must while doing etching HCl and ferric chloride both can stain anything that comes in its way and also choose a well ventilated place for etching the PCB.Ferric chloride is better choice because it etches faster and more perfectly than the previous method.Take about 40 grams of ferric chloride and dissolve it in about 100 ml water.The solution must appear brown without board and when we dip it appears somewhat yellowish in color.Not a chemical reaction only reflection of copper!! Dip in it for about 15-20 minutes till the full PCB etches!!

Wait! Wait! Wait! Wait!

DSCF2605.JPG
DSCF2606.JPG
DSCF2612.JPG
DSCF2614.JPG

Dip in it for about 15-20 minutes till the full PCB etches!!But it can take upto 30 minutes also depending on your solution. Keep it in solution until the copper sheet is completely dissolved!!

Cleaning

DSCF2616.JPG
DSCF2618.JPG
DSCF2620.JPG

Take out the copper clad board from the solution and then wash it under water and pour some acetone on board removing the toner,you would see a beautifully etched PCB.

Drilling

DSCF2626.JPG
DSCF2622.JPG
DSCF2623.JPG

Use a needle like drill bit between 0.8 mm to 1.2 mm and do it with high efficiency,don't drill the copper pads leave their outer copper rings on PCB for perfect soldering. Drill carefully a small mistake can break lines of your hand-crafted PCB.

Header Soldering Tips

DSCF2610.JPG
DSCF2608.JPG
DSCF2609.JPG

Bend the tips of female headers as the whole header should be bent to hold the bluetooth module.For the male headers push the small pins inside to increase their length.

Soldering

DSCF2629.JPG
DSCF2627.JPG

Switch on your soldering iron and solder all the components as directed in schematics and PCB layouts.First of all solder resistors and then other components.Don't apply too much solder all little quantity enough to make the pin and line in contact would be enough!!

Power Supply

DSCF2648.JPG
DSCF2784.JPG
DSCF2785.JPG
DSCF2786.JPG

Take normal phone charger with output of voltage near to 5 volts.Use USB -B type cable or printer cable to connect it to arduino.

Done!!

DSCF2632.JPG
DSCF2637.JPG
DSCF2638.JPG
DSCF2640.JPG
DSCF2641.JPG
DSCF2642.JPG

Thanks for seeing my instructable!! This is a very cheap and home made solution for those who don't want to waste much batteries for remotes and want to control almost everything with their mobile phones!!

You can ask if you have any queries !!

Please vote if you liked it !!

Bye !!