Wii MotionPlus Gyro To Microchip PIC

Sometimes the most mundane products have surprisingly sophisticated internals. What’s in a game controller? If it is a Wii remote, you’ll find a lot inside–an IR sensor, Bluetooth, an accelerometer, and EEPROM. It also has a six pin expansion port that allows I2C peripherals connect to the controller.

[DotMusclera] wanted to experiment with a gyroscope and decided to hook up to the Wii MotionPlus to a Microchip PIC. Using information from the WiiBrew wiki, [DotMusclera] connected a PIC18F4550, an LCD, and a handful of components (mostly to do 3.3V level conversion), he set up the hardware on a breadboard. The only odd part you might have to work around is a Wii breakout board that converts from the breadboard to the Wii interface.

The software is easy to follow since it is written in Hi-TECH C and well-commented. The hardware lacks a schematic, but from the parts list and the video, you can probably figure it out. The setup works well and shows roll, pitch, and yaw on the LCD screen.

The project log is very detailed, with a lot of information about gyroscopes and the communication format the gyro uses. The video demo is worth watching as well.

Wii remotes are ripe for hacking and we’ve seen plenty of projects that uses them. Naturally, the same techniques could be used with just about any processor that can do I2C via a dedicated peripheral, or via bit banging.

https://www.youtube.com/watch?v=MSERorNFUd8

 

3 thoughts on “Wii MotionPlus Gyro To Microchip PIC

  1. Cool! I messed around with the nunchuk and motion plus a few years back and it was a lot of fun. I ran them both straight off 5V and they seemed okay with it. I made the hardware for a PIC18F4550 based RC flight controller but never finished it. If you’re looking for another fun gyro to play with, the MPU6050 is a combined accelerometer and gyroscope and the breakout boards are very cheap. They are simple, too, if you just want to read the 6 raw sensors. I eventually did combine an arduino pro mini and an MPU6050 and got an RC foam glider to do closed loop attitude control.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.