Circuitbenders Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Adding LEDs  (Read 5543 times)

kloroplaster

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Adding LEDs
« on: December 06, 2010, 05:03:38 PM »

My LED lights up, seemingly without anything bad happening to the synth, but that might change in the long run?
My question is basically what happens if you dont do the math and add resistors when adding LEDs?
Logged

Gordonjcp

  • This person is dangerously insane.
  • *******
  • Karma: 78
  • Offline Offline
  • Posts: 1005
    • http://www.nekosynth.co.uk
Re: Adding LEDs
« Reply #1 on: December 06, 2010, 05:30:09 PM »

It depends on what the LED is connected to.  Without a current-limiting resistor, you can blow either the LED or the thing that's driving it.  If you're connecting it to a pin - say for example, to show the state of an LFO - then you should probably use a transistor to drive it otherwise it will affect the circuit driving it.

You don't really need to do much arithmetic to work out the series resistor.  For 9V, somewhere around 1k is probably about right.  For 5V, somewhere around 470 ohms is about right.  Try different values until you get a brightness level you like.  The LED will have some data which tells you the rated current and forward voltage, from which you can calculate the resistance you need:

Vf = 2.5V, If = 20mA

So for a 9V supply you want to drop 6.5V with a current of 20mA.  Plug that into your magic triangle, giving:
R = V / I = 6.5 / 0.02 = 325 ohms, for a fairly high-power LED.  Obviously you can't get 325 ohm resistors, but 330 is probably close enough.

Most modern LEDs are "low current" ones, so they might take typically as little as 2mA.  So, once again:

R = 1.7 / 0.002 = 850 ohms so somewhere between 820 ohms and 1k will be just fine.

Bear in mind that with multiplexed LEDs they are only on for a short period of time, so they can be run at significantly higher current.

Logged
If at first you don't succeed, stick it through a fuzzbox.

kloroplaster

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: Adding LEDs
« Reply #2 on: December 09, 2010, 11:15:28 PM »

I see, thanks for the informative reply!  :)
Logged

Circuitbenders

  • crustypaul
  • Admin
  • This person is dangerously insane.
  • *****
  • Karma: 1102
  • Offline Offline
  • Posts: 2451
    • Circuitbenders.co.uk
Re: Adding LEDs
« Reply #3 on: December 10, 2010, 12:55:28 AM »

Logged
i am not paid to listen to this drivel, you are a terminal fool