Featured: Make your own NES Game

How to: Graphically Visualize Data in Real Time



          

nunchuck-visualization

Although the title of this post may sound a bit advanced or intimidating, fear not grasshopper, data visualization is actually quite simple. Using an outstanding program called Processing, we can read data through our computer’s serial port and then display it visually.

wiimote2

We’ll use a wiimote in this tutorial since they’re so many sensors to choose from and you can easily connect it to your pc and read data from it. If you’d like to graph another type of sensor, you’ll use the same methods but probably build your circuit differently. Learn about all sorts of sensors.

processing
Processing is the program I use – It’s pretty easy to learn, uses the same interface as Arduino, and can render 2D and 3D visualizations with small amounts of code. Before you jump in head first, I suggest you check out their examples to familiarize yourself with the code.

1. The Code

graph

Once your sensors are successfully transmitting to your serial port (learn how to send serial data), we can use that data to create a graph, thus creating a whole new perspective on our data. To get you started, we’ll first just graph one variable coming in from the serial port. The results should look basically like the image above.

2. Graphing Mulitple Sensors and Inputs

multi-variable

Similar to the single variable graph above, we now graph multiple values at the same time. It’s a bit more complicated since we have separate the variables. To learn more information about multivariable serial communication with arduino, check out the arduino site.

For non-arduino data visualization, check out some of these fantastic examples.

Don’t miss out on future articles, subscribe for free updates.

 Free Hack N Mod Updates  
    How to: Cheap Accelerometer with the Wii Nunchuck

    How to: Cheap Accelerometer with the Wii Nunchuck

    Make a DIY Sonar System using Arduino

    Make a DIY Sonar System using Arduino

    DIY iPhone Controlled RC Car

    DIY iPhone Controlled RC Car

    Make a Wireless Keylogger

    Make a Wireless Keylogger

Comment:
 
Byron Morgan

April 25th, 2009

Mine doesn’t look anything like yours, and I copied and pasted the code *scratches head* Otherwise, Very cool!

Joe L

April 25th, 2009

Yea, the code used to generate the pretty graphs above got misplaced…*woops*. Sorry about that, I’m in the process of re-writing it, will post it when I’m finished.

Tags: bluetooth, graphing inputs, graphs, real time data, realtime data visualization, wiimote, wiimote hacks

Subscribe to HacknMod Updates

Subscribe to Hack N Mod via RSS
Follow @HacknMod on Twitter
Send us Projects, Earn Cash
Or, subscribe via email:
  • Airsoft & Gun
  • Apple
  • Arduino
  • Audio
  • Car
  • Case Mod
  • Cell Phone
  • Circuitry
  • DIY Free Energy
  • General
  • Internet
  • Laser
  • Leds & Light
  • Linux
  • NES & Atari
  • Psp, Ps2, and Ps3
  • Robots
  • USB Projects
  • Wii
  • Windows
  • Xbox 360
  • Random
30 Days All Time


About Us

  • About
  • Contact Us
  • Advertise
  • Send us Hacks
  • Write for Us

Get Daily Updates

Add to Google Reader or Homepage

Newsletter

  • Free HacknMod Gear
  • Exclusive Discounts
  • Behind the Scenes
  • HacknMod Store Discounts
  • E-mail:

HacknMod Store

Most Popular | Led Projects | Hack N Mod Store | Submit Hacks

HacknMod.com © 2013