Main > Lightguns
SAMCO DIY Arduino Powered IR Light Gun
<< < (25/37) > >>
Owillingham:
Any schematics for including recoil on the Samco lightgun?  have parts on order to build the Samco gun, but would be nice to include recoil at the same time of building.
samco:
Hi, think I already answered this on facebook. But yeah, have schematics available on my GitHub (for ItsyBitsy but should be easy enough to adapt to other boards and can already change Pin assignments in code if you need to). Recoil is still a work in progress so no documentation yet.
Dam0:
SAMCO, after many months of leaving your 1.0 arduino kit on the shelf, i finally re-plugged the gun in and it works flawlessly....

so thanks for all your hard work, now to gather the light-gun games i got into a single frontend.

i "think" my issue in the end was i was standing too close buy about a good metre maybe more. so all up, for a 24" screen i recon id be 5-6 foot away from the screen for the cursor to operate properly.

i kinda thought on it a bit in hindsight, that after reading about some ppl using lenses on their gun4ir setups to reduce the focal length makes some sense .

anyhow, thanks for your hard work . very happy i waited this time, before i cracked a poopy pants
Prow:
I made an enhanced version of the SAMCO project. The enhancements are:

* Increased precision for maths and mouse pointer position
* Glitch-free DFRobot positioning (DFRobotIRPositionEx library)
* IR camera sensitivity adjustment (DFRobotIRPositionEx library)
* Optional averaging modes can be enabled to slightly reduce mouse position jitter
* Enhanced button debouncing and handling (LightgunButtons library)
* Modified AbsMouse to be a 5 button device (AbsMouse5 library)
* Multiple calibration profiles
* Save settings and calibration profiles to flash memory (SAMD) or EEPROM (ATmega32U4)
* Built in Processing mode for use with the SAMCO Processing sketch
Much of the code was re-worked but the positioning math calculation is all from SAMCO. It is fantastic how well this works!

One big change is with the button handling code that allows button combinations. For example, you can assign a button combination to enter pause mode that you will never press while playing a game so the reload button can be assigned a mouse button or key press.

The other big enhancement is the calibration profiles. I found myself sometimes wanting to play on my big screen TV and other times on my monitor. Combine that with 4:3 aspect ratio games requiring different calibration data, adding multiple profiles is an obvious solution. While the calibration procedure is simple, it's even faster to just press a button to select a profile.

Support for the ATmega32U4 boards was a bit of a last minute addition and not as well tested, but it should work (though I haven't tested saving to EEPROM).

The buttons in the sketch are configured for a SAMCO 2.0 GunCon 2 build. If your gun has different button pin assignments then you will have to modify the sketch.

You can get the source code from: https://github.com/Prow7/ir-light-gun
See the readme files on GitHub for more details.

Big thanks to Samco for this project. Your custom PCB made it super easy to mod a GunCon 2! Also thanks to Gustavo for his Apexel lens adapter models. A fantastic solution to the less than ideal narrow FOV that the camera has.
samco:
Wow, this is awesome Prow! I was hoping that a gun coder would get their hands on my code at some stage.

Haven't got a spare SAMD board to try it out yet but just looking through your code, I'm super impressed. Can't wait to try it out!

Cheers Sam(co)
Navigation
Message Index
Next page
Previous page

Go to full version