We particularly design a power adapter board compatible with micro:bit control board on the condition that no proper power supply is around.
The adapter board can supply power by the black DC port or USB. The DIP switch of the adapter board needs to be dialed to the DC terminal when supplying DC 5-10V by DC port, the DIP switch needs to be dialed to the USB end, when providing power by USB.
After powering up, the output terminal (2mm gray-white interface) gives out DC 3.3V to power a micro: bit control board.