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 #169 background imageLoading...
Page #169 background image
Scientific Applications Using Wii Equipment
Because of the Wiis accuracy and low price, many scientists use the Wii for things
other than gaming. Some hydrologists use it for measuring evaporation from a body
of water.
a
Usually, youd need equipment costing more than $500 to do that.
Some doctors at the University of Melbourne had a closer look at the Wii Balance
Board, because they were looking for a cheap device to help stroke victims recover.
b
They published a scientific paper verifying that the boards data is clinically compa-
rable to that of a lab-grade force platform for a fraction of the cost.
a.
http://www.wired.com/wiredscience/2009/12/wiimote-science/
b.
http://www.newscientist.com/article/mg20527435.300-wii-board-helps-physios-strike-a-balance-after-
strokes.html
Using Our Nunchuk Class
Lets use the
Nunchuk
class to see what data the controller actually returns:
Tinkering/NunchukDemo/NunchukDemo.ino
#include <Wire.h>
#include "nunchuk.h"
const unsigned int BAUD_RATE = 19200;
Nunchuk nunchuk;
void setup() {
Serial.begin(BAUD_RATE);
nunchuk.initialize();
}
void loop() {
if (nunchuk.update()) {
Serial.print(nunchuk.joystick_x());
Serial.print(" ");
Serial.print(nunchuk.joystick_y());
Serial.print(" ");
Serial.print(nunchuk.x_acceleration());
Serial.print(" ");
Serial.print(nunchuk.y_acceleration());
Serial.print(" ");
Serial.print(nunchuk.z_acceleration());
Serial.print(" ");
Serial.print(nunchuk.z_button());
Serial.print(" ");
Serial.println(nunchuk.c_button());
}
}
Chapter 9. Tinkering with the Wii Nunchuk 152
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