Wemos d1 mini pro will not connect when powered via 5v pin

Probably. If it´s so, @Paul_B is right and you probably connected the wrong wires in your circuit.

I share your guess.