How-To: Visualize sensor data with Arduino & Processing

visualizingsensordata1_cc.jpg
visualizingsensordata2_cc.jpg

Infrared sensors can give robotics projects useful data about nearby objects, but what if you want to actually see that data yourself? -

I recently acquired a few Sharp GP2Y0A21YK0F IR distance sensors. This is an inexpensive proximity sensor which can detect objects from 10-80cm. A nice tutorial on this sensor can be found at robotroom.com. These sensors only detect objects within a narrow beam, so I decided to mount mine on a servo, so that I could pan the sensor approximately 180 degrees, and take multiple readings to build up an idea of what obstacles are in front of my robot. I like to visualize things, so I decided to write a small program in processing to visualize the sensor data for debugging and to help me better understand what the sensor is seeing.
Though not scaled precisely to match, the above overlay illustrates how the outside world appears via sensor panning. This could prove quite useful for remote 'exploratory missions'. Instructions and source code available at uC Hobby.


In the Maker Shed:

Makershedsmall Arduino Family Make: Arduino


Recent Entries

Comments

Oldest comments listed first.

Posted by: Collin Cunningham on March 10, 2009 at 5:47 AM

@cornishbob - cool idea, could perhaps lead to some interesting 3D images?


Posted by: cornishbob on March 10, 2009 at 6:28 AM

it would be intersting to seethis combined with a camera on te same swiveling servo, so the camera outputs an image with some kind of overlay showing the proximity or whatever is ahead.

Imagine if you will the original image of the desktop.

the camera would output the "robots eye view" with darker shading or something overlayed on the corection fluid bottle so humans can see the image as well as the robots "vision" of the obstacles.

not sure what practical apllication it would have though.....

:-)


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




Check out more videos from MAKE.

Maker SHED

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



    MAKE Archives

    Make: Money

    Make: Science Room
    Subscribe to MAKE Magazine!

    Make: Online editors and authors!

    Gareth BranwynGareth Branwyn
    Editor-in-Chief


    Phillip TorronePhillip Torrone
    Senior Editor
    | Web | 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


    John BaichtalJohn Baichtal
    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!

    Advertise here with FM.

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

    Click here to advertise on MAKE!



    Current Podcast

    itunesdl.gif Behind the Scenes at MAKE and CRAFT In January, many of the remote MAKE/CRAFT team members (myself included) convened at the Maker Media headquarters at O'Reilly Media in Sebastopol, California. Take a look behind the scenes of your favorite DIY publications as Goli Mohammadi gives us... More...

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



    Sign up for the Make: Newsletter

    Our Make: Newsletter covers news from maker Media, has original columns, Shed deals, and more! You can also read the archives of past issues.


     



    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