I use a wiimote in Linux using the cwiid api http://abstrakraft.org/cwiid/in my device daemon that grabs joystick and wiimote events and slings them over OSC to pd.
The wiimote has a 3 axis acceleramator and sends the x, y, z positions and you can easily calculate mean acc, roll, and pitch.
You can also access the ir camera. The wiimote itself determines the spots of light it sees and sends pixel postions aka (140, 100) relative to the resolution on the camera which is about 200x200 if i remember correctly.
I have tested this with candles and you can mess with "virtual sliders" etc by pointing it at a ir source, if you remove the black plastic cover, then the camera pics up regular light sources such as incandescent blubs.
And of course, you get all the button events.
Hans, do you know how many "control" signals this will produce? From what I read in the literature, it sounds like it also has motion controls. Does that mean that it has XYZ sensors? Or does it also have the pitch and yaw sensors as well? It sounds like a Wii has XYZ and pitch and yaw... Mike
IIRC, I think there is a linux driver for the wiimote that makes it
act like a HID, and therefore could be used with [hid].
.hc
On Mar 21, 2008, at 5:26 PM, Daniel Wilcox wrote:
I use a wiimote in Linux using the cwiid api in my device daemon
that grabs joystick and wiimote events and slings them over OSC to pd.The wiimote has a 3 axis acceleramator and sends the x, y, z
positions and you can easily calculate mean acc, roll, and pitch.You can also access the ir camera. The wiimote itself determines
the spots of light it sees and sends pixel postions aka (140, 100)
relative to the resolution on the camera which is about 200x200 if
i remember correctly.I have tested this with candles and you can mess with "virtual
sliders" etc by pointing it at a ir source, if you remove the black
plastic cover, then the camera pics up regular light sources such
as incandescent blubs.And of course, you get all the button events.
Hans, do you know how many "control" signals this will produce?
From what I read in the literature, it sounds like it also has
motion controls. Does that mean that it has XYZ sensors? Or does it
also have the pitch and yaw sensors as well? It sounds like a Wii
has XYZ and pitch and yaw...Mike
-- Dan Wilcox danomatika www.robotcowboy.com _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Looking at things from a more basic level, you can come up with a
more direct solution... It may sound small in theory, but it in
practice, it can change entire economies. - Amy Smith