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 --- Bug Reports --- Site News

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

Poll

-- deleted poll --

-- deleted poll --
0 (0%)
-- deleted poll --
0 (0%)

Total Members Voted: 0

  

Author Topic: GUN4IR - The Ultimate 4 Points Lightgun System  (Read 242063 times)

0 Members and 1 Guest are viewing this topic.

sonik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 64
  • Last login:Today at 03:22:41 pm
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #960 on: February 24, 2022, 03:20:23 pm »
Has anyone used these IR leds.....if so, how are you powering them? I am pretty sure they require more power draw than a USB port typically puts out.

https://www.aliexpress.com/item/32869020004.html?spm=a2g0o.productlist.0.0.776e4e66KafRvT&algo_pvid=a744b281-a57a-46cf-803c-377b81a58b44&algo_exp_id=a744b281-a57a-46cf-803c-377b81a58b44-0&pdp_ext_f=%7B%22sku_id%22%3A%2266709189116%22%7D&pdp_pi=-1%3B9.86%3B-1%3B-1%40salePrice%3BUSD%3Bsearch-mainSearch

Thanks

I've bought some of those LEDs but I have not used them yet. Try asking in the discord server.

shinichi

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:March 13, 2022, 05:15:15 pm
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #961 on: March 08, 2022, 01:28:59 am »
Hello everyone

i have this problem when i start the JB_GUN4IR_GUI.exe

I have already flashed the arduino, but when I try to configure it, this window appears with this error and the gun is not detected. I built the camera with a wiimote



this is the error message

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.


************** Exception Text **************
System.InvalidOperationException: The port is closed.
   at System.IO.Ports.SerialPort.Write(String text)
   at System.IO.Ports.SerialPort.WriteLine(String text)
   at JB_GUN4IR_GUI.MainGUI.getEepData(SerialPort _serialPort, Int32 addr, Int32& eepData)
   at JB_GUN4IR_GUI.MainGUI.detectArd(Boolean clear, Boolean nbr, String[,] boardList, String name, String board, Boolean isSerial)
   at JB_GUN4IR_GUI.MainGUI.detectGuns()
   at JB_GUN4IR_GUI.MainGUI.detectBut_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
JB_GUN4IR_GUI
    Assembly Version: 1.22.0.0
    Win32 Version: 1.22.0.0
    CodeBase: file:///C:/Users/Shin/Documents/proyectos/JB%20GUN4%20IRmanual%20de%20usuario%20v%201.2%20Ingles%20y%20Espa%C3%B1ol/JB_GUN4IR_GUI_1.26_FW_2.64/JB_GUN4IR_GUI.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4488.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4488.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

--------------------------------------------------------------------------------

Thank you very much to those who want to help me with this error



will1384

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:April 29, 2022, 02:23:25 am
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #962 on: March 14, 2022, 04:06:50 pm »
I started off with a SAMCO modified GUNCON 2 gun, but decided to go with GUN4IR, I used a jewelers saw to cut the pin headers that I had used to connect the Adafruit ItsyBitsy to the SAMCO board, I then used a de-soldering gun to remove the pin headers from both the Adafruit ItsyBitsy and the SAMCO board, I found some nice ribbon wire with a bunch of different colors and cut it to about three inches in length or about 76mm, I made up a "cheat sheet" that showed me the pin-out of the SAMCO board and the GUN4IR Pro Micro, then I just wired the GUN4IR Pro Micro to the SAMCO board using the ribbon wire, I then hot glued all the wire in place to keep them from breaking off at the solder joint, it works well, something to remember, the SAMCO (reload) is the GUN4IR (pedal) and the GUN4IR (calibration) is the SAMCO (pedal), kinda confusing, I added a small momentary contact button to the GUNCON 2 to act has the GUN4IR (calibration), the small button is wired to the SAMCO (pedal) pads, BTW I found a nice 3D printed part to connect a cheap phone fisheye lens to the IR sensor, it was made for the GUNCON45 but seems to work just fine on the GUNCON2, the file is over at:

https://arcadeforever.forumfree.it/?t=78234617&st=255


vk123

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:April 06, 2022, 05:50:48 am
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #963 on: April 04, 2022, 10:02:49 am »
Hi,

I am unable to donate with the link given , it says donation isn't supported from my country (india).

Could you help me out with this please.


jimbone007

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:April 21, 2022, 11:48:37 pm
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #964 on: April 10, 2022, 02:10:31 pm »
Are there any tutorials for setting up gun4ir with most emulators/roms in launchbox? Im having a hell of a time getting these guns to work and its becoming very time consuming. Also do I need to have buttons on my guns? Can I map the buttons to my keyboard until I get my actual arcade set up built? a couple games I'm trying require in game calibration of guncons (ps2) and tell you to hit a to finish but I can't figure out how to map a to my keyboard.

krayon

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:May 27, 2022, 12:22:23 pm
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #965 on: May 27, 2022, 09:47:13 am »
@JayBee,

Great project - especially for those in Countries that don't allow even imitation guns to be sent in the mail like Australia :censored: I've been wanting guns for years and this may indeed be an option.

Just FYI, given that your firmware is based on https://github.com/samuelballantyne , in some countries you are likely legally required to provide the source code and/or have a license with the original author in order to distribute. Having said that, I'm not a Lawyer :P

nightkiller05

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:June 01, 2022, 11:17:20 am
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #966 on: May 30, 2022, 11:03:15 am »
Hi guys, żis this project private? I mean, do I need to donate in order to access to the manual and/or firmware? I don't see any of these in the first post

mosios

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:Yesterday at 08:17:52 am
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #967 on: June 02, 2022, 10:55:45 am »
Hello everyone

i have this problem when i start the JB_GUN4IR_GUI.exe

I have already flashed the arduino, but when I try to configure it, this window appears with this error and the gun is not detected. I built the camera with a wiimote



this is the error message

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.


************** Exception Text **************
System.InvalidOperationException: The port is closed.
   at System.IO.Ports.SerialPort.Write(String text)
   at System.IO.Ports.SerialPort.WriteLine(String text)
   at JB_GUN4IR_GUI.MainGUI.getEepData(SerialPort _serialPort, Int32 addr, Int32& eepData)
   at JB_GUN4IR_GUI.MainGUI.detectArd(Boolean clear, Boolean nbr, String[,] boardList, String name, String board, Boolean isSerial)
   at JB_GUN4IR_GUI.MainGUI.detectGuns()
   at JB_GUN4IR_GUI.MainGUI.detectBut_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
JB_GUN4IR_GUI
    Assembly Version: 1.22.0.0
    Win32 Version: 1.22.0.0
    CodeBase: file:///C:/Users/Shin/Documents/proyectos/JB%20GUN4%20IRmanual%20de%20usuario%20v%201.2%20Ingles%20y%20Espa%C3%B1ol/JB_GUN4IR_GUI_1.26_FW_2.64/JB_GUN4IR_GUI.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4488.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4488.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

--------------------------------------------------------------------------------

Thank you very much to those who want to help me with this error

Are you using the Wiimote IR camera or DFrobot SEN0158? If it is the former, then it could be your connections on the IR camera is wrong.

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 454
  • Last login:June 26, 2022, 08:49:28 am
  • I it ain't good, I'll make it good.
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #968 on: June 03, 2022, 07:02:27 am »
@JayBee,

Great project - especially for those in Countries that don't allow even imitation guns to be sent in the mail like Australia :censored: I've been wanting guns for years and this may indeed be an option.

Just FYI, given that your firmware is based on https://github.com/samuelballantyne , in some countries you are likely legally required to provide the source code and/or have a license with the original author in order to distribute. Having said that, I'm not a Lawyer :P
The project is in no way based on samco system.
If I was using his source code, 4 points like I do wouldn't be even be possible.
Sam did an awesome job with his original project, but making a working 4 leds system like mine was a novelty at the time.
But good attempt to try getting my source code.
« Last Edit: June 03, 2022, 10:18:39 am by JayBee »

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 454
  • Last login:June 26, 2022, 08:49:28 am
  • I it ain't good, I'll make it good.
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #969 on: June 03, 2022, 07:22:20 am »
Are you using the Wiimote IR camera or DFrobot SEN0158? If it is the former, then it could be your connections on the IR camera is wrong.
Indeed it sounds like a communication problem with the cam.

saint

  • turned to the Dark Side
  • Supreme Chancellor
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6124
  • Last login:June 29, 2022, 06:15:00 pm
  • I only work in cyberspace...
    • Build Your Own Arcade Controls
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #970 on: June 03, 2022, 07:57:42 pm »
--- John St.Clair
     Build Your Own Arcade Controls FAQ
     http://www.arcadecontrols.com/
     Project Arcade 2!
     http://www.projectarcade2.com/
     saint@arcadecontrols.com

apalomares

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:June 16, 2022, 08:56:13 pm
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #971 on: June 16, 2022, 08:50:35 pm »
I've got a spare DFRobot SEN0158 camera if anyone needs one. £25 + UK postage. Just message if you'd like it.

Hi.

Would you still have the ir camera?

mptrs

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:June 20, 2022, 07:58:10 am
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #972 on: June 20, 2022, 07:57:53 am »
Looks like all the IR sensors are sold out until end of July?

If anyone is looking for an Innovation Super Jolt Gun, I have 2 for sale. Still sealed guns, let me know if you are interested.

Sold from Europe, but I should be able to send them anywhere  ;D

Ugo

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:June 28, 2022, 06:42:36 pm
  • I want to build my own arcade controls!
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #973 on: June 20, 2022, 12:44:36 pm »
Yea sucks. There's a Worldwide shortage in a lot of parts.
Question: How do you feel about Gyroscope-Aiming?
Gyroscope-Aiming is a lightgun that detects the movements of your hands to properly place the cursor on the screen. No IR LEDs or Sensors needed.

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 454
  • Last login:June 26, 2022, 08:49:28 am
  • I it ain't good, I'll make it good.
Re: GUN4IR - The Ultimate 4 Points Lightgun System
« Reply #974 on: June 26, 2022, 08:47:11 am »
Yea sucks. There's a Worldwide shortage in a lot of parts.
Question: How do you feel about Gyroscope-Aiming?
Gyroscope-Aiming is a lightgun that detects the movements of your hands to properly place the cursor on the screen. No IR LEDs or Sensors needed.
Gyro aiming have awful drift and literally stops being accurate few seconds of playing after calibration, even on recent hardware.
Just check the gyro on recent gaming consoles, they need to be recentered all the time.
The reason why we use IR is because it's the only tech that allow to have precise and stable points of reference.