DIY Laser range finder

md_ranger.jpg
It is amazing what you can accomplish with a web cam, cheap laser pointer and a bit of C++ coding. The complete build, along with all the source code, is available on the site. - Link

There are many off the shelf range finding components available including ultrasonic, infrared, and even laser rangefinders. All of these devices work well, but in the field of aerial robotics, weight is a primary concern. It is desirable to get as much functionality out of each component that is added to an airframe. This page describes how a mini laser pointer can be configured along with a single camera to provide mono-machine vision with range information.

Recent Entries

Comments

Oldest comments listed first.

Posted by: Dan on February 23, 2008 at 2:43 AM

Rotate the camera 90 degrees for more pixels to play with.


Posted by: Tom on February 23, 2008 at 6:56 AM

Loved this project. I will be trying this soon myself. Some thoughts on possible improvements (at the cost of some complexity).

Instead of looking JUST for the brightest dot, you may wish to process a variable number of adjacent pixels (especially if the dot smears), and use an algorithm (TBD) to find the interpolated non-integer value of the max pixel. You will likely improve your accuracy beyong the inherent resolution of the camera.

This will likely make this project's base accuracy depend on the physical alignment and calibrations.


Posted by: Rostov on February 23, 2008 at 7:01 AM

Excellent article!
The math can be simplified to eliminate the trigonometry. Looking at the drawing, you can see that there are two similar right triangles: one with legs D and h, and a similar but smaller triangle inside the camera with legs we will call D2 and h2. Since the angles are similar, the legs are proportional such that D/h=D2/h2. h2 is the number of pixels from the center of focus (pfc in the article). Since h and D2 are fixed, we can let a constant r=h*D2. Then, D=r/h2, and r can be derived through the calibration process. Note: this assumes the two axes are parallel, but should be close enough for small deviations.


Posted by: mary on August 10, 2008 at 8:39 PM

help!

i love trying this project.since i'm a beginner, i dont understand how to calculate the gain constant and offset constant.anyone can help me?


Leave a comment


Subscribe to MAKE!Subscribe to MAKE Magazine!

Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.

$34.95 / 1 year
(4 Quarterly Issues)

Subscribe now


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out. Make: The risk-takers, the doers, the makers of things... Welcome to Make: Online!


CRAFT Maker Shed Maker Faire MAKE television
Holiday Gift Guides from MAKE
Gifts for Dads
Science and Chemistry
Gifts Under $20
More guides: Santa Claus Machines, Geek Toys for Grown Up Girls & Boys


Check out all of the episodes of Make: television

Alex Rider Dream Gadget Contest
Make: Science Room

Connect with MAKE

Be a MAKE fan on Facebook MAKE on Facebook
Visit our Facebook page and become a fan of MAKE!
MAKE on Twitter MAKE on Twitter
Follow our MAKE tweets!
MAKE Flickr Pool MAKE on Flickr
Join our MAKE Flickr Pool!
    make_tips on Twitter




    Maker SHED

    Advertise here with FM.

    Why advertise on MAKE?
    Read what folks are saying about us!

    Click here to advertise on MAKE!



    Subscribe to MAKE Magazine!

    Make: Online authors!

    Gareth BranwynGareth Branwyn
    Senior Editor


    Phillip TorronePhillip Torrone
    Senior Editor
    | AIM | Twitter


    Becky SternBecky Stern
    Associate Editor
    | AIM | Twitter


    Marc de VinckMarc de Vinck
    Contributing Writer
    | AIM | Twitter


    John ParkJohn Park
    Contributing Writer
    | Twitter


    Sean RaganSean Ragan
    Contributing Writer
    | Twitter


    Matt MetsMatt Mets
    Contributing Writer
    | AIM | Twitter


    Dale DoughertyDale Dougherty
    Editor & Publisher
    | Twitter


    Shawn ConnallyShawn Connally
    Managing Editor
    | Twitter


    Goli MohammadiGoli Mohammadi
    Associate Managing Editor

    Kip KayKip Kay
    Weekend Projects
    | AIM | Twitter


    Collin CunninghamCollin Cunningham
    Contributing Writer
    | AIM | Twitter

    Adam FlahertyAdam Flaherty
    Contributing Writer
    | AIM | Twitter



    More contributors: Mark Frauenfelder (Editor-in-Chief, MAKE magazine), Kipp Bradford (Technical Consultant/Writer), Chris Connors (Education), Diana Eng (Guest Author), Peter Horvath (Intern), Brian Jepson (O'Reilly Media), Robert Bruce Thompson (Science Room)

    Suggest a Site!

    Current Podcast

    itunesdl.gif Weekend Project: Beetlebot Simple robot from your parts bin that avoids obstacles. Thanks go to Jerome Demers for the original article in MAKE, Volume 12. To download the Beetlebot video, click here or subscribe in iTunes. Check out the complete Beetlebot article... More...

    Get the Make: Online sent via email
    Enter your email to receive Make: Online each day:



    MAKE Fascination video series brought to you by Dow

    Make: Education
    MAKE: en EspaƱol MAKE: Japan
    Important please read


    Subscribe to MAKE Magazine!

    Recent Posts from the Craft: Blog