I am using a relay to turn on/off the 5V water pump. The pump turns on and works perfectly when I connect the pump to the 5V pin of the Wemos D1 mini.
However, when the electrical wires go through the relay wemos shield, the pump just emits a light sound like there is not enough current and so it does not work when the relay is on. If I start to play with the wires like moving them or taking out and then in from the breadboard, I can observe that sometimes the pump starts to work slowly.
I am very noob in electricty and circuits but to me looks like there is not enough current arriving to the pump when connected through the relay.
Would you know a way to solve this issue?
I am using the same power source to power the wemos and the pump because I saw a youtube video of a guy who built exactly the same project with the same components. In the picture I use a 2A power bank but I also used a 3A power adapter that I usually use to power a raspberry pi.