Main > Main Forum

Crazy Wiimote control ideas... anyone got info?

Pages: << < (7/8) > >>

JKJudgeX:

Two interesting videos I found while researching another thread:
  (this is how you set it up, you only see him use it for like a second)


And the crazy interesting one (not really arcade cabinet related, but, very neat idea for how to use it)
http://www.dailymotion.com/cluster/tech/tag/Wii/video/x3vsnt_minority-report-interface-by-wiimot_tech

Also found one about hacking it with a mouse that was kinda neat... anyway... I'll see what I can rig up soon :)

JKJudgeX:

Not a whole lot of "info" about this, really, but, a good link for glovepie scripts... I *almost* got my wiimote working as a lightgun... i need to work the kinks out of it... it's a MAME-specific problem, I'm pretty sure, as it works pretty much as a perfect remote control mouse with the cheap-O setup I've made with a single LED that I scrapped out of an old remote.

http://www.wiili.org/forum/glovepie-wii-mote-scripts-t360-s15.html

There are scripts there for lightgun via controller use (they apparently work well for some, not as well for others)... and some scripts for Mario-Kart like driving controls (tilting wiimote like a wheel)...  and tons more stuff.

If anyone has any other info, I would LOVE to see it.

Good luck!

jace055:

I'll stand behind you.  This is a good idea.

I haven't been around this forum in a while but I came back after I saw a couple of "you tube" videos of the dual wiimotes as light guns and wondered if it was main stream among the byoac-ers.  I have been looking through the forums for a few days to find some answers. 

So far the only input I can give you is there is only one person on ebay selling a light bar for the wiimote that plugs directly into a wall outlet for power (I have NO desire to change batteries ever, if I can avoid it).  I will be looking to this thread for your progress.  Once I start adding lightguns to my cabinet in a few weeks I can help troubleshoot with you.  Good luck till.

JKJudgeX:

Hehe, thanks for the input, but, it's relatively easy to build your own IR setup :).  I can show you a quick and dirty way...   

Note that this is only for a "test" setup, as I haven't included an off switch or anything like that.  I AM NOT at all good with electronics, and my methods are dirty and would probably be frowned on by anyone who even remotely understands a circuit board.  Don't do anything I say unless you understand it's at your own risk.

All you need:
JKJudgeX's build your own WiiMote 1 IR LED Sensor Bar
1)  Old remote control you don't use anymore.
2)  Some extra wiring and connectors that you aren't using (I just used some of the wire and connectors male and female from where I was wiring my panel.
3)  3V worth of batteries (2 AAA batteries will do nicely, though I don't know if this will work with rechargeables)
4) Some kind of makeshift housing for the batteries(I just broke the back of my remote off and use it to hold the batteries.
5) Duct tape, or a place/makeshift housing to mount your LED.
6) (Optional) Male and Female .187in disconnects (like used on your microswitches in your cab, only I had male and female ones since that was how they were sold at my local radio shack)

Steps:
1) Get that remote, and pry it open.  Take the IR LED (maybe even 2) out of the front of it by wiggling them back and forth as close to the circuit board as you can until they snap off.  Put these aside.
2) Remove everything from the remote that is not the battery housing.  If you want a 2 battery setup like mine, just remove everything until you have a chunk of plastic with the metal spring at one end and the metal plate at the other end inside the battery housing.
3) Make sure 2 AAA's (or whatever batteries you are getting your 3V from) fit snugly, pinned in between the connectors in the back of the remote.
4) Cut yourself 2 lengths of wire, as long as you might think is convenient to have your LED away from the batteries.  I used 2 8 inch lengths.
5) Strip off a little bit from both ends of both wires (quarter inch?).
6) Tape/glue/solder/rig/lay an end to the positive end of the batteries (the button side) and do the same with the other wire from the negative (flat side)
Checkpoint:  You should have the back of a remote opened up with 2 wires coming from it, one from each end of the battery compartment.  The other ends of the wires should be stripped down a little.
7) Attach the positive wire to the leg of the LED that comes down from the little metal piece (see link) and the negative side to the big metal piece (see link):  http://upload.wikimedia.org/wikipedia/commons/c/cd/%2B-_of_LED.svg  (just remember, small side inside the glass is positive, big is negative, kinda backwards)
8) Use the duct tape to mount the LED pointing towards you from the middle-bottom of your monitor/arcade machine screen.

if you followed those steps relatively closely, you should have a Wii-functional 1-LED IR Sensor "bar".
I've had mine plugged in on continual power for 4 days from some dubiously drained AAA batteries, and it still works fine.

Now, run through the connection routine that works for you, to get your Wiimote connected via bluetooth, and, see the Glovepie script I'm posting below (modified from someone on Wiili.org ... an AWESOME site)... the modifications I made help it be a little less jittery with only 1 LED... if you build a 2 LED version, you can find IR scripts that work perfectly fine with that, too.

See the pictures below for a snapshot or two of my ghetto fabulous setup.







JKJudgeX:

GlovePIE script 1 (this lets you test your IR sensor bar setup, you won't be able to play MAME lightgun games directly)... I scalped this from someone on WiiLi.org ... I would love to give them credit but they didn't comment their name in the file.  So, thanks random Wiili.org GlovePIE contributor, I hope you don't mind my reposting your work, holmes, it's for the good of the byoac community!:

// Wiimote mouse script for Windows desktop
// Requires a sensor bar

var.ButtonFreezeTime = 250ms
var.PointerBump = KeepDown(Pressed(wiimote.A),var.ButtonFreezeTime) or KeepDown(Pressed(wiimote.B),var.ButtonFreezeTime)
Wiimote.Led1 = true

// Mouse movement
if wiimote.PointerVisible but not var.PointerBump then
  mouse.x = wiimote.PointerX
  mouse.y = wiimote.PointerY
end if

// Mouse Buttons
mouse.LeftButton = Wiimote.A and KeepDown(Wiimote.PointerVisible,0.5s)
mouse.RightButton = Wiimote.B and KeepDown(Wiimote.PointerVisible,0.5s)
mouse.MiddleButton = Wiimote.Home and KeepDown(Wiimote.PointerVisible,0.5s)
mouse.XButton1 = Wiimote.Minus
mouse.XButton2 = Wiimote.Plus

// Mouse Wheel
if wiimote.Up then
  mouse.WheelUp = true
  wait 30ms
  mouse.WheelUp = false
  wait 30ms
end if
if wiimote.Down then
  mouse.WheelDown = true
  wait 30ms
  mouse.WheelDown = false
  wait 30ms
end if


Okay, GlovePIE Script #2 also from a WiiLi.org contributor...  this guy credits himself in comments so I don't feel so bad.  I may have modified this script... I really dunno... but it works for me a little.  After setting up MAME, I could get my gun to move in Operation Wolf *kinda* the way I wanted it to, but not exactly. 

If someone either:
A) Report how/if you got these (or the original) scripts to work really well as a light gun in MAME... (I've only had limited success that way, since MAME doesn't take direct coordinates and you have to use the PPJOY thing as per the 2nd script there)
B) Figure out how to do it better (or even use a different emulator that takes the mouse input directly)
we'd be in serious business, cuz these work great as a mouse.





Pages: << < (7/8) > >>

Go to full version