Pin Symbol Wire Colour Connect To. 1 Vcc Red + 5 V DC. 2 GND Black Ground. Table 1 - GP2Y0A02YK0F Pinout

Similar documents
HVW Technologies Analog Infra-Red Ranging System (AIRRS )

DMC-8 (SKU#ROB )

Ardweeny 1.60" 0.54" Simple construction - only 7 parts plus pins & PCB! Ideal for breadboard applications

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

Devantech SRF04 Ultra-Sonic Ranger Finder Cornerstone Electronics Technology and Robotics II

SB Protoshield v1.0. -Compatible Prototyping & Breadboard Shield Design and build your own interface for your Arduino-compatible microcontroller!

LaserPING Rangefinder Module (#28041)

Measuring Distance Using Sound

Designing VCNL4000 into an Application

UNIT 4 VOCABULARY SKILLS WORK FUNCTIONS QUIZ. A detailed explanation about Arduino. What is Arduino? Listening

Part 1: Determining the Sensors and Feedback Mechanism

LDOR: Laser Directed Object Retrieving Robot. Final Report

RC5 Infrared board. EB060

Lesson 13. The Big Idea: Lesson 13: Infrared Transmitters

Cost efficient design Operates in full sunlight Low power consumption Wide field of view Small footprint Simple serial connectivity Long Range

Touchless Control: Hand Motion Triggered Light Timer

Cost efficient design Operates in full sunlight Low power consumption Wide field of view Small footprint Simple serial connectivity Long Range

REFLECTIVE PHOTOSENSOR CIRCUIT MODULE KIT ASSEMBLY GUIDE

LAB PROJECT 2. Lab Exercise

EEL5666 Intelligent Machines Design Lab. Project Report

Lab 2: Blinkie Lab. Objectives. Materials. Theory

Distance Measurement. Figure 1: Internals of an IR electro-optical distance sensor

VCNL4000 Demo Kit. IR Anode. IR Cathode. IR Cathode SDA SCL

Introduction. Theory of Operation

InterBOARD TM 12 Channel Transmitter and Receiver Evaluation Board User Guide

Using a Sharp GP2D12 Infrared Ranger with BasicX

Electronics Design Laboratory Lecture #10. ECEN 2270 Electronics Design Laboratory

PING))) Ultrasonic Distance Sensor (#28015)

DF-LT V2.0 Users Manual

AVL-10000T AUDIO VIDEO LINK TRANSMITTER TECHNICAL MANUAL

Basic Microprocessor Interfacing Trainer Lab Manual

Mechatronics Project Report

MaxBotix Inc. Copyright MaxBotix Incorporated Patent 7,679,996. Close Range Operation. Warning: Personal Safety Applications

Small and easy to mount IP67 rated. distance to target 1 Weather station monitoring

EEL5666C IMDL Spring 2006 Student: Andrew Joseph. *Alarm-o-bot*

A two-wire pressure transmitter (current loop) for 4 20 ma AMS 4712

Introduction to Using the PIC16F877 Justin Rice IMDL Spring 2002

MB7760, MB7769, MB7780, MB7789

Lab 7 Remotely Operated Vehicle v2.0

Figure 1. CheapBot Smart Proximity Detector

in one housing (3). The light beam is reflected by a reflector (4). The objects are detected by interruption of the light beam.

Putting it all Together

Electronic Instrumentation ENGR-4300 Fall 2004 Section Experiment 7 Introduction to the 555 Timer, LEDs and Photodiodes

FABO ACADEMY X ELECTRONIC DESIGN

Precision Range Sensing Free run operation uses a 2Hz filter, with. Stable and reliable range readings and

HR2000+ Spectrometer. User-Configured for Flexibility. now with. Spectrometers

Engineering 6806 Project Design Labs in Electrical/Computer Engineering

Quantizer step: volts Input Voltage [V]

Series 48 Air Cooled Laser & UC-2000 Quick Start Guide

GP2Y3A001K0F. Wide angle Distance Measuring Sensor Unit Measuring distance: 4 to 30 cm 5 Analog outputs type GP2Y3A001K0F

ULS24 Frequently Asked Questions

DP-19 DUAL PURPOSE DETECTOR INSTRUCTION MANUAL

ZX Distance and Gesture Sensor Hookup Guide

The Marauder Map Final Report 12/19/2014 The combined information of these four sensors is sufficient to

Microcontroller Based Electronic Circuitry to Record Speed of Moving Objects

Published by: PIONEER RESEARCH & DEVELOPMENT GROUP ( 1

Project Final Report: Directional Remote Control

AC : THE UBIQUITOUS MICROCONTROLLER IN MECHANICAL ENGINEERING: MEASUREMENT SYSTEMS

FPGA IMPLEMENTATION FOR OMR ANSWER SHEET SCANNING USING STATE MACHINE AND IR SENSORS

Servo click. PID: MIKROE 3133 Weight: 32 g

Photometer System Mar 8, 2009

Today s Menu. Near Infrared Sensors

VEX Robotics Platform and ROBOTC Software. Introduction

Description of options, upgrades and accessories for the laser beam stabilization system Compact

Infrared Remote Control Receiver Module IRM-2638T

Control of Electrical Lights and Fans using TV Remote

Series 48 Water Cooled Laser & UC-2000 Quick Start Guide

CD4 Series with linear image sensor and electronic shutter provides accurate measurement.

sercalo MEMS TUNABLE OPTICAL FILTER

A Design for the Integration of Sensors to a Mobile Robot. Mentor: Dr. Geb Thomas. Mentee: Chelsey N. Daniels

ECE U401/U211-Introduction to Electrical Engineering Lab. Lab 4

Background Suppression with Photoelectric Sensors Challenges and Solutions

CHAPTER 4 ANALYSIS AND DESIGN

LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY

High Voltage Waveform Sensor

LED Driver 5 click. PID: MIKROE 3297 Weight: 25 g

INSTRUMENTATION BREADBOARDING (VERSION 1.3)

PART. Maxim Integrated Products 1

Shock Sensor Module This module is digital shock sensor. It will output a high level signal when it detects a shock event.

Electronic Systems - B1 23/04/ /04/ SisElnB DDC. Chapter 2

ELECTRONIC SYSTEMS. Introduction. B1 - Sensors and actuators. Introduction

MB7137, MB7138, MB7139

Touch Sensor Controller

INTRODUCTION 提夫自控技术 ( 上海 ) 有限公司 LAS laser sensors cover measurement ranges from 1 to mm. The integrated micro-controller delivers an accur

LASER. Analog Laser Displacement Transducer. LAS Series. Key-Features:

KUMU A O CUBESAT: THERMAL SENSORS ON A CUBESAT

Electronics II. Calibration and Curve Fitting

Web Site: Forums: forums.parallax.com Sales: Technical:

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

SL300 Snow Depth Sensor USL300 SNOW DEPTH SENSOR. Revision User Manual

Coding with Arduino to operate the prosthetic arm

Figure 1. CheapBot Line Follower

List of Items Available in the Laboratory the Lab

Luminescence Sensors. Operating Instruction

MB1013, MB1023, MB1033, MB1043

LASER. Analog Laser Displacement Transducer. LAM Series. Key-Features: Content:

EULAMBIA ADVANCED TECHNOLOGIES LTD. User Manual EAT-EOM-CTL-2. Alexandros Fragkos

Properties of two light sensors

1. Position detection on a spindle drive unit by means of a linear potentiometer

Transcription:

AIRRSv2 Analog Infra-Red Ranging Sensor Sharp GP2Y0A02YK0F Sensor The GP2Y0A02YK0F is a well-proven, robust sensor that uses angleof-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 www.solarbotics.com 1-866-276-2687 SKU: 35235 http://www.solarbotics.com/products/35235/ Document Revision: Dec 6 2010

AIRRS is a low-cost, short-range Infrared (IR) alternative to ultrasonic rangefinding systems. Usable detection range is 10 cm to 80 cm (approximately 4 to 31.5 ). The Analog Infra-Red Ranging System consists of the Sharp GP2Y0A02YK0F Distance Measuring Sensor and a custom cable assembly. The GP2Y is a compact, self-contained IR ranging system incorporating an IR transmitter, receiver, optics, filter, detection, and amplification circuitry. The unit is highly resistant to ambient light and nearly impervious to variations in the surface reflectivity of the detected object. Unlike many IR systems, AIRRS has a fairly narrow field of view; making it easier to get the range of a specific target. The field of view changes with the distance to an object (see the 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: Pin Symbol Wire Colour Connect To 1 Vcc Red + 5 V DC 2 GND Black Ground 3 V out Blue Input pin of microcontroller or A/D Table 1 - GP2Y0A02YK0F Pinout Operation Since the GP2Y makes continuous analog measurements. The module does not require a trigger to initiate a measurement. The distance to an object is returned as an analog voltage level. By reading the voltage level produced a threshold can be set or a distance calculated. By attaching the AIRRS cabling to a suitable Analog to Digital converter or microcontroller with onboard A/D, the AIRRS can be incorporated into many systems. www.solarbotics.com 2 AIRRS+ Manual v1.7

Calibration The calibration of the AIRRS module is dependent on how the data is used in your code. For threshold type applications, calibration involves determining the distance required and measuring the voltage at that distance, allowing for some variations in measurement. In distance measuring applications the relation between voltage level and distance is non-linear, either a look up table or a suitable algorithm must be used. The voltage levels (representing distance) will vary slightly from unit to unit. A small survey of randomly selected devices was done and the following data was gathered. The columns Distance and Average Voltage in the sample data provided can be used as a look up table. This data is shown below (graph 1). Distance Sample Sample Sample Average (cm) #1 #2 #3 Voltage 10 2.040 2.054 2.008 2.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.751 0.733 90 0.621 0.718 0.703 0.681 95 0.627 0.677 0.666 0.657 100 0.586 0.645 0.636 0.622 105 0.570 0.626 0.608 0.601 110 0.532 0.569 0.590 0.564 115 0.509 0.562 0.545 0.539 120 0.508 0.517 0.525 0.517 125 0.452 0.498 0.489 0.480 130 0.448 0.498 0.489 0.478 135 0.431 0.478 0.471 0.460 140 0.392 0.444 0.452 0.429 145 0.353 0.421 0.429 0.401 150 0.342 0.407 0.432 0.394 155 0.333 0.401 0.411 0.382 160 0.353 0.386 0.371 0.370 165 0.335 0.364 0.369 0.356 170 0.295 0.364 0.355 0.338 175 0.296 0.344 0.351 0.330 180 Table 0.281 2 - Calibration 0.341 0.341 Data 0.321 185 0.266 0.318 0.329 0.304 190 0.139 0.295 0.310 0.248 www.solarbotics.com 3 AIRRS+ Manual v1.7

Graph 1: AIRRS Calibration Sample Data 3.0 2.5 Sensor Output Voltage 2.0 1.5 1.0 0.5 0.0 0 20 40 60 80 100 120 140 160 180 Distance (cm) GP2Y (AVG) Graph #2: AIRRS Calibration Average Voltage Best Fit Equation 4.5 4.0 3.5 Sensor Output Voltage 3.0 2.5 2.0 1.5 1.0 y = 57.653x -0.9891 0.5 0.0 0 20 40 60 80 100 120 140 160 180 Distance (cm) GP2Y (AVG) Power (GP2Y (AVG)) www.solarbotics.com 4 AIRRS+ Manual v1.7

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. IR LED A B PSD Figure 1 www.solarbotics.com 5 AIRRS+ Manual v1.7

Figure 1 shows object A located at the limit of the PSD s range (about 15 cm away). Notice how that if it were any closer, the light would not hit the PSD at all. Similarly, if B were moved farther away, its light would eventually go past the top of the PSD and would not be seen either (at about 180 cm). This explains the limits of the GP2Y. Think of the 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 currents are compared and a voltage proportional to the position of the tap (and the distance of the object) is generated.! CAUTION: The sensor is a precision device. Do Not attempt to open the unit. Doing so will ruin the delicate alignment of the optics! Technical Specifications Block Diagram Operating Voltage 4.5~5.5V Operating Current 33mA Output Signal 0.3-2.8 VDC Dimension Detection Angle 10 4.5x2.2x1.91mm Detection Distance 20-150 cm www.solarbotics.com 6 AIRRS+ Manual v1.7

Example Code Coded for the CCS PCM C-Compiler and used in the PIC16F877 ////////////////////////////////////////////////////////////////////////////////////////////////////// //// AIRSDEM.C for the PIC16F877 //// /// Analog Infra-Red Range-finding System (AIRRS) //// //// Demo Program //// //// HVW Technologies, March 2000 //// /// http://www.hvwtech.com //// //// Program uses A/D Channel 1 (pin 3) to read the AIRRS //// //// module output(blue wire). Sends analog value to Matrix //// //// Orbital LCD module on port b5 (pin 38) at 19200 baud. //// //// Coded for the CCS PCM C-Compiler //// ///////////////////////////////////////////////////////////////////////////////////////////////////// #include <1 6 F877.h> //Include Standard CCS header file #fuses xt,nowdt,noprotect //Configuration bits specific to demo board used #use delay(clock=4000000) //Oscillator = 4 MHZ #use rs232(baud=19200, xmit=pin_b5, rcv=pin_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); value=read_adc(); putc(0xfe); putc('x'); printf("analog= %Lu",value); } } //Pause for 0.5 seconds for LCD to update //Take analog and wait for conversion //Command Prefix //Clear Screen Command //Formatted printing of Analog result Technical Support Technical support is available if you are having problems. If you need help, please provide as much detailed information as possible. E-mail: support@hvwtech.com Phone: (403) 730-8603 (Monday - Friday 9am 5pm Mountain time)

IR Distance Measurement Made Easy Proven and very reliable object sensor Simple 5V Connection Analog signal easily processed by any microcontroller s A2D pin Other products from Solarbotics: Stamp Stack II: The ultimate BASIC Stamp II prototyping tool. A complete BASIC Stamp II on a board that mounts onto a solderless breadboard. Includes a serial connector, reset switch and a bullet-proof power supply. Easy to build, simple to use. Plus... Microcontrollers IR Sensors Compilers PIC Programmers Proto Boards FPGA Development Kits Robotics Kits/Part Instructional Books Gifts & Toys Tools and test equipment Visit us online for more info and cool stuff: www.solarbotics.com Solarbotics Ltd. 3740D - 11A Street NE, Suite 101 Calgary, Alberta T2E 6M6 Canada Toll Free: 1-866-276-2687 International: +1 (403) 232-6268 Fax: +1 (403) 226-3741 Made in Canada