Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System  (Read 14067 times)

0 Members and 1 Guest are viewing this topic.

ThatOneSeong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 88
  • Last login:November 05, 2024, 11:34:44 pm
  • Just your average Seong.
    • Twitter
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #40 on: April 26, 2024, 08:29:26 pm »
So, I'm having an issue where it doesn't seem to be working properly unless I open the GUI then select the port, unselect it, then reselect it. It pops up with an error about the data not being received in time but it will operate fine until I close the error box. I'm on the latest version. Any ideas?
You would be the first to run into such an issue without the app having crashed. Is it the latest versions of both halves? OS/version?

Matuca1849

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:November 07, 2024, 08:33:44 am
  • I want to build my own arcade controls!
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #41 on: April 26, 2024, 09:08:50 pm »
So, I'm having an issue where it doesn't seem to be working properly unless I open the GUI then select the port, unselect it, then reselect it. It pops up with an error about the data not being received in time but it will operate fine until I close the error box. I'm on the latest version. Any ideas?
You would be the first to run into such an issue without the app having crashed. Is it the latest versions of both halves? OS/version?
I believe so but I will double check to be sure. I did make an edit to my previous post about not having the trigger and pump wired through the pico board, so I think that may have something to do with it as well. I'll get those wired up tomorrow and report back. They are mapped to the right and left mouse button through a third party app.

ThatOneSeong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 88
  • Last login:November 05, 2024, 11:34:44 pm
  • Just your average Seong.
    • Twitter
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #42 on: April 26, 2024, 09:13:07 pm »
So, I'm having an issue where it doesn't seem to be working properly unless I open the GUI then select the port, unselect it, then reselect it. It pops up with an error about the data not being received in time but it will operate fine until I close the error box. I'm on the latest version. Any ideas?
You would be the first to run into such an issue without the app having crashed. Is it the latest versions of both halves? OS/version?
I believe so but I will double check to be sure. I did make an edit to my previous post about not having the trigger and pump wired through the pico board, so I think that may have something to do with it as well. I'll get those wired up tomorrow and report back. They are mapped to the right and left mouse button through a third party app.
I'm sorry, I don't think I understand--what exactly is the context that you're using this in? What gun is this being plugged into?

I'm a bit confused by it all. That said, I don't recall buttons not being hooked up to be the cause?

Matuca1849

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:November 07, 2024, 08:33:44 am
  • I want to build my own arcade controls!
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #43 on: April 26, 2024, 09:36:00 pm »
So, I'm having an issue where it doesn't seem to be working properly unless I open the GUI then select the port, unselect it, then reselect it. It pops up with an error about the data not being received in time but it will operate fine until I close the error box. I'm on the latest version. Any ideas?
You would be the first to run into such an issue without the app having crashed. Is it the latest versions of both halves? OS/version?
I believe so but I will double check to be sure. I did make an edit to my previous post about not having the trigger and pump wired through the pico board, so I think that may have something to do with it as well. I'll get those wired up tomorrow and report back. They are mapped to the right and left mouse button through a third party app.
I'm sorry, I don't think I understand--what exactly is the context that you're using this in? What gun is this being plugged into?

I'm a bit confused by it all. That said, I don't recall buttons not being hooked up to be the cause?

Sorry, I should have given much more context.

So I have the xbox 360 version of the top shot elite rifle which I am adding the IR camera via a pi pico2040 so I can use it for shooters in various emulators on my windows 10 PC. I'm currently using RE:Umbrella chronicles on the Dolphin emulator for all me testing. Since I can't use 2 seperate input devices as a single controller, I'm using a program that maps the xbox buttons to the keyboard and was using the IR as basically just the mouse pointer.

The only thing wired up to to the pico currently is the IR camera and none of the other buttons.

I believe this may be where the issue is as when I run the first time config on the GUI it is asking to use the trigger button to initiate it. So since the trigger isn't wired up through the pico and instead mapped to the mouse as an xbox button, I think it's causing the issue.

ThatOneSeong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 88
  • Last login:November 05, 2024, 11:34:44 pm
  • Just your average Seong.
    • Twitter
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #44 on: April 26, 2024, 10:19:23 pm »
So, I'm having an issue where it doesn't seem to be working properly unless I open the GUI then select the port, unselect it, then reselect it. It pops up with an error about the data not being received in time but it will operate fine until I close the error box. I'm on the latest version. Any ideas?
You would be the first to run into such an issue without the app having crashed. Is it the latest versions of both halves? OS/version?
I believe so but I will double check to be sure. I did make an edit to my previous post about not having the trigger and pump wired through the pico board, so I think that may have something to do with it as well. I'll get those wired up tomorrow and report back. They are mapped to the right and left mouse button through a third party app.
I'm sorry, I don't think I understand--what exactly is the context that you're using this in? What gun is this being plugged into?

I'm a bit confused by it all. That said, I don't recall buttons not being hooked up to be the cause?

Sorry, I should have given much more context.

So I have the xbox 360 version of the top shot elite rifle which I am adding the IR camera via a pi pico2040 so I can use it for shooters in various emulators on my windows 10 PC. I'm currently using RE:Umbrella chronicles on the Dolphin emulator for all me testing. Since I can't use 2 seperate input devices as a single controller, I'm using a program that maps the xbox buttons to the keyboard and was using the IR as basically just the mouse pointer.

The only thing wired up to to the pico currently is the IR camera and none of the other buttons.

I believe this may be where the issue is as when I run the first time config on the GUI it is asking to use the trigger button to initiate it. So since the trigger isn't wired up through the pico and instead mapped to the mouse as an xbox button, I think it's causing the issue.
OOooooooooooh! I see!

That's quite the setup you got going on there! Huh.

Yeah, you kind of need a trigger to actually do much of anything, unfortunately! It is made to be used with all the controller's inputs hooked up to it, not in conjunction with another device. The issue here is that the app sends a docking request to the gun, and the gun sends its system information back to the app before syncing all the rest of its settings that gets reflected in the UI (it does this several times, in fact!). The problem here then is that when the device first boots without any saved preferences, it sends a message through the serial port that says "Preferences data is empty! Pull the trigger to start your first calibration!", which is a message intended for debugging but wasn't something I noticed to be a problem in production. It looks like something fucky wucky was going on that caused an issue.

You said that you got a "data wasn't received in time" error, but the exact wording of the error popup means a lot - since you said that everything beneath the error popup "was fine until I close the error box", then it happened after you could see a board picture, right?

If the worry is having to use only one type of input device, you could try and simply use it in Gamepad output mode - that way, all inputs (and the camera) goes through the gamepad output, rather than through the keyboard/mouse devices. That said, from what I've tried at least on Linux, Dolphin has a bit of trouble differentiating similarly-named analog axis (so Axis 0/1 for example are shared between the Mouse and Gamepad, for some bizarre reason). It might be an issue worth considering sending over to them, since I haven't had such issues with any other emulator/app like that.

Matuca1849

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:November 07, 2024, 08:33:44 am
  • I want to build my own arcade controls!
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #45 on: April 27, 2024, 08:57:19 pm »
As promised, I am reporting back with my findings.

The solution was simple, I just broke the wire for the trigger and wired it to the Xbox controller board and the Pico at the same time.
The program I'm using to map the rest of the Keys is called "Controller Companion" on Steam, I highly recommend it, it's only three bucks and allows mapping either overall or on a per program basis.

Matuca1849

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:November 07, 2024, 08:33:44 am
  • I want to build my own arcade controls!
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #46 on: April 27, 2024, 09:07:18 pm »
I do have one more question. Can this be used with the WiFi/BT version of the Pico so I don't need to use the USB?

ThatOneSeong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 88
  • Last login:November 05, 2024, 11:34:44 pm
  • Just your average Seong.
    • Twitter
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #47 on: April 28, 2024, 02:36:15 pm »
I do have one more question. Can this be used with the WiFi/BT version of the Pico so I don't need to use the USB?
Pico W wireless support isn't on the roadmap, given Bluetooth can be very hit or miss depending on the environment. It also wouldn't allow any Solenoid support.

ThatOneSeong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 88
  • Last login:November 05, 2024, 11:34:44 pm
  • Just your average Seong.
    • Twitter
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #48 on: May 13, 2024, 11:09:05 am »
"Gee, Seong," you probably weren't asking, "you haven't been doing a lot of updates lately."

I think you'll see where it is I've been this whole time:
https://www.youtube.com/watch?v=aE9a-fsnMwU

 :)

Cruiselim

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:November 09, 2024, 10:16:32 am
  • I want to build my own arcade controls!
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #49 on: November 03, 2024, 11:35:36 pm »
Hi all! I just gotten a samco 1.1 board + rp2040, should I be using gun4all repo or prow7 repo for enhanced lightgun experience?
Doe either of this support guncon1?

TapeWormInYourGut

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 140
  • Last login:Yesterday at 11:22:48 pm
  • I want to build my own arcade controls!
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #50 on: November 05, 2024, 11:11:13 pm »
May want to check this topic out:
https://forum.arcadecontrols.com/index.php/topic,168635.0.html

You'll likely want to use this since it has replaced GUN4ALL and is based on prow.
https://github.com/TeamOpenFIRE/OpenFIRE-Firmware

ThatOneSeong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 88
  • Last login:November 05, 2024, 11:34:44 pm
  • Just your average Seong.
    • Twitter
Re: IR-GUN4ALL - Enhanced Arduino-powered DIY 4-Point IR Lightgun System
« Reply #51 on: November 05, 2024, 11:34:45 pm »
May want to check this topic out:
https://forum.arcadecontrols.com/index.php/topic,168635.0.html

You'll likely want to use this since it has replaced GUN4ALL and is based on prow.
https://github.com/TeamOpenFIRE/OpenFIRE-Firmware
Both are based on Prow; OpenFIRE is the updated version that should be used.