I'm trying to connect a Wii remote to the Pi and use it in a python script. I've tried XWiiMote, but I can't get it to compile. All of the other libraries for Wiimotes I've found don't even work anymore (Wiican, CWiid). Has anyone had any luck with this? XWiiMote has python bindings, it's perfect.

  • What errors did you get when you tried to compile XWiiMote?
    – Jacobm001
    Jan 23, 2015 at 22:29
  • using ./configure However, I restarted the pi and tried ./autogen.sh again and it may have worked. It's compiling now.
    – Ian Hyzy
    Jan 24, 2015 at 7:42
  • It looks like xwiimote installed fine, but the bindings won't install now. link to error
    – Ian Hyzy
    Jan 24, 2015 at 7:49

1 Answer 1


Start by installing cwiid:

sudo apt-get install python-cwiid

Next set your bluetooth adapter to discoverable mode:

sudo hciconfig hci0 piscan

next open a python console by entering python at the command line.

import the cwiid module:

import cwiid

press 1 and 2 on you wiimote to make it discoverable

then create a reference to the wiimote and save it for later access:

wm = cwiid.Wiimote()

Further details and info on making the connection more reliable are available here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.