Connecting the ESC
Connecting the ESCs is one of the most important tasks in building a quadcopter or any other drone. You can buy four pieces of ESCs or a four-in-one ESC. I suggest you use a four-in-one ESC, which is lighter and easy to use.
If you use single a ESC, connect the wires of the motor to the ESC, as shown in the following figure. The connection of the motor and ESC do not matter because the wires are for changing the phase only:
If you use a four-in-one ESC, the connections are also almost the same. I personally use Multirotor four-in-one ESCs from EMAX. Refer to the following figure to know how to connect the wires:
The 3 x 4 = 12 wires will be connected to the four BLDC motors. Let's look at the wire configuration. The single ESC has eight wires. Three wires go to the BLDC motor, two wires go to the power unit, the remaining three wires are for signal, ground, and power. If you configure the ESC with an Arduino, the diagram will be as follows:
For connecting to the Arduino, we do not use the power of the ESC cable. The main wire is the signal cable. We use this to simulate the core of the motor to turn. If you want to use an Arduino as the main control board of your drone, then you need to connect all of your ESCs, as shown in the previous figure, choosing different signal pins.