Gentlemen, I would like some help.
In my project I'm using a mega arduino along with some relays. Being that I would like to feed these relays with an external source. However, these relays only have two forms of power: through a microusb port or through the pins.
The intention is to use a single source for approximately 20 relays. So, I ask you: what is the best way to feed these relays?
https://www.gearbest.com/other-accessories/pp_625459.html
I have never seen a power supply with 20 micro-usb cables and I do not know if I connect the V + and V- cables to the power supply will work. The question in this regard is: where does the current flow by using an external source? I know that the Arduino pins work with a maximum of 40mA. Then it is through the IN pin that the current arrives. Or not? But if we connect an external source will not pass current from the Arduino to the board through the IN pin? What would I need to make a link as below work?
If I use a protoboard with external source, would the current be drained from the protoboard?
What would be the best way to energize these relays?