WBC Sample Demos

Location

$CAFE_ROOT/system/src/demo/wbc

Description

handling_weight Demo Description
This demos covers the basic features of Wii Balance Board including weight conversion processing. 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 side 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 by the WBCSetZEROPoint function.
simple_wbc Demo Description
This demo 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 U console output. (Nothing appears on the TV screen.)

Operations Described
A Button Sets 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 U console. (Nothing appears on the TV screen.)

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

Revision History

2013/05/08 Automated cleanup pass.
2011/07/20 Initial version.


CONFIDENTIAL