Featured: Make Backup Copies of Your PS3 Games

How to: Cheap Accelerometer with the Wii Nunchuck



          

nunchuck
As you’re probably well aware, the wiimote and 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 (on 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. Plus, the nunchuck has a cable which can easily be plugged into the Arduino. Of course, there are plenty of other ways to connect the wiimote to your pc but this way we can interact with other hardware using the Arduino. If you’ve never used the Arduino, see our tutorial.

1. Connect the Nunchuck to your Computer

wiichuck-diag1

The Nunchuck communicates through 6 bits of data. To read this data, you’ll need to connect the wiimote to a microcontroller. In this case we’ll use the Arduino. You can either cut the cord on your Nunchuck or purchase an adapter so it fits snugly into your Arduino programmer board. View more detailed instructions about connecting the nunchuck and I2C (how they talk to each other).

2. Setup the Software and Download Code

code_talkers1

If you don’t already have it, download the Arduino software (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. To learn more about how this communication works, see the author’s tutorials or the original source.

3. Resulting Output

nunchuck-data

By using the serial monitor of your Arudino software (or other serial monitoring software), you’ll see the above output. Sure, view the results as numbers is fine, but visually representing data in real time is far 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. Visualizing Data in Real Time

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. 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. 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 subscribe to HacknMod for more fantastic posts.

 Free Hack N Mod Updates  
    Arduino & NunChuck create Real Time DIY Pan & Tilt Camera

    Arduino & NunChuck create Real Time DIY Pan & Tilt Camera

    How to: Graphically Visualize Data in Real Time

    How to: Graphically Visualize Data in Real Time

    How to Connect Multiple Arduino Microcontrollers with I2C

    How to Connect Multiple Arduino Microcontrollers with I2C

    How to Play Counter Strike, CoD, any PC Game with a WiiMote

    How to Play Counter Strike, CoD, any PC Game with a WiiMote

Comment:
 
Tags: accelerometer, cheap accelerometer, cheap sensors, DIY, nunchuk hack, project supplies, save on supplies

Subscribe to HacknMod Updates

Subscribe to Hack N Mod via RSS
Follow @HacknMod on Twitter
Send us Projects, Earn Cash
Or, subscribe via email:
  • Airsoft & Gun
  • Apple
  • Arduino
  • Audio
  • Car
  • Case Mod
  • Cell Phone
  • Circuitry
  • DIY Free Energy
  • General
  • Internet
  • Laser
  • Leds & Light
  • Linux
  • NES & Atari
  • Psp, Ps2, and Ps3
  • Robots
  • USB Projects
  • Wii
  • Windows
  • Xbox 360
  • Random
Translate
Translate to EnglishÜbersetzen Sie zum Deutsch/GermanTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese
한국어에게 번역하십시오/Korean中文翻译/Chinese Simplified中文翻译/Chinese Traditionalترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/Russian
Oversetter til Norsk/NorwegianÖversätta till Svensk/Swedishहिन्दी अनुवाद करने के लिए/HindiTradueix al català/CatalanTulkot uz latviešu/LatvianPreložiť do slovenčiny/SlovakПереклад на українську/Ukrainian
Plugin by Taragana
30 Days All Time
How to: Integrate Google's Nexus 7 into your Car Dashboard

How to: Integrate Google's Nexus 7 into your Car Dashboard

Hexacopter + Hexapod = An Eerie Robotics Masterpiece

Hexacopter + Hexapod = An Eerie Robotics Masterpiece

Incredible Transforming Desk from the 1700's

Incredible Transforming Desk from the 1700's

6 Fantastic Laser Pointer Projects

6 Fantastic Laser Pointer Projects

Reusing an Old PC as a Server

Reusing an Old PC as a Server

About Us

  • About
  • Contact Us
  • Advertise
  • Send us Hacks
  • Write for Us

Get Daily Updates

Add to Google Reader or Homepage

Newsletter

  • Free HacknMod Gear
  • Exclusive Discounts
  • Behind the Scenes
  • HacknMod Store Discounts
  • E-mail:

HacknMod Store

Most Popular | Led Projects | Hack N Mod Store | Submit Hacks

HacknMod.com © 2013