The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Project | {{Project | ||
|image=WiiBoard1.jpg | |||
|name=Wii-Stuff | |name=Wii-Stuff | ||
|description=Wiimote & Balanceboard hacking | |description=Wiimote & Balanceboard hacking | ||
|people=derf | |||
|sourcelink=https://github.com/derf/wii-sensors | |||
|sourcetext=wii-sensors | |||
|people= | |||
| | |||
}} | }} | ||
[[File:WiiDraw1.jpg|200px|thumb|right|Graffiti or something]] | [[File:WiiDraw1.jpg|200px|thumb|right|Graffiti or something]] | ||
Line 12: | Line 11: | ||
Because motion controls are awesome. | Because motion controls are awesome. | ||
= I/O = | |||
See also the [http://wiibrew.org/wiki/Wiimote Wiibrew article]. | See also the [http://wiibrew.org/wiki/Wiimote Wiibrew article]. | ||
== Accelerometer == | |||
3x 8 bit, for X, Y and Z. The readings include earth gravity (1G). | 3x 8 bit, for X, Y and Z. The readings include earth gravity (1G). | ||
Supported range is about -6G .. 6G, giving us a pretty bad precision of 0.04G. | Supported range is about -6G .. 6G, giving us a pretty bad precision of 0.04G. | ||
Line 22: | Line 21: | ||
Useful for determining the absolute wiimote tilt state (pitch/roll/yaw) and throws (x=y=z=0 ⇒ "zero gravity" at the tip of a throw) | Useful for determining the absolute wiimote tilt state (pitch/roll/yaw) and throws (x=y=z=0 ⇒ "zero gravity" at the tip of a throw) | ||
== tilt sensors (MotionPlus) == | |||
[[File:Rotations.gif|200px|thumb|right|Axis names]] | [[File:Rotations.gif|200px|thumb|right|Axis names]] | ||
Roll, Pitch and Yaw, 16 bit per value. ''Only'' reports relative motion, earth gravity doesn't matter. Also, it only reports motion around the Wiimote's own axis. Moving the wiimote up/down/ | Roll, Pitch and Yaw, 16 bit per value. ''Only'' reports relative motion, earth gravity doesn't matter. Also, it only reports motion around the Wiimote's own axis. Moving the wiimote up/down/letf/right on a straight line doesn't really affect the readings. | ||
Useful for pointing devices (works as good as infrared pointing) and detecting rotation (augmented reality). | Useful for pointing devices (works as good as infrared pointing) and detecting rotation (augmented reality). | ||
== Speaker == | |||
See [http://wiibrew.org/wiki/Wiimote#Speaker Wiibrew]. | See [http://wiibrew.org/wiki/Wiimote#Speaker Wiibrew]. | ||
== LEDs == | |||
Four LEDs. The bluetooth connection is fast enough to implement software PWM with 10 brightness levels. | Four LEDs. The bluetooth connection is fast enough to implement software PWM with 10 brightness levels. | ||
== Buttons == | |||
Can be read via Polling and Interrupts. | Can be read via Polling and Interrupts. | ||
= Done = | |||
* Neverball: Wiimote is already supported, use [https://github.com/derf/wii-sensors/blob/master/neverball/tilt_wii.patch tilt_wii.patch] for balance board + wiimote support. Note that the patch is unstable and may crash while syncing. | * Neverball: Wiimote is already supported, use [https://github.com/derf/wii-sensors/blob/master/neverball/tilt_wii.patch tilt_wii.patch] for balance board + wiimote support. Note that the patch is unstable and may crash while syncing. | ||
Line 49: | Line 48: | ||
* interactive blinkenlights using the LEDs | * interactive blinkenlights using the LEDs | ||
= Ideas = | |||
* Stepmania via Balance Board? (if it is precise enough) | * Stepmania via Balance Board? (if it is precise enough) | ||
Line 55: | Line 54: | ||
* Use Wiimote as lightsaber (already possible for smartphones, but... whatever :p ) | * Use Wiimote as lightsaber (already possible for smartphones, but... whatever :p ) | ||
= See also = | |||
* [http://wiibrew.org/wiki/Wiimote Wiibrew article] about wiimote (more detailed) | * [http://wiibrew.org/wiki/Wiimote Wiibrew article] about wiimote (more detailed) | ||
* [https://github.com/derf/wii-sensors wii-sensors] git repo | * [https://github.com/derf/wii-sensors wii-sensors] git repo | ||
== Videos == | |||
* Neverball with balance board: [[Has video::http://finalrewind.org/interblag/entry/neverball-balance-board/bboard2.mkv|mkv]] / [[Has video::http://youtu.be/cIIBW7j1lAQ|youtube]] | * Neverball with balance board: [[Has video::http://finalrewind.org/interblag/entry/neverball-balance-board/bboard2.mkv|mkv]] / [[Has video::http://youtu.be/cIIBW7j1lAQ|youtube]] |