O'Reilly logo

Arduino in Action by Martin Evans, Joshua Noble, and Jordan Hochenbaum

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 9. Game on

This chapter covers

  • Connecting an Arduino to a Wii Nunchuk
  • Arduino port manipulation
  • Connecting an Arduino to an Xbox controller
  • Using the USB Host Shield

It’s time to dig out that old game controller that’s lying unused in the cupboard, or alternatively, borrow one from your kids. Game controllers are a great way to control things on the Arduino. From robots to flying vehicles, they tend to be relatively low-cost because so many were mass-produced, and eBay and junk sales also offer a steady second-hand supply.

We’ll start by looking at one of the controllers made for the Nintendo Wii games console—the versatile Nunchuk. Then we’ll look at one of its main rivals, the Microsoft Xbox 360 and its USB controller. You’ll ...

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