Pages: [1]   Go Down
Author Topic: Need help with remote and IR sensor  (Read 507 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 27
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: February 20, 2011, 05:21:18 pm by adrianTNT » Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8821
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This may help:

http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

California
Offline Offline
Full Member
***
Karma: 0
Posts: 129
That's me, the boy with the broken halo.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 27
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: