
How to: Graphically Visualize Data in Real Time Come: Graficamente visualizzare i dati in tempo reale

Although the title of this post may sound a bit advanced or intimidating, fear not grasshopper, data visualization is actually quite simple. Anche se il titolo di questo post può sembrare un po 'avanzato o intimidatorio, non temere cavalletta, la visualizzazione dei dati è in realtà abbastanza semplice. Using an outstanding program called Utilizzando un programma eccezionale chiamato Processing Trasformazione , we can read data through our computer's serial port and then display it visually. , Siamo in grado di leggere i dati attraverso la porta seriale del nostro computer e quindi visualizzare visivamente.

We'll use a wiimote in this tutorial since they're so many sensors to choose from and you can easily Useremo un Wiimote in questo tutorial dato che sono i sensori così tanti tra cui scegliere e si può facilmente connect it to your pc collegarlo al PC and e read data from it leggere i dati da esso . . If you'd like to graph another type of sensor, you'll use the same methods but probably build your circuit differently. Se desideri grafico un altro tipo di sensore, si utilizzino gli stessi metodi, ma probabilmente costruire il tuo circuito diverso. Learn about Ulteriori informazioni su all sorts of sensors tutti i tipi di sensori . .

Processing Trasformazione is the program I use – It's pretty easy to learn, uses the same interface as è il programma che uso - È abbastanza facile da imparare, utilizza la stessa interfaccia Arduino Arduino , and can render 2D and 3D visualizations with small amounts of code. , E può rendere grafici 2D e 3D con piccole quantità di codice. Before you jump in head first, I suggest you check out Prima di passare in testa da un lato, vi suggerisco di check-out their examples il loro esempio to familiarize yourself with the code. per familiarizzare con il codice.
1. 1. The Code Il Codice

Once your sensors are successfully transmitting to your serial port (learn how to Una volta che il sensori con successo la trasmissione alla porta seriale (imparare a send serial data inviare i dati seriali ), we can use that data to create a graph, thus creating a whole new perspective on our data. ), Siamo in grado di utilizzare tali dati per creare un grafico, creando così una prospettiva del tutto nuova per i nostri dati. To get you started, we'll first just Per cominciare, ci prima solo graph one variable grafico di una variabile coming in from the serial port. entrando dalla porta seriale. The results should look basically like the image above. Il risultato dovrebbe essere essenzialmente come l'immagine qui sopra.
2. 2. Graphing Mulitple Sensors and Inputs Grafica Sensori Mulitple e Ingressi

Similar to the single variable graph above, we now Simile a quello grafico unica variabile di cui sopra, che ora graph multiple values valori grafico più at the same time. allo stesso tempo. It's a bit more complicated since we have separate the variables. E 'un po' più complicato dal momento che abbiamo separato le variabili. To learn more information about multivariable serial communication with arduino, check out the Per saperne di più informazioni su multivariabili comunicazione seriale con Arduino, il check-out arduino site Arduino sito . .
For non-arduino data visualization, check out some of these Per i non-visualizzazione dei dati Arduino, check out alcuni di questi fantastic examples fantastici esempi . .
Don't miss out on future articles, subscribe for Non perdete occasione di futuri articoli, sottoscrivere free updates Aggiornamenti gratuiti . .












































April 25th, 2009 25 aprile 2009
Mine doesn't look anything like yours, and I copied and pasted the code *scratches head* Otherwise, Very cool! Il mio non sembra niente come la tua, e ho copiato e incollato il codice * gratta la testa * In caso contrario, Very cool!
April 25th, 2009 25 aprile 2009
Yea, the code used to generate the pretty graphs above got misplaced…*woops*. Sì, il codice utilizzato per generare i grafici di cui sopra ho abbastanza fuori luogo ... * woops *. Sorry about that, I'm in the process of re-writing it, will post it when I'm finished. Mi dispiace, io sono nel processo di ri-scrittura che, si è posto quando ho finito.