Main > Main Forum

Its time to give back...beginning work on Wiimote Driver

<< < (3/13) > >>

taz-nz:

--- Quote from: TheShanMan on May 04, 2008, 07:50:04 pm ---
No, I haven't seen it. It's not so much an issue of can it work with a cab, it's more an issue of how does it look. I don't want some ugly bar stuck on the front of my bezel, so hopefully it can be placed in such a way that it's either invisible or barely noticeable.

--- End quote ---

The Wii Sensor is nothing but a pair of Infrared LEDs in a plastic housing, the lead that runs to the console only provides power to the LEDs, the wireless Wii Sensor Bars are just the same but run off a couple of AA or AAA batteries. You don't even need to buy Wii Sensor Bar to make this work, you can just use one or more Infrared LEDs, avaliable at most electronics stores or just just take them out of an couple of old TV removes. You should have no issues hiding a couple of 5mm LEDs in the bezel around your monitor, and simply tap your PSU to power them.





 

jban4us:
Hey guys, I'm new here, but I have also been reading about the wiimote idea.

I have extensive experience with that .net wiimote library. I spent last summer building upon it to control a six axis robot arm with the wiimote. There are some modifications I know need to be made to get it to work well as a mouse which would carry over into being a light gun. I was actually going to start working on the same thing, but you beat me to it (also have 2 jobs and an arcade machine to build ;))

Hit me up with pm's if you have any questions. The following link might be helpful. It is a .net library for raw mouse input under win xp. I think hacking it up would be the easiest approach, as writing device drivers is much harder than writing other software, especially if you have no C++ or low level programming experience.

This is about raw mouse in general
http://jstookey.com/arcade/rawmouse/

This is the .net library
http://jstookey.com/arcade/rawmouse/rawinputsharp.zip

edit:
about the sensor bar, just put a couple of these behind a tinted bezel, you won't be able to see them but the wiimote sure will


SavannahLion:

--- Quote from: akcrash on May 04, 2008, 07:20:54 pm ---
--- Quote from: mhermann on May 04, 2008, 04:33:41 pm ---Well I spent a couple hours today on google. It is looking like this needs to be a low level driver written in C. And there actually may be a solution that is already out there but it is for Linux. And I am betting about 99% of the people on these boards run Windows including myself. The research continues...

--- End quote ---

Would it be possible to convert the code or solution you found for Linux into a workable windows one? I agree that most people use windows for their cabs...

--- End quote ---

That depends on how tight the Linux version is prior to porting. At the most basic level you have to contend with different system calls, at the worst, you would have to contend with entirely different schools of thought.

The Linux version might prove to be more valuable as a reverse engineering tool for creating a Windows driver rather than as a direct port.

Custardo:
I did some some fairly intensive testing with the wiimote, glovepie and ppjoy and mame, and while the initial configuration is a bit of a hassle, the end result is certainly workable. It's relatively simple to achieve a good enough accuracy for all games. There is however a fundamental flaw with the typical sensor bar setup: you have to hold the wiimote in one place relative to the screen to maintain accuracy, without have to use the crosshairs. Otherwise, you'll have to keep the crosshairs turned on, which makes all lightgun games unbelievably easy to play. As the wiimite can track 4 leds at once, this problem could perhaps be mitigated using a dual sensorbar setup of some kind, but that's almost the same setup as the topgun.

wbassett:
I'm definitely in too!

I bought several electric airsoft guns to do a light gun kit bash with, and for the hell of it I also got a Gyration GyroTransport air mouse.  The GyroTransport works fine as a mouse but there is no way to track the gun to the mouse cursor so the Wii mote method is definitely the way to go.

I haven't picked up my Wii motes and sensor bar yet, but plan on getting one this weekend. 

So here is a thought that occurred to me... batteries...

How does the Wii mote recharge its batteries?  Is it USB based or does it require a special charging unit?  If it's USB based then that's an easy solution, I'll just put a USB jack in the gun. 

I suppose I could feed it from the battery pack of the airsoft gun but I'd rather not get into making a voltage regulator.

I guess I'm thinking a step ahead here, driver and functionality first and then worry about getting it into a gun... but it is something we're going to have to think about at some point.  I for one will be relocating the motion unit to the barrel of the gun so it will definitely be a permanent fixture and not a removeable unit. 

Last question for now, what is the physical size of the Wii mote?  The circuit board will obviously be a lot thinner than the case for the Wii mote, but it still looks a bit big for a pistol.  I probably could modify the Desert Eagle I have and get it to fit, but anyone wanting a Walther P99 or Beretta style may be out of luck as far as totally integrating it with a pistol.  Of course there is always the pistols made for the Wii mote but what fun is that ;)


I think it may fit inside a peg unit for a rifle though and won't look out of place on a RIS system.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version