DIRRS+ Digital Infra-Red Ranging System Ideal for robotics projects. Singles (SKU # Pack (SKU #35100)

Similar documents
CAUTION: TTL Only, Do Not Use ± 12 V RS-232

AIRRS. Infrared Distance Measurement Analog Output Signal Narrow Field of View Reliable Easy to use. Analog Infra-Red Ranging System

RS-232 Driver Module

AXE Stack 18. BASIC-Programmable Microcontroller Kit. An inexpensive introduction to microcontroller technology for all ability levels

Stamp Stack II. BASIC Programmable Microcontroller Kit. A great way to get started with microcontrollers for beginners.

Breadboard Voltage. Convenient 5V Supply for Breadboard

Serial Communication Adapter

Stamp Stack II-SX. BASIC Programmable Microcontroller Kit Quick and easy project prototyping for the Basic Stamp

LT900SERIES. 1xN Multi-Channel Switch Operation Manual

This, plus your Basic Stamp 2 or Stamp Stack 2 Microcontroller (not included) will let you customize your robot s behavior any which way you want!

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

DEV16T. LCD Daughter board

Features: Analog to Digital: 12 bit resolution TTL outputs, RS-232 tolerant inputs 4.096V reference (1mV/count) 115K max speed

Rover 5. Explorer kit

DIGITAL COMPASS SOLUTION

Grove - 80cm Infrared Proximity Sensor

The Sumovore Arduino SumoShield

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Rapid28iXL PIC Prototyping PCB User Manual

CDN503 HIGH DENSITY I/O ADAPTER USER GUIDE

Rapid40iXL PIC Prototyping PCB User Manual

Lab 2.2 Ohm s Law and Introduction to Arduinos

Instruction Manual for BE-SP3 Circuit. 10/21/07

RE08A Rotary Encoder Kit

Rapid40i PIC Prototyping PCB User Manual

DT-SENSE. UltraSonic and InfraRed Ranger (USIRR)

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

AD-8923-BCD. Remote Controller (BCD) INSTRUCTION MANUAL 1WMPD

BASIC Stamp 1 Project Board (#27112) Development / Education Platform for the BASIC Stamp 1

Supplement for module D061 incl. ATMega128 Prozessor

ARDUINO MINI 05 Code: A000087

One Grove Base Shield board this allows you to connect various Grove units (below) to your Seeeduino board; Nine Grove Grove units, consisting of:

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

Document: Datasheet Date: 22-Mar-11 Model #: 3679 Product s Page:

last update December 1, 2010 reference smtirin06n page 1/21 SMARTEC INFRARED INTERFACE BOARD SMTIRIN06

Hitachi H48C 3-Axis Accelerometer Module (#28026)

HACCOM UM96 DataSheet / UserManual Dimitri Karatsinides

Group 10 Programmable Sensor Output Simulator Progress Report #2

Laboratory 10. Programming a PIC Microcontroller - Part II

Digital Pins and Constants

Figure 18: Basic input port drawing.

Manual 601: : USB/RS232. Specifications. Contents. Options

Sender Receiver Sender

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process

DC-16 Output Expansion Board PN: 31216

Fixed mount CCD bar code reader NFT Specification Ver. 1.0

VINCULUM-BASED TEMPERATURE / HUMIDITY / VOLTAGE DATA LOGGER FEATURES:

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Basics of UART Communication

Supplement for module D041 incl. ATMega8 Prozessor

AlphaBot2 robot building kit for Arduino

Evaluation Kit & Driver User s Guide

F3EM Measuring lightcurtain in robust aluminium housing

Grove - 80cm Infrared Proximity Sensor User Manual

DCC-8 DIGITAL TO EIGHT CURRENT LOOP CONVERTER OPERATING MANUAL

Product Specification for SAB-S-MODBUS

ADDJOG User Guide 7/30/10. Overview

NM-251D-INC. Dual Axis Inclinometer Output Format converter User Guide V1.00. Introduction

RS-422 Code-Operated Switches

I/O232-A User s Guide

SC20MPC: 2 Mega Pixels Serial JPEG Camera User Manual. Introduction

ONYX-MM-XT PC/104 Format Counter/Timer & Digital I/O Module

CLCD1 Serial 1 wire RS232 LCD development board

CDN502 HIGH DENSITY I/O ADAPTER USER GUIDE

AXE033 SERIAL/I2C LCD & CLOCK

Arduino Smart Robot Car Kit User Guide

Prototyping Module Datasheet

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

melabs Serial LCD Firmware Version 1.1 3/5/07

ADR7700. RS232 / Data Acquisition Interface USER MANUAL V 1.0

M32 Development Board

LCD Micro Serial/I 2 C Interface Module for R.G.B backlights. Technical Data

PAK-XI PS/2 Coprocessor Data Sheet by AWC

Propeller Project Board USB (#32810)

APP-II PIC Development Kit by AWC

04/12/11 version 1.0

MicroBolt. Microcomputer/Controller Featuring the Philips LPC2106 FEATURES

SC03MPC: 0.3 Mega Pixels Serial JPEG Camera Infrared User Manual. Introduction

RT209 OEM Scan Engine. RT209 Integration Guide. Integration Guide

Professional Development Board (#28138)

Board Of Education USB (#28850)

melabs Serial LCD Firmware Version 1.0 2/7/07

Power Connection Options

IT 1910i. Industrial 2D-code hand-held scanner TECHNICAL DESCRIPTION. make technical changes EN /06. We reserve the right to

Compass Module 3-Axis HMC5883L (#29133)

EK307 Lab: Microcontrollers

S125 Multi-Purpose 125 KHz RFID Reader USER MANUAL. 9V/24V DC Operating Voltage, AC (optional) KHz RFID EM4100/2 Cards & Tags

AccuStar Electronic Clinometer

Vorne Industries. Model 77/232 Serial Input Numeric 3" Display User's Manual

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers

DEV-1 HamStack Development Board

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

Datasheet for PAS12 Serial Adaptor rev 1.50

High speed laser. altimeter for. accurate mapping. and obstacle. detection. Features: SF30 Accelerated laser rangefinder Product manual

MHz TRANSCEIVER. Bi-Directional Send and Receive. Compatible with: Transmitter Receiver Transceiver. Part # Part #

PAK-VIa PS/2 Coprocessor Data Sheet by AWC

The SC03MPA camera is capable of outputting JPEG format images and PAL/NTSC video (Video is available only per request).

HP 48 I/O Technical Interfacing Guide

Mounting the Model 2601

CS4141 IDL Notes. I. Quick Overview of IDL Prototyping Unit

Transcription:

Ltd DIRRS+ Digital Infra-Red Ranging System Ideal for robotics projects a division of Singles (SKU #35090 4 Pack (SKU #35100) Infrared Distance Measurement 5V Output Signal 3 Output Modes Reliable Optics Easy to use www.hvwtech.com www.solarbotics.com DocRev: July 15, 2008

Thank you for purchasing the DIRRS+ module. The DIRRS+ is a low-cost, short range Digital Infra-Red Ranging System. Usable detection range is 10 cm to 80 cm (approx. 4 to 31.5 ). Three different configurations allow you to quickly and easily design this sensor into any application. The DIRRS+ can be configured as a direct replacement to the original DIRRS. The DIRRS+ consists of the Sharp GP2D12 distance measuring sensor and an adapter board to provide the analog to digital conversion. The GP2D12 is a compact, self-contained IR ranging system incorporating an IR transmitter, receiver, optics, filter, and amplification circuitry. The unit is resistant to interference from ambient light and is tolerant to variations in surface reflectivity of the detected object.! CAUTION: Do not mount the DIRRS+ Module directly on any conductive surface it may damage the normal operation of this unit.! Connecting to the DIRRS+ Wires can be soldered directly to the DIRRS+ module or a 0.100 4 Pin header can be used. Pin 1 2 3 4 Symbol GND Vin Vcc Vout Connect to Ground Output pin of Microcontroller +5V DC Input pin of Microcontroller Table 1 - Pinout The Vin pin of the DIRRS+ is 5V tolerant no voltage divider is required. Configuring the DIRRS+ The GP2D12 has the ability to sense an object between 10 and 80 cm and produce a voltage proportional to the distance measured. The voltage ranges from 2.6V for objects at 10cm, to 0V for objects at 80cm. An Analog to Digital converter reads the voltage and provides a value ranging from 255 for objects at 10cm, to 0 for objects at 80cm. This value is then transmitted depending on the configuration you have selected.! CAUTION: TTL Only, Do Not Use ± 12 V RS-232! www.hvwtech.com 2 DIRRS+ Manual v2

There are three configurations available in the DIRRS+; two are asynchronous serial transmission and one synchronous. Pin1 Pin4 J2 J1 Configuration 1: Default Mode: Serial HEX A single 8 bit value is transmitted on Pin 4. 4800 bps RS-232 TTL 8N1 (8 bits, no parity, 1 stop bit) Configuration 2: J2 Open, J1 Shorted (Add solder until bridged) Mode: Original DIRRS A single 8 bit value is transmitted synchronous mode on Pin 4 with clock on Pin 2 Configuration 3: J1 Open, J2 Shorted (Add solder until bridged) Mode: Serial CM A string of ASCII characters transmitted serially on Pin 4. RS-232 TTL 8N1 (8 bits, no parity, 1 stop bit) Operation: Serial HEX In this mode the DIRRS+ uses TTL (5 Volt Logic) to serially transmit a preamble byte ( 10101010 ) followed by a single byte. The mode is set to 4800 bps 8N1 Example code is given for the BASIC Stamp II. For other microcontrollers please see our website for other examples or refer to your datasheet. An object at 10 cm will result in Hex - FF (Binary 11111111 or DEC 255) being transmitted. An object at 80 cm will result in Hex - 00 (Binary 00000000 or DEC 0) being sent. When no object is present some fluctuations may occur in the measurement of 0V resulting in values being sent. www.hvwtech.com 3 DIRRS+ Manual v2

Code for use with a Basic Stamp II: ******************************************** 'This software is used with the DIRRS Plus when it is configured 'for SERIAL HEX mode. The DIRRS Plus transmits by TTL level 'RS-232 (8Bits, No Parity, 1StopBit) at 4800 bps. 'Measurements are transmitted every 5 milliseconds approximately. '******************************************** DIST VAR WORD datain CON 0 Pin 0 of microcontroller START Serin datain,188,[wait(%10101010),dist] Debug dec dist, cr Pause 2 Goto START Operation: Original DIRRS (Synchronous Serial) The DIRRS+ module makes repeated measurements before it returns the distance to an object. The time it takes to make these measurements varies slightly from unit to unit and can be as long as 10 ms. The following 3 steps illustrate a measurement cycle:. 1. The Vin line is normally held HIGH (+3V). To begin a measurement sequence, pull this line LOW (0V). 2. Wait for Vout to go HIGH (or Pause 10ms). 3. You can now begin clocking-in the distance data (8 bits). To transfer the data, you must generate a series of 8 pulses (maximum pulse width 200 µs) on the Vin line and read the Vout line in between each pulse. The pulses must not be more than 200 µs long. The entire process is done painlessly with the BASIC Stamp 2 s SHIFTIN command, as demonstrated in the following example: Code for use with a Basic Stamp II: '******************************************** 'This software is used with the DIRRS+ when it is configured 'for Original DIRRS mode. The input from the DIRRS+ is. 'triggered by a high low transition with the resulting 'distance measurement shifted into the DIST variable. '******************************************** DIST VAR BYTE 'Variable used to store DIRRS result T VAR BYTE OUTPUT 0 INPUT 1 'Pin 0 connects to Pin 2 of DIRRS+ 'Pin 1 connects to Pin 4 of DIRRS+ START: High 0 Pause 3 Low 0 For T= 1 to 30 Pause 1 If IN1=1 Then JUMP 'Vin high-low transition 'Wait for high to be recognized 'Begin 30 ms wait 'Vout is HIGH, data available -jump www.hvwtech.com 4 DIRRS+ Manual v2

Next 'Measurement not complete, loop Goto START Shiftin 1,0,2,[DIST\8] 'Shift 8 bits into DIST via pin P1, 'clocking with P0, MSB first Debug "Distance= ", dec DIST,cr 'Display distance in debug window Goto START 'Start over Operation: Serial CM In this mode the DIRRS+ uses TTL (5 Volt Logic) to serially transmit between 3 bytes. The mode is set to 4800 bps 8N1. Example code is given for the BASIC Stamp II. For other microcontrollers please see our website for other examples or refer to your datasheet. An object at 10 cm will result in a preamble byte 10101010 and ASCII characters 1, 0, 0 being transmitted. The DIRRS+ does a calculation and provides a measurement in centimeters. This calculation is based on an average of many different sensors and may vary slightly with your specific sensor. An object at 80 cm will result in ASCII characters 8, 0, 0 being sent but at this distance small variations in voltage measured will result in large variations in calculated distances. When no object is present or an object is out of range the sensor will transmit a value of 0. ******************************************** 'This software is used with the DIRRS+ when it is configured 'for SERIAL CM mode. The DIRRS+ transmits by TTL level 'RS-232 (8Bits, No Parity, 1StopBit) at 4800 bps. 'Measurements are transmitted every 5 milliseconds approximately. '******************************************** DIST VAR WORD datain CON 0 Pin 0 of microcontroller START Serin datain,188,[wait(%10101010),dec DIST] Debug dec dist,"x", cr Pause 1 Goto START More examples can be found on our website at : www.hvwtech.com/dirrsplus.htm How Does it Work? Figure 1 shows how the GP2D12 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.hvwtech.com 5 DIRRS+ Manual v2

IR LED A B PSD Figure 1. Here, Object A is at the limit of the PSD s range (about 10 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 80 cm). This explains why GP2D12 has these limits 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 similar to that of figure 1. 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 hence the distance of the object) is generated.! CAUTION: The GP2D12 is a precision device. Do Not attempt to open the unit. Doing so will ruin the delicate alignment of the optics! Technical Specifications Operating Voltage Current Output Signal Dimension Detection Width Detection Distance 5 Vdc 35mA TTL High Level 25 x 35 x 18 mm 5cm max 10cm 80cm www.hvwtech.com 6 DIRRS+ Manual v2

Figure 2. Figure 3. Technical Support Symptom Unrecognized Characters Unrecognized Characters Probable Cause(s) / Solution(s) -Jumper settings wrong / check the communications protocol your micro is expecting -Baud rate wrong / check the speed and configuration of your micro 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) www.hvwtech.com 7 DIRRS+ Manual v2

IR Distance Measurement Made Easy We take a Sharp GP2D12 sensor, and add our own brains to it. Not only does it duplicate exactly what the GP2D02 offered, it one-ups it by talking several ways to your microcontroller: * Asynchronous Serial 8-bit output at 4800bps (Default mode) * Synchronous (clocked) Serial 8-bit output (like original DIRRS & GP2D02) * Asynchronous Serial 8-bit output in Centimeters at 4800bps If you have a need to measure distances with the precision of the excellent Sharp GP2D12 quickly and simply, without having to burden your micro with more math, this is the unit for you! Other products from HVW Technologies: 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 neat things: www.hvwtech.com HVW Technologies Inc. 201 35th Ave NE Calgary, Alberta T2E 2K5 Canada Toll Free: 1-888-448-9832 International: +1 (403) 730-8603 Fax: +1 (403) 730-8903 HVW Technologies Inc. is a division of Solarbotics Ltd. visit us online at www.solarbotics.com Made in Canada