2008 Jan 24, 9:45Interesting thoughts on using accelerometer info.
via:swannman electronics accelerometer wii wiimote research:wii-remote 2007 Jun 7, 5:29The other day I had the best idea for my Wii remote. Clearly I should use it to control the rotation of Tetris pieces in my
N-dimensional
Tetris game Polytope Tetris. One of the
issues I described with Polytope Tetris is user input. Given a Wii remote the
user could rotate a piece through 3 dimensions in a manner that's much easier to adjust to than particular keys on the keyboard.
Anyway, I did a little
research into how this might work. I knew that the Wii remote used infrared for absolute positioning and
Bluetooth for everything else (LEDs, speaker, accels.) I bought a
Bluetooth adapter for my PC after realizing that none of my
computers had one already. I used
GlovePIE to ensure that my Wii remote could connect and successfully communicate with my computer.
GlovePIE is actually pretty cool -- it provides a simple script layer over the Wii remote to control things like your mouse.
Since Polytope Tetris is in Java I looked for and found a
Java library for operating with the Wii remote and a long
forum thread discussing its use. I then read up on
Bluetooth in Java. Apparently JSR 82 is the name of the standard that describes the API a Bluetooth stack should expose
in Java. That is, to get Bluetooth working in Java one needs an additional package for Java that actually implements the Bluetooth Java API. This package would depend on the system so I suppose I
can't fault Sun for not including it... Where to find such a package? I found a
comparison list of implementations and tried the ones
that support javax.bluetooth.
None of them worked for me because none can address USB devices it seems or they cost money and I couldn't get the trial version working. I also tried
bluesock (not listed on the previous list) which seemed promising and could produce an address for my Wii remote as a connected device but couldn't use
that address.
And I thought that after I found the Wii remote Java library it would be easy... Oh well...
java bluetooth wii technical remote jsr82 tetris polytopetetris wiimote 2007 May 20, 2:39GlovePIE provides a simple scripting interface to Wii remotes. It also comes with a bunch of premade scripts for example wiimote accel. controls the mouse.
bluetooth nintendo programming coding tool videogames wii wiimote wireless research:wii-remote 2007 May 11, 1:47A long thread between the guy making the WiiRemoteJ library and people testing it and using it. Some stuff in there about setting up Java with Bluetooth support for Win & Mac.
wii remote java library programming research:wii-remote 2007 May 11, 1:44Comparisons of features and prices of Java bluetooth libraries.
bluetooth java library download programming research:wii-remote 2007 May 11, 1:11Review of a USB Bluetooth adapter. Several reviews claim that it works with Wii remote.
bluetooth hardware purchase shopping usb review research:wii-remote 2007 May 11, 12:58Download Java bluetooth stacks
java bluetooth download stack research:wii-remote 2007 May 11, 12:51Tutorial on programming Java apps using bluetooth.
bluetooth java sun development reference tutorial article research:wii-remote 2007 May 11, 12:17Java API for using USB devices. May be possible to use JavaBluetooth with USB Bluetooth dongle if also using jUSB.
java library api usb research:wii-remote 2007 May 11, 12:02Java API for communicating with bluetooth devices.
bluetooth java code library programming research:wii-remote