WBC Sample Demos

Location

$REVOLUTION_SDK_ROOT/build/demos/wbcdemo

Compilation

Change directories to $REVOLUTION_SDK_ROOT/build/demos/wbcdemo and enter make. An executable file (.elf) will be generated under the path $REVOLUTION_SDK_ROOT/RVL/bin/demos/wbcdemo/.

Running the Demos

Change to the $REVOLUTION_SDK_ROOT/RVL/bin/demos/wbcdemo/ directory and perform the following steps:

Description

handling_weight Demo description:
This demo consists of handling.c from wpadHealthdemo, with weight-conversion processing added. It converts the values from the four balance sensors on the Wii Balance Board legs to weight (in kilograms) and displays it.

The weight values shown on the right of the screen have the following meanings.

Wt: Average value over two seconds
Wt(TGC):Average value over two seconds, corrected for temperature and gravitational acceleration


Operations Described:
START:Sets the zero point. Gets the raw WBC values for two seconds, and that average value is then set for the WBCSetZEROPoint function.
+Control Pad Left Button:Gets the average weight value. Takes the average value over two seconds.


Caution:
  • Due to properties of the balance sensors when accurately measuring weight, it is necessary to set the zero point for each measurement (press the START button while nothing is on the WBC).
  • In the demo, temperature is updated immediately before the zero point is set. The temperature update command is executed inside the WBCSetZEROPoint function.
  • simple_wbc Demo description:
    This demo easily shows how to control the Wii Balance Board. The code is a simplified version of the handling_weight demo.
    The values of the four balance sensors are converted to a weight value (in kilograms), and the total value is output to the console. (Nothing appears on the TV screen.)


    Operations Described:
    A Button:Sets the zero point. In this demo, the output values of the Wii Balance Board are set for the WBCSetZEROPoint function as is.
    balance Demo description:
    This is the simple_wbc demo with an added center of gravity display.
    The values of the four balance sensors are converted to a weight value (in kilograms), and the total value is output to the console. (Nothing appears on the TV screen.)


    Operations Described:
    A Button:Sets the zero point. In this demo, the output values of the Wii Balance Board are set for the WBCSetZEROPoint function as is.

    See Also

    WBC Functions

    Revision History

    2008/08/28 Revised terminology.
    2008/02/26 Added the simple_wbc and balance demos.
    2007/11/15 Initial version.


    CONFIDENTIAL