
As you're probably well aware, the जैसा कि आप शायद अच्छी तरह से हो, पता है wiimote wiimote and और nunchuck nunchuck have a vast array of sensors built into them. उन्हें में निर्मित सेंसर का एक विशाल सरणी है. Instead of buying pre-assembled breakout board for $35, or attempting to solder a tiny surface mount accelerometer, learn to exploit the features of the Wii Nunchuck and have a fully assembled accelerometer, joystick, and pushbuttons for just $12.50 shipped ( इसके बजाय पहले खरीदने के इकट्ठे breakout बोर्ड 35 $ है, या एक छोटे से सतह accelerometer माउंट मिलाप के प्रयास के लिए, के लिए Wii Nunchuck की सुविधाओं का फायदा उठाने और एक पूरी तरह से इकट्ठे accelerometer, जोस्टिक है, और केवल $ 12.50 के लिए भेज दिया pushbuttons सीख ( on ebay eBay पर ). ).

Why use the nunchuck insead of the actual WiiMote? Wiimotes can be about $40 and have a lot of extra features you wont need at the moment. क्यों वास्तविक WiiMote के nunchuck insead उपयोग Wiimotes? के बारे में 40 डॉलर हो सकती है और अतिरिक्त सुविधाओं को आप समय की जरूरत है अभ्यस्त का एक बहुत है. Plus, the nunchuck has a cable which can easily be plugged into the Arduino. इसके अलावा, nunchuck एक केबल जो आसानी से हो Arduino में खामियों को दूर कर सकता है. Of course, there are plenty of other ways to बेशक, वहाँ अन्य तरीके का बहुत हैं connect the wiimote to your pc अपने पीसी को wiimote कनेक्ट but this way we can interact with other hardware using the Arduino. लेकिन इस तरह से हम अन्य Arduino का उपयोग कर हार्डवेयर के साथ बातचीत कर सकते हैं. If you've never used the Arduino, see यदि आप Arduino, इस्तेमाल कभी नहीं देखा our tutorial हमारे ट्यूटोरियल . .
1. 1. Connect the Nunchuck to your Computer आपके कंप्यूटर को जोड़ने के लिए Nunchuck

The Nunchuck communicates through 6 bits of data. आंकड़ों के 6 टुकड़े के माध्यम से Nunchuck वालों में था. To read this data, you'll need to connect the wiimote to a microcontroller. इस डाटा को पढ़ा, तुम एक microcontroller को wiimote जोड़ने की आवश्यकता होगी. In this case we'll use इस मामले में हम इस्तेमाल करेंगे the Arduino Arduino . . You can either cut the cord on your Nunchuck or purchase an adapter so it fits snugly into your Arduino programmer board. आप या तो अपने Nunchuck पर रस्सी काट कर सकते हैं या एक एडाप्टर खरीद तो यह आपके Arduino प्रोग्रामर बोर्ड में snugly फिट बैठता है. View more detailed देखें और अधिक विस्तृत instructions निर्देश about connecting the nunchuck and I2C (how they talk to each other). nunchuck और I2C जोड़ने के बारे में (वे एक दूसरे से कैसे बात).
2. 2. Setup the Software and Download Code सेटअप सॉफ्टवेयर डाउनलोड करें और संहिता

If you don't already have it, download the डाउनलोड करें यदि आप पहले से ही यह नहीं है, Arduino software Arduino सॉफ्टवेयर (free). (free). Next, download the अगले, डाउनलोड code कोड which deciphers the 6 bits of data send from the Nunchuck and prints it to your computer's serial port. जो आंकड़ों के 6 टुकड़े deciphers Nunchuck से भेजने और यह आपके कंप्यूटर के सीरियल पोर्ट से प्रिंट. To learn more about how this communication works, see the के बारे में अधिक जानें कि यह कैसे काम करता है संचार, देखना author's tutorials लेखक का ट्यूटोरियल or the या original source मूल स्रोत . .
3. 3. Resulting Output परिणामस्वरूप आउटपुट

By using the serial monitor of your Arudino software (or other serial monitoring software), you'll see the above output. अपने Arudino सॉफ्टवेयर (या अन्य धारावाहिक निगरानी सॉफ्टवेयर) के सीरियल की निगरानी का उपयोग करके आप उपरोक्त आउटपुट देखेंगे. Sure, view the results as numbers is fine, but visually representing data in real time is far sexier. ज़रूर, संख्या के रूप में परिणाम देखने के ठीक है, लेकिन नेत्रहीन वास्तविक समय में डेटा का प्रतिनिधित्व दूर है sexier. Using a program called एक कार्यक्रम के नाम का उपयोग करना Processing संसाधन , you can read the above data and display it like the image below. , आप ऊपर डेटा पढ़ सकते हैं और यह नीचे की छवि की तरह प्रदर्शित कर सकते हैं. See our thorough tutorial about how to graphically visualize data. देखो हमारी कैसे रेखांकन डेटा को कल्पना के बारे में पूरी तरह से ट्यूटोरियल.
4. 4. Visualizing Data in Real Time वास्तविक समय में डेटा Visualizing

Watching numbers steam in (step 3 image) is fine and dandy, but sometimes you just need something more to create a truly new perspective. (3 कदम छवि) में नंबर भाप देखना ठीक है और श्रेष्ठ है, लेकिन कभी कभी तुम सिर्फ कुछ और करने की जरूरत है वास्तव में एक नए परिप्रेक्ष्य बनाएँ. Processing संसाधन is the program I've used, it's pretty easy to मैं प्रोग्राम का उपयोग किया है है, यह बहुत आसान है learn सीखना , uses the same interface as Arduino, and can render 2D and 3D visualizations with small amounts of code. , Arduino के रूप में एक ही इंटरफेस का उपयोग करता है, और 2 डी और 3 डी visualizations कोड की छोटी मात्रा के साथ प्रदान कर सकते हैं. Check out our tutorial to learn how to बाहर की जाँच करें हमारे ट्यूटोरियल जानने के लिए कैसे graphically visualize data रेखांकन डेटा कल्पना . .
Now that you've learned how to read data from a nunchuck as well as data visualization, go make something awesome and don't forget to अब तुम सीख nunchuck से एक के रूप में के रूप में अच्छी तरह से डेटा दृश्य डेटा को पढ़ने के लिए, जाओ करना भययोग्य कुछ और भूल नहीं है subscribe to HacknMod HacknMod की सदस्यता लें for more fantastic posts. के लिए और अधिक शानदार पोस्ट.











































