[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 594: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 650: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
vedder.se forums • MadCatz Nunchuk solution
Page 1 of 2

MadCatz Nunchuk solution

Posted: 27 Dec 2015, 17:55
by barney

Re: MadCatz Nunchuk solution

Posted: 28 Dec 2015, 03:14
by benjamin
Thanks, I will have a look at adding that. Will this cause any trouble with the kama?

Re: MadCatz Nunchuk solution

Posted: 28 Dec 2015, 07:47
by barney

Re: MadCatz Nunchuk solution

Posted: 28 Dec 2015, 09:57
by barney
http://www.arduinoforum.de/arduino-Thre ... k-auslesen

To communicate with the Nunchuk, we must send a handshake signal.
If you are using a black Wii Nunchuk, send 2 bytes
0xF0, 0x55
to initialize the first register and
0xFB, 0x00
to initialize the second register of the Nunchuk.

On a white Wii Nunchuk, send
0x40, 0x00
followed by
0x00

The I2C address of both Wii Nunchuks is
0x52
The frequency used to communicate with the Wii Nunchuk is 100K


Byte 0x00 : X-axis data of the joystick
Byte 0x01 : Y-axis data of the joystick
Byte 0x02 : X-axis data of the accellerometer sensor
Byte 0x03 : Y-axis data of the accellerometer sensor
Byte 0x04 : Z-axis data of the accellerometer sensor
Byte 0x05 :
bit 0 as Z button status - 0 = pressed and 1 = release
bit 1 as C button status - 0 = pressed and 1 = release
bit 2 and 3 as 2 lower bit of X-axis data of the accellerometer sensor
bit 4 and 5 as 2 lower bit of Y-axis data of the accellerometer sensor
bit 6 and 7 as 2 lower bit of Z-axis data of the accellerometer sensor

Re: MadCatz Nunchuk solution

Posted: 02 Jan 2016, 16:54
by barney
Hi Benjamin,

i have added 0x40, 0x00 in your source code but with no luck.
Normally, the Nunchuk is initialized only once and then only read.
But you seem at each query to do this and this seems to bring the MadCatz out of step. I must do some test with the Teensy 3.1 Board to look for the right Timing.

Barney

Re: MadCatz Nunchuk solution

Posted: 12 Jan 2016, 09:36
by benjamin
Hi Barney,

I ordered a used madcatz wireless nunchuk from ebay and experimented a bit with it based on the code you posted, but I could not get it running. It looks like the nunchuk does not even connect to the receiver and switches itself off after a minute or so. Maybe the one that I got is broken...

Re: MadCatz Nunchuk solution

Posted: 12 Jan 2016, 10:30
by barney
The batteries last five MadCatz were defective. There are no LiPos.


Re: MadCatz Nunchuk solution

Posted: 06 Feb 2016, 18:30
by DeathCookies
Hey Barney,
can you tell me where to add this line? Is it the correct command because the source code on github seems really different from yours!

I do not think that vedder has completly reengineered the nunchuk code. Would be nice if you can explain me the big difference and where to add the code.

Thanks in advance!

Re: MadCatz Nunchuk solution

Posted: 06 Feb 2016, 20:29
by barney

Re: MadCatz Nunchuk solution

Posted: 07 Feb 2016, 00:19
by DeathCookies
I am sorry, is this code a complete file or do i need to add it in any specific file?
Does it work with the MadCatz Nunchuk?