O'Reilly logo

Coding4Fun by Dan Fernandez, Brian Peek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Wiimote-controlled Car

AUTHOR: Brian Peek

DIFFICULTY: Medium

TIME REQUIRED: 5 Hours

COST: $40 for Wii Remote (or free if you own a Nintendo Wii console), $80 for a Phidget Interface Kit, $25 for a R/C car

SOFTWARE: Visual C# 2008 Express, Visual Basic 2008 Express, or any full edition of Visual Studio 2008

HARDWARE: Nintendo Wii Remote, Phidget Interface Kit, R/C car with “digital” inputs, soldering iron, solder, wire

DOWNLOAD: http://www.c4fbook.com/WiimoteCar

Since its North American launch in November 2006, the Nintendo Wii game console’s innovative user interface has taken gaming to a new level. With few exceptions, previous gaming consoles only allowed users to control a game via a standard control pad and buttons. The Nintendo Wii lets users control the games with the motion-sensitive Wii Remote, affectionately known as the Wiimote (see Figure 8-1).

Serialization and deserialization during an operation call
Figure 8-1. Serialization and deserialization during an operation call

This project will use the motion-sensitive capabilities of the Wiimote to control a standard remote-controlled car, allowing the driver to steer the car left and right by tilting the Wiimote.

Overview

For those unfamiliar with the Wii remote, it is a hand-held, rectangular device similar in shape to a television remote control. It is included with the Nintendo Wii console, or can be purchased separately for about $40.

This controller contains a ton of hardware ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required