2026-01-28 2:12 AM - last edited on 2026-01-28 3:00 AM by Andrew Neil
So far, in all my projects, the MCU has been powered via USB attached to computer. I would like to make a project in which the MCU is powered by a portable power supply. However, I don't know which equipment I need to use for this purpose.
I have a power supply module from ELEGOO kit (ELEGOO Upgraded Electronics Fun Kit w/Power Supply Module, Jumper Wire, Precision Potentiometer, 830 tie-Points Breadboard for Arduino, STM32 : Amazon.com.au: Computers), which can output 5/3.3V electricity. Can I connect a powerbank to the supply module, and use the supply module to power the board, or should I look for other options?
The board I use is stm32f407g-disc1, and the datasheet (DS8626_STM32F40xxx.book) says that the voltage should be in 1.8-3.6V range and the power of electrical current should be less than 240 mA (p79).
2026-01-28 2:41 AM
Hello @cockatoo
You need to configure your board to be powered from an external power supply
you can refer to the section 7.4 of this user manual if you have the LQFP144 package
BR
Gyessine
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-01-28 3:00 AM
As @Gyessine said, the User Manual for the board will tell you what its power input options are, and the specifications for each option.
So you just need a power source which meets those specifications.
You could even power the board via the ST-Link USB connection using a USB power supply or power bank.
eg, via a lead like this:
USB specified 5V power - so you just need a 5V power supply.
One thing to note about USB power banks is that larger ones tend to have a minimum current - below that, they just switch themselves off, thinking nothing is connected.
@cockatoo wrote:The board I use is stm32f407g-disc1, and the datasheet (DS8626_STM32F40xxx.book) says...
That's the datasheet for the STM32 chip itself - not the board.
You need to read the User Manual for the Board:
2026-01-28 3:14 AM
A power bank is an option, although only for boards with USB - which allow for power supply via USB.
Some boards have a +5.0V input, often through one of the pin connectors.
The 5V-to-3.3V regulator is on-board (often the same as for USB supply input).
Some board can be supplied via direct 3.3V input, again over pin connectors.
For commercial boards, check the user manual about possible variants.
For both 5.0V and 3.3V, wall plug devices would work as well - like e.g. for most Linux SBCs like Raspberry Pi.
Otherwise, you can connect a battery with proper voltage directly to the 3.3V supply, although this is not recommended (for several reasons).
Better use a switching or linear power supply to provide a stable supply voltage, which allows for batteries with lower or higher voltages. You might even add fancy functionalities like standby and brown-out detection.
2026-01-28 3:20 AM
And regarding your power supply module: I can not see the maximum power it can deliver.
But I have similiar/identical boards which are ok up to 700 mA.
I expect this to be ok for your DK board. Use the 5V setting and it should work.
2026-01-28 3:44 AM
@Ozone wrote:For both 5.0V and 3.3V, wall plug devices would work as well
@cockatoo Beware that some cheap "wall warts" are not regulated; ie; their voltage will fluctuate under load - and can significantly exceed the nominal 5V or 3V3 under light/no load ...
2026-01-28 3:47 AM