Log in

View Full Version : Driving a robot with a Wii Nunchuck


Dave Flowerday
23-02-2009, 21:10
Here's something I've been playing with for the last week or so:

http://www.youtube.com/watch?v=iGqs2HRbiek

Vikesrock
23-02-2009, 21:15
Wow, that's really cool!

xnaut
23-02-2009, 21:16
this is the coolest thing ive seen all day

wilsonmw04
23-02-2009, 21:20
umm, I'm not sure, but...
there isn't an accelerometer on the Nunchuck is there? or are you just tilting the 'chuck for effect?

Dave Flowerday
23-02-2009, 21:22
umm, I'm not sure, but...
there isn't an accelerometer on the Nunchuck is there? or are you just tilting the 'chuck for effect?
There's a 3-axis accelerometer in the Nunchuck.

Bongle
23-02-2009, 21:23
umm, I'm not sure, but...
there isn't an accelerometer on the Nunchuck is there? or are you just tilting the 'chuck for effect?

Both nunchuck and remote have 3-axis accelerometers. The nunchuck lacks the IR camera that gives the remote its pointing abilities.

rsisk
23-02-2009, 21:27
That is dang schweet!

wilsonmw04
23-02-2009, 21:27
Both nunchuck and remote have 3-axis accelerometers. The nunchuck lacks the IR camera that gives the remote its pointing abilities.

ok, that is WAY cool!!! I have a student who wants to use the Wii controller on the robot. I really need to show him this.

Greg Marra
23-02-2009, 21:27
Super cool!

I did this with the old control system, but had to use a computer in the middle because we didn't have USB back in the day :)

On a VEX Bot: http://www.youtube.com/watch?v=1JPgqPBQ_ZE
On an FRC Bot: http://www.youtube.com/watch?v=pxOfHIDkFPU

Rich Kressly
23-02-2009, 21:35
awwwwwwwesome

suj
23-02-2009, 22:27
that's amazing but it gives me a feeling that it'll be hard to control like ways i wounder how a ds lite would work I'm guessing someone would make a program for the R4 and it'll use wi-fi configurations and connect to the router? does anyone actually know how i'm sure it's been done before I'm not planning on using it but it''l be fun to know

alectronic
24-02-2009, 02:32
you guys using that this year? i guess not if it requires an adapter, but it would be cool!

Kruuzr
24-02-2009, 07:55
We had seriously thought about doing this to drive the robot this season, but the controller uses bluetooth, which is specifically excluded by the rules (at least for this year).

Greg Marra
24-02-2009, 08:08
We had seriously thought about doing this to drive the robot this season, but the controller uses bluetooth, which is specifically excluded by the rules (at least for this year).

The Nunchuk talks I2C, which is a wired communication protocol. The way Dave describes the setup, they have the Nunchuk plugged into an adaptor board which translates the I2C into USB, so there is no wireless involved. It sounds perfectly legal to me.

Kruuzr
24-02-2009, 10:57
The Nunchuk talks I2C, which is a wired communication protocol. The way Dave describes the setup, they have the Nunchuk plugged into an adaptor board which translates the I2C into USB, so there is no wireless involved. It sounds perfectly legal to me.

Unfortunately, I couldn't see the video (blocked where I work) or I guess I would have known that:(

That sounds awesome. I'll need to check it out when I'm home. Actually, I had looked at using the normal Wii controller (not the Nunchuck). I don't believe that could be used the same way.

teampronto
24-02-2009, 15:11
I can drive our robot with hand gestures. Push=forward pull=backward etc.

DustinWyke
24-02-2009, 22:02
yeah, the video was blocked here too. but great idea and concept.

Ellery
24-02-2009, 22:11
Very Kool Dave... I iwshed I had time to even try that out.

Austin H
24-02-2009, 22:16
That is pretty neat, but how do we know you're not using a regular controller off-screen?

Billfred
24-02-2009, 22:32
That is pretty neat, but how do we know you're not using a regular controller off-screen?
Because WildStang has a thing for irregular control setups. (http://www.chiefdelphi.com/media/photos/27192) ;)

computerboi1503
24-02-2009, 22:42
Our team had thought of this as well, on the topic of intuitive control, but it was decided that the good old joystick shall suffice just fine.

We also passed around the idea for stability/autonomous of using the Nunchuck on the robot with the handy I2C port on the DSC. This idea also faltered, as we came to the conclusion that we do not need that type of sensor inputs for our automagic functions this year.:rolleyes:

Well done Wildstang, that's really neat!

-Nick

Dave Flowerday
25-02-2009, 01:11
We also passed around the idea for stability/autonomous of using the Nunchuck on the robot with the handy I2C port on the DSC.
Unfortunately, with the way the I2C support was implemented on the crio, I don't think you can use it to talk to a Nunchuck. The Nunchuck requires that you send a single byte and then read back 6 bytes. The crio only lets you read 4 bytes at a time and insists on sending an address byte before each read. At least, that's what I gathered from reading/using the I2C code in WPIlib.

jsasaki
25-02-2009, 03:23
I didn't know wii nunchucks has accelerometers in them haha well wayyyy cool dude:cool:

Austin H
25-02-2009, 07:21
If it didn't use accelerometers, what would it use?

Jessica Boucher
25-02-2009, 09:29
Simply fantastic - sounds like a CMP Control Award winner to me!

Lil' Lavery
25-02-2009, 09:47
Is this actually being used on the Wildstang bot for competition, or was this just a cool project?

Qbranch
25-02-2009, 10:18
You crazy motorola people and your freescale processors... :rolleyes:

Interesting idea to make a USB device have the same report descriptor as the joysticks to fool the operator station.

Cool! :D

-q

teampronto
25-02-2009, 10:40
We couldn't get around the obstacle of "no bluetooth", so we abandoned our "minority report" project. Now we just use it for games..

http://teampronto.com/files/3.JPG

byteit101
06-03-2009, 21:36
wow, that is cool. can we see the code for accessing it?

jmanela
08-03-2009, 10:56
was that programmed in windriver or labview?