EasyManuals Logo

Arduino uno User Manual

Arduino uno
311 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #179 background imageLoading...
Page #179 background image
With less than 200 lines of code, youve written a complete game for your new
video game console. Its definitely not a blockbuster, but its actually fun and
a great opportunity to learn about the very basics of game programming.
Also, it should give you enough confidence to implement more advanced
games. You can find a lot of classic games on the web that use nearly the
same hardware we used in this chapter.
3
What If It Doesnt Work?
From a makers perspective, this chapter is an easy one. Still, things can go
wrong, especially with the wiring. Make sure youve connected the right pins
on the Arduino and on the Nunchuk. Also check that the wires tightly fit into
the Nunchuks and the Arduinos sockets. When in doubt, use wire with a
larger diameter.
Also, check What If It Doesnt Work?, on page 143, for all things that can go
wrong when generating video signals with the Arduino.
Exercises
Rewrite the game we implemented in Chapter 7, Writing a Game for the
Motion-Sensing Game Controller, on page 111, so it supports the Nunchuk
controller. It should support both the analog stick and the accelerometer.
Perhaps you can switch between them using the Nunchuk buttons.
Tinkering with Nintendos Wii Motion is more complicated.
4
But its a nice
and cheap way to sharpen your tinkering skills.
The TVout library has basic audio support. Connect a piezo buzzer to
digital pin 11 and use the
tone
and
noTone
functions to add sound capabil-
ities to the video game console. Also, add some sound effects to Pragduino.
3. See
http://nootropicdesign.com/hackvision/games.html
.
4.
http://randomhacksofboredom.blogspot.com/2009/07/motion-plus-and-nunchuck-together-on.html
Chapter 9. Tinkering with the Wii Nunchuk 162
report erratum discuss
www.it-ebooks.info

Table of Contents

Other manuals for Arduino uno

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Arduino uno and is the answer not in the manual?

Arduino uno Specifications

General IconGeneral
Form factorArduino
CertificationRoHS, FC, CE
Processor model-
Processor frequency- MHz
Microcontroller modelATmega328
Microcontroller frequency16 MHz
DC input voltage7-12 V
Operating voltage5 V
DC current per I/O pin40 mA
Flash memory0.032 MB
Maximum internal memory- GB
SRAM (Static Random Access Memory)2 KB
EEPROM (Electrically Erasable Programmable Read-Only Memory)1 KB
Wi-FiNo
Number of analog I/O pins6
Number of digital I/O pins14
Weight and Dimensions IconWeight and Dimensions
Board dimensions53.4 x 68.6 mm

Related product manuals