Go Down

Topic: Need help with remote and IR sensor (Read 580 times) previous topic - next topic

adrianTNT

Feb 20, 2011, 11:18 pm Last Edit: Feb 20, 2011, 11:21 pm by adrianTNT Reason: 1
Hello.
I am trying to make Arduino understand the IR remote commands, I don't know what code to use.
This is the remote I have, from what I understand it uses NEC system:



I tried with this file/library: IRremote: IRrecvDump - dump details of IR codes with IRrecv
And it just prints data like this, it seems that it doesn't understand it (maybe I am wrong):

Quote
Could not decode message
Raw (68): -9050 4450 -600 1650 -600 1650 -600 500 -600 500 -650 1600 -600 550 -600 1650 -600 500 -600 500 -650 500 -600 1650 -600 1650 -600 500 -600 1650 -600 500 -650 1600 -600 1650 -600 500 -650 500 -600 1650 -600 1650 -600 500 -600 500 -650 500 -600 500 -650 1600 -600 1650 -600 550 -600 500 -600 1650 -600 1650 -600 1650 -600 39650
0
Could not decode message
Raw (68): -9050 4450 -600 500 -600 500 -650 500 -600 1650 -600 1650 -600 1600 -650 500 -600 500 -600 1650 -600 1650 -600 1650 -600 500 -600 550 -600 500 -600 1650 -600 1650 -600 1650 -600 1650 -600 500 -600 1650 -600 1650 -600 500 -600 550 -600 500 -600 500 -650 500 -600 1650 -600 500 -600 550 -600 1600 -650 1600 -600 1650 -600 39650
0
Could not decode message
Raw (68): -9000 4450 -600 550 -600 500 -600 500 -650 500 -600 1650 -600 500 -600 1650 -600 500 -600 1650 -600 1650 -600 1600 -650 1600 -600 550 -600 1600 -650 500 -600 1650 -600 1650 -600 1600 -650 1600 -600 1650 -600 1650 -600 1650 -600 1600 -650 1600 -600 550 -600 500 -600 500 -600 550 -600 500 -600 500 -650 500 -600 500 -600 39650
0


Another library "NECIRrcv" prints errors on compile/upload, I found that is not compatible with latest Arduino versions.
Anyone know what code I can use with this remote?
Thank you.

Edit: I also used a programmable remote that can repeatedly send same button command in different encodings (changing encoding every second), the serial monitor still printed like above, like it didint understand any of the commands.

johnwasser

This may help:

http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Schmidtn

I think Steps 2, 3 and 4 of an Instructable I made would help you.

Step 2 (I think you've got most of this done already) Getting codes
http://www.instructables.com/id/Fart-Operated-Random-Channel-TV-Remote/step2/Getting-Pulse-Codes-from-your-TV-Remote/

Step 3 Cleaning up your Pulse Codes
http://www.instructables.com/id/Fart-Operated-Random-Channel-TV-Remote/step3/Clean-up-your-Pulse-Codes/

And Step 4 Testing Your Remote
http://www.instructables.com/id/Fart-Operated-Random-Channel-TV-Remote/step4/Test-Your-Remote/

Your application is a little different than mine, but my sketches (at the end of step 4) is a good start with lots of comments.


adrianTNT

Thanks all. I will have a look on these steps too.
I was able to get it to work, my issue was that I was trying with a different receiver that was different than what code expected.
With the sensor like in the image it worked ok but I somehow fried that one  :smiley-red:, got new ones and worked nicely.

Go Up