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

02/19 I will add RGB led support soon, I need for that to use 3 arduino PWM pins, which are currently being used by Pedal, Start & Right. I will do 2 firmwares, one with 11 buttons, and one with 8 button+led. How should they behave?

Leave the button pins as it is now, and disable the pedal, start and dpad right buttons when the RGB led is active
0 (0%)
Swap the pedal and start pins with some of the DPad ones, and disable only the DPAD when the RGB led is active
2 (50%)
Other (post a message to tell me what you think).
2 (50%)

Total Members Voted: 4

  

Author Topic: JayBee DIY 4 IR Led Lightgun System (no calibration needed)  (Read 46099 times)

0 Members and 2 Guests are viewing this topic.

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #280 on: February 11, 2020, 01:49:55 pm »
To be honest, when i had the issues i didn't intentionally cause them, it just happened during gaming.
As for the new IR test, any chance of having a regular firmware to try while gaming?
As with murphy's law, in the ir test things seem to be ok, but i can't know for sure until i can challenge the gun with actual gaming.
Edit: Scratch that, still having issues.
Gonna post a video soon.
« Last Edit: February 11, 2020, 01:54:33 pm by Foxhole »

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #281 on: February 11, 2020, 02:07:16 pm »
Unfortunately i kinda messed up with the phone's camera but the important part is near the end, and you'll be able to see the cursor messing up.
Video: https://drive.google.com/open?id=1zWEkAIouOJjYLIhZeE1PaEPkSsSMsr9-

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #282 on: February 11, 2020, 02:17:55 pm »
To be honest, when i had the issues i didn't intentionally cause them, it just happened during gaming.
As for the new IR test, any chance of having a regular firmware to try while gaming?
As with murphy's law, in the ir test things seem to be ok, but i can't know for sure until i can challenge the gun with actual gaming.
Edit: Scratch that, still having issues.
Gonna post a video soon.
Damn, sad you still have issues... but don't lose hope, it's a work in progress but I'm sure with your guys help we will make it work in the end  :lol :cheers:
I appreciate that you take time to do those test, it's useful to figure out the causes of the issues.
What are the issues you're having now? still the same?
I attached the non test firmware, you will have to rename it.
The small fix I did on it is a small fix like putting tape an a leak, so don't expect much.
I already found another way I can improve greatly the 2 points detection and fixing the 3 points one, but I will have to do that tomorrow!

--------------
By the way guys, I was thinking that since I spend pretty much all my free time in this project, would it seems to you like a clever idea to do a patreon?
Leave the firmware and basic tools for free, and give to my patreon sub access to my upcoming configuration/customize and testing tool for the lightgun, and my other custom arduino arcade projects (Arcade stick and leds controller with arduino).
« Last Edit: May 07, 2020, 09:13:18 am by JayBee »

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #283 on: February 11, 2020, 02:24:13 pm »
Unfortunately i kinda messed up with the phone's camera but the important part is near the end, and you'll be able to see the cursor messing up.
Video: https://drive.google.com/open?id=1zWEkAIouOJjYLIhZeE1PaEPkSsSMsr9-
Yeah that's what I was talking about, the 2 points detection got messed up, then messed up the rest.
Will correct that tomorrow and hope for the best!  :afro:

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #284 on: February 11, 2020, 02:30:35 pm »
Thank you.
As for the patreon, to be honest never used it but others may be on board.
Personally, i just prefer donating without any middleman.

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #285 on: February 11, 2020, 02:36:20 pm »
Thank you.
As for the patreon, to be honest never used it but others may be on board.
Personally, i just prefer donating without any middleman.
That's interesting, do you know any good way to make donations?

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #286 on: February 11, 2020, 02:38:13 pm »
Well, just plain old paypal.
That's how i donated throughout the years.

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #287 on: February 11, 2020, 02:39:54 pm »
Haha yeah I forgot you could donate with PayPal!
I will try that.  :cheers:

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #288 on: February 11, 2020, 03:05:17 pm »
Edit: I just modified it to fit 640x480, and while I was at it I did another version for 1024x240  :lol
You will find them in the zip attached to this post

Sorry I forgot that the windows resolution is not 1024x240 but 1024x480: D

the 2 LEDs are seen almost superimposed and I think that's how it should be, by tilting the gun, however, they divide and widen if point downwards there is a black point that moves and then the movements are reversed, that is, if point in top the LEDs move downwards etc. and the central white point seems to be decentralized on the right and the colored LEDs too far from the sides
https://photos.app.goo.gl/jFTm9qQSpsoyB2Xb6
« Last Edit: February 11, 2020, 03:18:55 pm by kill_one »

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #289 on: February 11, 2020, 03:48:29 pm »
https://photos.app.goo.gl/bUEDRdhdgwJJy2rT9


but the black dots indicate that there is a problem with the detection of the leds?
« Last Edit: February 11, 2020, 04:39:22 pm by kill_one »

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #290 on: February 11, 2020, 04:08:41 pm »
I'm still not an electronic specialist, but if I was you I would start powering them with a couple of AA batteries (so a total of 3~3.3V) to check how well they turn.
And then try with a 5V power to see if they seem to turn faster/too fast.
Motors have quite a good tolerance for over voltage usually, so it shouldn't blow up or anything.
If it's USB there is a big chance it's 5V tho, 3V ones are more likely to be smaller than that and be in wireless controllers.
There are even motors that work with 7~9V in the PS2 Dual shock controllers, but they are turning a bit slow and weak with the arduino :lol

you are certainly more experienced than me ...: D

3v
https://photos.app.goo.gl/JJTsMyCCysG7KhtG6

5v
https://photos.app.goo.gl/PH7Vb4YhUWR5b7jbA

it seems that at 5v it is much faster ... does this mean that it must go to 5v or that it is in overvoltage and therefore it turns faster?

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #291 on: February 11, 2020, 08:21:14 pm »
Sorry I forgot that the windows resolution is not 1024x240 but 1024x480: D

the 2 LEDs are seen almost superimposed and I think that's how it should be, by tilting the gun, however, they divide and widen if point downwards there is a black point that moves and then the movements are reversed, that is, if point in top the LEDs move downwards etc. and the central white point seems to be decentralized on the right and the colored LEDs too far from the sides
https://photos.app.goo.gl/jFTm9qQSpsoyB2Xb6
It's a normal behavior, it doesn't see 2 LEDs for each of the 4 points(the maximum LEDs this cam can pick up is 4)
The duplicated slightly grayish ones you can see are not real LED points, they are only there to show the result of the tilt correction made by the firmware.
So they should always stay horizontal.
It's just a way of checking if everything is working normally;
Their position doesn't matter, but if those start being twisted of flipped, then is something wrong.
https://photos.app.goo.gl/bUEDRdhdgwJJy2rT9


but the black dots indicate that there is a problem with the detection of the leds?
Not necessarily, it just means the system can see it, but doesn't know which of the 4 LEDs it is yet (Top, bottom, left, right).
It's normal when seeing only one led after aiming offrange.

But I just realized something funny: your gun is clearly picking up the scrolling light under your cab, and it messes with it  :laugh2:
I'm still not an electronic specialist, but if I was you I would start powering them with a couple of AA batteries (so a total of 3~3.3V) to check how well they turn.
And then try with a 5V power to see if they seem to turn faster/too fast.
Motors have quite a good tolerance for over voltage usually, so it shouldn't blow up or anything.
If it's USB there is a big chance it's 5V tho, 3V ones are more likely to be smaller than that and be in wireless controllers.
There are even motors that work with 7~9V in the PS2 Dual shock controllers, but they are turning a bit slow and weak with the arduino :lol

you are certainly more experienced than me ...: D

3v
https://photos.app.goo.gl/JJTsMyCCysG7KhtG6

5v
https://photos.app.goo.gl/PH7Vb4YhUWR5b7jbA

it seems that at 5v it is much faster ... does this mean that it must go to 5v or that it is in overvoltage and therefore it turns faster?

Yeah the 5v looks correct for me.
Well I think the worse that can happen is frying the motor, nothing much worse (I guess  :lol)
But again, if someone better than me at electronics can confirm that to you that would be better ;)
« Last Edit: February 11, 2020, 08:28:18 pm by JayBee »

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #292 on: February 11, 2020, 08:56:43 pm »
Yeah the 5v looks correct for me.
Well I think the worse that can happen is frying the motor, nothing much worse (I guess  :lol)
But again, if someone better than me at electronics can confirm that to you that would be better ;)

In the biogun xbox I identified an LM3940IT ic which from what I read is a Low Dropout Regulator for 5V to 3.3V Conversion so I believe that the motors in these guns are 3v can I use this between the 5v of the arduino and the rumble to reduce the voltage?




kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #293 on: February 11, 2020, 09:02:03 pm »
But I just realized something funny: your gun is clearly picking up the scrolling light under your cab, and it messes with it  :laugh2:

I tested the 1.66 firmware and I must say that it is almost perfect for me apart that sometimes the cursor now ends and remains hooked to the bottom side of the screen ... Could it be the lights that drive the cam ir crazy ???

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #294 on: February 11, 2020, 09:17:56 pm »
In the biogun xbox I identified an LM3940IT ic which from what I read is a Low Dropout Regulator for 5V to 3.3V Conversion so I believe that the motors in these guns are 3v can I use this between the 5v of the arduino and the rumble to reduce the voltage?
If it looks like it's rated for 3V, you could use a small 5v->3v converter and connect it to the arduino 5v vcc, it should work fine.
Do you have a breadboard to do the tests?
I tested the 1.66 firmware and I must say that it is almost perfect for me apart that sometimes the cursor now ends and remains hooked to the bottom side of the screen ... Could it be the lights that drive the cam ir crazy ???
It most likely is from what I could see in your last video  :lol
Try testing the gun with the light off, or something blocking it completely.

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #295 on: February 12, 2020, 03:38:37 am »
If it looks like it's rated for 3V, you could use a small 5v->3v converter and connect it to the arduino 5v vcc, it should work fine.
Do you have a breadboard to do the tests?

breadboard no but i'm have veroboard base, however in practice it would be enough for me to connect:




rumble + to pin1
rumble - to pin2
Motor- to pin 2
Motor + to pin 3

to reduce the voltage to 3.3v, is it correct?

And regarding the solenoid, I have two only two blue cables, since it is not specified it has a positive and negative pole or is it indifferent how do I connect them to the circuit? Can I power the solenoid directly to 24v to test it without the circuit?

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #296 on: February 12, 2020, 03:48:05 am »
rumble + to pin1
rumble - to pin2
Motor- to pin 2
Motor + to pin 3

to reduce the voltage to 3.3v, is it correct?
Sorry I have no idea, I don't know this type of component so much  :P
And regarding the solenoid, I have two only two blue cables, since it is not specified it has a positive and negative pole or is it indifferent how do I connect them to the circuit? Can I power the solenoid directly to 24v to test it without the circuit?
I have one with 2 blue cables too, and it looks like there are no polarity, it probably contains a diode bridge of some sort.
For the test yeah you can power it directly, but be very careful tho, don't shock yourself, and don't leave the solenoid activated more than 1 or 2 second (it will most likely start overheating after few seconds of leaving it hold). do you have a push button of something similar to test it?

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #297 on: February 12, 2020, 05:34:21 am »
I have one with 2 blue cables too, and it looks like there are no polarity, it probably contains a diode bridge of some sort.
For the test yeah you can power it directly, but be very careful tho, don't shock yourself, and don't leave the solenoid activated more than 1 or 2 second (it will most likely start overheating after few seconds of leaving it hold). do you have a push button of something similar to test it?

You mean an onoff button? I can get it but how should I connect it then?

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #298 on: February 12, 2020, 05:40:59 am »
You mean an onoff button? I can get it but how should I connect it then?
Definitely not an onoff button, you don't want your solenoid to be powered too long.
I meant a push switch, only closing the circuit when you push.
Like the buttons in arcade controls.
Be careful that it's strong enough to not get damaged by the 24v tho.

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #299 on: February 12, 2020, 05:47:06 am »
I meant a push switch, only closing the circuit when you push.
Like the buttons in arcade controls.
Be careful that it's strong enough to not get damaged by the 24v tho.
I have arcade ones, but how is it connected to the power supply and the solenoid? :D

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #300 on: February 12, 2020, 06:15:35 am »
I meant a push switch, only closing the circuit when you push.
Like the buttons in arcade controls.
Be careful that it's strong enough to not get damaged by the 24v tho.
I have arcade ones, but how is it connected to the power supply and the solenoid? :D
There are many ways of doing it, but in my case I just use an adapter to connect the power supply to normal wires (see attached pic), a breadboard, few wires and an old push button I use mainly for testing.

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #301 on: February 12, 2020, 06:30:23 am »
There are many ways of doing it, but in my case I just use an adapter to connect the power supply to normal wires (see attached pic), a breadboard, few wires and an old push button I use mainly for testing.

yes ok  +24v e gnd of power supply to male connector and two pin blu to female connector right ? and push button where should it be placed?

sorry but I told you that I am even less experienced than you in this field ...; D

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #302 on: February 12, 2020, 07:15:58 am »
There are many ways of doing it, but in my case I just use an adapter to connect the power supply to normal wires (see attached pic), a breadboard, few wires and an old push button I use mainly for testing.

yes ok  +24v e gnd of power supply to male connector and two pin blu to female connector right ? and push button where should it be placed?

sorry but I told you that I am even less experienced than you in this field ...; D
I use only the left one on the picture, because my power supply already has connector like on the right.
If your power supply only have raw wires you can just connect them directly.
The switch should be put between the 24v and the solenoid OR the GND and the solenoid, either wire is fine, it's just to close the circuit only when you push the button ;)

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #303 on: February 12, 2020, 07:20:01 am »
I use only the left one on the picture, because my power supply already has connector like on the right.
If your power supply only have raw wires you can just connect them directly.
The switch should be put between the 24v and the solenoid OR the GND and the solenoid, either wire is fine, it's just to close the circuit only when you push the button ;)

There! Now I understand: D ... By the way today try to cover the lights and see if the fall at the bottom of the cursor depends on that ... but which firmware should I use 1.67 or 1.66?

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #304 on: February 12, 2020, 07:23:46 am »
* 2020/02/12 - 1.68
- Improved the 2 points detection and optimized the other functions

There! Now I understand: D ... By the way today try to cover the lights and see if the fall at the bottom of the cursor depends on that ... but which firmware should I use 1.67 or 1.66?
The one I just posted  :lol

@Foxhole
I improved the 2 points detection, now it should pick them up more easily.
But it might need some more testing to see if the increased tolerance didn't increase the problems with twisting offscreen ;)

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #305 on: February 12, 2020, 07:38:58 am »
Thank you, i'm gonna give it a good challenge  :cheers:
Is the IR Test also updated?

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #306 on: February 12, 2020, 07:48:25 am »
Thank you, i'm gonna give it a good challenge  :cheers:
Is the IR Test also updated?
Yes both are updated.

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #307 on: February 12, 2020, 08:00:04 am »
Yes both are updated.

If you have time, could you make a 1024x480 version of the tool to test the LEDs? Thanks :)

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #308 on: February 12, 2020, 08:06:25 am »
It's almost perfect now, i'm still having abnormalities now and then and since they are becoming more rare it's hard capturing it in video.
I was playing Point Blank, everything seemed fine for 3 minutes or so, and then all of a sudden when i was aiming a bit to the lower left of the center the gun was shooting on the upper right, i think it somehow flipped the axis, though i wasn't coming from offscreen or anything, i was aiming to the lower right just a second ago and when moving to the lower left it somehow fired to the upper right. I can't seem to capture this in the IR Test, it's becoming much harder to reproduce these issues now since there are basically almost none now.
I'm gonna try a game like lethal enforcers 2 now, to test offscreen, will let you know the results.

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #309 on: February 12, 2020, 08:11:24 am »
The same issue happened more often in Lethal enforcers 2, i was aiming to the right edge of the screen and it fired just a tiny bit left to center, this leads me to believe it was detecting the Left LEDS and not the right LEDS.
By the way, i think firmware 1.65 was perhaps the best for playing from afar (Over 1M), there were basically almost no issues.
The problems occur only when trying to get closer.
« Last Edit: February 12, 2020, 08:15:22 am by Foxhole »

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #310 on: February 12, 2020, 08:27:04 am »
It's almost perfect now, i'm still having abnormalities now and then and since they are becoming more rare it's hard capturing it in video.
I was playing Point Blank, everything seemed fine for 3 minutes or so, and then all of a sudden when i was aiming a bit to the lower left of the center the gun was shooting on the upper right, i think it somehow flipped the axis, though i wasn't coming from offscreen or anything, i was aiming to the lower right just a second ago and when moving to the lower left it somehow fired to the upper right. I can't seem to capture this in the IR Test, it's becoming much harder to reproduce these issues now since there are basically almost none now.
I'm gonna try a game like lethal enforcers 2 now, to test offscreen, will let you know the results.
Glad it's becoming better!  :cheers:
Thanks for your testing, I think I know what might have happened when you had the issue.
There might have been a small tracking error, then it tried to recalibrate and failed.
This kind of errors are prone to happen the closer you get from the screen, but I guess it's also a good way to test the reliability of the system  :lol
I really which we had better cam/sensor to work with haha


If you have time, could you make a 1024x480 version of the tool to test the LEDs? Thanks :)
I'm actually doing another version that can work with pretty much any resolution/COM port ;)

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #311 on: February 12, 2020, 08:28:52 am »
The same issue happened more often in Lethal enforcers 2, i was aiming to the right edge of the screen and it fired just a tiny bit left to center, this leads me to believe it was detecting the Left LEDS and not the right LEDS.
By the way, i think firmware 1.65 was perhaps the best for playing from afar (Over 1M), there were basically almost no issues.
The problems occur only when trying to get closer.
Gotcha. So is this issue the same as before or kind of new with the last firmware?
The 1.65 was better from afar?

Edit: what mainly changed from the 1.65 version is that now the detection resets if there are tracking errors, and the 2 leds detection is far more forgiving (but a bit less precise).
So both of those fixes are correcting misdetection issues but might also lead to some other misdetection.
At this point it's mainly trying to find the balance between tolerance and risks of errors  ;D
« Last Edit: February 12, 2020, 08:33:38 am by JayBee »

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #312 on: February 12, 2020, 08:32:53 am »
The same issue happened more often in Lethal enforcers 2, i was aiming to the right edge of the screen and it fired just a tiny bit left to center, this leads me to believe it was detecting the Left LEDS and not the right LEDS.
By the way, i think firmware 1.65 was perhaps the best for playing from afar (Over 1M), there were basically almost no issues.
The problems occur only when trying to get closer.
Gotcha. So is this issue the same as before or kind of new with the last firmware?
The 1.65 was better from afar?
I think it was also in the older firmwares but we didn't pay too much attention to it because we believed it to be due to the offscreen.
1.65 was pretty stable because 2 point detection was off, so there were less mistakes when playing from afar.

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #313 on: February 12, 2020, 08:34:34 am »
If you'd like i can test firmware 1.65 more extensively from afar to see how it holds up in long gaming sessions.
I think i'll try it on House of the dead 3.

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #314 on: February 12, 2020, 08:35:37 am »
I think it was also in the older firmwares but we didn't pay too much attention to it because we believed it to be due to the offscreen.
1.65 was pretty stable because 2 point detection was off, so there were less mistakes when playing from afar.
Indeed, the 2 points detection is great to aim in corners but obviously more prone to errors if there are any tracking issues :banghead:
If you'd like i can test firmware 1.65 more extensively from afar to see how it holds up in long gaming sessions.
I think i'll try it on House of the dead 3.
Ah, house of the dead 3, a very nice one to test ;D
If you don't mind I will give you a test version of the last 1.68 firmware, but with the detection reset trigger a bit less sensitive, to see if it works better :P
« Last Edit: February 12, 2020, 08:39:01 am by JayBee »

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #315 on: February 12, 2020, 08:36:27 am »
Do you think making this system an 8 point system would allow better stability when playing close?
What i mean about 8 point is to add leds on the corners of the screen.
Never mind, just remembered that the dfrobot can only track 4 points.
« Last Edit: February 12, 2020, 08:39:28 am by Foxhole »

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #316 on: February 12, 2020, 08:41:43 am »
If you don't mind I will give you a test version of the last 1.68 firmware, but with the detection reset trigger a bit less sensitive, to see if it works better :P
No problem, let me know when it's up and i'll try it.

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:Yesterday at 02:42:40 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #317 on: February 12, 2020, 08:50:20 am »
Do you think making this system an 8 point system would allow better stability when playing close?
What i mean about 8 point is to add leds on the corners of the screen.
Never mind, just remembered that the dfrobot can only track 4 points.
Yeah I really wish this cam could see more than 4 points at a time, it would be far better.
I'm actually also working on another solution with the same hardware to use 8 or more leds.
But it would require to have a sync wire going from the led system to the gun, and another external arduino to pilot the leds.
I gave up on it for now, but it might be a possible update to this 4 led system (you can reuse the same hardware with small modifications).

Anyway, here is the test firmware, I included both firmwares in the zip file (don't mind about the version number):

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:Today at 09:20:39 pm
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #318 on: February 12, 2020, 09:08:35 am »
Will try this firmware.
Would also like to mention that i played HOD3 almost to the finish with the 1.65 firmware and it was extremely good.
There was only one occasion when the cursor got stuck on the upper edge of the screen for no reason, but it fixed itself once i waved the gun,
but so far, in my opinion, firmware 1.65 is probably the best for playing afar.
gonna try the test firmware now.

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
  • Last login:July 01, 2020, 04:19:23 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #319 on: February 12, 2020, 09:16:45 am »
That cool this firmware ...: D
I only noticed that the cursor seems to wobble more than before and in 10 minutes of the mame game (I always use Time crisis as a test) I also had the problem after 3-4 min that the cursor pointing to a point has moved in my case on the left but it happened only once and then it happens but now rarely see the duplicate cursor but for a moment and only if you point to the various sides of the screen, and it never happened to me during the action but only by moving the gun during the interludes ... We are close to perfection! :) Great JayBee!