Electronic – How does a powerbank detect a connected USB device

power supplyraspberry piusb

I got a powerbank powering a raspberry pi over the micro usb port of the raspi. The usb cable I use, has only to lines, Vcc and GND. When the powerbank is off due inactivity and I connect the raspberry pi, the powerbank does not turn on by itself, only if it is turned on by its hardware button.
But when I connect my smartphone to the powerbank, it turns on automatically.
So my question is, how does the powerbank detect when an USB device gets connected and how can I make it to automatically detect my raspberry pi on connection?

Thanks for all help.

Best Answer

Usb power banks tend to detect in two ways. One is by the pull up and pull down resistance on the data lines. As the RPI power input has no data lines connected, it won't detect a change of state. The other is by how much current is pulled once the plug is connected. If the RPi doesn't pull enough for the bank, the bank will think it's done and goes to sleep.

Related Topic