Did you have the connection cables for power for the power supply of your devices gone? Get a separate Power Supply!
Elegoo delivers a power supply similar to that of Ywrobot MB102. This can be used to select a standard (2.1 mm) DC Jack or USB as an alternative input, if the MicroUSB connector is missing.
The handling is simple: put the power supply on the breadboard with its PINs, the jumper according to the desired output voltage (2x 3.3 and 5V available), with power supply (in the picture a battery is to be seen and a prefabricated DC Jack cable). Switch on the power supply as soon as the device has been supplied with GND and 5V DC.
No code, no Schematics needed.
You will find more under my account.