background image

Figure 1 

 

A

PSD

IR LED

   Some Observations on the Effect of Different Kinds of Light

Ambient Light:
Tests have shown Sharp sensors to be highly immune to ambient light levels. 
Incandescent, fluorescent, and natural light don’t appear to bother it. The 
only instance where we were able to get it to falsely measure was when a 
flashlight was pointed directly  into the sensor’s receiver; even a few degrees 
off-centre is enough for the sensor to ignore it.

IR Light:
The GP2Y uses a modulated IR beam to guard against false triggering from 
the IR component of incandescent, fluorescent, and natural light. Tests with 
several kinds of IR remote controls have shown that even with 2 or 3 remotes 
pointed at the GP2Y, the unit still functions normally. 

Laser Light:
Tests with a laser pointer had results similar to the flashlight; only a beam 
aimed straight into the sensor’s receiver would cause a false reading. If the 
beam comes from even a few degrees off-center, it has no effect. 

   How Does it Work ?

Figure 1 shows how the GP2Y uses an array of photodiodes (called a Position 
Sensitive Detector, or PSD) and some simple optics to detect distance. An 
infra-red  diode  emits  a  modulated  beam;  the  beam  hits  an  object  and  a 
portion of the light is reflected back through the receiver optics and strikes the 
PSD. Object A is closer and therefore the reflected light from it enters the 
receiver’s lens at a greater angle than does light from object B.  

www.solarbotics.com

5

AIRRS+ Manual v1.7

Содержание GP2Y0A02YK0F

Страница 1: ...A02YK0F Sensor Analog Infra Red Ranging Sensor The GP2Y0A02YK0F is a well proven robust sensor that uses angle of reflection to measure distances It s not fooled by bright light or different coloured targets Simple to use analog 0 to 2 5V output Small 4 5 x 2 2 x 1 9 cm Connects directly to any microcontroller with A D 20 cm to 150 cm 8 to 79 range ...

Страница 2: ...graph at the end of this document but is no wider than 5 cm 2 5 cm either side of centre when measuring at the maximum range Connecting to the AIRRS A custom cable assembly is included with the AIRRS kit The miniature connector is keyed so that it may only be inserted one way The following table shows the necessary connections Table 1 GP2Y0A02YK0F Pinout Pin Symbol Wire Colour Connect To 1 Vcc Red...

Страница 3: ...034 15 2 797 2 852 2 840 2 830 20 2 590 2 634 2 606 2 610 25 2 327 2 372 2 350 2 350 30 2 036 2 087 2 067 2 063 35 1 777 1 831 1 810 1 806 40 1 555 1 607 1 587 1 583 45 1 384 1 442 1 406 1 411 50 1 253 1 292 1 274 1 273 55 1 118 1 179 1 164 1 154 60 1 024 1 081 1 047 1 051 65 0 952 1 005 0 971 0 976 70 0 876 0 932 0 902 0 903 75 0 822 0 868 0 847 0 846 80 0 752 0 799 0 789 0 780 85 0 687 0 761 0 7...

Страница 4: ... 0 0 5 1 0 1 5 2 0 2 5 3 0 0 20 40 60 80 100 120 140 160 180 200 Distance cm Sensor Output Voltage GP2Y AVG y 57 653x 0 9891 0 0 0 5 1 0 1 5 2 0 2 5 3 0 3 5 4 0 4 5 0 20 40 60 80 100 120 140 160 180 200 Distance cm Sensor Output Voltage GP2Y AVG Power GP2Y AVG www solarbotics com 4 AIRRS Manual v1 7 ...

Страница 5: ... controls have shown that even with 2 or 3 remotes pointed at the GP2Y the unit still functions normally Laser Light Tests with a laser pointer had results similar to the flashlight only a beam aimed straight into the sensor s receiver would cause a false reading If the beam comes from even a few degrees off center it has no effect How Does it Work Figure 1 shows how the GP2Y uses an array of phot...

Страница 6: ...he PSD as a resistor with a large number of taps wires coming out at various points along the resistor When light hits the PSD it hits one of the taps and causes current to flow out each end of the resistor forming a voltage divider As an object moves closer or farther from the sensor incoming light hits a different tap causing the current coming out each end of the resistor to change These curren...

Страница 7: ...b4 invert Remove invert option if using MAX232 or similar When communicating to the Matrix Orbital LCD long value Define variable Long integer Main setup_ADC_ports ALL_Analog Setup all analog pins as only analog setup_ADC ADC_CLOCK_INTERNAL Configure D converter to use internal oscillator set_ADC_CHANNEL 1 Set pin_A1 to measure analog voltage While TRUE delay_ms 500 Pause for 0 5 seconds for LCD t...

Страница 8: ...trollers FPGA Development Kits IR Sensors Robotics Kits Part Compilers Instructional Books PIC Programmers Gifts Toys Proto Boards Tools and test equipment Plus Proven and very reliable object sensor Simple 5V Connection Analog signal easily processed by any microcontroller s A2D pin Solarbotics Ltd Calgary Alberta T2E 6M6 Canada 3740D 11A Street NE Suite 101 Toll Free 1 866 276 2687 International...

Отзывы: