Main > Lightguns
SAMCO DIY Arduino Powered IR Light Gun
<< < (24/37) > >>
tomton:
Camera is definitely facing correct way up and cursor follows gun movement left/right/up/down but I can't get it to screen corners to calibrate. If I just calibrate it with area that is accessible it then works fine in small "window" on screen and once I move out of this "window" cursor just jumps randomly all over the place. I'm guessing this is because it's not calibrated correctly.

I will give it another go tonight.
killthefreeman:
Hi Samco,
First, i would like to thank you for your project.
I just wanted to know if it is possible to use the gun in flycast (within retroarch) with house of the dead 2?
Thanks.
samco:
@tomton, sorry again for the late reply. How did you go? Maybe try and calibrate from a bit further back you want be about 2 /12 screen widths back for the 2 led sketch and 1 1/2 for the 4 led sketch.

@killthefreeman Thanks man :) I haven't tested that emulator myself but I have seen videos of people using it with an AimTrak which works in similar way so if you can find a guide for AimTrak you should be able to get it going. I'll try and do a test when I get some spare time.
tomton:
Thanks for all the help guys! I've got it working now  :)
I have used test sketch to align IR camera perfectly and then moved further back to calibrate.
It works fine but because it doesn't like dual monitor setup I will not be adding it to my MAME cabinet (I have main display and marquee monitor connected).
If i was to add it I would look into adding an LED to indicate when the gun is active or when it is in calibration mode.

EDIT:
I was just looking at your code and was wondering if it would be possible to define light gun calibration/work area independently to screen/desktop resolution.
For example i have 2x 1920x1080 monitors side by side which makes my desktop 3840x1080 but all emulators I use utilize only one screen so would it be possible to limit light gun to only work on one monitor by somehow offsetting/limiting it?
samco:
Hi Guys, just a quick update for anyone out there still using a SAMCO. Have just updated my code to have saved calibration & increased acuuracy. Get out the my new vid...

Navigation
Message Index
Next page
Previous page

Go to full version