You will get a bunch of numbers followed by 'usecs' or 'usec'.
Make sure you have copied the signal you want into a word pad for easier reference.
It will look something like this:
500 usec, 300 usec
600 usec, 1200 usec
But there will be a lot more numbers than that.
Now in the program you will see this quite a few times:
delayMicroseconds();
pulseIR();
You want to take the first number and put it in the parentheses in delayMicroseconds('here'); value
And you want to take the second number from the same line as the one of the delayMicroseconds(); value and put it in the parentheses of pulseIR(); value.
Example:
Say you get this on the serial monitor:
OFF ON
1660 usec, 580 usec
1640 usec, 560 usec
You want to put the corresponding values in their corresponding areas.
Such as:
delayMicroseconds(1660);
pulseIR(580);
delayMicroseconds(1640);
pulseIR(560);
It is pretty damn easy.
Once you get the codes you want, open the IR_SEND.pde file in the Arduino program and then put the values that you got from the serial monitor between the parentheses doing it the same way I showed you how to do it.
The next step will show an example of how I did this with a Comcast remote.
Make sure you have copied the signal you want into a word pad for easier reference.
It will look something like this:
500 usec, 300 usec
600 usec, 1200 usec
But there will be a lot more numbers than that.
Now in the program you will see this quite a few times:
delayMicroseconds();
pulseIR();
You want to take the first number and put it in the parentheses in delayMicroseconds('here'); value
And you want to take the second number from the same line as the one of the delayMicroseconds(); value and put it in the parentheses of pulseIR(); value.
Example:
Say you get this on the serial monitor:
OFF ON
1660 usec, 580 usec
1640 usec, 560 usec
You want to put the corresponding values in their corresponding areas.
Such as:
delayMicroseconds(1660);
pulseIR(580);
delayMicroseconds(1640);
pulseIR(560);
It is pretty damn easy.
Once you get the codes you want, open the IR_SEND.pde file in the Arduino program and then put the values that you got from the serial monitor between the parentheses doing it the same way I showed you how to do it.
The next step will show an example of how I did this with a Comcast remote.
Mar 03, 2017 Project belajar pemrograman pengendali lampu dan Kunci pintu otomatis menggunakan Remote Tv dengan mikrokontroler Arduino, dan menggunakan sensor TSOP (IR reciefer), tersedia juga file Eagle yang dapat didownload gratis.