I'm working on my first electronics/Arduino project to control two pairs of motors. Currently, the motors are controlled by a simple four-button, wired remote controller, where each button controls a pair of the motors. I was hoping to replace this remote with an Arduino/Raspberry Pi and a 4-channel relay board to control wirelessly. I already have everything set up to where I can control the relays wirelessly through my phone.
The issue I'm having is that I'm trying to figure out the proper way to wire up the relays to the motors. Each relay has three terminals, and there are a total of 10 wires coming into the controller (remember that 4 of them being redundant as there are two pairs of motors):
- Motor 1 up (M1+) x2 --> Relay 1 NO
- Motor 1 down (M1-) x2 --> Relay 2 NO
- Motor 2 up (M2+) x2 --> Relay 3 NO
- Motor 2 down (M2-) x2 --> Relay 4 NO
- VCC --> ???
- GND --> ???
Wiring up the motors is easy enough. But I'm unsure of how to connect the single VCC & GND wires to each of the four relays. Should these wires be split into four? Or is there something else I need?
I've attached two images: a simple diagram of the wiring, and a picture showing the remote. On the remote there are four Toneluck MQS-1D microswitches, if that matters. Thanks!