PDA

View Full Version : Wiimote Controlled RPi Robot



wraggster
March 7th, 2013, 14:05
http://hackadaycom.files.wordpress.com/2013/03/wiipi.png?w=580&h=433 (http://hackaday.com/?attachment_id=95668)
[Brian] has brought together a powerful collection of hardware to build a robot. The end goal is to have a robot that’s controlled by a Wiimote (http://www.brianhensley.net/2013/03/raspberry-pi-robot-wii-remote-phase-1.html).
The Wiimote communicates over Bluetooth with a Raspberry Pi, which is running a Python script. This script uses the CWiid Python module to communicate with the controller, and [Brian] has detailed instructions on getting the Wiimote working with a RPi (http://www.brianhensley.net/2012/08/wii-controller-raspberry-pi-python.html). The RPi controls an ATmega based development board over SPI, which drives an h-bridge to control the two DC motors that move the robot.
[Brian]‘s code for this could be helpful for anyone looking to control their RPi with a Wiimote. Since Wiimotes and Bluetooth dongles are fairly cheap nowadays, this is a great way to drop in wireless control to any RPi project, or even to control your media center from the couch.
After the break, check out a video of the build in action

http://hackaday.com/2013/03/07/wiimote-controlled-rpi-robot/