Main > Lightguns
SAMCO DIY Arduino Powered IR Light Gun
<< < (33/37) > >>
samco:
@scratcher no problem mate. The easiest way is to just reallocate those pins. So find the bit in the code that looks like this and swap the values around like this...

int _tiggerPin = 7;               // Label Pin to buttons
int _upPin = 11;               
int _downPin = 13;             
int _leftPin = 10;             
int _rightPin = 12;               
int _APin = A1;               
int _BPin = A0;             
int _startPin = A2;
int _selectPin = A3;               
int _reloadPin = 9;
int _pedalPin = 5;   

That will swap those function around. i.e down is now calibration and the old calibration button is now down.
ThatOneSeong:
Long time no see, everyone!
Weird to think this has been going for two/three years, but I'm still maining Prow's fork with no issues* on Linux. FWIW, I've made a small modification to allow setting the gun to pause mode with a key combination so I can use C as Mouse Thumb 1/Mouse4, what with the recent merging of PCSX2 GunCon2 support for all platforms.
In case anyone's interested in following along, to change Pause mode to a combination of C + Select, change line 178/179 to:
--- Code: ---// button combo to enter pause mode
constexpr uint32_t EnterPauseModeBtnMask = BtnMask_Reload | BtnMask_Select;
--- End code ---
I'd make a pull request but I wasn't sure how many people would want to change this behavior.

*Actually there is a problem, but not from the gun or the software itself. I'm starting to realize that the cheap sensor bars I've been buying have a bad habit of dimming over time. Because of this, I've been tempted to buy RPEG's high-power black LEDs used for GUN4IR, and just arranging them in the same orientation as a top/bottom Wii lightbar, but maybe this is a bit extreme? I've tried looking into other Wii USB lightbars, but they all look exactly the same; having three leds on either side instead of five, and a tendency to dim over a period of time. I've also looked into the wireless options like the Power A Ultrabar, but not only would I be wasting batteries but getting a pair would be about as expensive as buying the kit from RPEG. And buying bulk lots of the cheap bars seems even more wasteful (not to mention a hassle of switching them out every so often). I could perhaps take some legit OEM Wii sensor bars and mangle them to work off USB/another non-Wii centric power source, but that seems messy. Are some knockoff Wii sensor bar brands better than others, maybe?
I'm just not sure. Has anyone else ran into this issue? Mayhaps some of the Lichtknarre 2LED users can chime in here? I'm just trying to figure the best way of doing this, as I do plan on making potential videos about PC Light Guns and will probably highlight Samco in the process (mayhaps alongside Gun4IR? Not sure), so I'd like to know what exactly to recommend/what the common consensus is for my own research.
famichiki:
I've bought Sam's PCB and am trying to figure out which board to go with out of the ItsyBitsy 32u4, M0 or M4.

Disregarding the ability to save the calibration and putting cost aside, why not choose the M0 or M4? The price isn't much more and they appear substantially faster on paper. Is there anything to be aware of with the ARM processors?

Do both the 3v and 5v 32u4 comfortably run with additional processor headroom for custom tweaks to the code, such as adding recoil solenoids etc? Or are they already maxxed out handling the tracking? I have a few ideas I want to incorporate.

Also, is there any more overhead for running the 4IR code vs the 2IR?
samco:
Hi Mate, I've found the 32u4 3V can seem to run a tiny bit slightly slower than than the 5V but no noticeable difference to M0 or M4 (I assume because it can only run as fast as the camera can update the points but haven't done any testing on this). There is still a bit of flash space (about 7kb) on the 32u4 using the 4IR sketch (which is heaver) to to add to sketch if you wanted to. I prefer using the 324 5V because I like how it saves to eeprom. Like I said haven't done any actual tests so if anyone has I be interested in the results?
dabone:
I ordered and built to samco gc2 boards using the ItsyBitsy 32u4-5V, and I've tried both firmwares, but here's a easy question.

Where should the LEDs be mounted?

The gun IR wants them placed on the middle of the top/bottom and sides.

Where should the LEDS be placed for the samco firmwares? I'm running the 4 led config, using 3 SFH 4547 LEDs per led position.

Thanks.
Navigation
Message Index
Next page
Previous page

Go to full version