1

I have a device with a microcontroller that is powered via a USB-C connector. It is a more or less a standalone device (a synth with a USB-C power input and a jack output) and probably user would want to power it from a power bank. The problem is that many power banks are way too "smart" and turn off due to the consumed power being too low - my device "sips" only about 30-40mA.

I found a solution that uses a short high-current pulse (through R19 and Q1) to keep the power bank on. However, some power banks seem to still turn off - even with R17 changed to 100k, essentially creating a 50% duty cycle high-current-flow. My questions are:

  1. Is there any solution short of just increasing the constant supply current by putting a ~50-70 Ω resistor in parallel to the power input?
  2. Are 5.1 kΩ USB resistors values valid in these circumstances?

Schematic

7

2 Answers 2

0

Get fancy! Throw on some LEDs with a switch. Explain to the user that these LEDs can be used when the powerbank turns itself off and doesnt have a "stay on" function, or whenever they would like to look fancy.

Just add some red LEDs at 10 mA each and test it that way.

Another option is to straight up let the consumer know they need to plug another device in, or get a powerbank that has trickle charging modes. A cardboard insert can be included in the box.

1
0

These power banks are not compliant with the USB-C specifications, then. A power bank has no choice in "turning off" unless either the device disconnects itself, a fault condition such as overload is present, or the battery runs out.

The power bank needs to use CC lines to detect device presence. That's what the USB-C specs stipulate. It has a finite time from detecting the power sink on the CC lines to turning the VBUS on, and then it cannot turn the VBUS off based on load current. That's just not an option. The device can tell the power bank to turn off by opening up the CC lines. About 100ms later, the power bank would be turning the VBUS off.

My initial guess would be that the power banks you got are either a noname brand, or are fakes. Either way, they are not compliant, and basically don't work correctly. The whole point of USB-C is that this wholly arbitrary current-sensing nonsense that was needed with USB-A outputs is no longer necessary. What they did on those power banks was to just replace the A connector with a C connector, but they left the load detection logic in place. It can't be used with USB-C.

4
  • Spec page or section number that addresses this?
    – Passerby
    Oct 11, 2022 at 6:16
  • And then you go tell the user to never use a type A cable?
    – Anas Malas
    Oct 11, 2022 at 7:14
  • Of course they are not compliant. Essentially, the question is in two parts: 1) Are 5.1k Ohm resistors valid for a low-current device 2) Non-compliant powerbanks still should be dealt with in some way to avoid user frustration, so, short of just increasing the current, what is the solution?
    – sx107
    Oct 11, 2022 at 23:46
  • @AnasMalas that would be very stupid.
    – sx107
    Oct 11, 2022 at 23:47