Configuring IRremote: Difference between revisions

From AnalysIR WiKi
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[KontroLIR - Arduino compatible IR remote control|=> KontroLIR Home]]
'''''[[KontroLIR - Arduino compatible IR remote control|> KontroLIR Home]]'''''


First, install the latest copy of the IRremote library (available via [https://github.com/z3t0/Arduino-IRremote/ GitHub])
First, install the latest copy of the IRremote library (available via [https://github.com/z3t0/Arduino-IRremote/ GitHub])
Line 6: Line 6:


Next, you should configure IRremote to work with KontroLIR, which uses pin 9 and Timer1 for IR Tx (vs default of pin 3 and Timer2).
Next, you should configure IRremote to work with KontroLIR, which uses pin 9 and Timer1 for IR Tx (vs default of pin 3 and Timer2).
Once installed the library folders acan typicall befound in C:\Users\'''[USER]'''\Documents\Arduino\libraries\IRremote\ where '''[USER]''' is your username on your PC.
Once installed the library folders can typically be found in C:\Users\'''[USER]'''\Documents\Arduino\libraries\IRremote\ where '''[USER]''' is your username on your PC.


[[File:IRremoteChanges.jpg]]
[[File:IRremoteChanges.jpg]]


* '''Step 1:''' Edit the IRremote file "boarddefs.h around line 190 ('''point 4''' in image).
* '''Step 1:''' Edit the IRremote file "boarddefs.h around line 190 (ref '''point 4''' in image).
* '''Step 2:''' Comment out the line for using Timer2  
* '''Step 2:''' Comment out this line for using Timer2 (line #194 above)
* '''Step 3:''' Uncomment the line for using Timer1  
* '''Step 3:''' Uncomment this line for using Timer1   (line #193 above)


When completed save the file and restart the Arduino IDE, to make sure the changes are registered.
When completed save the file and restart the Arduino IDE, to make sure the changes are registered.
Line 21: Line 21:




[[KontroLIR - Arduino compatible IR remote control|=> KontroLIR Home]]
'''''[[KontroLIR - Arduino compatible IR remote control|> KontroLIR Home]]'''''

Revision as of 07:56, 7 October 2019

> KontroLIR Home

First, install the latest copy of the IRremote library (available via GitHub)

Once you have the IRremote library installed in your Arduino IDE, you can proceed to the next steps.

Next, you should configure IRremote to work with KontroLIR, which uses pin 9 and Timer1 for IR Tx (vs default of pin 3 and Timer2). Once installed the library folders can typically be found in C:\Users\[USER]\Documents\Arduino\libraries\IRremote\ where [USER] is your username on your PC.

  • Step 1: Edit the IRremote file "boarddefs.h around line 190 (ref point 4 in image).
  • Step 2: Comment out this line for using Timer2 (line #194 above)
  • Step 3: Uncomment this line for using Timer1 (line #193 above)

When completed save the file and restart the Arduino IDE, to make sure the changes are registered.


Congratulations you are now ready to use IRremote with KontroLIR. The KontroLIR firmware makes use of and in some cases extends the IRremote library for sending IR signals.


> KontroLIR Home