WPF Multi-Point Tutorials, Part 1.5: WPF Visualization of Wii Data
Download WPF Wii Data Visualizer (App only, 355K)
Download WPF Wii Data Visualizer (Visual Studio 2008 Source, 676K)
Warning: The project will not run if your Wii controller isn’t connected to your computer.
Using the WPF Wii Data Visualizer (Video)
OK, now that we’ve gotten our Wii Controllers all hooked up to our computers, it’s time to take a look at the data we’re getting from it.
Over the weekend, I pieced together a little application that will help us visualize the incoming Wiimote data in a way that would help understand the raw data points a little better as well as help out as we head toward our ultimate goal of multi-point WPF application development. This is what I came up with.

Disclaimer: The source code at this point is a mess. While the interface is all done in XAML and is very WPF, the code-behind is a hacked together mish-mash. I will at some point go back and restructure the code-behind to take advantage of the INotifyPropertyChanged interface. When I do that, I’ll post on it and we’ll see another example of why WPF is so freaking cool.
Nidonocu:
Good articles so far and well presented video.
Looking forward to the rest of this series!
(And don’t worry, say it often enough and saying Wii all the time sounds perfectly normal.)
29 January 2008, 8:56 amaquaseal:
Great wpf app, I was right in the middle of my wpf app as well when I saw your post. Looking forward to learning more about the multi-point control that you will be doing. I’m looking into making some sort of mini-game using the wiimote; not sure what type of game yet. Also, you mentioned that you were not a programmer and that your code is somewhat messy, feel free to take a look at my code and see if you can’t pick up some tricks. I’ve been developing with wpf for over a year now and there may be some things that can benefit you. Enjoy, and its good to see someone else actually using wpf with the wiimote finally!
30 January 2008, 7:39 pmHaving a Wii bit of fun... - Rudi Grobler:
[...] if everything works, try the test application that ship with the WiimoteLib (By Brian Peek) or the Wii Data Visualizer (By Matthias [...]
12 February 2008, 10:44 pmaL:
hello
thats jst awsome
ive also been playing around with brians awsome library but instead of using INotifyPropertyChanged ive been using depedency object/property, it works a treat and makes binding really really easy 
just dont forget to use the dispatcher from the ui to update the dps or you’ll get a cross thread exception
12 March 2008, 3:13 pmif you havent already, you should really check out depenecy properties
Brett:
Hi there,
This is truly fantastic! But I am currently on the hunt for the next final step… getting my Wii remote to use the IR functions to control my mouse pointer on the screen.
Others are demonstrating that this is possibly via youtube vids, but nowhere actually spells it out for people like me!! Arrrrgghhhh!
Does anyone know how ‘hook’ the wii remote into the mouse pointer cursor actions??
Thanks
10 April 2008, 12:34 pmMatthias Shapiro:
I spent so much time I that I can’t even go into it. I would look into some UI Automation in WPF… that will probably get you closer than anything else.
10 April 2008, 8:28 pmFonda:
Hi. I need help, I was able to connect My wiimote to the bluetooth. it work perfectly, but it only track yelow light. It wasn’t able to pick up the light from LED pen. That i’ve created using LED from TV remote. Can any one help me on this..
Thanks.
22 April 2008, 1:27 amMatthias Shapiro:
A TV remote may not work the best because the IR light tends to flicker. If you’re just testing it out to see if it works, my recommendation would be to plug in the bar that comes with the Wii and wave it around in front of the Wiimote.
22 April 2008, 6:17 amChristian Castro:
Hi can you help me, I would like to be able to view realtime the wii accelerometer data and record it at the same time. How CAn I do his, And i would like to view it graphically too. Thanks. If you could reply on my e-mail I would greatly appreciate it.
Christian
20 June 2008, 10:25 pmchrizachc@gmail.com
apdewith:
Hi, great tutorials.
28 June 2008, 2:04 pmWould it be possible to use this software to help in realtime calibrate/position the Wiimote for use in a Wiimote Whiteboard settings.
I was thinking of a frame of some kind with IR Leds at each corner. The frame should cover the calibration area on the whiteboard.
This way it should be possible to visualize the best position of the Wiimote.
Please comment on this
Matthias Shapiro:
apdewith: Problem with that is that the 4 LEDs would take up all the available led detection (you’d have nothing for writing on the board). Another problem is the fact that if you got in the way of the LED’s, there is no way to assure that they would show up again as the same number (the IR number assignment is sequential, but the loss of an LED releases it’s place in line).
14 July 2008, 5:32 amSimon Kongsted:
Hi,
Maybe iam missing some sort of plug-in, but i get the following error, when iam launching your Wii Data Visualizer (app only):
“An exeption ‘Sustem.IO.FileNotFoundException’ has occured in WiiMoteTestingApplication.exe”
What can i do to fix this???
Regards Simon Kongsted
7 November 2008, 10:49 amMatthias Shapiro:
Are you sure you have the Wiimote Lib extracted as well as the application?
7 November 2008, 11:46 amSimon Kongsted:
Sorry for the long reply time…
I have the 2 files extracted in the same folder. Also tried in root folder c:\
//Simon
11 November 2008, 3:27 amdansm:
greetings,
neat stuff & nice tutorial!
just got a wii remote, figured give it a try. i am running vista 64 business, every time i try to run your software gives the message app stopped working, have everything extracted.
anyone have any suggestions, this not compatible with 64 bit?
also does a new wii remote need to be synced to a wii at least once so it will assign it a controller number?
thanks
20 November 2008, 7:52 amSteve T:
Dansm: Make sure wiimote is still connected, I had same this morning and had to disconnect and reconnect for some reason.
30 November 2008, 4:11 amPs Anyone know how to get the 1,2,T and midi to show on the infra-red camera field?
Thanks in advance
SoundBlaste®:
Hi

29 December 2008, 12:16 amWhen i run Wii Data Visualizer, i see error window and program not work properly.(WiiMoteTestingApplication has encountered a problem and needs to close. We are sorry for the inconvenience.) Wiimote best connected to PC.(I use this instructions http://www.designerwpf.com/2008/01/28/wpf-multi-point-tutorials-part-1-connecting-the-wiimote-controller/)
And i use Windows XP SP3, BlueSoleil blutooth stack, CBR bluetooth dongle and Wiimote
Please help me!!!
Thanks!
Matthias:
Unfortunately, given the updates and advancements with the .NET framework over the last year, this is probably out of date. I’ll try to update it in the near-ish future, but your best bet right now is to head over to Brian Peek’s update to his Wiimote Managed Library http://blogs.msdn.com/coding4fun/archive/2007/03/14/1879033.aspx
He’s made significant improvements. While this is awesome, it also means that the updates have introduced braking changes into my code.
29 December 2008, 5:53 amanon:
SoundBlaster, make sure you have milcore.dll in your System32 folder.
17 February 2009, 12:22 pmcarlos:
Library works great in my laptop, im trying to make a simple application just to move a circle or something using wiimote acceleration values, but im a complete noob coding at wpf. If anyone did this please e-mail me the code to zyroseven@msn.com
thanks
24 February 2009, 8:30 amCesar Gomez:
I have a problem with downloading this visualizer. When I download it i can’t find the application. I use Windows Vista. ¿Can anyone help me? I’ve tried to download it many times and I get the same problem.
7 April 2009, 9:20 pmAndreas:
I always get a AbandonedMutexException in the WiiControl_WiimoteChanged Event when mu.WaitOne() is called.
18 May 2009, 7:48 amAny Idea what’s wrong?
thanks
Wesley:
Wow this is really amazing, I can see a tonn of possibilities here. I am about to purchase a Korg M3 synthesizer workstation, and I’m looking at outside MIDI controllers with huge ability to modify sound, and this looks like the best thing I’ve found so far. I’ve looked at stuff that’s like $500 that still can’t do four independent MIDI parameters. I guess I’m only limited by how many limbs I’m not using to make other sounds lol, and I can’t think of a better thing that would limit me. Is a Wii controller something that could talk to my workstation? It doesn’t have Bluetooth, but if the Wii controller has an output cable, it just might work.
20 September 2009, 11:27 pmsai gollapudi:
Thanks for the great work! I downloaded two files given here but am unable to run them. Which file to execute? I get the same error that Simon talks about. Basically, I downloaded, extracted and am double clicking the executable. (there are couple though…) Pls help.
30 September 2009, 11:21 amJosh:
I can’t get the infrared to work. can anyone help? I’m running Windows 7.
31 October 2009, 10:13 amnak:
is this compatible with windows 7
23 January 2010, 11:56 amRyanW:
I cannot get my Wiimote to pair with my computer. I have installed multiple different stacks…. i have tried what seems to be everything…. and it keeps saying that it is connected… but the single blue light on the wiimote never comes on. The computer says that it is connectted… and then when i try to run software to use the wiimote it says no wiimote is connected.
Please help. I’m running an Asus eepc.
thanks.
31 January 2010, 8:40 amWinko:
Winko Erades van den Berg on making music using a computer and a Wiimote: An article that appeared on the Create Digital Music website, about making music using the WiiMote and a computer, drew my attention. Several hints were given on the how to, but as always in doing new things the information was scattered everywhere and nowhere.
After reading many articles and watching many videos I found out how to realize a working setup for myself. In this article I’ll try to explain the steps needed to create a working setup for yourself.
9 February 2010, 11:31 am