Tell us about yourself!

Complete Your Profile
  • Wiimote Controller Configuration for Raspberry Pi 2/3

    Thanks for this tutorial, it really helped! However, MichaelG671 is right, there are a few holes. I got my controllers working by applying the following patches:If using two or more controllers, create a separately numbered "/home/pi/mywinput" file for each (e.g. mywinput1, mywinput2, etc. [See below]), fixing the LED code at the bottom to match the controller order (i.e. remove '#' from Led2 line and put it in front of Led1 line, etc.). Here is the cleaned up code for the buttons/LEDs to play and display correctly:-----STEP 6 & 7-----Both of the code for these steps go into the same file, not separate files, as the "mywinput" and "myinput" typo (?) suggests.Create a file. If you have more than 1 controller, I used this system:"sudo nano /home/pi/m...

    see more »

    Thanks for this tutorial, it really helped! However, MichaelG671 is right, there are a few holes. I got my controllers working by applying the following patches:If using two or more controllers, create a separately numbered "/home/pi/mywinput" file for each (e.g. mywinput1, mywinput2, etc. [See below]), fixing the LED code at the bottom to match the controller order (i.e. remove '#' from Led2 line and put it in front of Led1 line, etc.). Here is the cleaned up code for the buttons/LEDs to play and display correctly:-----STEP 6 & 7-----Both of the code for these steps go into the same file, not separate files, as the "mywinput" and "myinput" typo (?) suggests.Create a file. If you have more than 1 controller, I used this system:"sudo nano /home/pi/mywinput1""sudo nano /home/pi/mywinput2"etc.#WiiMoteWiimote.A = BTN_XWiimote.B = BTN_YWiimote.Dpad.X = -ABS_YWiimote.Dpad.Y = -ABS_XWiimote.Minus = BTN_SELECTWiimote.Plus = BTN_STARTWiimote.Home = BTN_MODEWiimote.1 = BTN_BWiimote.2 = BTN_A#NunchukNunchuk.C = BTN_CNunchuk.Z = BTN_ZPlugin.led.Led1 = 1#Plugin.led.Led2 = 1#Plugin.led.Led3 = 1#Plugin.led.Led4 = 1-----STEP 9-----Next, here is the "/home/pi/bin/connectwii.sh" file code that correctly identifies the above written file/s:#!/bin/bashsleep 1 # Wait until Bluetooth services are fully initializedhcitool dev | grep hci >/dev/nullif test $? -eq 0 ; then wminput -d -c /home/pi/mywinput1 00:19:1D:48:D8:FD & wminput -d -c /home/pi/mywinput2 00:22:D7:C2:A6:B9 &else echo "Oopsies! Bluetooth adapter not present." exit 1fi-----STEP 10-----Text to type in cmd line should read:"sudo chmod 775 /home/pi/bin/connectwii.sh"-----STEP 12-----It installed okay, but "jstest-gtk" didn't work for me at all. Regardless, controllers work fine.Remember, if your Pi boots straight into RetroPie, you must exit EmulationStation and reconnect the Wiimotes by running STEP 11 (without reboot, obviously) every time you restart. They get lost at every shutdown. :(

    Thanks for this tutorial, it really helped! However, MichaelG671 is right, there are a few holes. I got my controllers working by applying the following patches:If using two or more controllers, create a separately numbered "/home/pi/mywinput" file for each (e.g. mywinput1, mywinput2, etc. [See below]), fixing the LED code at the bottom to match the controller order (i.e. remove '#' from Led2 line and put it in front of Led1 line, etc.). Here is the cleaned up code for the buttons/LEDs to play and display correctly:-----STEP 6 & 7-----Both of the code for these steps go into the same file, not separate files, as the "mywinput" and "myinput" typo (?) suggests.Create a file. If you have more than 1 controller, I used this system:"sudo nano /home/pi/m...

    see more »

    Thanks for this tutorial, it really helped! However, MichaelG671 is right, there are a few holes. I got my controllers working by applying the following patches:If using two or more controllers, create a separately numbered "/home/pi/mywinput" file for each (e.g. mywinput1, mywinput2, etc. [See below]), fixing the LED code at the bottom to match the controller order (i.e. remove '#' from Led2 line and put it in front of Led1 line, etc.). Here is the cleaned up code for the buttons/LEDs to play and display correctly:-----STEP 6 & 7-----Both of the code for these steps go into the same file, not separate files, as the "mywinput" and "myinput" typo (?) suggests.Create a file. If you have more than 1 controller, I used this system:"sudo nano /home/pi/mywinput1""sudo nano /home/pi/mywinput2"etc.#WiiMoteWiimote.A = BTN_X Wiimote.B = BTN_YWiimote.Dpad.X = -ABS_YWiimote.Dpad.Y = -ABS_XWiimote.Minus = BTN_SELECTWiimote.Plus = BTN_STARTWiimote.Home = BTN_MODEWiimote.1 = BTN_BWiimote.2 = BTN_A #NunchukNunchuk.C = BTN_CNunchuk.Z = BTN_ZPlugin.led.Led1 = 1#Plugin.led.Led2 = 1#Plugin.led.Led3 = 1#Plugin.led.Led4 = 1-----STEP 9-----Next, here is the "/home/pi/bin/connectwii.sh" file code that correctly identifies the above written file/s:#!/bin/bashsleep 1 # Wait until Bluetooth services are fully initializedhcitool dev | grep hci >/dev/nullif test $? -eq 0 ; then wminput -d -c /home/pi/mywinput1 00:19:1D:48:D8:FD & wminput -d -c /home/pi/mywinput2 00:22:D7:C2:A6:B9 &else echo "Oopsies! Bluetooth adapter not present." exit 1fi-----STEP 10-----Text to type in cmd line should read:"sudo chmod 775 /home/pi/bin/connectwii.sh"-----STEP 12-----It installed okay, but "jstest-gtk" didn't work for me at all. Regardless, controllers work fine.Remember, if your Pi boots straight into RetroPie, you must exit EmulationStation and reconnect the Wiimotes by running STEP 11 (without reboot, obviously) every time you restart. They get lost at every shutdown. :(

    View Instructable »