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 48597 times)

0 Members and 1 Guest are viewing this topic.

cybermat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:August 05, 2020, 05:56:12 am
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #560 on: June 29, 2020, 07:26:47 am »
I will use 8 LEDS. 2 for each point.

If i fill according to specs https://www.everlight.com/file/ProductFile/IR333-A.pdf

5
1.5
50
8



« Last Edit: June 30, 2020, 04:43:47 am by cybermat »

cybermat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:August 05, 2020, 05:56:12 am
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #561 on: June 29, 2020, 11:02:22 am »
If i would like to buy these https://pdf1.alldatasheet.com/datasheet-pdf/view/89554/KINGBRIGHT/L-53F3C.html

Is it correct entering the following ?

 Source voltage 5
diode forward voltage 1.5
diode forward current (mA) 50
number of LEDs in your array 8


PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7855
  • Last login:Today at 09:32:55 am
  • Designated spam hunter
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #562 on: June 29, 2020, 05:12:33 pm »
If i would like to buy these https://pdf1.alldatasheet.com/datasheet-pdf/view/89554/KINGBRIGHT/L-53F3C.html
That datasheet covers eight different LEDs with different ratings.   :dunno

Is it correct entering the following ?

 Source voltage 5
diode forward voltage 1.5
diode forward current (mA) 50
number of LEDs in your array 8
Looking at the L-53F3C datasheet at https://datasheet.octopart.com/L-53F3C-Kingbright-datasheet-13425907.pdf

Page 2, Absolute Maximum Ratings table -- DC Forward Current -- IF -- 50mA.

It's usually not a good idea to run LEDs at the max rating.
- They will burn out faster.

-------------------
If you want the calculator to return the resistor value for 2 LEDs and a resistor per row x 4 rows:
- Enter #LEDs = 2
- The calculator will return 2 LEDs and a resistor in one row.
- Four rows like that wired in parallel will draw four times the current of a single row.

or

If the calculator returns 4 LEDs and a resistor per row, you can add a long wire between the 2nd and 3rd LED to break it into 2 groups. i.e. mount 1st and 2nd LEDs at the first point then run a wire to the 3rd and 4th LEDs and resistor mounted at the second point.


Scott

cybermat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:August 05, 2020, 05:56:12 am
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #563 on: June 30, 2020, 04:30:25 am »
I cannot find any link where i can purchase easily these leds SID1K10CM , so i'm looking for leds with the same specs but SID1K10CM are high powerful leds as per what i understood.

So for this model https://pdf1.alldatasheet.com/datasheet-pdf/view/89554/KINGBRIGHT/L-53F3C.html according to the specs and your suggestions i will put these data

Source voltage 5
diode forward voltage 1.5
diode forward current (mA) 20
number of LEDs in your array 8

Are they powerful enough for 1/1.5 meter distance ?



PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7855
  • Last login:Today at 09:32:55 am
  • Designated spam hunter
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #564 on: June 30, 2020, 06:18:08 am »
So for this model https://pdf1.alldatasheet.com/datasheet-pdf/view/89554/KINGBRIGHT/L-53F3C.html according to the specs and your suggestions i will put these data
Once again, that datasheet is for a series of eight different LEDs with four different sets of specs.   :banghead:

Specify EXACTLY which P/N of the eight on page 1 you are asking about or find a datasheet that covers just the one P/N you want.   :bat

diode forward voltage 1.5
diode forward current (mA) 20
Look at the four "Forward Current vs. Forward Voltage" charts on pages 3-5.

None of those charts show the curve passing through the point at the intersection of 1.5v on the X-axis and 20mA on the Y-axis.
- The values you plug into the calculator must describe a point on the curve or you'll get worthless, incorrect info -- garbage in, garbage out.
- The current draw depends on the voltage drop across that specific LED P/N.
- The curve describes the relationship between those values for that specific LED P/N.
- If you want a specific current draw, trace that value horizontally until it meets the curve, then go straight down to find the associated voltage.
-- Chart on page 3, start at 20 mA on the Y-axis, go right until you reach the curve then go straight down to 1.2v or
-- Chart on page 3, start at 40 mA on the Y-axis, go right until you reach the curve then go straight down to about 1.26v.
- If you want a specific voltage, trace that value vertically until it meets the curve, then go straight left to find the associated current draw.

Are they powerful enough for 1/1.5 meter distance ?
I'll let JayBee answer this question since he has hands-on experience designing/building these and should be able to compare the datasheet for his LEDs to the datasheet for your LEDs once you clarify exactly which LED P/N you are asking about.


Scott

cybermat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:August 05, 2020, 05:56:12 am
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #565 on: June 30, 2020, 08:44:18 am »
The link of L-53F3C was right...but the site has a kind of protection

https://pdf1.alldatasheet.com/datasheet-pdf/view/89554/KINGBRIGHT/L-53F3C/+5JW55UhGLGwyKIlZfSHEDP.O+/datasheet.pdf

PART number is L-53F3C , according to your suggestions and datasheet

Source voltage 5
diode forward voltage 1.26
diode forward current (mA) 40
number of LEDs in your array 8


JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:August 03, 2020, 11:13:37 pm
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #566 on: June 30, 2020, 09:05:19 am »
I'll let JayBee answer this question since he has hands-on experience designing/building these and should be able to compare the datasheet for his LEDs to the datasheet for your LEDs once you clarify exactly which LED P/N you are asking about.
Thanks for helping bro  ;D

The link of L-53F3C was right...but the site has a kind of protection

https://pdf1.alldatasheet.com/datasheet-pdf/view/89554/KINGBRIGHT/L-53F3C/+5JW55UhGLGwyKIlZfSHEDP.O+/datasheet.pdf

PART number is L-53F3C , according to your suggestions and datasheet

Source voltage 5
diode forward voltage 1.26
diode forward current (mA) 40
number of LEDs in your array 8
Your link is still not working.
But from the ref the leds aren't bright enough (Radiant Intensity (Ie): 30mW/Sr).
So you might want something brighter, and if possible with a bit higher angle (50~100mW/sr minimum with 30degrees).
From my experience IR leds are sadly a bit trial and error, as the real performance might vary a lot from the datasheets specs.
Anyway if you go this route, I'd recommend you to use 3 leds for each point instead, 2 isn't always enough and cause misdetections.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Online Online
  • Posts: 18540
  • Last login:Today at 04:37:16 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #567 on: June 30, 2020, 09:44:59 am »
You know if it's that much of a struggle just hack up a couple of those offbrand wii sensor bars you can get for a song on aliexpress. 

cybermat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:August 05, 2020, 05:56:12 am
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #568 on: June 30, 2020, 09:49:58 am »
alldatasheet seems have protection in case of direct link

Anyway i tried to buy the leds you indicated, but i read they come from Japan. There is an italian user that bought this one

https://pdf1.alldatasheetit.com/datasheet-pdf/view/321971/LIGITEK/LIR3333-H0-PF.html , but at the moment ebay seller has finished them.

So i started to find leds with the suggested specs and started learning how the site of led wizard works. If any user would like to share leds used, resistor scheme and where to buy , will be appreciated.


PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7855
  • Last login:Today at 09:32:55 am
  • Designated spam hunter
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #569 on: June 30, 2020, 11:10:51 am »
PART number is L-53F3C , according to your suggestions and datasheet

Source voltage 5
diode forward voltage 1.26
diode forward current (mA) 40
number of LEDs in your array 8



Thanks for the clarification on the P/N.   :)

I know you won't be using these LEDs, but here's how to check the LED calculator results:

1. Solve for resistor voltage drop (single resistor)
W = V * A (wattage formula)
W/A = V
108.8mW/40mA = 2.72v

2. Solve for current draw through the resistor. (ensures voltage in step 1 is right)
E = I * R (ohm's law)
E/R = I
2.72v/68 ohms = 40mA

3. Solve for voltage drop across each LED
(Source voltage - resistor voltage)/2 = voltage drop across each LED
(5v-2.72v)/2 = 1.14v per LED

4. Run that 1.14v LED voltage drop through the chart on pg 3 of the datasheet and you get about 8mA.   :(

The calculator provided a VERY safe current limiting resistor value that will make your LEDs VERY dim.
----------------------
https://ledcalculator.net/#p=5&v=1.26&c=40&n=2&o=w

Using the same values as above, this calculator returns a resistor value of 62 ohms, 5% or better tolerance, 1/8W (min.) or 1/4W (better heat dissipation) for 2 LEDs and one resistor per row.

1. Solve for resistor voltage drop (single resistor)
W = V * A (wattage formula)
W/A = V
99.2mW/40mA = 2.48v

2. Solve for current draw through the resistor. (ensures voltage in step 1 is right)
E = I * R (ohm's law)
E/R = I
2.48v/62 ohms = 40mA

3. Solve for voltage drop across each LED
(Source voltage - resistor voltage)/2 = voltage drop across each LED
(5v-2.48v)/2 = 1.26v per LED

4. Run that 1.26v LED voltage drop through the chart on pg 3 of the datasheet and you get about 40mA.
---------------
You're working on a very steep part of the curve so even a small change in resistor value results in a very large change in current.
- Might be worth the effort and expense to use a variable resistor.   :dunno

Another good LED calculator site: http://ledcalc.com/

Good luck finding suitable LEDs.   :cheers:


Scott

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 275
  • Last login:August 03, 2020, 11:13:37 pm
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #570 on: June 30, 2020, 01:37:35 pm »
Note that in the discord server in the pinned posts there is a newer led system I built, that uses high power smd LEDs and works way better than any other led systems.
It's a bit more expensive and require a bit more experience and trial and error, but it makes a huge difference.

hyo2012

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:July 05, 2020, 03:49:28 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #571 on: July 01, 2020, 04:08:13 am »
JayBee, I send a PM  :)

sniiki

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:Today at 05:33:04 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #572 on: August 06, 2020, 05:30:27 am »
Just recently built a control box even though it's missing punch of other stuff too like trackball and spinners, I personally mostly yearn for a pair of guns. As there's not many options on the market for a calibration free systems, I started experimenting with a regular RGB camera and OpenCV with screen edge detection. Quick tests are somewhat promising but might have too much lag in the end so to get something a usable sooner, I ordered the HW for pair of Arduino IR guns.

@JayBee I'm more than happy to support you but still would of course want to receive the licence too and reading the red text in the first post, not that sure if I will as a fresh forum member?