Use a Wii Motion Plus, using I2C interface ?
Use a Wii Motion Plus, using I2C interface ?
Hello everybody,
I’ve read that the wii motion plus was a i2c sensor and I found pretty cool to interface this sensor with the Mindstorms Brick. There plenty of documentation on the web about the protocol or how to interface this with an arduino for exemple but no documentation on how interface this sensor with the NXT brick.
As the consequence I ask the question if it is possible? Moreover do you think necessary to change the resistances on I2C wire in the same way as it is necessary to change these resistance in order to connect the nunchuk ?
I’ve read that the wii motion plus was a i2c sensor and I found pretty cool to interface this sensor with the Mindstorms Brick. There plenty of documentation on the web about the protocol or how to interface this with an arduino for exemple but no documentation on how interface this sensor with the NXT brick.
As the consequence I ask the question if it is possible? Moreover do you think necessary to change the resistances on I2C wire in the same way as it is necessary to change these resistance in order to connect the nunchuk ?
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: Use a Wii Motion Plus, using I2C interface ?
I do believe that it IS an I2C sensor as well. To interface it, it would probably be almost identical to the nunchuck, including needing to replace the pullups. You will need to program the NXT on the level you would need to use to use the nunchuck, meaning that you would need to understand how to do custom I2C communication. I would suggest NXC (almost any language other than NXT-G would probably be best).
Yes, it should be very possible, and yes you should change the pullups.
BTW, what sensors does the "Wii Motion" have? Is it gyros? I know that the WiiMote already has an accelerometer, so i'm sure that is not what the Wii Motion has.
Yes, it should be very possible, and yes you should change the pullups.
BTW, what sensors does the "Wii Motion" have? Is it gyros? I know that the WiiMote already has an accelerometer, so i'm sure that is not what the Wii Motion has.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
Re: Use a Wii Motion Plus, using I2C interface ?
This part must not be a problem, i program with NXC and I have already modify some i2c api sensors. My fear is if there an incompatibility due to baudrate or something else. And i'm surprise do found nodody on google who made this or ask the question.mattallen37 wrote:You will need to program the NXT on the level you would need to use to use the nunchuck, meaning that you would need to understand how to do custom I2C communication. I would suggest NXC (almost any language other than NXT-G would probably be best).
The wii motion is a 3-axis gyromattallen37 wrote:BTW, what sensors does the "Wii Motion" have? Is it gyros? I know that the WiiMote already has an accelerometer, so i'm sure that is not what the Wii Motion has.
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: Use a Wii Motion Plus, using I2C interface ?
Ok, I just wanted to let you know that you can't expect any official drivers for the device. Most I2C slaves can tolerate any sluggish speeds. The nunchuck works fine (or so I've heard), so the Wii Motion should be okay on the incredibly slow NXT I2C bus.dt22 wrote:This part must not be a problem, i program with NXC and I have already modify some i2c api sensors. My fear is if there an incompatibility due to baudrate or something else. And i'm surprise do found nodody on google who made this or ask the question.
The wii motion is a 3-axis gyro
Wow, that is really cool. I should look into getting one or two. It's hard to believe how cheap the Wii stuff it, compared to what other accelerometers and gyros cost.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
Re: Use a Wii Motion Plus, using I2C interface ?
Yes, more info at WiiBrew.dt22 wrote:The wii motion is a 3-axis gyro
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: Use a Wii Motion Plus, using I2C interface ?
Wow, lots of good info there. Thanks for the link, I will definitely save it.nxtreme wrote:Yes, more info at WiiBrew.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
-
- Posts: 48
- Joined: 12 Jan 2011, 18:40
- Contact:
Re: Use a Wii Motion Plus, using I2C interface ?
Funny, i had the exact same idea yesterday
I've got an Motion Plus here and will do some testing this weekend...
Please keep us updated on your progress, dt22!
I've got an Motion Plus here and will do some testing this weekend...
Please keep us updated on your progress, dt22!
link to my youtube channel under my avatar!
Re: Use a Wii Motion Plus, using I2C interface ?
At this moment i've no wii motion here. I will buy one soon with the resistences and diode.hergipotter wrote:I've got an Motion Plus here and will do some testing this weekend...
Please keep us updated on your progress, dt22!
-
- Posts: 48
- Joined: 12 Jan 2011, 18:40
- Contact:
Re: Use a Wii Motion Plus, using I2C interface ?
Found some interesting links, i think they may help us.
http://123a321.wordpress.com/2009/08/21 ... s-via-i2c/
http://randomhacksofboredom.blogspot.co ... -love.html
But what resistors are the pull-ups? R1 and R2 just like with the nunchuk?
http://123a321.wordpress.com/2009/08/21 ... s-via-i2c/
http://randomhacksofboredom.blogspot.co ... -love.html
But what resistors are the pull-ups? R1 and R2 just like with the nunchuk?
link to my youtube channel under my avatar!
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: Use a Wii Motion Plus, using I2C interface ?
Just follow the traces on the PCB.hergipotter wrote:...But what resistors are the pull-ups? R1 and R2 just like with the nunchuk?
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests