Processing Code for MoteDaemon

By davechatting

MoteDaemon is a neat Mac OS X app that gets a Wiimote talking to Flash via a socket server, with which these guys have written Wiinstrument.

I have written some Processing (0135 beta) code to work with MoteDaemon v0.5 to get it to talk to Processing too. Download my code here. It works pretty well, but isn’t happy when the nunchuk (and I assume the joypad) are attached – think the xml gets too big to parse at once. That can be fixed.

There are several other solutions to getting a wii to talk to Processing.

Cheers,
Dave

Tags: , , ,

One Response to “Processing Code for MoteDaemon”

  1. Marek Says:

    Hi

    I tried your example but i didn’t work for me that well :(
    When I start your processing code (after successfully connecting the wiimote to moteDaemon) I see a white ball quickly moving around. Than after one or two seconds it stops and doens’t move anymore.
    Sometimes it doesn’t start to move and I got the following error message:

    processing.xml.XMLParseException: XML Parse Exception during parsing of a sample element at line 1: Unexpected end of data reached
    processing.xml.XMLParseException: XML Parse Exception during parsing of a sample element at line 2: Expected: /

    Any ideas what went wrong?
    I tried several times connecting and reconnecting to MoteDaemon (in the sample application of MoteDaemon everything works fine)

    Best Regards and thanks for sharing your code

    Marek

Leave a Reply