Main > Lightguns

GUN4IR - The Ultimate 4 Points Lightgun System

<< < (193/195) > >>


--- Quote from: rbarr110 on February 23, 2022, 06:18: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.


--- End quote ---

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

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 **************
    Assembly Version:
    Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    Assembly Version:
    Win32 Version:
    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
    Assembly Version:
    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
    Assembly Version:
    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
    Assembly Version:
    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
    Assembly Version:
    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
    Assembly Version:
    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
    Assembly Version:
    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 section.
The application must also be compiled with debugging

For example:

    < jitDebugging="true" />

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

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:


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.

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.


[0] Message Index

[#] Next page

[*] Previous page

Go to full version