nd(0xfe) //send 0x04 to address 0xFE to activate WM+ Wire.beginTransmission(0x53) //WM+ starts out deactivated at address 0x53 Int yaw0, pitch0, roll0 //calibration zeroes I have commented the demo code pretty well so it should be easy to follow, if not comment here or on Forums->Exhibition So its pin 3 to 5v, 6 to ground, 1 to A4, and 4 to A5Īdapters such as the one sold here should (theoretically) work I use jumper wires and hot glue Connections to WM+ are same as nunchuck and look like this: Websites disagree about which is the proper speed for direct I2C on wii peripherals. Start with the default 100khz TWI_FREQ and if that doesnt work, use 400khz. Furthermore, twi.h under the wire library does not need to be changed for my setup but might under some setups. I used full 5V TTL signals and power and have had no problems thus far (a week going strong) but if you have a 3.3v arduino or a level converter and 3.3v regulator, i would suggest that over a 5v connection. Thanks Nintendo! Best of all, everything is I2C so only 2 analog inputs (A4 and A5 needed for the wire library) are needed to read 6 sensors and no ADC conversion happens on the arduino board.įirst off, I'm going to link(and thank) a few sites that have helped me immensely with this undertaking: With this code and the code previously developed for the wii nunchuck ( here), we are able to create a 6 DOF IMU for under $40. Ok so I, after much research, have been able to read the gyro data of the new wii motion plus peripheral with the arduino microcontroller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |