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 हम इस ट्यूटोरियल में एक wiimote इस्तेमाल के बाद से वे कई सेंसरों से चुन रहे हैं और आप आसानी से कर सकता हूँ 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 Arduino , and can render 2D and 3D visualizations with small amounts of code. , और कोड की छोटी मात्रा के साथ 2 डी और 3 डी प्रदान visualizations कर सकते हैं. Before you jump in head first, I suggest you check out इससे पहले कि आप सिर में कूद पहले, मैं सुझाव है कि आप बाहर की जांच their examples उनके उदाहरण to familiarize yourself with the code. अपने आप कोड के साथ परिचित.

1. 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. 2. Graphing Mulitple Sensors and Inputs रेखांकन Mulitple सेंसरों और जानकारी

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 के साथ multivariable धारावाहिक संचार के बारे में अधिक जानकारी के बाहर की जांच सीखना arduino site arduino साइट . .

For non-arduino data visualization, check out some of these गैर के लिए-arduino डेटा दृश्य, इनमें से कुछ की जांच fantastic examples शानदार उदाहरण . .

Don't miss out on future articles, subscribe for सदस्यता लेने के भविष्य लेख को याद मत करो, के लिए free updates निःशुल्क अद्यतन . .

Comment: टिप्पणी:
Byron Morgan Byron मॉर्गन

April 25th, 2009 , 25 अप्रैल 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 , 25 अप्रैल 2009

Yea, the code used to generate the pretty graphs above got misplaced…*woops*. अच्छा, कोड के ऊपर सुंदर रेखांकन उत्पन्न किया गया गलत ... * woops *. Sorry about that, I'm in the process of re-writing it, will post it when I'm finished. इस बारे में क्षमा करें, मैं फिर से करने की प्रक्रिया में हूँ यह लेखन, यह पोस्ट जब मैं तैयार हूँ जाएगा.