m3pi Modification for Infrared Sensing

25 Feb 2012

Hello community. While I'm not the strongest programmer I've been reading on the m3pi for a while. It is using the 0x37 data reporting. Now, according to the info link:

Quote:

0x37: Core Buttons and Accelerometer with 10 IR bytes and 6 Extension Bytes

This mode returns data from the buttons, accelerometer, and IR camera in the Wii Remote, and data from an extension controller connected to it: (a1) 37 BB BB AA AA AA II II II II II II II II II II EE EE EE EE EE EE BBBB is the core Buttons data. AA AA AA is the Accelerometer data. The 10 II bytes are from the built-in IR Camera, and the 6 EE bytes are from the Extension Controller currently connected to the Wii Remote.

What is going on with the Infrared Sensor? How can I obtain these values? I'm looking for support for Wiimote/Nunchuk Button/Accel states with IR readings.

I'm not sure if it's as simple as creating a few more variables and interpreting raw data but I already have a project taking in IR readings on the computer using Brian Peek's library. It's 2 variables being position X & position Y.