Hey guys, in the previous post, I have shown you how to test if your NRF24L01 is working well before making the drone. If you have not yet seen the video or the post, make sure to check it as it will be very helpful in any project using the NRF24l01 module. You can see it HERE. Now that you have already checked that your NRF24L01 is working, you can now proceed in making the ESC for the brushed motor because we are using the coreless motor in this project which is a brush DC motor. In this post, I will show you how to make your own brush dc motor ESC.

part 3 thumbnail

For this part, you will the following parts. You can see the links where to buy these parts HERE:
1. 8520 coreless motors (4 pcs)
2. N-channel MOSFET- A2SHB (4 pcs)
3. SS14 Schottky diode (4 pcs)
4. 10k RESISTOR (4 pcs)

For one ESC, the connection will be as follows:
one mosfet circuit

The above diagram is the connection for one ESC. The gate should be connected to a PWM pin of the Arduino. First of all, we solder the MOSFET to zero PCB.

adding mosfet
The A2SHB N channel MOSFET is very small and would stick to the soldering iron. Add some flux to the PCB and then place the MOSFET to the PCB to keep it in place. After that, use tweezers or something else to hold it in place. Once done, apply solder to one leg of the MOSFET and then solder the rest. Once done, add some flux in the Schottky diode legs. Be aware of the BAR in the diode, the Bar is the cathode and should be connected to the positive of the battery. The other side, without the bar, should be connected to the drain of the MOSFET. Follow the diagram above.

add diode

add flux

solder to drain

Once soldered, you can now add the 10K pull-down resistor. I am using the SMD version but you can use the normal one if you do not have the SMD version. Solder it between the two legs at the back of the MOSFET which is the GATE and DRAIN of the MOSFET.


It should look like this after soldering everything. This is one ESC done. Now you will do the same for the other 3 mosfet and connect it to Arduino and battery as follows:
full connection

And the completed connection should be as follows:
full solder

Once you have made the connection as above, connect the Arduino to your PC and connect the LIPO battery to the Circuit and upload the following code to the Arduino to make sure that the connection is correct. Remember that the gate of the MOSFET should be connected to the following Arduino pin, D3, D6, D9, and D5. In the CODE you should change the pin number to test all the motors.

code upload

Copy and Paste the code in the Arduino IDE and upload it to the Arduino.


void setup(){

void loop(){

analogWrite(3, 150); // write 150 pwm to pin 3 -> change to 5,6,9 and test. PWM value can be from 0 to 255



Once you see all motors are working correctly, means you have made the connection right. If you having any trouble, check the video on my YouTube channel below. This is it for this post. In the next post will have the completed circuit and do our flight test.

Watch the Video on my YouTube channel here