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:
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 (kg) and displays them.

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

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


Operations Described:
STARTSets the zero point. Gets the raw WBC values over a duration of two seconds and sets the average value to the WBCSetZEROPoint function.
+Control Pad Left ButtonGets the average weight value. Takes the average value over two seconds.


Caution:
  • To take accurate weight measurements based on the characteristics of the balance sensors, you need to set the zero point every time you take a measurement (by pressing START with no weight placed 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 clearly shows how to control the Wii Balance Board. The code is a simplified version of the handling_weight demo.
    Values for the four balance sensors are converted to weight (kg), and the total is displayed on the Wii console output. (Nothing appears on the TV screen.)


    Operations Described:
    A ButtonSets the zero point. In this demo, the output values from the Wii Balance Board are sent to the WBCSetZEROPoint function without any modification.
    balance Demo description:
    The simple_wbc demo with an added center of gravity display.
    Values for the four balance sensors are converted to weight (kg), and the total is displayed on the Wii console. (Nothing appears on the TV screen.)


    Operations Described:
    A ButtonSets the zero point. In this demo, the output values from the Wii Balance Board are sent to the WBCSetZEROPoint function without any modification.

    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