paper: Control an FRC bot with a Wiimote

Thread created automatically to discuss a document in CD-Media.

Control an FRC bot with a Wiimote
by: Greg Marra

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! (8.78 KB)


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?

It’s easy enough… just cut the cable, hook to a screw terminal block, and then set it up with I2C.

Can you elaborate? I had considered opening up a nunchuk and hacking leads onto various parts to plug the Nunchuk into the Operator Interface legally, but I think your solution would attach the Nunchuk to the RC.

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>

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.

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?

1 Like

Do you have a hyperlink for using a Nunchuk via I2C? I am doing a bit of Googling but only turning up people working on it, not anyone who seems to have an implementable solution. I found a site showing you how to make a Wiimote add-on, but nothing explaining how to use a wiimote add-on on its own.

I’m not very familiar with microprocessor communication protocols other than serial, so I am very excited to find out more about this. Using a nunchuk on its own would be really cool.

Thanks Tim. This implementation still isn’t competition legal, and it’s very impractical, but it is a step towards possible. This “nunchuks use I2C” business could result in competition legal use of the Nunchuks, which would be awesome. Alternatively, I suspect Nunchuks are possible to circuit-hijack. I’ll take one apart at some point and look, but I lost my tri-head screwdriver :frowning:

Let me get back to you about this on Wednesday, after my history midyear. I’ll try and write something up / figure something out…

In the meantime,

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.

Well off season has started for my team. Where do I run these scripts?

You just run the C code on your IFI control module, run the GlovePIE scripts on a laptop, hook up the laptop up to your operator interface using a serial cable, and you’ll be good!

Seriously though, most of this stuff is very outdated and it looks like all you’ll need is the GlovePIE script to use this now, but be careful downloading it since the official download has been off the internet for years at this point. Be sure to scan anything you download and maybe look into more modern solutions for this. There seems to be an open source alternative now, so maybe that will accept the old script.

1 Like

Can this be used with the Wii Balance Board?

1 Like