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: Ipac with LEDs..  (Read 5560 times)

0 Members and 1 Guest are viewing this topic.

Telnets

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:May 04, 2015, 04:05:17 pm
  • I want to build my own arcade controls!
Ipac with LEDs..
« on: December 17, 2014, 02:24:58 pm »
Hey guys, Ive done a few searches on the forums and havent been able to find answers so im hoping someone could help me out. I apologize if its been posted before, if so, please let me know..

Im trying to build a console, and using the IPAC2 controller board.. I dont know a lot about electronics and such, but I know enough to setup the board properly with arcade buttons ect. Thats pretty straightforward..

However, my goal right now is to add LED buttons, and have them light up when the button is depressed, and off again when the button is resting..  I was told that if I add a seperate 5v source of pwer (in this case it would be a USB hack) for the LEDs, that i would be able to chain the Positive to them, and connect each LED negitive to the same terminal as the switch, like the picture below..

Does this seem right?


Also, my ultimate goal woudl be to have the buttons connected and lit ALL the time with say, 2v, and then when pressed they would go up to 5v... is that possible with the Ipac board somehow? Is there someone that would be able to explain that to me in a very noob way, or draw me a wiring diagram i could follow.. im good at following directions :)

Thanks guys!

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re: Ipac with LEDs..
« Reply #1 on: December 17, 2014, 06:43:32 pm »

Your diagram would work for lighting the LED when the button is pressed.

I cant think of any way to dim the LED when the button is not pressed, using simple wiring. If you apply 2V to the LED it would also apply it to the I-PAC input which would cause a switch closure to be registered.

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:March 21, 2024, 08:20:28 am
Re: Ipac with LEDs..
« Reply #2 on: December 17, 2014, 06:56:27 pm »

Your diagram would work for lighting the LED when the button is pressed.

I cant think of any way to dim the LED when the button is not pressed, using simple wiring.

Not sure where the LEDS are going, but maybe couple the on/off LEDs with a 2nd set of LEDs that are always dim and on a separate circuit, perhaps?

Telnets

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:May 04, 2015, 04:05:17 pm
  • I want to build my own arcade controls!
Re: Ipac with LEDs..
« Reply #3 on: December 18, 2014, 09:49:52 am »
Hi Andy,
You are actualy the one who helped me out in getting this far, I just didnt want to bother you again through email as Im sure your a busy guy!  Thanks for your reply!

While I have you, the external 5v source in my diagram.. can i take that from the LED header you have on the board? I saw on your site that you have a wiring harness for LEDs that fit on it, and i see it has a gnd and +5v pins.. would it be alright to take that and use it to light my leds instead of a source from elsewhere?


Vigo
A second LED is something i was thinking about and would certainly work Im just not sure if i can fit a second LED in the button itself.. the buttons im using are not the ones in the pic, as this project isnt actualy for an arcade at all its for a friend who lost his ability to use a keyboard do to health reasons (affects his dexterity) so I am building him a new custom keyboard with larger buttons so he can get back onto his computer...

My ultimate goal is simply to have the keyboard lit up, and when a button is pressed it lights up even brighter to indicate its been hit..  I was hoping there was an easy solution like, i could feed the LED 2v and when its hit, it provides another 3v to it or something like that but i dont think thats the case.. I may need to just incorporare a seperate LED inside the button to be lit all times, and then use the diagrab above to mount an LED to the board above the button to indicate its status or something..

or find a button that can accomidate 2 leds for space under the cap

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re: Ipac with LEDs..
« Reply #4 on: December 18, 2014, 12:30:25 pm »

Yes you could take power from the header.

dkersten

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1472
  • Last login:March 12, 2024, 11:47:30 am
  • If you are gonna do it, do it right..
Re: Ipac with LEDs..
« Reply #5 on: December 23, 2014, 12:45:34 pm »
Just guessing here, but adding a diode and a resistor (enough to give you a dim light) between the cathode of the LED and the ground should give you what you want.  When the button isn't pressed, the LED still gets enough ground to light up a little (depending on the resistor chosen), and the diode prevents the ground from completing the button's circuit.  When the button gets pressed, the cathode side of the LED sees full ground and lights up all the way.  Does that make sense?

edit - To clarify, a resistor between ground and the cathode side of LED, a diode between cathode side of LED and ipac button terminal.  When the switch is open, the 5v from the ipac terminal can't flow to the ground connected to the cathode but current can flow from the cathode side of LED toward ground (through the resistor) making it light dim.  When the button is pushed, the current will flow through the switch to ground and the LED will light fully.  The diode prevents the ipac terminal (which is 5v when the switch is open) from grounding through the cathode side of LED.

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13999
  • Last login:April 09, 2024, 07:27:18 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: Ipac with LEDs..
« Reply #6 on: December 23, 2014, 12:59:16 pm »
translucent buttons with low level lighting inside the CP box. Then wire up your LEDs.
If you're replying to a troll you are part of the problem.
I also need to follow this advice. Ignore or report, don't reply.

Telnets

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:May 04, 2015, 04:05:17 pm
  • I want to build my own arcade controls!
Re: Ipac with LEDs..
« Reply #7 on: January 06, 2015, 02:06:19 pm »
Just guessing here, but adding a diode and a resistor (enough to give you a dim light) between the cathode of the LED and the ground should give you what you want.  When the button isn't pressed, the LED still gets enough ground to light up a little (depending on the resistor chosen), and the diode prevents the ground from completing the button's circuit.  When the button gets pressed, the cathode side of the LED sees full ground and lights up all the way.  Does that make sense?

edit - To clarify, a resistor between ground and the cathode side of LED, a diode between cathode side of LED and ipac button terminal.  When the switch is open, the 5v from the ipac terminal can't flow to the ground connected to the cathode but current can flow from the cathode side of LED toward ground (through the resistor) making it light dim.  When the button is pushed, the current will flow through the switch to ground and the LED will light fully.  The diode prevents the ipac terminal (which is 5v when the switch is open) from grounding through the cathode side of LED.

I really want to know what your saying.. but im just not that bright when it comes to electronics.. (see what i did there?!?! :) ) this is my first real project where im doing things on my own..

any chance you have a drawing i could reference to? im pretty good visually..

i mean i THINK i know what you mean.. but just not 100% certain. Andy has mentioned that the controller card will trigger a button press when it detects 2v.. i was hoping i could just run 2v through the LEDS and a button press would increase it by 3v to complete the 5v.. but he said it would still register a press at 2v so that idea wont work..

Im thinking for my friends project here, i may just not be able to get him dual lit LEDS.. and may just need to skip out on the affect, and just light the LEDs manually with an external source


KillerQ

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:January 24, 2021, 09:15:18 pm
  • I want to build my own arcade controls!
Re: Ipac with LEDs..
« Reply #8 on: January 20, 2021, 10:29:54 pm »
Old thread, but, do you still have this diagram? What was your ultimate solution for the the led to light when pressing the button? I知 trying the same thing as we speak!

Thanks.



Hey guys, Ive done a few searches on the forums and havent been able to find answers so im hoping someone could help me out. I apologize if its been posted before, if so, please let me know..

Im trying to build a console, and using the IPAC2 controller board.. I dont know a lot about electronics and such, but I know enough to setup the board properly with arcade buttons ect. Thats pretty straightforward..

However, my goal right now is to add LED buttons, and have them light up when the button is depressed, and off again when the button is resting..  I was told that if I add a seperate 5v source of pwer (in this case it would be a USB hack) for the LEDs, that i would be able to chain the Positive to them, and connect each LED negitive to the same terminal as the switch, like the picture below..

Hi! Old thread, but, do you by chance have this diagram? What was your ultimate solution? I知 trying the same as we speak. Thanks!!

Does this seem right?


Also, my ultimate goal woudl be to have the buttons connected and lit ALL the time with say, 2v, and then when pressed they would go up to 5v... is that possible with the Ipac board somehow? Is there someone that would be able to explain that to me in a very noob way, or draw me a wiring diagram i could follow.. im good at following directions :)

Thanks guys!
« Last Edit: January 20, 2021, 10:32:23 pm by KillerQ »

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9403
  • Last login:Today at 09:15:50 pm
  • Designated spam hunter
Re: Ipac with LEDs..
« Reply #9 on: January 21, 2021, 12:55:58 am »
What was your ultimate solution for the the led to light when pressing the button? I知 trying the same thing as we speak!
Try diagram #3 below.

For a single-color LED button like this, the LED connections are the two vertical 0.250" "stirrup" tabs on the LED socket. (right side)


The LED holder hides a current-limiting resistor so that part of the circuit is already taken care of.


You can verify the polarity of the LED using the diode check function on your multimeter.
- LED will light dimly when the red lead is on the anode (+) tab and the black lead is on the cathode (-) tab.
- I usually orient the LEDs so the cathode is next to the large black tab on the LED socket.  Black tab==>black ground wire.

You'll need a 5v power supply that can provide 20mA per LED.
- 12 LED buttons can draw up to 240mA ==> give yourself some wiggle room and use a power supply rated for at least 300mA.
- Daisy-chain the 5v on the LED anode (+) tabs.  (red wires)
- You won't be daisy-chaining the LED cathode (-) wires for your setup.


You can keep the wiring a bit neater if you make Y-cables.
- First leg with a female 0.250" QD for the LED cathode (-) tab.
- Second leg with a female 0.187" QD for the microswitch NO tab.
- Third leg either wired directly to the IPac input with a long wire or wired to a male 0.187" tab on a short wire that connects to a wire leading to the IPac.

Diagram #3:
- When the button isn't pushed you've got 5v on the LED anode and 5v from the IPac input on the cathode so the LED is not forward biased.  The LED does not light.
- When the button is pushed, ground is applied to the IPac input which triggers the related output and ground is also applied to the LED cathode which forward biases the LED.  The LED lights.




Scott
« Last Edit: January 21, 2021, 01:12:28 am by PL1 »

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Ipac with LEDs..
« Reply #10 on: January 21, 2021, 01:56:31 am »
In linux, I think you can also achieve this with only software using LEDSpicer. LEDSpicer has an input plugin which can have actions tied to it (such as lighting LEDs) and also has default lighting levels.

 LEDBlinky might be able to do it on Windows... not sure about that.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

KillerQ

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:January 24, 2021, 09:15:18 pm
  • I want to build my own arcade controls!
Re: Ipac with LEDs..
« Reply #11 on: January 21, 2021, 06:13:48 pm »
Thank you! So, for scenario #3, does my mock up seem like the proper translation? Here: https://imgur.com/a/YQqB07a

Thanks!!



What was your ultimate solution for the the led to light when pressing the button? I知 trying the same thing as we speak!
Try diagram #3 below.

For a single-color LED button like this, the LED connections are the two vertical 0.250" "stirrup" tabs on the LED socket. (right side)


The LED holder hides a current-limiting resistor so that part of the circuit is already taken care of.


You can verify the polarity of the LED using the diode check function on your multimeter.
- LED will light dimly when the red lead is on the anode (+) tab and the black lead is on the cathode (-) tab.
- I usually orient the LEDs so the cathode is next to the large black tab on the LED socket.  Black tab==>black ground wire.

You'll need a 5v power supply that can provide 20mA per LED.
- 12 LED buttons can draw up to 240mA ==> give yourself some wiggle room and use a power supply rated for at least 300mA.
- Daisy-chain the 5v on the LED anode (+) tabs.  (red wires)
- You won't be daisy-chaining the LED cathode (-) wires for your setup.


You can keep the wiring a bit neater if you make Y-cables.
- First leg with a female 0.250" QD for the LED cathode (-) tab.
- Second leg with a female 0.187" QD for the microswitch NO tab.
- Third leg either wired directly to the IPac input with a long wire or wired to a male 0.187" tab on a short wire that connects to a wire leading to the IPac.

Diagram #3:
- When the button isn't pushed you've got 5v on the LED anode and 5v from the IPac input on the cathode so the LED is not forward biased.  The LED does not light.
- When the button is pushed, ground is applied to the IPac input which triggers the related output and ground is also applied to the LED cathode which forward biases the LED.  The LED lights.




Scott

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9403
  • Last login:Today at 09:15:50 pm
  • Designated spam hunter
Re: Ipac with LEDs..
« Reply #12 on: January 21, 2021, 06:48:09 pm »
So, for scenario #3, does my mock up seem like the proper translation?
If it works, you're doing it right.  :P


Scott

KillerQ

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:January 24, 2021, 09:15:18 pm
  • I want to build my own arcade controls!
Re: Ipac with LEDs..
« Reply #13 on: January 21, 2021, 07:00:51 pm »
Haha, well, I値l try it out tonight.

KillerQ

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:January 24, 2021, 09:15:18 pm
  • I want to build my own arcade controls!
Re: Ipac with LEDs..
« Reply #14 on: January 21, 2021, 09:19:39 pm »

KillerQ

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:January 24, 2021, 09:15:18 pm
  • I want to build my own arcade controls!
Re: Ipac with LEDs..
« Reply #15 on: January 22, 2021, 08:12:18 pm »