simulate this circuit – Schematic created using CircuitLab
So I am working on a project that will require both a servo motor plus a small water pump. Both run on 3.7 -6v and I am going to use them with my Pi zero. I am a total electronic rookie and have been doing as much homework as possible to figure this out, but some guidance would be greatly appreciated.
I have seen videos of people running a small servo directly from the pi, but I have also read the servo can suck all the power and end up killing the pi. So that plus the need to run a pump made me think about using a relay board.
But here is my confusion.
The servo has 3 wires. live, ground and data. But the pump has only 2 wires live and ground plus I may also run a couple of leds
But if a relay board is connected to the pi by a few of the gpio will the signal for the servo motor be able to 'get through' properly without being disrupted by other connected devices, (the pump)
Also is it better to connect the pump, the leds and the servo, each to their own relay. Or better to just use the relay ports for the more electrically thirsty devices (servo) and just wire leds directly to gpio
Like I say, I am new to this and find it pretty confusing.
and as an extra kicker, I would love to run the whole thing from a single power unit, i know alot of things say power the servo independently, but the project only works if everything works together, so no point powering servo if pump is dead - maybe this is possible with a relay board connected???
I know this seems a bit waffly, but i hope it is clear what I mean! Thanks for your help!