Keeping Arduino based projects running on a powerbank

To keep Arduino Based projects running on a powerbank, you will need something to generate load every now and then to keep the powerbank powered on.

This can be achieved by connecting 2 resistors and 1 mosfet to you’re Arduino based project.

With a little program, you can keep the powerbank on forever (at least for the time the battery is not drained)

Code example:

void setup() {
// put your setup code here, to run once:
pinMode(12, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(12, HIGH);
delay(500);
digitalWrite(12, LOW);
delay(5000);
}

 

Here some pictures of a real life situation (just for testing purposes) and it works great!

Here are the parts connected:

This is the “normal load” of the project:

And this is the load generated by the resistors and the mosfet:

 

I used the following components:

1 resistor 66 ohm
1 resistor 1K ohm
1 Mosfet NPN 2N2222

Combining it to:

Leave a Reply

Your email address will not be published. Required fields are marked *