Android/Arduino Tv Remote

by planetleak in Circuits > Arduino

19248 Views, 73 Favorites, 0 Comments

Android/Arduino Tv Remote

thumb.png

Part List

ir_led.jpg
IR_Rec.JPG
nano.JPG

- Arduino

- Bluetooth modul (HC-05/06)

- IR recever (38kHz)

- IR led (Can use from an old remote control)

- Resistor

- Android phone

The Android App

ai1.png
ai2.png

http://ai2.appinventor.mit.edu/

In the app invetor 2 create your remote app, make many buttons as you need to control.

(channels, volume, menu, on/off etc...)

Every button send a word to the arduino.

The app automatically connect to the arduino when started.

Tutorial video on the first page.

Do not forget pair your bluetooth module and phone!

The Arduino

IMG_20140518_173707.jpg
arduino.png
IMG_20140518_213723.jpg
IMG_20140519_074814.jpg

- Download and install the IRremote library (link in the youtube description).

- From the examples, open the IRrecvDump.

This code show, what code send your remote control when push a button.

- Open my arduino code too, place both on screen.

- Connect the IR receiver to the arduino D11

- Upload the IRrecvDump.

- Open this app Serial monitor.

- Push every button on the tv remote control, and copythe resulting codes to the my code in the right place.

If you get "unknown encoding" error, ignore it, push the button again.

- When you push the button, and get different from the "Decoded NEC" line, change in my code every NEC to the received type.

- After done with buttons, upload my code to the arduino, connect the IR led to the D3 pwm pin, connect the bluetooth module.

- Place the IR led very close to the Tv receiver.

Done

Detailed tutorial video on the first page.