Author Topic: Ir pair measurements not consistent?  (Read 1651 times)

0 Members and 1 Guest are viewing this topic.

Offline silo_xtremeTopic starter

  • Robot Overlord
  • ****
  • Posts: 173
  • Helpful? 0
  • I really love robots, they keep me awake at night.
Ir pair measurements not consistent?
« on: November 29, 2009, 04:43:28 PM »
Hey all,

 Im taking measurements from a home made Ir pair.   With my measurements I'm taking the average and comparing averages.  I also find that increasing the sample size does not solve my problem.

My problem is as follows:

sample size 100 . I take 6 averages.

They are: 0.579, .50, .16, .14, .63, .58

sample size 200 they are:

.81, .755, .655, .305, .685, .305

my concern are the large drops in the measurement average between sets.  Could there be that much noise?

Any thoughts would be great!

Mike

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Ir pair measurements not consistent?
« Reply #1 on: November 29, 2009, 07:16:59 PM »
Ok, we need a good bit more information.
What are you actually measuring?
What is the circuit?

Offline silo_xtremeTopic starter

  • Robot Overlord
  • ****
  • Posts: 173
  • Helpful? 0
  • I really love robots, they keep me awake at night.
Re: Ir pair measurements not consistent?
« Reply #2 on: November 29, 2009, 07:53:07 PM »
Hi Waltr,

my IR pair is very similar to the schematic found in the tutorials on this website in the electronics section.  I am measuring Volts from the  Collector.  I measure in integers and then convert the sum to float in order to take the average.

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Ir pair measurements not consistent?
« Reply #3 on: November 29, 2009, 10:26:57 PM »
How are you illuminating the IR sensors?
Are there florescent lights in the room?
Incandescent lights (50/60Hz)?

The IR sensor is sensitive to many light sources.
Try putting the IR emitter/sensors in a metal enclosure (IR passes through many plastics).


Offline silo_xtremeTopic starter

  • Robot Overlord
  • ****
  • Posts: 173
  • Helpful? 0
  • I really love robots, they keep me awake at night.
Re: Ir pair measurements not consistent?
« Reply #4 on: November 29, 2009, 10:45:14 PM »
Thanks for the reply, but I don't think that's the problem.  We also added a h/w filter.... Lights on lights off same problem

Offline hopslink

  • Robot Overlord
  • ****
  • Posts: 202
  • Helpful? 14
Re: Ir pair measurements not consistent?
« Reply #5 on: November 30, 2009, 04:58:32 AM »
A 10 bit ADC will give you numbers in the range 0-1023. You average a load of these numbers and always get values less than 1? This suggests most of your ADC readings are zero or one (of 1023). That seems very consistent. You could easily have that much noise, it is not excessive. It looks like the real question you should be asking is where is the input signal?    

I would suggest taking a careful look at the raw ADC data to confirm that the majority of your samples have the value zero or one.

What is the output voltage swing on your sensor output between IR LED off and IR LED shining directly on your receiver?
« Last Edit: November 30, 2009, 05:02:11 AM by hopslink »

Offline silo_xtremeTopic starter

  • Robot Overlord
  • ****
  • Posts: 173
  • Helpful? 0
  • I really love robots, they keep me awake at night.
Re: Ir pair measurements not consistent?
« Reply #6 on: November 30, 2009, 07:41:57 AM »
Hey hopsink great questions!  Your right about the raw data, lots of 1's and 0's , assuming the test distance is about 22 inches.  At 9 inches we get more 1's than zero, at too close we get numbers above 6500.   I've seen numbers as high as 10 in the raw data.  I wish I could find a way to chart it .... Silly avr studio.

Offline hopslink

  • Robot Overlord
  • ****
  • Posts: 202
  • Helpful? 14
Re: Ir pair measurements not consistent?
« Reply #7 on: November 30, 2009, 08:35:16 AM »
Just a gut feeling, but 22" seems like a long range for a sensor like this. You say
Quote
...the test distance is about 22 inches.  At 9 inches we get more 1's than zero, at too close we get numbers above 6500.

This suggests that even 9" is too much for the sensor and it is still not getting enough reflected light to begin to operate and it always outputs 0V.

There should be a range of distances where as measured distance falls the voltage from your sensor starts to ramp up until it maxes out. This will be the sensors operating range. From what you say above it sounds like this will be somewhere between 9" and 'too close'.
« Last Edit: November 30, 2009, 05:21:02 PM by hopslink »

 


data_list