Hide thumbs Also See for 28044:

Advertisement

Quick Links

Parallax Laser Range Finder (#28044)
Designed in conjunction with Grand Idea Studio (www.grandideastudio.com), the Parallax Laser Range
Finder (LRF) Module is a distance-measuring instrument that uses laser technology to calculate the
distance to a targeted object. The design uses a Propeller processor, CMOS camera, and laser diode to
create a low-cost laser range finder. Distance to a targeted object is calculated by optical triangulation
using simple trigonometry between the centroid of laser light, camera, and object.
Features
Optimal measurement range of 6-48
inches (15-122 cm) with an accuracy
error <5%, average 3%
Maximum object detection distance of
~8 feet (2.4 meters)
Compact module with integrated CMOS
camera and laser system
Single row, 4-pin, 0.1" header for easy
connection to a host system
All engineering materials released as
open source under a Creative Commons
license; see page 11

Table of Contents

Connections ..................................................2
Usage ...........................................................2
Command Set................................................3
Range and Accuracy.......................................8
Error Modes...................................................9
Electrical Characteristics ............................... 10
Hardware Design ......................................... 10
Open Source Files ........................................ 11
Copyright © Parallax Inc.
Web Site: www.parallax.com
Forums: forums.parallax.com
Sales: sales@parallax.com
Technical: support@parallax.com
Key Specifications
Application Ideas
Additional Resources.................................... 11
LRF Image Viewer ....................................... 12
Theory of Operation..................................... 14
Camera Interface......................................... 17
Care and Handling ....................................... 20
Safety......................................................... 20
Example Code ............................................. 21
Parallax Laser Range Finder (#28044)
Office: (916) 624-8333
Fax: (916) 624-8003
Sales: (888) 512-1024
Tech Support: (888) 997-8267
Power Requirements: 5 VDC @ 150 mA
Communication: Asynchronous serial
300-115,200 baud with automatic baud
rate detection
Operating temperature: 32 to 122 °F
(0 to 50 °C)
Dimensions: 3.95" W x 1.55" H x 0.67" D
(10.05 W x 3.95 H x 1.7 D cm)
Distance or liquid level measurements
Object detection and/or avoidance
Item counting
v1.0 9/16/2011 Page 1 of 24

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 28044 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Parallax 28044

  • Page 1: Table Of Contents

    Tech Support: (888) 997-8267 Parallax Laser Range Finder (#28044) Designed in conjunction with Grand Idea Studio (www.grandideastudio.com), the Parallax Laser Range Finder (LRF) Module is a distance-measuring instrument that uses laser technology to calculate the distance to a targeted object. The design uses a Propeller processor, CMOS camera, and laser diode to create a low-cost laser range finder.
  • Page 2: Connections

    1 stop bit, baud rate matched to host. Type: I = Input, O = Output, P = Power, G = Ground Use the following example circuit for connecting the Parallax Laser Range Finder Module: Usage The LRF Module is controlled by the host via a serial communications interface. To use, simply align the LRF Module towards the target object and send the desired command.
  • Page 3: Command Set

    Repeated range measurement (any subsequent byte will stop the loop) Adjust camera for current lighting conditions Reset camera to initial settings Print version information Print list of available commands Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 3 of 24...
  • Page 4 Example: D = 0288 mm D = 0289 mm D = 0289 mm D = 0289 mm D = 0289 mm D = 0289 mm Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 4 of 24...
  • Page 5 (“X”) and used for range finding (if the LRF Module is uncalibrated, the values will all be 0xFFFFFFFF) Example: Parallax Laser Range Finder Designed by Grand Idea Studio [www.grandideastudio.com] Manufactured and distributed by Parallax [support@parallax.com] FW = 1.0 MFG = 7FA2 PID = 7691 SLOPE = +0.001413373 (3AB940EC) INT = -0.01235497 (BC4A6C80)
  • Page 6 See Optical Triangulation, page 15, for more details. A video demonstrating the calibration process can be found on YouTube: www.youtube.com/watch?v=1gk_tRbJO84 Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 6 of 24...
  • Page 7 A total of 20,480 bytes of binary data is sent. An ASCII footer (“END”) is then attached to the end of the binary data stream to assist in identifying the end of frame. Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 7 of 24...
  • Page 8: Range And Accuracy

    6 inches, the laser spot is out of the camera’s field-of-view, so no range calculation can occur. See Theory of Operation, page 14, for range finding and image processing details. Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 8 of 24...
  • Page 9: Error Modes

    If the LRF is in an error state, but no error message is transmitted, then there is a failure either with starting the JDCogSerial serial communication cog or the auto baud detection cog. For further assistance, please contact Parallax technical support. Copyright © Parallax Inc.
  • Page 10: Electrical Characteristics

    All components are mounted on the back side of the board with the exception of the camera and laser diode. The center points of the camera and laser diode are 78 mm apart, as shown below. Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 10 of 24...
  • Page 11: Open Source Files

    LRF for custom modifications or projects. A Prop Clip (Parallax #32200) or Prop Plug (Parallax #32201) can attach to the four pads (JP2) on the back of the LRF for reprogramming of the Propeller’s firmware.
  • Page 12: Lrf Image Viewer

    The LRF Module connects to the host PC via its serial interface through a USB-to-Serial adapter. A demonstration of the LRF Image Viewer can be found on YouTube: www.youtube.com/watch?v=iHvMl2scUdA Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 12 of 24...
  • Page 13 The default values will identify any pixel with a brightness (Y) between 0.3 and 1 of any color (U/V). Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 13 of 24...
  • Page 14: Theory Of Operation

    This section describes advanced details of the LRF Module operation. Program Structure The source tree for the LRF Module consists of 4 custom designed objects and 7 objects either included with the Parallax Propeller development environment or written by others and posted to the Parallax Object Exchange (http://obex.parallax.com): LRF_OVM7690.spin │...
  • Page 15 FloatString_Lite.spin and FloatMath_Lite.spin are used to provide IEEE 754 compliant 32-bit floating point-to-ASCII string conversion routines. These objects are included with the Parallax Propeller Tool, but have been modified by Joe Grand to remove code not used by the LRF Module.
  • Page 16 As the object gets closer, the value of pfc (and angle θ) increases. As the object gets farther away, pfc (and angle θ) approaches zero. A short video made by Parallax’s Beau Schwabe demonstrates this phenomenon; see the 28044 product page’s Downloads and Resources section for a link.
  • Page 17: Camera Interface

    LRF Module source code to give the user an overview of camera operation. To obtain full OVM7690 product specifications, a non-disclosure agreement (NDA) must be executed with OmniVision Technologies, Inc. (www.ovt.com). Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 17 of 24...
  • Page 18 (currently, any pixel with a Y value greater than 0.3). If so, the pixel is set to '1' (white). If not, the pixel is set to '0' (black): Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 18 of 24...
  • Page 19 If there are multiple blobs with the same mass, the first occurrence remains the primary. Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 19 of 24...
  • Page 20: Care And Handling

    Class IIIa devices (which include, for example, most run-of-the- mill red laser pointers, laser levels, and laser-based thermometers), were caused by prolonged exposure of the direct laser output: http://en.wikipedia.org/wiki/Laser_safety#Laser_pointers Copyright © Parallax Inc. Parallax Laser Range Finder (#28044) v1.0 9/16/2011 Page 20 of 24...
  • Page 21: Example Code

    2 Microcontroller The following code example demonstrates features of the Laser Range Finder. This code is available for download from the Parallax Laser Range Finder Module product page; search “28044” at www.parallax.com. This program uses the Debug Terminal, which is built into the BASIC Stamp Editor software. The software is a free download from www.parallax.com/basicstampsoftware.
  • Page 22 WORD ' Range (in mm) returned from the LRF ' -----[ Initialization ]-------------------------------------------------- Init: DEBUG CLS, "Parallax Laser Range Finder", CR, CR INPUT Enable ' configure the Enable pin as an input HIGH LCD_TX ' setup serial output pin...
  • Page 23 Note: This application uses additional objects, which are included in the example code .ZIP file on the product page. It also uses the Parallax Serial Terminal to display the device output. The Parallax Serial Terminal is included with the Propeller Tool v1.2.7 or higher, which is available from the Downloads link at www.parallax.com/Propeller.
  • Page 24 : "Extended_FDSerial" ' Extended Full Duplex Serial by Martin Hebel PUB main pst.Start(115_200) ' Set Parallax Serial Terminal to 115.2kbps pst.Str(@InitHeader) ' Print header; uses string in DAT section. ' Set-up serial port for communication with the LRF module serial.Start(LRF_RX, LRF_TX, %0000, 115_200) ' Start serial port, normal mode, 115.2kbps...
  • Page 25 NOTE: RESISTORS ARE IN OHMS +/- 5% AND CAPACITORS ARE IN MICROFARADS UNLESS 3.3uH OTHERWISE NOTED. SEE BOM FOR ACTUAL VOLTAGE AND SPECIFICATION. 10uF 0.1uF TITLE Parallax Laser Range Finder #28044 DATE FILENAME SIZE DRAWN BY Distributed under a Creative Commons Attribution 3.0 US license...
  • Page 26 3.95 (in) 1.175 (in) 0.10 (in) 1.25 (in) 0.175 (in) All 4 corners...

Table of Contents