Author Topic: wii controller problem  (Read 1915 times)

salviador

  • Newbie
  • *
  • Posts: 3
    • View Profile
wii controller problem
« on: March 27, 2014, 04:10:41 PM »
Hi, In the souce code I setting this:
Code: [Select]

/* Use this to enable and disable the different options */
#define ENABLE_TOOLS
#define ENABLE_SPP
//#define ENABLE_PS3
//#define ENABLE_PS4
#define ENABLE_WII
//#define ENABLE_XBOX
//#define ENABLE_ADK
//#define ENABLE_SPEKTRUM


after the programmed, On the swtich and the balanduino is stable!
Now I press "sync" in the wii controller and nothing happens, the controller flash all 4 blue leds.

How I do?

Lauszus

  • Administrator
  • Full Member
  • *****
  • Posts: 132
    • View Profile
Re: wii controller problem
« Reply #1 on: March 27, 2014, 04:53:40 PM »
You need to pair with the Wiimote first.

The easiest approach is just to open up the Arduino serial monitor and send "CPW;". This will then start looking for the Wiimote. After that simply press on 1+2 down on the Wiimote and it should set it into discoverable mode.
The Balanduino should now automatically connect with the Wiimote.

This can also be done using the Android app: https://play.google.com/store/apps/details?id=com.tkjelectronics.balanduino or the Processing app: https://github.com/TKJElectronics/BalanduinoProcessingApp which run on Windows, Linux and Mac. After you have connected simply press on the button labeled "Pair with Wiimote".

Regards
Lauszus

salviador

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: wii controller problem
« Reply #2 on: March 27, 2014, 05:28:21 PM »
Hi , I connect in usb , I send CPW; and press wii 1&2 , in the mainboard flash the orange led and red led in the dongle usb ,  but not connect

ps: when write CPW; in the terminal balanduino no answer

« Last Edit: March 27, 2014, 05:35:48 PM by salviador »

salviador

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: wii controller problem
« Reply #3 on: March 27, 2014, 05:49:56 PM »
Ok now work!!! , I need reprogramming and now work.

Is it possible controllable balanduino from "Nunchuck controller wii" ?

Lauszus

  • Administrator
  • Full Member
  • *****
  • Posts: 132
    • View Profile
Re: wii controller problem
« Reply #4 on: March 27, 2014, 06:21:09 PM »
Yes simply just plug in the Nunchuck to the Wiimote and you can use the joystick on the Nunchuck to control the robot.

The relevant of part of the code is here: https://github.com/TKJElectronics/Balanduino/blob/master/Firmware/Balanduino/Bluetooth.ino#L90-L91 and here: https://github.com/TKJElectronics/Balanduino/blob/master/Firmware/Balanduino/Bluetooth.ino#L406-L415.