Main > Lightguns
Lichtknarre: Unmodified Wii remote as a sight accurate Lightgun using 2/4 LEDs
<< < (24/68) > >>
RandyT:

--- Quote from: Howard_Casto on December 30, 2022, 08:33:32 pm ---I'm referring to the accelerometers.   Any math used to take their data and improve position calculations would be off and it'd take a re-write to fix assuming now that the wiimote's resting position would be on it's side.   Or we could just not be jerks and use it in the proper orientation.   

--- End quote ---

The accelerometer data is most likely translated into degrees and everything is based on offsets and directions from a "normal" reference.  Where complications could arise would be if the remote itself already does orientation corrections internally.  If that's the case, then it may be difficult to predict how it reacts to different usage scenarios.

And as for the "jerk" comment, you'll probably find yourself in that camp once you get beyond the theory phase and start trying to do some actual integration into existing shells.  The camera hangs below the pcb in it's normal orientation, which makes it very unfriendly to mounting in any shell where the barrel is close to top of the gun, as most all of them are.  Not a game-ender for some shells, if you don't mind a little cutting of plastics, but if alternate orientations were possible to implement, it would open up a lot more possibilities for integration.  If not, it is what it is.
Howard_Casto:
Not sure what you aren't getting here.   There are three axis of motion, X, Y and Z.... if you put the pcb on it's side you just swapped X for Y and thus any code as to account for that.   Also each axis on a wiimote has different practical limits..... in theory acceleration is read the same on all three but in practice I believe Y axis has a slightly larger threshold than X.   These are issues that can be eliminated by simply putting the wiimote in the proper orientation.  I mean later on it would be something to look into but at the moment getting a working, accurate solution that others can replicate should be a priority.   

In other news I've started compiling a rather lengthy shopping list for this project.   I'll post it later this evening when I get a chance.   
Howard_Casto:
My leds and lenses came in today.   Hopefully I can get a test rig up and running tomorrow.   
RandyT:

--- Quote from: Howard_Casto on December 31, 2022, 12:17:07 pm ---Not sure what you aren't getting here.   There are three axis of motion, X, Y and Z.... if you put the pcb on it's side you just swapped X for Y and thus any code as to account for that.

--- End quote ---

I assure you that I get it just fine :)  That data needs to be processed, regardless of the "normal" orientation, so the PC can make sense of it.  Changing the orientation is simply changing the manner in which it is processed.  It's really no different than if I were to alter the code in a trackball interface to make the axes work whichever way I please so a trackball can be installed in a non-standard orientation.  It's all relative.

Now, if there are issues with the accelerometer in different orientations, which can't be accounted for with code, then yes, it's a non-starter.  But theoretically, based on how they work, it shouldn't care.

BTW, I actually found a way to get HOTD:Remake (and Big Buck Hunter: Arcade, and probably some other Steam games) to work with the mouse plugin.  But it's more of an odd hardware exploit than a fix, so it's not really useful, other than perhaps to help identify why these aren't working at the moment.  I sent the info to Fusselkroete to see if it means anything to him...

Howard_Casto:
Changing the subject gracefully.   Here's a rough list of stuff I want to buy to build some guns.... one set in the more standard pistol style and one in an overkill Operation Wolf/T2/Rev X style.

First off solenoids for the recoil.   Here's what I found for the big guns:

https://www.aliexpress.us/item/3256804442738525.html?spm=a2g0o.cart.0.0.b2ce38dacAUmqY&mp=1&gatewayAdapt=glo2usa&_randl_shipto=US

These are the replacement solenoids they sell for the Aliens Extermination guns.   They should be a good choice as they are relatively inexpensive and have been proven to work as a rapid-fire recoil in commercial guns.  I actually thought finding one for the bigger guns would be harder.   

This one should be a good choice for the smaller ones:

https://www.ebay.com/itm/273905080548?var=573757180845

Not used in any commercial guns but they are small enough to fit into the handle of most wiimote pistol shells with room left over for the trigger switch.   Originally, I thought a 12v version would be the way to go but since the alien coils are 24volts anyway, might as well go with the beefier ones.   

Speaking of 24 volts......

https://www.aliexpress.us/item/2251832731286018.html?spm=a2g0o.cart.0.0.b2ce38dacAUmqY&mp=1&gatewayAdapt=glo2usa&_randl_shipto=US

I'm thinking a cheap wall wart at 24v 5A should work fine.   Not sure if I should go with this or a more traditional power supply.   Ultimately, I'd like to be able to supply power to the wiimotes so maybe a different approach is in order.   

To trigger the coils I'm thinking something like this:

https://www.ebay.com/itm/225300679603?var=524280063022

This is one of those rare instances where I'm willing to pay a little extra for convenance.  Triggers by an avr's working voltage, it'll work active low for avrs and active high, in case you want to tap into the wiimotes outputs directly in a solderless solution, for under 3 bucks.   Yes please.   These are glorious times we live in for tinkerers.   


Now shells are obviously the problem.   For the pistols a wiimote shell will do for now.... I might fancy one up with some 3d-printed add-ons.   The big guns are a bit more challenging.  Seeing as how we need a great big machine gun to handle a bunch of buttons and a solenoid an Uzi seems like the logical choice.   You can find these NOS all over ebay.....

https://www.ebay.com/itm/374109263408

I figure it's a big plastic rectangle, so it'd be easy to mount a wiimote inside... just cut off the barrel, make the wiimote stick out a bit and then take some pipe and/or 3d print and over-sized barrel to go around the wiimote (or a decased pcb).   Hell the Operation Wolf series uses a very similar style of Uzi.  The only problem is I don't think these are full-sized.   There's a non-water gun version costume shops sell, but I don't think it's any bigger.   I've found some older toy Uzi's on ebay that seem to be a larger size, but they are hit and miss and it's hard to find a matching set.   Any help on this would greatly be appreciated.   I know gun regulations make it hard to find realistic toy guns these days but I find it hard to believe that here in 'merica somebody doesn't sell a fully accurate toy Uzi in blaze orange or something.   

Anyway, I'm just sharing as I go in case anyone wants to follow along.   As I find good buttons and ect I'll post them.   
Navigation
Message Index
Next page
Previous page

Go to full version