
Although the title of this post may sound a bit advanced or intimidating, fear not grasshopper, data visualization is actually quite simple. Lai gan par šo amatu virsraksts var likties nedaudz uz priekšu vai iebiedējošu, bailes nav sienāzis, datu vizualizācijas ir samērā vienkāršs. Using an outstanding program called Izmantojot izcilu programmu, ko sauc Processing Processing , we can read data through our computer's serial port and then display it visually. Mēs varam nolasīt datus caur mūsu datora seriālā porta un tad parādītu vizuāli.

We'll use a wiimote in this tutorial since they're so many sensors to choose from and you can easily Mēs izmantosim Wiimote šajā apmācība, jo viņi tik daudz sensoriem, no kuriem izvēlēties, un jūs varat viegli connect it to your pc pievienot to savam pc and un read data from it nolasīt datus no tās . . If you'd like to graph another type of sensor, you'll use the same methods but probably build your circuit differently. Ja jūs vēlaties grafika cita tipa sensoru, jūs izmanto tādas pašas metodes, bet, iespējams izveidot savu circuit atšķirīgi. Learn about Uzziniet par all sorts of sensors visi sensoru veidu . .

Processing Processing is the program I use – It's pretty easy to learn, uses the same interface as ir programma, I use - Ir diezgan viegli iemācīties, izmanto pats interfeiss kā Arduino Arduino , and can render 2D and 3D visualizations with small amounts of code. , Un tā var padarīt 2D un 3D vizualizācijas nelielos daudzumos kodu. Before you jump in head first, I suggest you check out Pirms jūs lēkt galvas, pirmkārt, es iesaku jums apskatīt their examples viņu piemēri to familiarize yourself with the code. iepazīties ar kodu.
1. 1. The Code Kods

Once your sensors are successfully transmitting to your serial port (learn how to Kad jūsu sensori veiksmīgi nosūtīt savu serial port (Uzziniet, kā send serial data nosūtīt sērijas dati ), we can use that data to create a graph, thus creating a whole new perspective on our data. ), Mēs varam izmantot, ka datus, lai izveidotu grafiku, tādējādi radot pilnīgi jaunu skatījumu uz mūsu datiem. To get you started, we'll first just Lai tu sāktu, mēs vispirms vienkārši graph one variable graph viena mainīgā coming in from the serial port. nāk no serial port. The results should look basically like the image above. Rezultātus vajadzētu izskatīties būtībā tāpat kā attēlā.
2. 2. Graphing Mulitple Sensors and Inputs Zīmējošiem Mulitple Sensori un Inputs

Similar to the single variable graph above, we now Līdzīgi kā ar vienu mainīgo grafikā, mēs tagad graph multiple values graph vairākas vērtības at the same time. tajā pašā laikā. It's a bit more complicated since we have separate the variables. Tas ir nedaudz sarežģītāk, jo mēs esam atsevišķi rādītāji. To learn more information about multivariable serial communication with arduino, check out the Lai uzzinātu vairāk informācijas par multivariable secīgiem sakariem ar Arduino, izbraukšana arduino site Arduino site . .
For non-arduino data visualization, check out some of these For non-Arduino datu vizualizācijas, apskatīt dažas no šīm fantastic examples fantastic piemēri . .
Don't miss out on future articles, subscribe for Don't miss out nākotnes izstrādājumiem, parakstīties free updates bezmaksas atjauninājumu pieejamību . .













































April 25th, 2009 25 aprīlis 2009
Mine doesn't look anything like yours, and I copied and pasted the code *scratches head* Otherwise, Very cool! Mine neizskatās kaut kā jums, un es kopēt un ielīmēt kodu * pakasa galvu * Pretējā gadījumā, ļoti foršs!
April 25th, 2009 25 aprīlis 2009
Yea, the code used to generate the pretty graphs above got misplaced…*woops*. Jā, kods, ko izmanto, lai radītu diezgan diagrammas iepriekš dabūja nevietā ... * woops *. Sorry about that, I'm in the process of re-writing it, will post it when I'm finished. Atvainojiet par to, es esmu procesā atkārtoti rakstiski, tā būs pēc tam, kad es esmu beidzis.