Unfortunately, our Nintendo Wii had been lent out to a school so the chance to try this for myself had to wait for it's return. Having done a little research in the meantime, my attempts were based on the following 3 articles:
1) http://www.ehow.co.uk/how_7797536_control-mindstorm-wii-remote.html
2) http://www.zenophotos.com/Articles/connect_wii_mote_to_computer.html
3) http://www.zenophotos.com/Articles/wii_nxt_remote.html
The first task was to connect both the Wii remote and the Lego NXT block to my laptop via the built in Bluetooth. The articles above suggested various bits of software but to be fair, they caused me more problems than they were worth (probably my laptop more than the software - very temperamental!). Once I updated the laptop's built in software, this worked fine and both connected as expected.
Next was to use the recommended software (GlovePIE) to program the Wii remote to coincide with 'button presses' of the keyboard e.g. left direction button=F1 etc. I started off with the program found in article 1 but it was apparent that it wasn't correct as GlovePIE was showing a couple of errors. Comparing that article with the code found in article 3 I changed:
Line 1: Leds = 9 to be wiimote.Leds = 9
Line 6: Key.F5 = Wiimote1. to be Key.F5 = Wiimote1.A
So now the code was identical to that in article 3 and had the desired effect that the 4 directional buttons plus button A were assigned to the first five function keys.
Finally, I needed to use the final piece of software (OnBrick) to allocate those five function keys to programs on the NXT Block. Both articles 1 and 3 suggest programs for this but I adapted them as they didn't fit the model I had built. So I went with:
F1 = motor B fwd 50 degrees - Wii left button
F2 = motor C fwd 50 degrees - Wii right button
F3 = move forward (forever) - Wii up button
F4 = move backward (forever) - Wii down button
F5 = stop - Wii button A
With baited breath I tested this out and to my delight I had some success. I say some, because for whatever reason OnBrick kept crashing (probably my laptop again). However, I had enough success to video my achievement and post my own video on YouTube (below). Having gone through all this it reminded me of how lucky I am to (occasionally at least) have the time to play and troubleshoot something like this that classroom teachers might not. The next step is to get a Bluetooth adapter that can go to schools with the Mindstorms boxes so that for schools that have a Wii, I can add this level of programming to the repertoire of programs we already teach when appropriate.
So that's what you doing all afternoon and getting all frustrated with!
ReplyDeleteNow all we need are better laptops to work with, that have less restrictions on them!
Hi Deаr, аге you in fact visiting this web sitе regularly,
ReplyDeleteіf so after thаt yоu ωill аbѕolutely tаke gοod κnowledge.
Rеview my wеblog :: cyprushotelsdirectory.com
Thanks fоr fіnаlly wrіtіng about > "Using a Nintendo Wii controller with Lego Mindstorms" < Loved it!
ReplyDeleteMy blog - httρ://ωwω.
bеst-оf-robotics.org/1st_resеaгchcamp/MarinaWeе
Does this mess up the remote in any way for gaming with it?
ReplyDeleteThank you a bunch foг shaгіng thіs wіth all peοplе you аctuаlly reсognize ωhat
ReplyDeleteyou are ѕpeaking about! Boοkmarkeԁ.
Kinԁly aԁditіonally seek advice from my site =).
Wе could havе a hyperlink alternate arгangement аmong us
My blog post; www.spoonybard.co.uk
Hеllo! I could have sworn I've been to this website before but after browsing through some of the posts I realized it's
ReplyDeletenew to me. Аnуhow, I'm certainly happy I found it and I'll
bе bοok-marκing it anԁ checκing back often!
Look at my blog ... hiarticles.com/cccam-install-cccam-assist.htm
Ι'm very happy to find this site. I wanted to thank you for ones time due to this wonderful read!! I definitely loved every part of it and I have you book-marked to check out new information in your site.
ReplyDeleteHere is my webpage: click the up coming web site
Qualіty posts is the important tο attract
ReplyDeletethe people tо pay a viѕit the website, that's what this web site is providing.
my web blog cccam
But that prіcе iѕ basеd on
ReplyDeletethe targеt markеt аudiencе fοcuѕes
morе on what іs apρroρriatе
іn your offіce look morе ргofessional.
But ωеre а nation to test that,
they're prepared to mess an invader up. DeLorean truly lacked the skills business of your web designers or programs. Then, the network is built to your exact type of work that is involved with running an account on one of their items here! Disclosure: I am long all 4 of them.
my homepage; nc internet marketing
Howdy! This blog post couldn't be written any better! Looking through this post reminds me of my previous roommate! He constantly kept talking about this. I'll forward this article to him.
ReplyDeleteFairly certain he will have a very good read. Many thanks for sharing!
My web-site - http://www.satellitecs.com
It's going to be end of mine day, but before end I am reading this wonderful paragraph to improve my experience.
ReplyDeleteCheck out my website ... test cccam server satarabia
I like what you guys tend to be up too. Such clever work and reporting!
ReplyDeleteKeep up the superb works guys I've you guys to my blogroll.
Feel free to surf to my homepage cccam dreambox
I just couldn't go away your site before suggesting that I really enjoyed the usual info an individual supply on your guests? Is gonna be back steadily to inspect new posts
ReplyDeleteAlso visit my site Cyfrowy Polsat cardshaing
Good day! I know this is kinda off topic but I was wondering which blog platform are you using for this website?
ReplyDeleteI'm getting tired of Wordpress because I've had problems
with hackers and I'm looking at options for another platform. I would be awesome if you could point me in the direction of a good platform.
My web site; cccamserver
louis vuitton outlet, oakley sunglasses, nike roshe, nike air max, christian louboutin uk, nike free run, jordan shoes, ray ban sunglasses, christian louboutin outlet, prada handbags, longchamp pas cher, louis vuitton outlet, longchamp outlet, cheap oakley sunglasses, longchamp outlet, chanel handbags, louis vuitton, polo outlet, nike free, louis vuitton outlet, sac longchamp pas cher, tory burch outlet, air max, nike air max, jordan pas cher, ugg boots, polo ralph lauren outlet online, uggs on sale, polo ralph lauren, christian louboutin, christian louboutin shoes, ray ban sunglasses, louis vuitton, replica watches, prada outlet, louboutin pas cher, michael kors pas cher, ugg boots, oakley sunglasses wholesale, gucci handbags, nike outlet, oakley sunglasses, ray ban sunglasses, burberry pas cher, oakley sunglasses, longchamp outlet, replica watches, tiffany and co, tiffany jewelry
ReplyDeleteswarovski crystal, ugg,uggs,uggs canada, wedding dresses, thomas sabo, canada goose, canada goose outlet, karen millen uk, canada goose outlet, canada goose, canada goose uk, hollister, louis vuitton, replica watches, doudoune moncler, ugg,ugg australia,ugg italia, pandora jewelry, moncler, canada goose outlet, swarovski, canada goose, juicy couture outlet, toms shoes, ugg pas cher, juicy couture outlet, coach outlet, links of london, moncler, pandora charms, moncler uk, supra shoes, ugg, louis vuitton, moncler, canada goose jackets, ugg uk, moncler outlet, pandora jewelry, pandora uk, marc jacobs, moncler outlet, louis vuitton, moncler, montre pas cher, louis vuitton, louis vuitton
ReplyDeleteThank You and I have a neat provide: How Much Home Renovation Can I Afford house renovation channel
ReplyDelete