Go Down

Topic: mad catz wireless nunchuk slow response times (Read 983 times) previous topic - next topic

Aeneas

I purchased two of this wireless nunchuk:
http://www.madcatz.com/productinfo.asp?GSProd=4535&GSCat=115&CategoryImg=Nintendo_Wii

It's a Mad Catz Wireless "Z-Chuck". I was hoping to use it as a controller, with an Arduino Mega. Using the code by Mike T, http://arduino.cc/forum/index.php/topic,22056.msg165261.html#msg165261, the nunchuk connects nicely. However, the blue indicator on the nunchuk flickers once every second using the 100 ms delay between printing, and the data I receive seemingly has a 1HZ update rate.

Example:
Code: [Select]

101 120 0 0 505 397 656
101 120 0 0 505 397 656
101 120 0 0 505 397 656
101 120 0 0 505 397 656
101 120 0 0 505 397 656
101 120 0 0 505 397 656
101 120 0 0 505 397 656
101 120 0 0 505 397 656
101 120 0 0 505 397 656
-119 120 0 0 542 382 657
-119 120 0 0 542 382 657
-119 120 0 0 542 382 657
-119 120 0 0 542 382 657
-119 120 0 0 542 382 657
-119 120 0 0 542 382 657
-119 120 0 0 542 382 657
-119 120 0 0 542 382 657
-119 120 0 0 542 382 657
-119 0 0 0 536 416 699
-119 0 0 0 536 416 699
-119 0 0 0 536 416 699
-119 0 0 0 536 416 699
-119 0 0 0 536 416 699
-119 0 0 0 536 416 699
-119 0 0 0 536 416 699
-119 0 0 0 536 416 699
-119 0 0 0 536 416 699
1 0 0 0 510 433 692
1 0 0 0 510 433 692
1 0 0 0 510 433 692
1 0 0 0 510 433 692
1 0 0 0 510 433 692
1 0 0 0 510 433 692
1 0 0 0 510 433 692
1 0 0 0 510 433 692
1 0 0 0 510 433 692


I get 9 of the same reading, and then it changes. 100 ms delay * 9 = 0.9 Hz refresh frequency, which isn't very good. Changing the delay time in Mike T's code, however, causes some strange stuff. With a 50 ms delay when getting data, the connection drops a lot. Talking too fast makes it confused. I guess. However, when it does work:

Code: [Select]

1 0 0 0 539 433 694
1 0 0 0 539 433 694
1 0 0 0 539 433 694
1 0 0 0 539 433 694
1 0 0 0 539 433 694
1 0 0 0 539 433 694
1 0 0 0 539 433 694
1 0 0 0 539 433 694
1 0 0 0 539 433 694
1 0 0 0 392 507 678
1 0 0 0 392 507 678
1 0 0 0 392 507 678
1 0 0 0 392 507 678
1 0 0 0 392 507 678
1 0 0 0 392 507 678
1 0 0 0 392 507 678
1 0 0 0 392 507 678
1 0 0 0 392 507 678
1 0 0 0 514 451 692
1 0 0 0 514 451 692
1 0 0 0 514 451 692
1 0 0 0 514 451 692
1 0 0 0 514 451 692
1 0 0 0 514 451 692
1 0 0 0 514 451 692
1 0 0 0 514 451 692
1 0 0 0 514 451 692


I still get 9 of the same data value. However, this means that I'm actually getting faster data: 9*50 ms = 0.45 Hz. But this means that the refresh rate ISN'T TIME DEPENDENT. In fact, whatever I try for a delay time (in the WirelessNunchuck.pde file, second to last line), it always gets 9 repeats, and then updates.

I listened to the thread and added pullup resistors, but I only had a few packs of 10Ks lying around, so I'm using four 10K resistors in parallel (2.5K total) for each of the two data lines, connecting them and the +5V. There is not really any improvement. Changing between 3.3v and 5v seems to have no effect either.

I'm stumped. How can I get the nunchuk to give me data faster, and why is it repeating 9 times? Also, there is a forum post already on this, but it doesn't really answer anything.
http://arduino.cc/forum/index.php/topic,28262.0.html


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy