The Arduino IR Clip Project Page!
Hi everyone! Thanks for pledging towards the IR Clip. Here is the assembly/getting started video. It shows you how to assemble your IR clip, and how to use it with the included three programs. You can skip ahead as you see fit!:
The Code Samples!
The code samples are commented so that you can follow along. Here is the first piece of code that is talked above in the above video. It shows you how to save 11 IR signals from your remote control to the EEPROM memory of your Arduino UNO, and how to use it cones saved. Manipulate the code as you see fit! Make sure to follow along with the above video for reference!
irtest_no_prints.ino | |
File Size: | 24 kb |
File Type: | ino |
We're going to reuse some of the code from before, and add in a function that allows for us to create a combination lock using incoming wireless IR streams. This is also shown in full in the above video. The code is fixed in the header of the code, but I show you how to change it. When you get the correct combination, change the code around to do something fun!
ir_combo_lock.ino | |
File Size: | 24 kb |
File Type: | ino |
We're going to need to change where the IR clip connects to this code to work. In the previous code samples, we simply use GPIOs to do what we want. We now want to use analog pins. (A0-A3) specifically. Watch the above video for more info. This code is easy to follow. It allows for you to create a basic oscilloscope so that you can actually see a representation of the incoming data stream!
ir_analog_scope.ino | |
File Size: | 1 kb |
File Type: | ino |
Tips:
When you program your remote, you should see something like this:
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929033.00
929033.00
929033.00
IR stream successfully captured...
Saved as 0
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929024.00
929024.00
929024.00
IR stream successfully captured...
Saved as 1
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929025.00
929025.00
929025.00
IR stream successfully captured...
Saved as 2
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929026.00
929026.00
929026.00
IR stream successfully captured...
Saved as 3
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929027.00
929027.00
929027.00
IR stream successfully captured...
Saved as 4
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929028.00
929028.00
929028.00
IR stream successfully captured...
Saved as 5
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929029.00
929029.00
929029.00
IR stream successfully captured...
Saved as 6
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929030.00
929030.00
929030.00
IR stream successfully captured...
Saved as 7
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929031.00
929031.00
929031.00
IR stream successfully captured...
Saved as 8
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929032.00
929032.00
929032.00
IR stream successfully captured...
Saved as 9
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929045.00
929045.00
929045.00
IR stream successfully captured...
Saved as POWER BUTTON - Done prorgramming. Please change DIP SWITCH Selection and reset...
This is what a standard IR dump on power up should look like:
0
0
92
90
33
0
0
92
90
24
0
0
92
90
25
0
0
92
90
26
0
0
92
90
27
0
0
92
90
28
0
0
92
90
29
0
0
92
90
30
0
0
92
90
31
0
0
92
90
32
0
If you remote control is incompatible, this is what you'll see:
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
0
1244539904.00
374869664.00
3598.00
Failure to capture. Try again
1
4008225792.00
4200125696.00
3954211584.00
Failure to capture. Try again
2
3967747840.00
2946961920.00
184157312.00
Failure to capture. Try again
What is happening here is that he was using an incompatible 56khz modulated remote. Most IR remotes are modulated at 38khz, which is compatible with the IR clip. 56khz remotes are not. So if you find that your codes are not matching when programming, you'll know that your remote isn't compatible with the clip.
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929033.00
929033.00
929033.00
IR stream successfully captured...
Saved as 0
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929024.00
929024.00
929024.00
IR stream successfully captured...
Saved as 1
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929025.00
929025.00
929025.00
IR stream successfully captured...
Saved as 2
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929026.00
929026.00
929026.00
IR stream successfully captured...
Saved as 3
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929027.00
929027.00
929027.00
IR stream successfully captured...
Saved as 4
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929028.00
929028.00
929028.00
IR stream successfully captured...
Saved as 5
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929029.00
929029.00
929029.00
IR stream successfully captured...
Saved as 6
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929030.00
929030.00
929030.00
IR stream successfully captured...
Saved as 7
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929031.00
929031.00
929031.00
IR stream successfully captured...
Saved as 8
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929032.00
929032.00
929032.00
IR stream successfully captured...
Saved as 9
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
929045.00
929045.00
929045.00
IR stream successfully captured...
Saved as POWER BUTTON - Done prorgramming. Please change DIP SWITCH Selection and reset...
This is what a standard IR dump on power up should look like:
0
0
92
90
33
0
0
92
90
24
0
0
92
90
25
0
0
92
90
26
0
0
92
90
27
0
0
92
90
28
0
0
92
90
29
0
0
92
90
30
0
0
92
90
31
0
0
92
90
32
0
If you remote control is incompatible, this is what you'll see:
GETTING NEW IR! PRESS THE SAME BUTTON SEQUENTIALLY THREE TIMES AND FOLLOW MY INSTRUCTIONS...
0
1244539904.00
374869664.00
3598.00
Failure to capture. Try again
1
4008225792.00
4200125696.00
3954211584.00
Failure to capture. Try again
2
3967747840.00
2946961920.00
184157312.00
Failure to capture. Try again
What is happening here is that he was using an incompatible 56khz modulated remote. Most IR remotes are modulated at 38khz, which is compatible with the IR clip. 56khz remotes are not. So if you find that your codes are not matching when programming, you'll know that your remote isn't compatible with the clip.