• Home
Blue Orange Green Pink Purple

[how to] wii balance-board > glovePIE > midi > virtools

Posted in how to. on Dimanche, mai 10th, 2009 by Toni Tags: glovePIE, hardware, how to, midi, virtools, wii, wiifit
mai 10

I wanted to use the wiifit into virtools, so first I looked for a BuildingBlock, but I didn’t find BB in order to use the WiiFit Balance-board. If you have one please tell me ^^ ! So Instead I tried (successfully) to use GlovePIE and send informations to Virtools via MIDI.

Before, I want to say that their are others methods, but I use Vista X64 and the drivers must be signed (ok you can change that too ^^ ). For example you can use the balance-board with GlovePIE and PPJoy to create a joystick, but it’s a chore on x64 :( . So this example is not THE solution !

So, what do we need to do that ?
- a Wii Balance-Board & Virtools ;)
- Something to connect your balance-board using bluetooth (I use BlueSoleil), If you had already try (and succeed :) ) to connect a wiimote it’s the same thing.
- GlovePIE 3.0 , for information Carl Kenner only give 2.9 link because 3.0 has serious bugs with the wiimote. But the 2.9 doesn’t have the Balance-Board support. This is the file found somewhere else.
- MidiYoke , in order to virtualize a MIDI Port and get informations into Virtools (or any other software using MIDI Input).

Actually the process is very easy. Even if I spent some times on this (in order to find the right solution), I’m sure you will spend few minutes !

Step 1. install MidiYoke
Installation is fast but you will need to reboot after.

Step 2. connect the Balance-Board
When you use a wiimote, you can synchronize it with the Wii (or your computer) by pressing 1+2. But the Wii-BB doesn’t have external button to synchronize. So in order to be detected as bluetooth device you will have to open the battery gate and push the red button (keep it pressed until the device is fully connected).

a - detect the balance board

b - get services (as Human Interface Device)

c - connect the device

d - now it’s ok you can release the red button !

Step 3. launch GlovePIE 3.0 and create a script

Launch GLovePIE and load this script. (it’s a mix between different scripts ^^). It is very easy ot understand (I think) and you’ll can change it easily after.

First we have to check if the board works. You can see that at the end of the script their is a debug line :

//GlovePIE Debug
debug = “X: “+ var.Xinit +” Y: “+ var.Yinit

When you will run the script the debug informations will appear on the upper-right corner of the GlovePIE window. So now run the script !
If everything is right you must have numbers on the debug window (different from 0.00).

(If it doesn’t work try to reconnect reload GlovePIE or retry from step 1, actually some times my balance board disconnect itself, don’t know why.)

Now you can climb proudly ( :D ) on the board and the numbers must change. In order to initialize the wiifit you have to stay on the board and use your mouse: left click (I chose the mouse because mine is wireless and it’s easier to stay static on the balance-board).
If you want to change that you just have to modify this lines :

line 10. If mouse.LeftButton = true
line 17. mouse.LeftButton = false

and put a keyboard action instead or anything else.
Move on your board and check the variations of values.

Step 4. send what you need
On this script you have two main values that I wanted to use (values between -1 and 1 just like any other joystick, for other reasons).
:

var.Xinit // left/right from -1 to 1.
var.Yinit // foward/backward from -1 to 1

this two values are calculate from the main properties of the board, so you can get all this informations about the board :

//sensors values
Wiimote.BalanceBoard.RawFrontLeft
Wiimote.BalanceBoard.RawFrontRight
Wiimote.BalanceBoard.RawBackLeft
Wiimote.BalanceBoard.RawBackRight

//weight
Wiimote.BalanceBoard.Weight
Wiimote.BalanceBoard.WeightBack
Wiimote.BalanceBoard.WeightFront
Wiimote.BalanceBoard.WeightLeft
Wiimote.BalanceBoard.WeightRight

//use as Human Joystick (doesn’t work very well on mine)
Wiimote.BalanceBoard.JoyX
Wiimote.BalanceBoard.JoyY

In order to send midi value you have to convert value in order to get variation between 0 and 127. Now let’s see how we can send informations.

midi2.Channel1.FirstNote = ((var.Xinit+1)*127)/2
midi2.Channel2.FirstNote = ((var.Yinit+1)*127)/2

Use the midi2, that correspond to the virtual midi-port, you can use up to 16 channel (if you don’t select channel it will be the channel 1), and use the First Note value (actually you can use 4 notes, but I didn’ find how to get them into Virtools, so I use different channels instead). Here I send the Left/Right value through Channel 1 and Foward/Backward through Channel 2. In this case 0 to 127 equal -1 to 1, so 63 is the value sent when nothing happen.

That’s all for GlovePIE !

Step 5. launch Virtools

Ok, now we only 2 building blocks :) and that’s all ! Actually I’m not very used to MIDI in Virtools (and MIDI at all :D ). Set the Midi input to 0 with the BB “Set Midi Input Port” , and after you just have to read datas with the BB “Read Midi” (both BB are in the category Controller > Midi). On the last BB edit the parameter Channel to 0 for the Channel 1 of GlovePIE and 1 for 2, 2 for 3 … And get the Output Note value. In this example I get the value from the two different channels using two BB Read Midi. (don’t forget to run the GlovePIE script :) )

That’s all ! As I said it was very easy, now do what you want to do with this values !

Soon I’ll show you what I made with the Balance-Board !

21 Comments

  1. Bee on janvier 4th, 2010

    Thaanks for sharing : ) I got a balance board and I need to know how to get it working with live

  2. FelTheCat on janvier 11th, 2010

    Thank you so much! :D

  3. WinkoNo Gravatar on février 19th, 2010

    Like many others I was looking for an easy “how to” about making music with my WiiMote, I couldn’t find it so I wrote my own. Check my website:
    http://www.winko-erades.nl/

    Regards,

    Winko

  4. reeplapobiaNo Gravatar on mars 1st, 2011

    I could not in my eyes that I gave up so comfortably deceived. When we arrived at the nudge it turned unnecessary dog-tired that nothing in the throw-away was no commendation to reality. All of the rooms, and ordered them together seven, were in disarray. Uninterrupted the bed linen not changed Przewóz Osób Warszawa expert our arrival. We got on the against a inappreciable dinner and we were told to split up the rooms. I unquestionably do not eulogize how pissed potty he was my husband. He chiefly does not like to loosely harmonize with anywhere, and in anyone extend I managed to turn tailpiece him prohibited on furlough this happened to us such a setback. It’s so frustrating that as done as we wanted to stop with friends, buffoon away and moralizing take in up on, we had to expire places a be matey on these scammers. I perceptible of guilt-ridden as a group therapy as a improve for most of this, that our children wishes comprise nothing to do. They category be bored, and so it is known that something armor. It annoys me that it literatim could not purchase the promised things, because nil of us like de factoring did not modify what he says. It turned in that a partner could income distinction to to muddle-headed and do not ticket this refrain from of the homeland what is needed. Nervously checked the letters, but categorize nothing. All incessantly we had to furor into the open on the bed, where rozjeżdżały without unendingly mattresses and bedding smelled like dog. The kids covered the sleeping happening, what happenstance that I had adjacent them in the orderliness log to the car.

  5. Teena GoettmanNo Gravatar on avril 25th, 2011

    Very interesting points you have observed , appreciate it for posting .

  6. Tobie MarmoNo Gravatar on avril 25th, 2011

    been a typo, Your webpage appears to be very good. Have a very decent morning.

  7. stock trading forums australiaNo Gravatar on septembre 12th, 2011

    I can definitely tell that you know what you’re talking about! I wish a lot more people wrote as well as you and had as much in depth information on their subject matter.

  8. Tragaperra CleopatraNo Gravatar on septembre 18th, 2011

    tolle metzt die aufweit den prorde ohne fossen. gelfu mir ausst die schlei und ungen den atent und tisch den nsteinfo mit innanfa.

  9. siedem cudów naturyNo Gravatar on septembre 23rd, 2011

    I do agree with all of the ideas you have presented in your post. They’re really convincing and will certainly work. Still, the posts are too short for newbies. Could you please extend them a little from next time? Thanks for the post.

  10. NadiraNo Gravatar on septembre 23rd, 2011

    I required to produce you 1 bit of phrase to finally say many thanks the minute again with the unique suggestions you have contributed at this time. This is simply seriously generous with you to create unhampered what the majority of us might have marketed for an e e-book in making some profit for themselves, primarily seeing that you just could have carried out it in the occasion you desired. The ideas in includeition labored to create excellent approach to recognize that other individuals have similar keenness similar to my individual personal to understand incredibly significantly additional associated to this produce a difference.

  11. Tish BousleyNo Gravatar on septembre 24th, 2011

    I’m curious to find out what blog system you’re using? I’m experiencing some small security issues with my latest blog and I would like to find something more secure. Do you have any suggestions?

  12. Thomas HackNo Gravatar on septembre 26th, 2011

    You have a wonderful blog here! would you like to make some invite posts on my blog?

  13. Jeremy SpencerNo Gravatar on septembre 27th, 2011

    You have a great blog here! would you like to make some invite commentson my blog?

  14. greyNo Gravatar on septembre 30th, 2011

    There are some attention-grabbing deadlines in this article but I don’t know if I see all of them heart to heart. There’s some validity but I will take maintain opinion until I look into it further. Good article , thanks and we want extra! Added to FeedBurner as nicely

  15. forex calculator on novembre 11th, 2011

    ***…

    A conclusion is simply the place where you got tired of thinking….

  16. glycolic peelNo Gravatar on décembre 23rd, 2011

    It was a very cool idea! Just wanna say gracias for the information you have given. Just continue writing this kind of blog. I will be your loyal follower. Thank you again.

  17. Lai CerritoNo Gravatar on décembre 29th, 2011

    I precisely wished to appreciate you once more. I do not know the things that I might have gone through in the absence of the type of information documented by you concerning my field. This has been an absolute fearsome matter in my opinion, but being able to see a new specialised mode you managed that forced me to weep over delight. Now i am happier for the support and even hope that you really know what a powerful job you have been providing educating the others with the aid of your web blog. I am sure you haven’t encountered any of us.

  18. facebook marketing an hour a day pdf downloadNo Gravatar on décembre 30th, 2011

    [Software] FACEDOMINATOR: The Facebook Marketing Bomb!! Its Time to Dominate Facebook Marketing. fully cracked and working Download Here

  19. Linwood SatterfieldNo Gravatar on janvier 4th, 2012

    Hi. I just wished to actually make a nice swift statement and also inform you know that I’ve been reading your personal wordpress blog for quite some time. Keep up the very fantastic efforts and I’m going to be returning back another time in a little while.

  20. Luigi DeardenNo Gravatar on janvier 12th, 2012

    This is usually a excellent website. Carry on building articles or blog posts honestly

  21. TroyNo Gravatar on janvier 18th, 2012

    [Get] Zion Proxy Finder Find Proxies For Youtube With Just a Click Download Here



Leave a Reply

  • Categories
    • blog (1)
    • how to (2)
  • Last Comments
    • Troy dans [how to] wii balance-board > glovePIE > midi > virtools
    • Luigi Dearden dans [how to] wii balance-board > glovePIE > midi > virtools
    • Linwood Satterfield dans [how to] wii balance-board > glovePIE > midi > virtools
    • facebook marketing an hour a day pdf download dans [how to] wii balance-board > glovePIE > midi > virtools
    • Lai Cerrito dans [how to] wii balance-board > glovePIE > midi > virtools
  • Blogoliste
    • labs.paindepices
  • Archives
    • juillet 2010
    • mai 2009
  • Search






  • Home

© Copyright work in progress - toni da luz. All rights reserved.
Based on a FTL Wordpress Themes

Back to Top