Topic summary
Sensor Bar

Extracted from the Wikipedia article Wii Remote.
Sensing
Use of the Sensor Bar allows the Wii Remote to be used as an accurate pointing device up to 5 meters (approx. 16 ft) away from the bar. The Wii Remote's image sensor is used to locate the Sensor Bar's points of light in the Wii Remote's field of view. The light emitted from each end of the Sensor Bar is focused onto the image sensor which sees the light as two bright dots separated by a distance "mi" on the image sensor. The second distance "m" between the two clusters of light emitters in the Sensor Bar is a fixed distance. From these two distances m and mi, the Wii CPU calculates the distance between the Wii Remote and the Sensor Bar using triangulation. Rotation of the Wii Remote with respect to the ground can also be calculated from the relative angle of the two dots of light on the image sensor. Games can be programmed to sense whether the image sensor is covered, which is demonstrated in a microgame featured in WarioWare: Smooth Moves (2006), where if the player does not uncover the sensor the champagne bottle that the remote represents will not open.