Main > Lightguns |
GUN4IR - The Ultimate 4 Points Lightgun System |
<< < (14/227) > >> |
JayBee:
--- Quote from: Mysli0210 on November 04, 2019, 07:10:18 am ---Well was gonna say that I would take a nunchuck apart. But then i found this https://create.arduino.cc/projecthub/infusion/using-a-wii-nunchuk-with-arduino-597254 So it speaks i2c at 3.3v just as the camera, which means that it can actually share the i/o pins as they have different adresses. Which is probably how the wiimote talks to it. So it'd be super easy to implement :-D Edit: btw reading 2 joystick axes (axis in plural ;-)) is super easy, just do 2 analog reads, as they are almost always constructed as potentiometers :-) --- End quote --- Wow that guys already did all the hard work, with that we can actually do it easily. I have an old after market nunchuck somewhere, I will give it a try when I have more time. You look like you know way more than me in electronic, would you like if I share the 4 leds sketch and schematics with you in private? I would really use some help on making it better, especially on the electronic side of things 😅 |
Zebra:
This guy seems to have done a lot of the work with guncon protocols. https://pyroesp.github.io/electronics/reverse%20engineering/playstation/2018/06/14/shooting-bad-guys-2.html I found it while searching for a Guncon 3 pinout diagram. His project seems to be writing the code to use a wii remote as a guncon or guncon 2. |
JayBee:
--- Quote from: Zebra on November 04, 2019, 10:27:55 am --- --- Quote from: JayBee on November 04, 2019, 06:31:50 am --- --- Quote from: Mysli0210 on November 04, 2019, 05:13:10 am ---Not really an answer to all of the above.. (quoting is hard on the phone) BUT JUST GOT AN AWESOME IDEA! What if we were to use the nunchuck for extra buttons for those controller which dont have a d-pad and such. Got the idea from watching metal Jesus play with the gcon 2. I think it would be possible to use the plug from the wiimote by desoldering it and making a custom pcb with ordinary pimheaders to attach to the pro-Micro... Or stm32 if i can get i2c working on it :-D --- End quote --- Yeah was thinking about that too, but decoding this communication protocol seems to be such a pain :lol And to be honest there aren't many games that support guns with dpad and all. The most convenient thing about it is being to scroll games menu with it. I guess we could also bypass the nunchuck board entirely and connect the buttons directly to the cable, but we would then need a way to read the joystick 2 axises too. --- End quote --- That's what I thought when I made my Time Crisis arcade guns into Guncon 2's but it was a big mistake. It's true that only a few guncon 2 games use the D-pad but a good number use it to navigate through the options menu. It was really annoying to have to keep unplugging the gcon to switch between Virtua Cop 1 and 2 on the Elite edition disc and I couldn't even access the menu system on Guncom 2. I put all my recoil hardware and the guncon 2 PCB in a wooden box. I ended up adding all the guncon buttons (beside the trigger) to the box and I put a joystick on the other side. My pedal also attached to the box. I suggest you do the same. You need every guncon 2 button and the d-pad unless you only want to play the Time Crisis games. Also, while you're looking at how to make the gun work on the PS2, there is a good number of rail shooters on the PS2 that currently have no gun support at all. They only allow you to use the analog stick. I am working on hooking up my positional arcade guns but you might be able to add an analog stick mode to your gun to make it work on games like Silent Scope, Combat Queen, Ghost Vibration and Operation Wolf (on the Taito legends disc). --- End quote --- What I did a while ago was to use an extra atmega Arduino I had (I buy them in pack), and put it inside an old arcade stick, to simulate a bunch of keyboard keys, which work in pretty much any app/emulator. It's perfect to put on the table in front of me, acting like an arcade panel. But I'm planning to do something even cooler for that (something with light buttons and mamehooker). Beside VCop elite edition, which game uses the dpad for menu? You can also use a psx/ps2 gamepad for those tho. Also, my lightgun firmware already has a joystick mode (hold A button + push calibration button). But it's not relative motion, it's absolute. It will work only with games that use absolute motion. There is no way around that sadly. |
hyo2012:
JayBee, Can you add analog input feature on firmware? 2 axis are ok. I have fixed analog arcade gun. I use it playing Let's go island, Terminator 2 arcade... etc. It has two potentiometer, x-axis and y-axis. No pcb inside. If analog inputs are supported, I can play both rail-shooter game which support analog gun and only support mouse input. And that gun has built in solenoid, your firmware has solenoid automatic recoil output, that make easy to setup. How great. |
JayBee:
--- Quote from: hyo2012 on November 04, 2019, 10:14:30 pm ---JayBee, Can you add analog input feature on firmware? 2 axis are ok. I have fixed analog arcade gun. I use it playing Let's go island, Terminator 2 arcade... etc. It has two potentiometer, x-axis and y-axis. No pcb inside. If analog inputs are supported, I can play both rail-shooter game which support analog gun and only support mouse input. And that gun has built in solenoid, your firmware has solenoid automatic recoil output, that make easy to setup. How great. --- End quote --- This kind of fixed gun tech has nothing to do with the IR cam tech we are using here, it would require a totally different firmware. |
Navigation |
Message Index |
Next page |
Previous page |