How to: Cheap Accelerometer with the Wii Nunchuck Gewusst wie: Günstige Beschleunigungsmesser mit der Wii Nunchuk

nunchuck
As you're probably well aware, the Wie Sie wahrscheinlich wissen, die wiimote wiimote and und nunchuck Nunchuck have a vast array of sensors built into them. haben eine Vielzahl von Sensoren in die sie gebaut haben. 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 ( Statt Kauf vormontiert Breakout-Board für $ 35 oder der Versuch, eine kleine Surface-Mount-Beschleunigungsmesser löten, lernen die Eigenschaften der Wii Nunchuk zu nutzen und eine komplett aufgebaute Beschleunigungsmesser, Joystick, und Drucktasten für nur € 12,50 ausgeliefert ( on ebay bei eBay ). ).

wiichuck_adapter11

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. Warum sollte man das Nunchuck INSEAD der tatsächlichen WiiMote? Wiimotes kann über $ 40 und haben eine Menge von zusätzlichen Funktionen, die Sie pflegen müssen im Moment. Plus, the nunchuck has a cable which can easily be plugged into the Arduino. Plus hat dem Nunchuck ein Kabel angeschlossen werden, die leicht in die Arduino kann. Of course, there are plenty of other ways to Natürlich gibt es viele andere Möglichkeiten, connect the wiimote to your pc verbinden die Wiimote auf Ihrem PC but this way we can interact with other hardware using the Arduino. aber auf diese Weise können wir mit anderer Hardware mit dem Arduino zu interagieren. If you've never used the Arduino, see Wenn Sie noch nie benutzt haben die Arduino, siehe our tutorial Unser Tutorial . .

1. 1. Connect the Nunchuck to your Computer Schließen Sie das Nunchuck an den Computer

wiichuck-diag1

The Nunchuck communicates through 6 bits of data. Die Nunchuck kommuniziert über 6 Datenbits. To read this data, you'll need to connect the wiimote to a microcontroller. Um diese Daten zu lesen, müssen Sie die Wiimote an einen Mikrocontroller in Verbindung zu treten. In this case we'll use In diesem Fall wir benutzen werden the Arduino die Arduino . . You can either cut the cord on your Nunchuck or purchase an adapter so it fits snugly into your Arduino programmer board. Sie können entweder schnitt die Schnur auf dem Nunchuck oder den Kauf eines Adapters so fügt sich passgenau in Ihre Programmierer Arduino Bord. View more detailed Weitere detaillierte instructions Anweisungen about connecting the nunchuck and I2C (how they talk to each other). über den Anschluss der Nunchuck und I2C (wie sie miteinander sprechen).

2. 2. Setup the Software and Download Code Setup der Software-und Download-Code

code_talkers1

If you don't already have it, download the Wenn Sie nicht bereits haben, laden Sie die Arduino software Arduino Software (free). (kostenlos). Next, download the Anschließend laden die code Code which deciphers the 6 bits of data send from the Nunchuck and prints it to your computer's serial port. die 6 Bits von Daten entschlüsselt senden aus dem Nunchuck und gibt sie an den seriellen Port Ihres Computers. To learn more about how this communication works, see the Wenn Sie mehr darüber, wie diese Kommunikation funktioniert finden Sie in der author's tutorials Autors Tutorials or the oder die original source Originalquelle . .

3. 3. Resulting Output Resultierende Ausgabe

nunchuck-data

By using the serial monitor of your Arudino software (or other serial monitoring software), you'll see the above output. Mit Hilfe der Seriennummer Ihres Monitors Arudino Software (oder andere serielle Monitoring-Software) sehen Sie die oben genannten Ausgabe. Sure, view the results as numbers is fine, but visually representing data in real time is far sexier. Klar, die Ergebnisse als Zahlen Ansicht ist gut, aber visuelle Darstellung von Daten in Echtzeit ist viel sexier. Using a program called Mit einem Programm namens Processing Processing , you can read the above data and display it like the image below. , Können Sie die oben genannten Daten zu lesen und zeigt es, wie das Bild unten. See our thorough tutorial about how to graphically visualize data. Entdecken Sie die ausführliche Anleitung dazu, wie Sie Daten grafisch zu visualisieren.

4. 4. Visualizing Data in Real Time Visualisieren von Daten in Echtzeit

nunchuck-visualization

Watching numbers steam in (step 3 image) is fine and dandy, but sometimes you just need something more to create a truly new perspective. Watching Zahlen Dampf (Schritt 3 Bild) ist schön und gut, aber manchmal müssen Sie nur noch etwas mehr um eine wirklich neue Perspektive zu schaffen. Processing Processing is the program I've used, it's pretty easy to ist das Programm, die ich benutzt habe, ist es recht einfach, learn lernen , uses the same interface as Arduino, and can render 2D and 3D visualizations with small amounts of code. , Verwendet das gleiche Interface wie Arduino, und können 2D-und 3D-Visualisierungen zu machen mit geringen Mengen von Code. Check out our tutorial to learn how to Schauen Sie sich unsere Anleitung lernen, wie man graphically visualize data grafische Visualisierung von Daten . .

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 Nun, da Sie gelernt haben, wie Daten von einem Nunchuck sowie Visualisierung von Daten zu lesen, gehen Sie etwas machen awesome und vergessen Sie nicht, subscribe to HacknMod Abonnieren Sie HacknMod for more fantastic posts. mehr fantastische Beiträge.

Comment: Kommentar: