« WiiリモコンをMacからいじる | メイン | Intermission - DarwiinRemote for QuartzComposer ;-) »

DarwiinRemote is released!

What is DarwiinRemote?

DarwiinRemote Icon

DarwiinRemote.png
  • DarwiinRemote is a tiny software which reads data from and sends data to Nintendo Wii Remote
    • Inputs
      • 3-axis acceleration sensors
      • all buttons except power button on/off
    • Output
      • 4 LEDs
      • Force Feedback
  • DarwiinRemote allows you to control other applications by using Wii Remote
    • but now only supports "AppleRemote" mode...

How to use DarwiinRemote

  1. Launch DarwiinRemote
  2. Press 1 button and 2 button of your Wii Remote simultaneously
    • Wii Remote becomes "discoverable mode" (4 blue LEDs are blinking)
  3. Log drawer in DarwiinRemote reports "Wii Remote is found!"
    • When DarwiinRemote cannot connect to Wii Remote, disconnect bluetooth connection (press power button in seconds) and restart DarwiinRemote (will fix...)
  4. Have fun!

Download

Key mappings

DarwiinRemote now only supports single mouse emulation and "AppleRemote" mode

Wii RemoteKey mapping
Up
Up
Down
Down
Left
Left
Right
Right
A
Left-Click
B
Return (Play/Pause in FrontRow)
Minus
Command + Left (Volume Down in FrontRow)
Home
Command + ESC (Enter FrontRow and "Menu" button)
Plus
Command + Right (Volume Up in FrontRow)
1
Page Up
2
Page Down

To Do

  • Icon andUI (help me!)
  • Key mapping configuration
    • e.g. invoke AppleScript
  • Sensor calibration
  • IR sensor support
  • Extension Port support
  • Speaker support (it seems difficult now...)
  • Gesture Recognition
  • More stable codes ;-)
  • QC Custom Patch ;-)

Disclaimer

DarwiinRemote is an UNSTABLE and EXPERIMENTAL software. The author Hiroaki assumes no responsibility whatever for its use by other parties, and makes no guarantees, expressed or implied, about its quality and reliability.

Please play this carefully ;-) 

Special Thanks to

  • WiiLi.org
  • tokkyo (author of WiinRemote)
  • Luke and Mark (reporting button bug)
  • truex (providing icon)
  • of cource Nintendo Wii team

トラックバック Trackback

Trackback URL:
http://blog.hiroaki.jp/mt/mt-tb.cgi/425

この一覧は、次のエントリーを参照しています: DarwiinRemote is released!:

» DarwiinRemote lets you use a Wii Remote as an input device for OS X 送信元 kottke.org remaindered links
http://blog.hiroaki.jp/2006/12/000433.html... [詳しくはこちら]

» Nintendo Wiimote Hacked Into OS X Mouse, Remote 送信元 Gizmodo
Shortly after the Wiimote was hacked into a Windows mouse, enterprising Japan... [詳しくはこちら]

» Darwiin Remote 送信元 Candescence
Jasen and I have been working with the Wiimote trying to get some decent acce... [詳しくはこちら]

» wiiのコントローラをmacで 送信元 soraなりの日々 - fc2 -
もう始まってるのですな。hack。windowsでwiiのコントローラを使うってのは数日前に出てた。[WiinRemote]http://onakasui... [詳しくはこちら]

» Usando o Wiimote como Mouse no Mac 送信元 Digital Drops
Agora os usuários de Mac também já podem usar o Wiimote para controlar seus ... [詳しくはこちら]

» DarwiinRemote, mando de la Wii en Mac 送信元 Xataka
Si los usuarios de Windows ya podían empezar a usar el mando de la Wii en su... [詳しくはこちら]

» Darwiin 送信元 lkm.watashi.ch
So, in ein paar Stunden werde ich hoffentlich meine Wii haben. Bis da schon m... [詳しくはこちら]

» WiiリモコンでMacを動かす 送信元 GRAFAiN +2.1
 話題のNINTENDO Wiiリモコンで、Macのremoteと同じようにコ... [詳しくはこちら]

» Mac で Wii 体験:) 送信元 Blog!NOBON
先日、遂に登場した任天堂の Wii の「Wiiリモコン」を使って MacBook Pro 上でゲームをしている動画を発見しました:) 少々感... [詳しくはこちら]

» WiiリモコンでMacが動く!「DarwiinRemote」リリース 送信元 -out of date- ブログ版
先日「WiiリモコンがPC用マウスに!「WiinRemote」リリーã... [詳しくはこちら]

» [mac][Wii]DarwiinRemote is released! (Hirolog) 送信元 [D]【で】にっき
面白い。マウスモードはコントロールが難しいけど。 [詳しくはこちら]

» WiiをPCやMacの入力デバイスとして使う 送信元 pLab blog
今週発売になった、話題のゲーム機Wiiですが、大学時代に所属していた研究室の後輩... [詳しくはこちら]

» DarwiinRemote - WiiリモコンをMacにも 送信元 BLOG × WORLD ENDING
WiiリモコンをWindows上で利用可能にするツール「WiinRemote」の登場からわずか数日。今度はそのMac版とも言える「DarwiinRemo... [詳しくはこちら]

» [Mac] MacでWiiリモコンを使う 送信元 欲望の塊 returns
http://blog.hiroaki.jp/2006/12/000433.html あまり意味はないのかもしれないけど、こういうソフトって大好きです。 [詳しくはこちら]

» DarwiinRemote is released! (Hirolog) 送信元 Groovy Links
http://dev.upian.com/hotlinks/archives/2006/12/05/#item66592 [詳しくはこちら]

» DarwiinRemote 送信元 日々の御伽噺
DarwiinRemote 日本語FAQ (Hirolog) Intermiss [詳しくはこちら]

» wiiリモコンが、Macで使える。 送信元 思いつき、想いつき。
世の中とっても素敵なことに、発売から1週間も経たないうちに、wiiはwiiを飛び出した。のでhirologさん。人柱です。正しいのかどうかわかりませんが、... [詳しくはこちら]

» Use the Wii-mote in Mac OS X with DarwiinRemote 送信元 syndicated
Filed under: Mac , Nintendo Wii , Peripherals We've got no data to back up th... [詳しくはこちら]

» DarwiinRemote 0.3 is released! 送信元 Hirolog
It's time to buy 2 candles ;-) Hi all! ... [詳しくはこちら]

» Front Rowで予告編&DarwiinRemote 送信元 Digital Life Innovator
WiiのリモコンをMacで使うDarwiinRemoteというツールが開発されて... [詳しくはこちら]

» WiiリモコンでMac miniを操作してみる 送信元 Mac mini でリビングPC
この冬の目玉商品といえば、ニュースにもなった任天堂の「Wii」とSONYの「PLAYSTATION 3」。どちらも品薄状態で、まだ買えずにいる人も多いと思... [詳しくはこちら]

» Wiiリモコンって・・・ 送信元 ミィの「今日の気になる話題」
Wiiリモコン(WIIリモコン?)ですけど、今仲間内でも凄い話題です。PS3かW... [詳しくはこちら]

» Wiiリモコン with MacBook 送信元 Cocoa*Life
ただしリモコンだけ  Wiiリモコンもとい、はじめてのWiiパックを購入しました。リモコンだけかって何に使うの?と思われるかもしれませんが、Bluetoo... [詳しくはこちら]

» Darwiin Remote 送信元 iDunno
Ok, il mio amicone, e collega macchista, Zak mi ha sugerito un programma inte... [詳しくはこちら]

» What to do with a Wiimote? 送信元 infernus
While I wait for my Wii to arrive I have a second controller in hand, sittin... [詳しくはこちら]

» WiiMote Controlled Roomba 送信元 WizbangTech
The Roomba hacking is getting pretty refined. Here is an example of using a W... [詳しくはこちら]

» Geek Out: Hacking Your Nintendo Wii 送信元 Level Up
Nintendo's Wii is already a hit. And like any even remotely popular new machi... [詳しくはこちら]

コメント Comment(62)

Great job man! Our Wii blog ( http://miigottawii.com/ ) picked this up along with the other stories about apps coming out of the Wiili work. There's a lot of potential here. Thanks for sharing the source code!

Luke:

Hello Mr. Hiroaki. Thank you for DarwiinRemote! I thought you would be interested to know that the key mappings seem to be different for the Japanese Wii Remote and American Wii Remote. The table below shows the results that DarwiinRemote give me when I press the buttons on the Wii Remote.
When I press    DarwiinRemote says I pressed
up    A
down    B
left    2
right    1
1    right
2    left
home    down
-    +
+    -
A    up
B    down

Mark:

Very neat, but the key configurations are wrong on a powerbook. Hitting up on the remote shows up as A. Hitting D-Pad left shows 1, D-Pad right shows 2. Could this be an endian issue?

Hi Wii and Mac Lovers!

> Mii Gotta Wii!
Your site is great!
I'm grad if other developers release great softwares based on my codes ;-)

> Luke and Mark
Thanks for your information.
You are right. It might be endian issue. As you guessed, my mac has Intel CPU.

Though I've inserted bit-flip code, it doesn't work well. I'll fix the problem soon.

Very exciting! I'll be making some Quartz Composer patches too :)

Mark:

I looked at your code and it looks like you don't need to swap the two bytes you're swapping. Removing your call to CFSwapInt16LittleToHost() in the l2capChannelData method gives proper button-reporting on PPC.

Micrll:

Hello Hiroaki!
Thanks for posting this, I don't have access to my wii yet, its at home I head back from college soon.
My question is this:
I understand that its expermental software and buggy, but you said over on the wiili forums that its an application not a driver, so I take it that it does not hook too deep into the OS like a driver would? So if it has issues whats the odds of it hosing a OS X installation?

Mark:

After taking a look, it doesn't appear that you need to flip the 2-bytes you're swapping. Removing your call to CFSwapInt16LittleToHost() in l2capChannelData gives proper button reporting on PPC

Wounderfull tool ...
I made a little icon it's a mix of apple's remote and the wiimote.

www.truex.de/icon.tif
www.truex.de/icon.psd

Wow, there are many many comments! Thanks all!
and DarwiinRemote 0.1a has been uploaded. enjoy!

> Momo The Monster
o really!
QC is exciting.
I think that some artists might want QCWiimote patch ;-)


> Mark
Thanks again!
I've removed the function and re-build it. (Ver. 0.1a)

and comments in this blog are not appear unless I approve them.
my blog says it but it's in Japanese... sorry.


> Micrll
Hi, Micrll!

right.
DarwiinRemote only uses user space, doesn't use kernel space.

Some guys in the wiili forums want to develop Bluetooth HID driver.
of course there are pros and cons.

pros:
once you install the driver, all applications can access the Wiimote instantly.
cpu-friendly. ;-)

cons:
because the driver modifies OS X kernel, the OS easily hungs up if the driver is immature.

I'm not sure whether writing driver is difficult or not, but I think "non driver based" is enough. implementation is not difficult ;-)
while VLC supports (or will supports) AppleRemote (http://developers.videolan.org/vlc/vlc/doc/doxygen/html/interfaceAppleRemote.html ), it's also "non driver based"

... does that answer you? i'm sorry my english skill is not so good...


> truex
Thanks for your great work!
I wasted little time in adding your icon ;-)

TC!:

Great start guys.
Can you use something like this wireless sensor bar to get full motion working:
http://doctabu.livejournal.com/64758.html

Awesome! Keep at it, this is the only site I've found that has any project like this- everyone I've shown is fascinated.

Carlosdreyfus:

The mouse movement is not the way a mouse is supost to move, is not proporcional to position, and when you come back to the same position as you where, it wont come back, so this has to be fixed.

When the mouse is moved left it starts to move, when the mouse comes back to the same position it will stay far from where it started. know what I mean?

thank for the app, good work

James:

Nice program. I love it.

Any hope for multimonitor support on the mouse controls? The cursor is stuck on the main monitor.

carlos:

The mouse movement is not the way a mouse is supost to move, is not proporcional to position, and when you come back to the same position as you where, it wont come back, so this has to be fixed.

When the mouse is moved left it starts to move, when the mouse comes back to the same position it will stay far from where it started. know what I mean?

thank for the app, good work

Chris P.:

Just a note: I've found that it's more reliable to establish a connection to the remote if you take off the battery cover and hit the red sync button there versus hitting 1+2.

Also, Hiroaki, don't worry about your English skills. You're doing better than a lot of Americans.

Micrll:

Hiroaki, I totally agree, I personally was wary of going into kernel space with experimental software. Also this implementation is simpler and I can simply quit to turn it off.

Your English is fine, I studied Japanese at my High School and spent 7 weeks in Japan 2 summers ago with a host family. Your English is far better than my Japanese is ...My poor host family I really kill Japanese sentence structure.

Darn I just cant wait to go home next week, school kills me :)

Also its easy enough to resync the wiimote to the wii console after using it with the Mac right?

les:

Any plans to treat the wiimote as an HID device, like a joystick?

les:

Do you have any plans to get this to optionally act like a HID instead of like a mouse? I'd really like to use it as a joystick rather than as a mouse pointer.

Hi all,
Thanks for your comments. I'm grad to read them.
Although I wanna develop new version of this, I have to implement other software today...


OK, it's time to reply your comments!

> TC!
great!
the gadget allows us to use IR sensor of wiimotes independently ;-)
Although I'm not sure whether I can build it, this is good info.


> Xpect25
thanks ;-)
plz show this site more and more.


> Carlosdreyfus, carlos
It's because calibration issue.
ver. 0.1a calibrates sensor data using MY Wiimote...
I have to add custom calibration function.


> James
Thanks for your info.
Right. Now DarwiinRemote only supports single monitor.
I'l fix the problem.


> Chris P.
Thanks for your info.
and... hehe. thanks. anyway I have to improve my command of English ;-)


> les
hmm...
it's an appealing idea. but now I cannot afford to do that...
When I get a spare time, I'll try it.
Thanks!

Hi all,

this is also a tiny work, Quartz Composer Custom Patch based on DarwiinRemote codes.

Because of the quality I cannot make it on public, but you can see the movie how it works.

http://blog.hiroaki.jp/2006/12/000434.html

MacUser:

thank you so much. i can't repay you.

neop:

I doesn't seem to be working for me, when I press the 1 and 2 buttons in my Wiimote I get the message:
WiiRemote is found!
could not connect to the WiiRemote...

I tried checking the console log and the error seems to be: "could not open L2CAP channel ichan"

Any idea of why is it not working for me?

Thanks, keep up the good work

Plantain:

You can easily make it execute a custom applescript by adding:
NSAppleScript* appleScript = [[NSAppleScript alloc] initWithSource: (NSString *)source];

to the relevant button controller,
i.e. for the home button

if ((buttonData & kWiiRemoteHomeButton)){
[homeButton setEnabled:YES];

if (!isPressedHomeButton){
isPressedHomeButton = YES;
CGPostKeyboardEvent((CGCharCode)0, (CGKeyCode)55, true);
CGPostKeyboardEvent((CGCharCode)0, (CGKeyCode)53, true);
NSAppleScript* appleScript = [[NSAppleScript alloc] initWithSource: (NSString *)source]
}

You would of course have to specify which applescript you are loading in there.

Hi,

I'm sorry I just speak english and spanish. I'd like to design some icon for you, please contact me :)

Molto si è parlato in queste ultime settimane della capacità interattiva della nuova Nintendo Wii attraverso i suo comandi a distanza pensati per simulazioni sportive e coinvolgenti testa a testa con avversari virtuali ma ora i controller di Wii possono essere d'aiuto anche agli utenti Mac.

Grazie a DarwiinRemote, il software elaborato da un arguto utente giapponese (tra i primi a poter sperimentare la nuova console) è ora possibile utilizzare i controller per attivare FrontRow e accedere a tutte le capacità multimediali del Mac con ricevitore ad infrarossi (in pratica tutti i Mac con Intel e l'ultima versione dell'iMac con G5).

Siamo ancora alla versione 0.1 che prevede la personalizzazione dei tasti ma l'impegno e gli strumenti dello sviluppatore porteranno sicuramente a dei progressi e magari all'utilizzazione estensiva delle "gesture", i comandi impartiti con movimenti nello spazio che rendono più interessante il gioco con la console per cui i controller sono stati realizzati.

Ed ecco qui i tasti sul controller e la corrispondenza ai tasti per i computer Apple
Wii Remote = Mappatura tasti su Mac
Up= Freccia Su
Down = Freccia Giù
Left = Freccia Sinistra
Right= Freccia Destra
A = Click sinistra
B= Return (Play/Pausa in FrontRow)
- = Mela + Left (Volume Down in FrontRow)
Home = Mela + ESC (Fai partire FrontRow e "Menu" button)
+ = Mela + Freccia Destra (Volume Up in FrontRow)
1 = Pagina Su
2 = Pagina Giù

Per utilizzare il software, completamente gratuito occorre Mac OS X 10.4 o superiore e un Mac con PowerPC o Intel...
Per saperne di più visitate la pagina giapponese/inglese di Hiroaki, partendo da questo link.

da http://www.macitynet.it/macity
il sito Mac e iPod più letto in Italia

http://www.macitynet.it/macity/aA26462/index.shtml

truex:

It becomes more an more famous ...

German Mac Newsmagazine
http://www.mactechnews.de/index.php?id=15166

brian:

Not working on PPC, running OS X 10.3.9.

Application will not open.

I am having a problem with this program. All of the click functions work perfectly but the tilt sensing doens't.
When the "wiimote is found" the mouse moves to the bottom right corner of the screen. It is very difficult to move the mouse away from that corner.
Any suggestions???

error406:

THIS IS !@#$ING AWESOME!!!
thankyou sooo much... btw it works great with neverball. hours and hours of fun =)

thankyou thankyou thankyou!


btw neverball should be here:

http://icculus.org/neverball/

Florian:

Will it be possible to use 2 remotes independently, to make the idea of air drumming (like Bob Somers started) work? Must be possible somehow:

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

BUD:

YOUR ARE GOOD
THIS PRORAME IS VERY GOOD
BUT HI WANT TO DOWNLOOD HIM DO YOUS NO WHERE I CAN
BYE SI YOU

I'm sorry for my delay in replying to your comments.


>MacUser
;-)


>neop
Please download newer version.
I think it is little bit more reliable.


>Plantain
Thanks!
right. It is the best way for controlling other appliction to use applescript.
I will implement that feature.


>Carola Clavo
Thanks!
DarwiinRemote Icon now using is given from truex.
If I need more icon or some UI design, I will contact you.


>truex
wow... ;-)


>brian
Please download newer version.


>David Lee
Please download version 0.3. It surpports motion sensors calibration method.


>error406
thats nice!
Thanks for your info!


>Florian
Current version doesn't support 2 or more Wiimote.
Now I'm working on it ;-)


>BUD
Please download from here.
http://sourceforge.net/projects/darwiin-remote

I'm trying to use the controller in a game with your library.

I have a lot the following error:
"could not open L2CAP channel ichan"
can you explain what the problem is, when dies happens? thanks for any reply.

t00cg

ps: as soon as i have something to look at, i will put it on the net - but at the moment there are a lot of other problems

patrice:

merci beaucoup...
domo arigato france

>t00cg
current version is little bit more stabled.
Please use newer version.
http://sourceforge.net/project/showfiles.php?group_id=183966

next version will be more stabled :-)


>patrice
Je vous en prie.
Je ne peux pas parler français, pardon...

anyway, I'm grad that many people use our software:-)

andym:

We sssoooo need a version of that drum software for mac!!!!

Drew:

I downloaded this, whenever I try to launch it, it bounces in my dock for a second, then dissapears, and i get the message, "The application DarwiinRemote quit unexpectedly. Mac OS X and other applications are not affected." and stuff, but it won't open. Help me out please.

Adam:

Anyone got the answer to the WIi Mote connection error

===== WiiRemoteDiscovery error (-536870185) =====

to be exact. In older versions i got "WiiRemote is found!
Could not connect."

What's the problem/how do I fix it?

plat00n:

i get error:

==WiiRemoteDiscovery error (268435459)==

please help

shadexiii:

I'm getting the same error as plat00n.

OS X 10.4.8

dude:

i get the same error as those above, although, i had it working, disconnected, and tied to reconnect, and i get errors.

macaholic:

I got the same error as plat00n and shadexiii and dude. It was working then i tried to reconnect and that pops up every time. Any ideas?

Classic controller support would be a great addition for those of us that use their mac for games/emulation :)

I love using the Wii remote with DarwiinRemote to play GBA and NES games. Adding support for the classic controller would allow me to play any console game with the remote.

max:

all right i push 1 and 2 and nothing happens is there a way to turn my remote on

Djo99:

hi,
spricht einer von euch Deutsch???
Have a problem with the programm.
Please answer.(auf Deutsch)
Immer wenn ich meine WIImote anschliesse kommt so ein Fehlercode,ich weiss nicht was ich dann machen soll.Der sagt, das er die wiimote gefunden hat, aber er kann sie nicht connecten!?
Thx

Nicom:

Hi !

I'm on mac 10.3.9, is it possible to use darwiin ?

Robin:

Hi,

Is it possible to output the motion and button pushes through darwiin remote to an app such as plogue bidule (to be picked up as an HID) or to controller mate to convert to midi? Many thanks, Robin

MacTeo:

Is there any chance this people is using your wiimote:framework to make money with thei software? please check it

Click Me

If it is so, they should at least provide the code with their implementation of the software!

Let us know what u can find out! I don't like people stealing open software!

emmett:

hey, i was wondering if anyone here has used this software to assign parameters on the wiimote to parameters in music software like native instruments or protools. i'm assuming there's some way to route this to ReWire, but i'm not super computer-tastic so i was hoping somebody might be able to help me.

and, as i'm sure many people have already said, this is amazingly impressive! thanks and keep up the good work!

Dear Hiroaki,

Thanks so much for your framework. I just wanted to let you know that I'm working on some interactive video and synthesized music using cocoa and the WiiRemote Framework.

I still have some trouble with getting a stable connection - do you have any tips for retrying the WiiRemoteDiscovery object?
If all goes well and as planned, there will be a performance for wiiremote, cello, and computer synth/video on March 25th, evening at ZAIM in Yokohama, (a building next to the baseball stadium in Kannai)

Djo99:

Können sie das Fehlercode auf English schreiben? Haben sie OS X 10.4? (Sie müssen das haben)

maxtoo:

Just wanted to say thanks i'm using the wiimote instead of the apple remote to control frontrow.

I really appreciate the work you've done on this.

Mett: