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: On status led  (Read 937 times)

0 Members and 1 Guest are viewing this topic.

Stormrider

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:September 28, 2014, 11:01:54 am
On status led
« on: March 24, 2008, 06:55:17 am »
For a wooden control panel with a psx pad hack, how could I add a led that turns red when the panel is plugged into the adapter and the computer is on?

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5165
  • Last login:Yesterday at 02:14:21 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: On status led
« Reply #1 on: March 24, 2008, 08:49:52 am »
If the psx hack has +5vdc and ground, just wire the led between those two points. You will need to put a 330 ohm resistor in one lead of the led.
I dont really know about the psx pad, so i cant elaborate more than that.

Franco B

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3766
  • Last login:February 15, 2024, 09:14:06 am
Re: On status led
« Reply #2 on: March 24, 2008, 10:07:29 am »
Won't the resistor value depend on the LED? The LEDs im using at the moment require a 100ohm resistor in series.

You may want to use a panel mount LED similar to these for a nice clean install.


DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5165
  • Last login:Yesterday at 02:14:21 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: On status led
« Reply #3 on: March 24, 2008, 10:38:29 am »
Yes it would depend on how much current the led draws. I use 330 as a general resistor.
It works with most leds that draw approx 20 ma at 5 volt.

To choose the resistor for the led:

Vs-Vd/LedIc =Rx

Whereas:
Vs=supply voltage (5 in this case)
Vd= led voltage drop
LEDIc= current draw of the Led
Rx= resistor in ohms.

If the pulls 10 ma and drops 2.1 volts then:

5-2.1=2.9
2.9/.010=290 ohms

So yeah, you are right 330 would be a little high.
If the led draws 20 ma (probably most likely), then a 145 ohm resistor will be needed.
You just need to check the specs on your led before choosing the resistor.