Skip navigation

community

644 Views 4 Replies Latest reply: Dec 1, 2011 5:59 PM by RWM RSS
Currently Being Moderated

Nov 30, 2011 10:47 PM

Using 1.5mm LEDs powered by USB

I would like to hook up a series of 1.5mm LEDs for a random project. It's for a model — I'd like to have a circle of 15 or so LEDs and have them powered by USB. They would just turn on when plugged in via USB. What are the basics I would need to do this. I don't really know much about electronics, so feel free to be as remedial with your answers as possible. Thanks in advance.

Attributes

  • Currently Being Moderated
    1. Dec 1, 2011 3:04 AM (in response to pacoallen)
    Re: Using 1.5mm LEDs powered by USB

    Hi Paco, just be wary or the ammount of current you are looking to source if you are using the bus for any other application, officially you only have 100mA to play with before a device is enumerated, 500mA after enumeration. Going outside of these boundaries makes you reliant on a non USB standard host interface. If you are simply using Vbus as a power source

    use an LDO regulator as the voltage can vary between 4v and 5.25v and draw no more than 100mA.

    Hope that helps.

  • Currently Being Moderated
    2. Dec 1, 2011 6:36 AM (in response to pacoallen)
    Re: Using 1.5mm LEDs powered by USB

    Hi,

     

    you should connect LEDs to USB plug like on schematic:

     

    LEDS_USB.png

    You can add next LEDs (with resistors) similar to shown above.

     

    As current which flows through LED must be limited, resistors are used. Values must be calculated according to type of LED and desired current. Most small LEDs have maximum current in 10-20 mA (milliamps, mA=0.001A) range. USB has output voltage 5V and LEDs have different forward voltages, you can assume 2V for red and amber ones, 3V for blue, white and true green (exact values can be found in datasheets).

     

    To calculate resistor values, firstly LED current must be determined, for example 5mA. Then from Ohm's law:

    R=U/I, where:

    R - resistor value

    U - voltage across resistor (so in our case USB voltage minus LED forward voltage)

    I -LED current

     

    For blue LEDs and 5mA current:

    R=(5V-3V)/0.005A = 400 ohm

     

    You can use standard value 390 ohm.

     

    So you need: 15 pcs of LED lamp, 15 pcs of 390 ohm resistor and USB plug.

     

    Total current should not exceed values showed above by Kelv.

  • Currently Being Moderated
    4. Dec 1, 2011 5:59 PM (in response to pacoallen)
    Re: Using 1.5mm LEDs powered by USB

    You can use thin insulated copper wire, e.g. similar to:

    http://uk.farnell.com/alpha-wire/6710-gr005/wire-eco-28awg-green-30-5m/dp/1764894

     

    If current through single LED will be 5 mA, total current will be 15 * 5 mA = 75 mA, so below USB limit (100/500 mA) and USB will power all LEDs.

Related Content


Related Products
Discussions
  • Retrieving data ...

Bookmarked By (0)