Introduction: Make a Mini Wireless Keyboard From Your TV Remote

Have you ever thought of making a wireless keyboard by hacking your TV remote. So in this instructables I am explaining how you can build a cheap mini wireless keyboard .

This Project utilizes IR(Infrared) communication to create a custom wireless keyboard.

Lets get started

Step 1: The Basic Idea

This Project Utilizes IR wireless communication to Perform different Keyboard Operations.R, or infrared, communication is a common, inexpensive, and easy to use wireless communication technology. IR light is very similar to visible light, except that it has a slightly longer wavelength. This means IR is undetectable to the human eye - perfect for wireless communication.

The Basic Idea of this project is when you hit a button on your TV remote, by using a IR receiver and a Arduino we can decode it and the decoded values can be utilized to perform different Key Board Operations. I Used Arduino Pro MicroBecause it is based on the ATmega32U4 microcontroller featuring a built-in USB which makes the Micro recognizable as a mouse or keyboard. You can use Arduino Leonardo also.
This Project is very simple and any one can modify as per requirements.

Step 2: Gather Your Materials:

  • Arduino Pro Micro or Arduino Leonardo
  • IR Receiver (TSOP1738)
  • A TV Remote
  • Some Jumper Wires

Note:

You can use only the boards which are based on ATmega32U4 .. So It makes the Micro/Leonardo recognisable as a mouse or keyboard.

Step 3: IR Receiver (TSOP1738)

It is a miniaturized receiver for infrared remote control systems. The demodulated output signal can be directly decoded by a microprocessor. The TSOP1738 is compatible with all common IR remote control data formats.

Step 4: Circuit Diagram :

IF you are using Leonardo there will be small change in the DATA pin .You need to connect data Pin into the MOSI pin of Leonardo.

Step 5: Installing IR Remote Library:

Download IR Remote Library From here and Install it.

If you don't know how to install additional arduino libraries follow below link

https://www.arduino.cc/en/Guide/Libraries

Step 6: Decoding IR Remote Signals:

To decode signals from IR remote we can use "IRrecvDemo "arduino sketch as given with the IR Remote Library.

Note:
On example sketch (IRrecvDemo) you need to make small change in int RECV_PIN value .By Default it will be 11 but on Arduino Micro the MOSI pin is 16th pin. So make following modification to the code.

int RECV_PIN = 16;

If You are using Leonardo you need to change it to MOSI pin number.

  • Select Board( Arduino/Genuino Micro) -(Fig.3)
  • Select Port-(Fig.4)
  • Upload Your code

Step 7: Note Down the Decoded Signal Values

  • Open Serial Monitor and obtain the IR Remote Signal values.
  • Note Down the values for each button .

Step 8: Code for Key Board Operation

After obtaining signal values next step is to add the signal values into the program and make condition that if signal value from remote matches with the values in the program then, perform different keyboard operations.

Adding Keyboard Library to the program enables it to perform different keyboard Operations.

You can download the code from below or you can get it from my GitHub Page.

Download the code and Upload it to arduino micro through Arduino IDE.

Step 9: Done:

You can modify the above sketch as per your requirements .

Refer below links to add more keyboard functions

Step 10: Watch These Cool Gif and Video

  • Unlock Your PC Wirelessly.
  • Use It to control Power Point Presentations.
  • Pause/play videos
  • Close Opened tag by single tap

Thank you so much for reading if you need any more information feel free to ask in comments,and I'll do my best answer you.

Happy Making :)

Pro Tips Challenge

Participated in the
Pro Tips Challenge