Thursday, March 20, 2014

Part 2 - Wiring and Writing ..

First thing you need to is install your Arduino software (I have 1.6), but before that you need to download Java SDK in your computer to run Arduino IDE.

Open Arduino by clicking the Arduino icon.


Before opening the arduino window, be sure to connect your Board using USB B-type cable supplied with it. The moment you connect windows starts installing drivers for a comm Port and note the correct comm port number by going to the

My Computer-->properties-->Device Manager--com ports

Click to see the Comm Port, and note it down.

Now coming back to the Arduino window, select the Tools menu-->select the appropriate Board name, i.e. UNO or Leonardo, or Mini, Mega..etc.

Select the port no. on which your board is on.

Now install the IRremote Library by selecting the sketch menu--> Add Library. Select the zip file that you downloaded previously(copy from phone memory) and restart the Arduino software.

Before you upload program and test you need to wire IR receiver to record all the buttons in your remote/remotes.

Connect the IR Receiver(TSOP 1738) as shown in the figure to the respective slots in the arduino board.



First to the Ground, second to the +5V and the last one to the Analog pin A0.

Connect your board and select the File >  Examples > IRremote > ardumation_dummy_sketch file.

There you go, upload this program by selecting the second icon below the menu bar.

At this point your sketch is empty, you need to record IR signals from remotes and copy the result in the sketch again.

Now get a remote and open serial monitor on the software window(ctrl+shift+m), by clicking the zoom icon to the far right.

Start recording by pressing each button on the remote. Note down(Copy paste from the serial monitor window) each and every  IR signal properties such as


  1. Name of the protocol
  2. No. of bits
  3. Hexadecimal Address
Now fill in the codes in spaces provided in the sample file. For example paste name of the protocol, no. of bits and hexadecimal addresses for the power button you pressed in your remote to the respective space provided in the dummy file i.e. (in between case xxx and break).

Code may be of the form, Ex. irsend.sendxxxx(0x000000, xx);

Do that for all the buttons in the dummy file with the infrared codes you just got from your remote.

OK That's it.

No comments:

Post a Comment