How to: Graphically Visualize Data in Real Time How to: Grafisch Visualiseer gegevens 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. Hoewel de titel van deze post klinkt misschien een beetje gevorderde of intimiderende, vrees niet sprinkhaan, data-visualisatie is eigenlijk heel simpel. Using an outstanding program called Met behulp van een uitstekend programma, genaamd Processing Verwerking , we can read data through our computer's serial port and then display it visually. Kunnen we lezen gegevens via seriële poort van onze computer en vervolgens visueel weer te geven.

wiimote2

We'll use a wiimote in this tutorial since they're so many sensors to choose from and you can easily We gebruiken een wiimote in deze tutorial, omdat zij zo veel sensoren bent om uit te kiezen en u kunt eenvoudig connect it to your pc sluit hem aan op uw pc and en read data from it gegevens lezen uit het . . If you'd like to graph another type of sensor, you'll use the same methods but probably build your circuit differently. Als u wilt grafiek een ander type sensor, kunt u gebruik maken van dezelfde methoden, maar waarschijnlijk bouwen uw circuit anders. Learn about Weten over all sorts of sensors allerlei sensoren . .

processing
Processing Verwerking is the program I use – It's pretty easy to learn, uses the same interface as is het programma dat ik gebruik - Het is vrij gemakkelijk te leren, maakt gebruik van dezelfde interface als Arduino Arduino , and can render 2D and 3D visualizations with small amounts of code. En kunnen maken 2D en 3D visualisaties met kleine hoeveelheden van de code. Before you jump in head first, I suggest you check out Voordat je eerste sprong in het hoofd, stel ik u check out their examples hun voorbeelden to familiarize yourself with the code. vertrouwd te raken met de code.

1. 1. The Code De Code

graph

Once your sensors are successfully transmitting to your serial port (learn how to Zodra uw sensoren zijn goed om aan uw seriële poort (leren hoe send serial data stuur seriële data ), we can use that data to create a graph, thus creating a whole new perspective on our data. ), Kunnen we deze gegevens gebruiken een grafiek te maken, waardoor een geheel nieuw perspectief op onze gegevens. To get you started, we'll first just Om te beginnen, we zullen eerst alleen graph one variable grafiek een variabele coming in from the serial port. komende vanaf de seriële poort. The results should look basically like the image above. De resultaten moeten in principe uitzien als de afbeelding hierboven.

2. 2. Graphing Mulitple Sensors and Inputs Graphing mulitple Sensoren en Ingangen

multi-variable

Similar to the single variable graph above, we now Vergelijkbaar met de enkele variabele bovenstaande grafiek hebben we nu graph multiple values grafiek meerdere waarden at the same time. op hetzelfde moment. It's a bit more complicated since we have separate the variables. Het is een beetje ingewikkelder omdat we apart de variabelen hebben. To learn more information about multivariable serial communication with arduino, check out the Voor meer informatie over multivariabele seriële communicatie met Arduino, check out de arduino site Arduino website . .

For non-arduino data visualization, check out some of these Voor niet-Arduino Data Visualization, kijk op sommige van deze fantastic examples fantastische voorbeelden . .

Don't miss out on future articles, subscribe for Niet missen op toekomstige artikelen, inschrijven voor free updates gratis updates . .

Comment: Commentaar:
Byron Morgan Byron Morgan

April 25th, 2009 25 april 2009

Mine doesn't look anything like yours, and I copied and pasted the code *scratches head* Otherwise, Very cool! Mine ziet er niet iets als de jouwe, en ik gekopieerd en geplakt de code * krabt hoofd * Otherwise, very cool!

Joe L Joe L

April 25th, 2009 25 april 2009

Yea, the code used to generate the pretty graphs above got misplaced…*woops*. Ja, de code die wordt gebruikt voor het genereren van de mooie grafieken hierboven heb misplaatst ... * Woops *. Sorry about that, I'm in the process of re-writing it, will post it when I'm finished. Sorry about that, ik ben in het proces van het herschrijven, zal posten als ik klaar ben.