Python program for connecting Wiimotes to a computer over Bluetooth.
This program uses python to connect Wiimotes to a computer over Bluetooth using CWiid, bluetooth, etc.
- On your Linux machine,
git clone https://github.com/azzra/python3-wiimoteto your local machine(if you want to build the Python module from source). - Use
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -Y libcwiid1 libcwiid-dev automake awk bison flex bluez bluetooth python3orsudo apt-get install -Y libcwiid1 libcwiid-dev bluez bluetooth python3 python3-wiimoteif you choose not to build from source. - These commands will install all the packages needed for making this work.
The Cwiid package can be compiled from source, and is done with Automake. Use the below commands to compile everything needed.
cd python3-wiimoteaclocalautoconf./configuremake- Make sure you have Python3 installed and setup correctly for these next commands
sudo make installwill copy the compiled cwiid library into Python's library set- If the second preparation APT install command was done, this section is redundant. After all this is done, everything is setup and ready to go!
- Use
git clone https://github.com/cmd644/wiimoteBridgeto get the example script for connecting four Wiimotes - Modify the script with your favorite text editor or use the #RemoteBridge.py scripts if you need a certain number of remotes.
- Change into the wiimoteBridge directory
- Start the script with
python3 ./wiimoteBridge.pyto get connecting.
Flailing around trying to get a buzzer system working with Wiimotes sucks, and the amount of research that I did to make this work is absolutely horrid. 50+ Chrome tabs later, I had found a way to get Wiimotes interacting with a Raspberry Pi. The Cwiid library that isn't available through apt anymore for some reason, as well as the python3 pip package that SAYS it has cwiid in it DOESN'T work and ISN'T maintained anymore, so I had to do much more research coming up with a functional script that could connect these remotes. All of this work to now share on the Internet for some other poor sap who needs to figure out how to do this, I hope you find this script well.
Documenting my journey on making these Wii Remotes turn themselves into buzzers to work with the Things with Buzzers Jeopardy/TWB project was a bit of a challenge and took a lot of research. Since there is the software buzzer emulation, which as far as I could tell was not meant to be used in this fashion, I decided to not make physical buzzers. I was sent on a quest to figure out how to make these Wii Remotes turn themselves into functional buzzers to play games of Jeopardy with. After struggling with it in 2023, and getting something somewhat working, (I think I was limited to the computing power of the Raspberry Pi available at that time) I was almost ready to give up since my local development version wouldn't connect to the websocket part of the TWB project. I returned a couple of years later when I learned a bit more, figuring I could get something working. After returning to it with some better Raspberry Pi computing power(and fixing my broken code), I was able to get the Wiimotes to connect and function like buzzers. They even work nicely with the TWB project!