
As you're probably well aware, the Como usted probablemente sabe, el wiimote wiimote and y nunchuck nunchuck have a vast array of sensors built into them. tienen una amplia gama de sensores incorporados. 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 ( En lugar de comprar pre-montados a bordo desglose por $ 35, o el intento de soldar un pequeño montaje en superficie acelerómetro, aprender a explotar las características de la Wii Nunchuck y tienen un acelerómetro totalmente montado, joystick y pulsadores por sólo $ 12.50 enviada ( on ebay en 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. ¿Por qué utilizar el INSEAD nunchuck del Wiimote real? Wiimotes puede ser de $ 40 y tienen un montón de características adicionales que no necesitará por el momento. Plus, the nunchuck has a cable which can easily be plugged into the Arduino. Además, el nunchuck tiene un cable que puede ser fácilmente conectado a la Arduino. Of course, there are plenty of other ways to Por supuesto, hay muchas otras maneras de connect the wiimote to your pc conectar el Wiimote al PC but this way we can interact with other hardware using the Arduino. pero de esta manera podemos interactuar con otro hardware utilizando el Arduino. If you've never used the Arduino, see Si usted nunca ha utilizado el Arduino, véase our tutorial nuestro tutorial . .
1. 1. Connect the Nunchuck to your Computer Conecte el Nunchuck al ordenador

The Nunchuck communicates through 6 bits of data. El Nunchuk se comunica a través de 6 bits de datos. To read this data, you'll need to connect the wiimote to a microcontroller. Para leer estos datos, tendrás que conectar el wiimote a un microcontrolador. In this case we'll use En este caso usaremos 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. Usted puede cortar el cordón umbilical en el Nunchuck, o comprar un adaptador para que encaje perfectamente en su tablero programador Arduino. View more detailed Ver más detallada instructions instrucciones about connecting the nunchuck and I2C (how they talk to each other). sobre la conexión del Nunchuck y el I2C (cómo hablan entre sí).
2. 2. Setup the Software and Download Code El programa de instalación del software y descargas de código

If you don't already have it, download the Si no lo tiene, descargue el Arduino software Software Arduino (free). (gratis). Next, download the A continuación, descargue el code Código which deciphers the 6 bits of data send from the Nunchuck and prints it to your computer's serial port. el que descifra los 6 bits de datos enviados desde el Nunchuck y lo imprime en el puerto serie del ordenador. To learn more about how this communication works, see the Para obtener más información acerca de cómo esta comunicación de obras, ver el author's tutorials tutoriales de autor or the o original source fuente original . .
3. 3. Resulting Output Salida resultante

By using the serial monitor of your Arudino software (or other serial monitoring software), you'll see the above output. Usando el monitor de serie de su software de Arudino (u otro software de seguimiento de serie), verá el resultado anterior. Sure, view the results as numbers is fine, but visually representing data in real time is far sexier. Claro, ver los resultados como números está bien, pero representar visualmente los datos en tiempo real es mucho más sexy. Using a program called Usando un programa llamado Processing Procesamiento , you can read the above data and display it like the image below. , Puede leer los datos anteriores y lo mostrará como la imagen de abajo. See our thorough tutorial about how to graphically visualize data. Consulte nuestra guía completa acerca de cómo visualizar gráficamente los datos.
4. 4. Visualizing Data in Real Time Visualización de datos en Tiempo Real

Watching numbers steam in (step 3 image) is fine and dandy, but sometimes you just need something more to create a truly new perspective. Ver que el número de vapor en (paso 3 de imagen) es fina y elegante, pero a veces sólo falta algo más para crear una perspectiva verdaderamente nuevo. Processing Procesamiento is the program I've used, it's pretty easy to es el programa que he usado, es bastante fácil de learn aprender , uses the same interface as Arduino, and can render 2D and 3D visualizations with small amounts of code. , Utiliza la misma interfaz que Arduino, y pueden hacer en 2D y 3D visualizaciones con pequeñas cantidades de código. Check out our tutorial to learn how to Echa un vistazo a nuestro tutorial para aprender a graphically visualize data visualizar gráficamente los datos . .
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 Ahora que ha aprendido a leer datos de un nunchuck, así como la visualización de datos, ir a hacer algo impresionante y no se olvide de subscribe to HacknMod Suscribirse a HacknMod for more fantastic posts. para los puestos más fantásticos.











































