|
|
|
![]() |
|
|||||||
|
||||||||
This paper provides sample code to drive a FRC (or VEX) robot with a Wiimote. It is minimally documented, but ask questions and I will try to answer!
This paper provides sample code to drive a FRC (or VEX) robot with a Wiimote. It is minimally documented, but ask questions and I will try to answer!
wiifrc_bits.zip
20-01-2008 20:41
CyberWolf_22
Hey this is pretty cool. I might look into doing this for demos.
Has anyone looked into hacking just the nunchaku for use during competition?
20-01-2008 23:05
cjtennyIt's easy enough... just cut the cable, hook to a screw terminal block, and then set it up with I2C.
20-01-2008 23:23
Greg Marra
|
It's easy enough... just cut the cable, hook to a screw terminal block, and then set it up with I2C.
|
20-01-2008 23:27
Tim Arnold
Greg, you are amazing and must have both far more time and drive than I or anyone else I know. Every time that using the Wiimote has come up, I have laughed it off and said it was nearly impossible and incredibly impractical to do. While the latter might be still true, congratulations on proving us wrong as far as the technical feasibility... I hope to see some teams try out this bad boy!
<sarcasm>How about an easyC version?</sarcasm>
21-01-2008 00:19
cjtennyWell, I2C is a standard protocol. I actually have a nunchuk sitting in my room for use on another non-FIRST robot... haven't gotten around to it, though.
But, yeah, you bring a good point -- I forgot you load code to the RC. What you'd have to do for the OI would be build a custom circuit that turns the nunchuk output into some serial-joystick type output. That part's probably not too hard, just stick a uC on a breadboard -- the question is, would that be legal?
21-01-2008 00:39
Greg Marra
|
Well, I2C is a standard protocol. I actually have a nunchuk sitting in my room for use on another non-FIRST robot... haven't gotten around to it, though.
|
|
Originally Posted by Tim Arnold
Every time that using the Wiimote has come up, I have laughed it off and said it was nearly impossible and incredibly impractical to do.
|
21-01-2008 12:29
cjtennyLet me get back to you about this on Wednesday, after my history midyear. I'll try and write something up / figure something out...
21-01-2008 12:41
cjtennyIn the meantime,
http://www.windmeadow.com/node/42?page=1
It doesn't show you how to get down-and-dirty with I2C, but the hard part would be going from I2C to whatever the OI wants.