How-To: Visualize sensor data with Arduino & Processing

Arduino Robotics Technology
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

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

Tagged
Discuss this article with the rest of the community on our Discord server!

ADVERTISEMENT

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 16th iteration!

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK