IR DETECTOR Different numbers

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
jped
 
Posts: 9
Joined: Sun Jul 15, 2012 9:30 pm

IR DETECTOR Different numbers

Post by jped »

HI
I am following this http://www.ladyada.net/learn/sensors/ir.html tutorial. I am up to the last project. When I started it everything worked well but now when i click the same button my remote i am getting different lengths of signals. Why is that? Could it be that for the out pin on my ir reciever i connected a wire to it to extend it with out soldering it?

User avatar
tessellated_dreams
 
Posts: 17
Joined: Sat Oct 22, 2011 9:04 pm

Re: IR DETECTOR Different numbers

Post by tessellated_dreams »

What kind of remote are you using and what numbers are you getting back? How much do they vary? I don't think a length of wire would make a difference, as long as it's not loose on either end.

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: IR DETECTOR Different numbers

Post by adafruit_support_bill »

i am getting different lengths of signals
Some small variation is normal. How much variation are you seeing?

The detector is susceptible to noise. You should try to keep all the wiring short.

jped
 
Posts: 9
Joined: Sun Jul 15, 2012 9:30 pm

Re: IR DETECTOR Different numbers

Post by jped »

The variation varries sometimes it is by a few and sometimes it is by 20 or more. i am using an radio shack remote

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: IR DETECTOR Different numbers

Post by adafruit_support_bill »

I don't know what codes the RS remote is using. But a 20us variation is not a huge amount. As mentioned before, keeping your jumpers short to minimize noise pickup can help.

jped
 
Posts: 9
Joined: Sun Jul 15, 2012 9:30 pm

Re: IR DETECTOR Different numbers

Post by jped »

do you know of a remote that would be good for such a project?
Also the weird thing is that when i did the other test where it would say if it would be ok. It all came out good.
Last edited by jped on Mon Jul 16, 2012 9:21 pm, edited 1 time in total.

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: IR DETECTOR Different numbers

Post by adafruit_support_bill »

Is the RS remote not working well for you? In the example code, the "FUZZINESS factor is defined as 20, so a timing variation up to that amount should still result in a recognizable signal.

If the RS remote is not working for you, we do have these in the store: https://www.adafruit.com/products/389

jped
 
Posts: 9
Joined: Sun Jul 15, 2012 9:30 pm

Re: IR DETECTOR Different numbers

Post by jped »

I will take that that remote in consideration. However, i do not think the fuzziness will help because when i click the up button and then the down one there lengths sometimes overlap.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: IR DETECTOR Different numbers

Post by adafruit_support_rick »

What do you mean by, the lengths sometimes overlap? The remote will transmit the up and down signals separately - there will be no overlap.

jped
 
Posts: 9
Joined: Sun Jul 15, 2012 9:30 pm

Re: IR DETECTOR Different numbers

Post by jped »

I made a video describing my problem. Take a look http://www.youtube.com/watch?v=KHwiaf7T ... e=youtu.be

User avatar
tessellated_dreams
 
Posts: 17
Joined: Sat Oct 22, 2011 9:04 pm

Re: IR DETECTOR Different numbers

Post by tessellated_dreams »

Have you tried using the Raw IR decoder sketch first to get the numbers from your remote?

I noticed a similar issue where the values of some of the buttons on my remote changed in count, though nothing as drastic. But it didn't happen on my Apple remote, so maybe it's a remote issue?

If you get some solid results from your remote after using the Raw decoder, try the IR commander sketch next:
https://github.com/adafruit/IR-Commander

I just finished a remote project and both of those sketches work great and gave me reliable results.

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: IR DETECTOR Different numbers

Post by adafruit_support_bill »

Your video only shows one pulse per button press. Most IR remotes send a sequence of pulses. Have you tried using the sample code?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: IR DETECTOR Different numbers

Post by adafruit_support_rick »

Please post your code. I couldn't really read it in the video.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”