# Why would an LED works off mains but not battery?

**URL:** <https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879>\
**Category:** Factual Questions\
**Created:** [August 19, 2019, 10:02am UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879 "2019-08-19T10:02:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nippless](https://avatars.discourse-cdn.com/v4/letter/n/df788c/32.png) [@Nippless](https://boards.straightdope.com/u/Nippless)\
**Post date:** [August 19, 2019, 10:02am UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/1 "2019-08-19T10:02:58Z")

</div>

I have a USB-plug little LED light and I’ve noticed it works fine in a USB port fed by AC, but doesn’t work in a powerbank (just brief random flashes). I’ve tried several powerbanks. Why would this be? USB is 5VDC, surely 5VDC is 5VDC?

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [August 19, 2019, 11:50am UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/2 "2019-08-19T11:50:28Z")

</div>

It _should_ be 5V DC. But not all USB sources are of equal quality, and some of the cheap ones produce absolutely atrocious waveforms.

---

<div class="post-metadata">

**Author:** ![jz78817](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jz78817/32/1028_2.png) [@jz78817](https://boards.straightdope.com/u/jz78817)\
**Post date:** [August 19, 2019, 12:12pm UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/3 "2019-08-19T12:12:08Z")

</div>

also, USB devices have to “negotiate” their power draw with the host port. Dumb (charge only) devices usually do this by bridging the data pins with a known resistance. could be that your light is doing something weird and causing the powerbank to refuse to supply it power.

---

<div class="post-metadata">

**Author:** ![scr4](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@scr4](https://boards.straightdope.com/u/scr4)\
**Post date:** [August 19, 2019, 12:46pm UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/4 "2019-08-19T12:46:40Z")

</div>

Some power banks shut off when the current draw is very small. I’ve had a power bank that wouldn’t charge a bluetooth earpiece.

---

<div class="post-metadata">

**Author:** ![The\_Librarian](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/the_librarian/32/402_2.png) [@The\_Librarian](https://boards.straightdope.com/u/The_Librarian)\
**Post date:** [August 19, 2019, 2:48pm UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/5 "2019-08-19T14:48:54Z")

</div>

Did you connect it the right way round?  
The “light emitting” only works when the diode part is off:)

---

<div class="post-metadata">

**Author:** ![scr4](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@scr4](https://boards.straightdope.com/u/scr4)\
**Post date:** [August 19, 2019, 2:53pm UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/6 "2019-08-19T14:53:35Z")

</div>

> [@jz78817](#):
>
> also, USB devices have to “negotiate” their power draw with the host port. Dumb (charge only) devices usually do this by bridging the data pins with a known resistance…

As I understand, all USB ports supply 5V 500mA by default, and those “negotiations” are only needed for drawing more than 500mA.

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [August 19, 2019, 3:01pm UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/7 "2019-08-19T15:01:06Z")

</div>

I would start to debug it using one of those plug-in USB voltage + current meters. Connect it between the port and your device and you can see how much power is getting through, and at what voltage.

---

<div class="post-metadata">

**Author:** ![jz78817](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jz78817/32/1028_2.png) [@jz78817](https://boards.straightdope.com/u/jz78817)\
**Post date:** [August 19, 2019, 3:36pm UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/8 "2019-08-19T15:36:47Z")

</div>

> [@scr4](#):
>
> As I understand, all USB ports supply 5V 500mA by default, and those “negotiations” are only needed for drawing more than 500mA.

IIRC with USB 1.x and 2, it’s 100 mA by default, and per spec up to 500 mA if the device negotiates for it. Some systems/mainboards violate that by just tying the 5 volt pin to system +5 Vdd. I think with USB 3.x/Type C is when greater than 5V/500 mA is allowed.

---

<div class="post-metadata">

**Author:** ![carnivorousplant](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/carnivorousplant/32/3563_2.png) [@carnivorousplant](https://boards.straightdope.com/u/carnivorousplant)\
**Post date:** [August 19, 2019, 3:55pm UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/9 "2019-08-19T15:55:06Z")

</div>

> [@jz78817](#):
>
> IIRC with USB 1.x and 2, it’s 100 mA by default, and per spec up to 500 mA if the device negotiates for it. Some systems/mainboards violate that by just tying the 5 volt pin to system +5 Vdd. I think with USB 3.x/Type C is when greater than 5V/500 mA is allowed.

Doesn’t an LED like that pull ~25mA?

---

<div class="post-metadata">

**Author:** ![iamthewalrus\_3](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@iamthewalrus\_3](https://boards.straightdope.com/u/iamthewalrus_3)\
**Post date:** [August 19, 2019, 5:19pm UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/10 "2019-08-19T17:19:29Z")

</div>

> [@scr4](#):
>
> Some power banks shut off when the current draw is very small. I’ve had a power bank that wouldn’t charge a bluetooth earpiece.

This is my guess as well. There’s some switching intended to prevent parasitic drain that’s cutting power entirely.

I also have a powerbank that will only charge things that draw “enough” current.

---

<div class="post-metadata">

**Author:** ![Nippless](https://avatars.discourse-cdn.com/v4/letter/n/df788c/32.png) [@Nippless](https://boards.straightdope.com/u/Nippless)\
**Post date:** [August 20, 2019, 8:10am UTC](https://boards.straightdope.com/t/why-would-an-led-works-off-mains-but-not-battery/838879/11 "2019-08-20T08:10:04Z")

</div>

> [@carnivorousplant](#):
>
> Doesn’t an LED like that pull ~25mA?

Something like that. For reference it’s lamp similar to one of these: [https://alexnld.com/wp-content/uploads/2015/05/SKU218866-1.jpg](https://alexnld.com/wp-content/uploads/2015/05/SKU218866-1.jpg)

Thanks everyone, I think “power-saving powerbank” answers the question.
