Difference between revisions of "Making a Wii remote talk to Pure Data (PD)"
Line 8: | Line 8: | ||
2) Install the '''bluez''' package: We do the same as we did in step 1 to install packages. | 2) Install the '''bluez''' package: We do the same as we did in step 1 to install packages. | ||
− | 3) ''bluez'' installs a program called '''hcitool''', which is basically a bluetooth device scanner. Once you run this program, you should get an output | + | 3) ''bluez'' installs a program called '''hcitool''', which is basically a bluetooth device scanner. Once you run this program, you should get an output like this: |
− | + | 00:22:41:CB:1C:D3 cmn53 | |
+ | 00:22:41:FF:4C:53 Jimmy Sago's MacBook Pro | ||
+ | '''8C:56:C5:53:9C:B2 Nintendo RVL-CNT-01''' | ||
+ | 5C:59:48:CE:97:2C Creand River's MacBook Pro | ||
− | + | The line that contains "Nintendo" is the Wii Remote. Note the mac address in that line. We need it and it's IMPORTANT! | |
− | + | 4) Now install the package called '''wminput'''. This package helps us connect the Wiimote to the Beagleboard. Note that in order to put the Wiimote in a discoverable mode, you should press the buttons 1 and 2 '''together''' and the LEDs on the Wiimote continue to blink for around 15-20 seconds. The LEDs | |
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 13:45, 17 November 2010
Introduction
Making a Wii remote talk to PD could be fun. You have a pretty-accurate/not-over-sensitive accelerometer inside a Wii remote. Also, there are a bunch of LEDs and a pager motor (vibrator) inside the Wii that can be used for a lot of fancy purposes. In this guide, we assume that you are running Ubuntu on the Beagleboard. You need a bluetooth dongle to let the Beagleboard and the Wii remote pair with each other. To finish this task, we need to install a bunch of Ubuntu packages and PD patches.
Procedure
Making sure the devices are in place
1) Plug in the dongle into the Beagleboard. Ubuntu should detect the dongle automatically and supply it with the necessary drivers. Check the status of the dongle with the command lsusb. If lsusb is not installed, you should run the command sudo apt-get install lsusb. Once the package is installed, run the command lsusb just to make sure the dongle plugged into the computer.
2) Install the bluez package: We do the same as we did in step 1 to install packages.
3) bluez installs a program called hcitool, which is basically a bluetooth device scanner. Once you run this program, you should get an output like this:
00:22:41:CB:1C:D3 cmn53 00:22:41:FF:4C:53 Jimmy Sago's MacBook Pro 8C:56:C5:53:9C:B2 Nintendo RVL-CNT-01 5C:59:48:CE:97:2C Creand River's MacBook Pro
The line that contains "Nintendo" is the Wii Remote. Note the mac address in that line. We need it and it's IMPORTANT!
4) Now install the package called wminput. This package helps us connect the Wiimote to the Beagleboard. Note that in order to put the Wiimote in a discoverable mode, you should press the buttons 1 and 2 together and the LEDs on the Wiimote continue to blink for around 15-20 seconds. The LEDs