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 Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Use Zero Delay Arcade USB Encoder Joystick with ONE illuminated button?  (Read 2758 times)

0 Members and 1 Guest are viewing this topic.

BillytheGoat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:August 16, 2018, 07:12:03 pm
  • I want to build my own arcade controls!
I picked up a 2 player joystick/button kit on amazon an built myself a little console.  It came with the usb to joystick zero delay encoder.   Everything works fine, but just for fun I picked up an illuminated button for the coin button.   I understand how to wire the switch, but is it possible to wire the LED light using this Zero Delay Encoder or by some other simpler method that just taps into the USB? 

Easy Get Classic Arcade Kit
https://www.amazon.com/gp/product/B00WDQWK5M/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

Just the Encoder with pics on left via Amazon:
https://www.amazon.com/Easyget-Joystick-Raspberry-Retropie-Projects/dp/B01C5J5AJO/ref=sr_1_1_sspa?s=toys-and-games&ie=UTF8&qid=1532633803&sr=1-1-spons&keywords=Zero+Delay+USB+Encoder&psc=1

Again, it's the only LED in the console and I do have a few button slots open.  What's the best way to wire it so that it's always on without screwing anything up on the Encoder, or if it's just not possible with this encoder, please let me know.  It's not a big deal.  Just something I wanted to try on a whim.

Thanks!

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 468
  • Last login:March 05, 2024, 10:55:50 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
I assume your LED is rated at 5v or higher.  Just tap into the USB power with a 330 resistor.  If it is too bright, use a bigger resistor.

BillytheGoat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:August 16, 2018, 07:12:03 pm
  • I want to build my own arcade controls!
JudgeRob,

So wire for the LED the same way I would wire a switch for a button?   I don't have a resistor handy.  What's the harm in running it without one?  Burn out the bulb too fast or be too bright?  Would running without a resistor do any harm to the encoder, cause a safety issue or be a cause of concern for any other reason?

Here's the button on amazon:
https://www.amazon.com/gp/product/B07BNFXLZ1/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

Description:  The led lights have to distinguish between positive and negative interface. If not bright. Please change the LED interface.
Supports DC 12V power.

thanks for the reply!

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Online Online
  • Posts: 9393
  • Last login:Today at 04:47:42 am
  • Designated spam hunter
So wire for the LED the same way I would wire a switch for a button?   
Close, but not quite.

Wire the LED circuit separate from the switch circuits.

It looks like the ZD encoder circuit board has 5v and ground available based on the red connectors in this pic.
- The boards you linked to don't have the red connectors, but you should be able to solder wires to the through-holes of one connector and use 0.250"/6.3mm Quick Disconnects to attach the wires to the "stirrup" tabs on your LED button.
- Since you're only powering one LED, current draw shouldn't be a problem.


If that doesn't work, keep in mind that ZD encoders are "active high" devices.
- The outer pins are all tied to 5v so you can use one of them for the LED anode. (+)
- The only thing remaining is to find a ground for the LED cathode. (-)
-- The microswitch circuit draws less current than the LED circuit so you do not want to use an input port to ground the LED.


I don't have a resistor handy.  What's the harm in running it without one?  Burn out the bulb too fast or be too bright?  Would running without a resistor do any harm to the encoder, cause a safety issue or be a cause of concern for any other reason?

Here's the button on amazon:
https://www.amazon.com/gp/product/B07BNFXLZ1/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

Description:  The led lights have to distinguish between positive and negative interface. If not bright. Please change the LED interface.
Supports DC 12V power.
No worries.

Good news, part 1:  There is already a current-limiting resistor in the LED holder.
- No need for a second resistor, especially since the LED is rated for 12v.


Good news, part 2:  The 12v LED will also run on 5v. (see pic above)
- Not quite as bright, but the LED will draw less curent and last longer.
- Instead of the LED drawing about 20mA @ 12v, it draws 5.83mA @ 5v.

Good news part 3:  If it isn't as bright as you'd like, you can swap the wedge-base 12v LED for a 5v LED.


Scott

Nephasth

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1376
  • Last login:March 11, 2024, 11:02:52 pm
  • Bitches love Centipede
%Bartop

BillytheGoat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:August 16, 2018, 07:12:03 pm
  • I want to build my own arcade controls!
So wire for the LED the same way I would wire a switch for a button?   
Close, but not quite.

Wire the LED circuit separate from the switch circuits.

It looks like the ZD encoder circuit board has 5v and ground available based on the red connectors in this pic.
- The boards you linked to don't have the red connectors, but you should be able to solder wires to the through-holes of one connector and use 0.250"/6.3mm Quick Disconnects to attach the wires to the "stirrup" tabs on your LED button.
- Since you're only powering one LED, current draw shouldn't be a problem.


If that doesn't work, keep in mind that ZD encoders are "active high" devices.
- The outer pins are all tied to 5v so you can use one of them for the LED anode. (+)
- The only thing remaining is to find a ground for the LED cathode. (-)
-- The microswitch circuit draws less current than the LED circuit so you do not want to use an input port to ground the LED.


I don't have a resistor handy.  What's the harm in running it without one?  Burn out the bulb too fast or be too bright?  Would running without a resistor do any harm to the encoder, cause a safety issue or be a cause of concern for any other reason?

Here's the button on amazon:
https://www.amazon.com/gp/product/B07BNFXLZ1/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

Description:  The led lights have to distinguish between positive and negative interface. If not bright. Please change the LED interface.
Supports DC 12V power.
No worries.

Good news, part 1:  There is already a current-limiting resistor in the LED holder.
- No need for a second resistor, especially since the LED is rated for 12v.


Good news, part 2:  The 12v LED will also run on 5v. (see pic above)
- Not quite as bright, but the LED will draw less curent and last longer.
- Instead of the LED drawing about 20mA @ 12v, it draws 5.83mA @ 5v.

Good news part 3:  If it isn't as bright as you'd like, you can swap the wedge-base 12v LED for a 5v LED.


Scott

Wow, that you for the thoughtful and time consuming response.   Much appreciated.   I don't have the time or will to drag out the soldering iron right now, but when I do I'll have all the information I need to do the job.  Maybe in a week or so.  I'll post back if I'm able to get it done.  Nephasth offered a reply after yours where he indicates the power/ground on the backside for the USB.  I feel a little more confident about this location because its' more clearly marked as ground and power.   I might just do it that way instead of using the d3 section.  Again this whole thing with the LED is just playing around on a shabby prototype console built, so I'm not afraid to experiment a little.


I believe you when you said I couldn't just use a switch button.  It seems to me this would work to turn on the light, but then mame would think I'm always having one button pushed when it's really just the light, and this would cause further problems with button assignments.  Is that the extent of the problem with using a switch button to wire it, or is there more to it than that? 

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 468
  • Last login:March 05, 2024, 10:55:50 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Don't pull it through a switch port.  It might be able to handle the LED current but it's unknown unless you have the microprocessor specs.  Neo's pic is what I would do. Pull it straight from the usb power.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Online Online
  • Posts: 9393
  • Last login:Today at 04:47:42 am
  • Designated spam hunter
On second thought, Neph's plan to tap in at the USB input is much easier -- unless you get a board with the red connectors already installed.   ;D

I believe you when you said I couldn't just use a switch button.  It seems to me this would work to turn on the light, but then mame would think I'm always having one button pushed when it's really just the light, and this would cause further problems with button assignments.  Is that the extent of the problem with using a switch button to wire it, or is there more to it than that?
Without getting into the math, an LED uses way more current to generate light than an input port uses to determine if a switch is open or closed.

In plumbing terms, picture how little water (current) would flow through a fire hose (LED) connected to a garden hose (input port).

Yes, there's a fire hose in the setup, but there won't be enough water passing through it to fight a house fire.   :lol


Scott

BillytheGoat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:August 16, 2018, 07:12:03 pm
  • I want to build my own arcade controls!
Okay, thanks for the follow ups and explanations.  I'll dig out my solder gun and give it a try when I get a chance.  :)

BillytheGoat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:August 16, 2018, 07:12:03 pm
  • I want to build my own arcade controls!
I finally got a chance to solder as Nephasth indicated and it works great. No resistor needed.

Just wanted to say thanks.
 :cheers:

Nephasth

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1376
  • Last login:March 11, 2024, 11:02:52 pm
  • Bitches love Centipede
 :cheers:
%Bartop