[SOLVED] Prevent powerbank to go into standby mode

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
vince
Posts: 15
Joined: Wed May 06, 2020 9:23 am

[SOLVED] Prevent powerbank to go into standby mode

Post by vince » Fri Sep 11, 2020 12:24 pm

Hi Everybody!

I have a simple question concerning the pyboard. I want to use it with an external powerbank. It works fine, but the pyboard is just too efficient :mrgreen: and not drawing enough power, so the powerbank thinks it is not used and goes into standby mode after 30 sec (and switch off the pyboard). :roll:

What could I do to draw more power?

1. I read on an arduino forum, to connect a 470 Ohm resistor from voltage to GND. Is this safe? If yes, should I use 3V3 or V+? The pyboard is out of stock and I really don't want to break it.

2. Or should I prefer doing some silly calculations in the background to increase cpu load?

Thanks in advance,

Vince

UPDATE: I'm using a pyboard V1.1, the powerbank is an Intenso Powerbank XS10000
Last edited by vince on Tue Sep 15, 2020 1:49 pm, edited 3 times in total.

chuckbook
Posts: 125
Joined: Fri Oct 30, 2015 11:55 pm

Re: Prevent powerbank to go into standby mode

Post by chuckbook » Fri Sep 11, 2020 2:48 pm

It's usually ok to create power peaks onec and a while to keep the power bank happy.

Code: Select all

def wup(p):                                                                                                        
    for i in range(1000):
        pass

rtc.wakeup(10000, wup)
This is a pretty naive way to create power consumption peaks, but it shows the idea.

Note:
If you run your pyboard at a low processor clock it might not reach an adequate power level to keep your power bank happy.

User avatar
pythoncoder
Posts: 4469
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Prevent powerbank to go into standby mode

Post by pythoncoder » Fri Sep 11, 2020 4:16 pm

I have encountered that one. The amount of current you need to draw depends on the design of the powerbank. You haven't said what type of Pyboard you have but on the assumption that it's a V1.0, V1.1 or Pyboard Lite the V+ pin is connected to USB 5V through a diode so you can safely draw power from there. I use 100Ω to draw just under 50mA. If that isn't enough, try 47Ω.
Peter Hinch

vince
Posts: 15
Joined: Wed May 06, 2020 9:23 am

Re: Prevent powerbank to go into standby mode

Post by vince » Fri Sep 11, 2020 4:48 pm

Hi pythoncoder,

your solution worked! :D Thank you very much.

First I tried with 100Ohm, but it didn't work. Then I tried with 50Ohm (5x10Ohm), and this worked!
I will buy a ~50Ohm resistor asap and try again.

User avatar
pythoncoder
Posts: 4469
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Prevent powerbank to go into standby mode

Post by pythoncoder » Sat Sep 12, 2020 12:23 pm

I should point out that the 50Ω (or 47Ω) resistor should be rated at 0.5W or above.
Peter Hinch

Post Reply