View Full Version : Questions on testing the PIR-1 .

October 1st, 2013, 10:09 AM

I recently purchased a PIR-1 to be used to control some robots I have via IR.
I searched the forum and found some reference to the topic but did not find answers to my question.
My question is that I was trying to test the receive/transmit functions of the PIR-1 using the command line tool
I can receive a string when I use the listen mode and press on a key on my IR remote.
If I take that same string and try sending it out to my device as per the example in the instructions my device does not respond.
Am I missing something here as to the string I am sending or the BITMASK which I am using 2, I tried 1 as well.


October 1st, 2013, 10:19 AM
If you set bitmask to 3 it will use both the built-in transmitter and a IR emitter that might be plugged in.

Can you paste the CCF code you are trying to send here?

October 1st, 2013, 06:33 PM
Hi Ron

I tried the bitmask set to 3 and still no control when I send the string.
Here is the command with the string I am trying to send. This string was captured from my remote using listen mode.

pirlib_example 3 0 "BDF6 026A 00F0 007D 0079 007D 00F1 007C 0074 0082 00EC 0084 0072 007C 007A 007D 00F1 007D 0073 0082 00F2 007C 0074 0081 0075 007C 00F2 007E 0078 007D 0073 0083 0073 007D 0079 007C 007A 007C 0073 007D 0079 007D 0079 007C 0074 0084"

October 1st, 2013, 06:46 PM
try setting repeat to at least one, but quite possibly higher. Start close by then increase distance once you have a 'hit'.

October 1st, 2013, 10:38 PM
I tried setting the repeat from 1 to 20 with the IR sensor 1" - 2" away from the PIR-1 and still no response.

October 2nd, 2013, 07:50 AM
ah, actually that is not a valid raw-CCF code you have there. No wonder it doesn't work. Download (free) IR studio and try to learn the CCF code again:


October 2nd, 2013, 03:23 PM

I was able to capture and play the IR codes using IR-Studio.
I then ran the CCF calculation and then took that output and used it with the pirlib_example to try and send and it worked fine.
So the listen function using pirlib_example does not calculate the CCF or at least the code displayed cannot be directly played back correctly.
Now that I know everything works with the hardware.
I am trying to run a sequence of IR commands with a delay between commands that I could initiate with a mouse click. Could Girder do that for me ?
Thanks for your help.


October 2nd, 2013, 03:41 PM
yeah Girder will do that