Drone building from Scratch with Practical Information

Building Your Drone from Scratch: A Step-by-Step DIY Guide to Crafting Your Dream UAV

Part-1

Hi there! Welcome to an exciting journey of building your own drone from scratch. I'm Rahul Sharma, a Hardware Design and Computer Vision Engineer. Let's dive into the world of drone-making together!

Introduction

I'll not only provide you with educational content but will also share my personal experiences throughout this journey. So, get ready for some exciting insights!

If you're new to this field, no worries! We'll cover everything you need to know but not in detail otherwise it will be too lengthy:

Feel free to explore the topics according to your interests.🤗

  • Different types of drones: Learn about the various types of drones and their applications in different industries.

  • Components for Drone: Explore the essential components needed to build a functional drone, including motors, propellers, flight controllers, and more.

  • Connection Diagram: Understand how to connect and wire the components together to form a complete drone system.

  • Assembly: Step-by-step guide on physically assembling the drone frame and integrating the components.

  • Getting Started: Learn about the pre-flight preparations, calibration, and safety checks before taking your drone to the skies.

  • First Flight: Experience the thrill of launching your drone for the first time and the basic flight manoeuvres.

I hope you find this blog helpful in your journey of drone building. Let's get started!

For more updates and related content, you can visit my LinkedIn profile and connect with me there.

Different types of Drone

Based on Size:

1) Nano (Total take-off weight = < 250gm)

2) Micro (Total take-off weight = 250gm - 2kg)

3) Small (Total Take-off weight = 2kg - 25kg)

4) Medium (Total Take-off weight = 25kg - 150kg)

5) Large (Total Take-off weight > 150kg)

Based on Aircraft type:

1) Multirotor Drones

These are having multiple motors and propellers with a defined structure. Here Propellers are used to generate the lift.

source-

https://en.wikipedia.org/wiki/Multirotor

2) Fixed Wings

These are like Aeroplanes which have fixed wings to generate the lift.

source-

https://www.indiamart.com/proddetail/fixed-wing-uav-for-aerial-mapping-and-survey-surveillance-8525280348.html

3) Single Rotor

It is like Helicopter where single rotor is used to generate the lift and manuavor also. Tail is used to counter the torque generated by one rotor.

source-

https://www.researchgate.net/figure/Single-rotor-drone-image-credit-Velosuavcom_fig3_331719966

4) Fixed Wing Hybrid VTOL

These are built for long-range applications. These have both Fixed wings and multiple rotors. These can take off vertically and glide in the air like aeroplanes.

source-

https://newatlas.com/carbonix-volanti-vtol-fixed-wing-industrial-uav/48253/

Here We Will only Discuss the MultiRotor (Quadcopter).

If you want to learn more about the different types of drones you can comment.

Components for Drone

*) BLDC Motors

source-

https://robotist.in/product/dji-2212-920kv-brushless-dc-motor-for-drone-with-black-cap-cw-motor-rotation/

BLDC motors are generally used for Drones due to their high power, high RPM and low wear and tear.

*) Propellers

source -

http://www.rchyderabad.com/carbon-fiber-rc-timer-propeller-multirotor-drones.html

Propellers are used to generate the required thrust. Choosing the proper propellers is crucial because you have to calculate the Pitch, Diameter for the particular motor. Each motor's property is different hence how much the current motor consumes to make 1 turn and in that turn how much lift is generated directly depends on the Propellers. Choosing the wrong propellers can make the motor hot and can reduce the life of the motor also.

It's better to see the motor specs where it will be mentioned how much thrust it generates with which propellers and at what RPM. Follow that only.

Practical Scenario:

I used T-motor (MN6007), and there were full specs written for this Motor with 22-inch propellers.

I had 20-inch propellers in spare so I used 20-inch one.

After a few iterations, I got to know that to make it lift, I need to give a bit more throttle and when I checked the logs I found that the motor thrust generated was at a bit high RPM than it was mentioned in the specs with 22-inch propellers. So clearly found that although your drone will fly internally you are costing your motor.

*) ESCs

source-

https://www.xbotics.in/esc/702-xbotics-40a-esc-2-4s-esc-drone

ESCs (Electronic Speed Controllers)-

These are used to convert the PWM generated by the Flight Controller to generate the 3-phase PWM output that drives the BLDC motor.

*) Battery

source-

https://www.xbotics.in/battery-charger-agriculture-drone/937-tattu-22000mah-6s-25c-lipo-battery-for-drone

Lipo Batteries are used to provide the necessary power to the System and Drone.

*) Radio Telemetry

source-

https://www.amazon.in/Tradico-915MHz-433MHz-Telemetry-Android/dp/B07GZVTSQF

Radio Telemetry is very useful for your drone. Although your drone can fly without this but believe me this is one of the useful components for your drone.

This gives the real-time data from the drone to your Ground Control Station which can be monitored to take live decisions. It is also helpful while following the process-

*) Compass Calibration

*) Drone tuning

*) Battery status monitoring

*) Flight Path and Auto Mission settings and Monitoring and Many more.....

So it's always recommended to use Telemetry with your Drone.

Exception:

These days high-grade Radios are also having this facility but you need to decide on your budget to purchase those Costly Radios.

*) RC Radio

source -

https://robu.in/product/radiolink-at10-2-4ghz-12ch-rc-drone-transmitter/

RC Radio is useful to control the Drone remotely. It sends a Radio signal in a particular bandwidth and is interpreted by the RC receiver which is connected to the Flight Controller.

The transmitter sends a signal and the receiver receives the signal. As simple as that. But there are 2 types of Radio one in which the throttle stick is Self-Centered and in another, it is not.

I prefer to use self-centred throttle due to a specific reason. That I will tell you later.

*) Flight Controller

source -

https://docs.px4.io/main/en/flight_controller/cubepilot_cube_orange.html

Flight Controller Pixhawk which is the Brain of the Drone. It consists of advanced sensors like IMUs, Barometers, Compasses and different types of Communication Protocols like CAN, UART, and Serial. This small and powerful board does all the real-time calculations to make the drone fly stable in the Air.

I used the Cube-Orange Flight Controller.

*) Power Distribution Board

source-

https://robu.in/product/multirotor-esc-power-distribution-battery-board-quadcopter/

The power Distribution board is very useful to connect multiple motors terminal at once in a simplified way.

It can also provide regulated power that can be used to actuate different external sensors that are mounted on your drone.

*) GPS/Camera

source-

https://www.amazon.com/HEX-Here3-GNSS-Module-iStand/dp/B0C3KBK7N4

GPS is a must for the beginner as it is required to fly the drone in Loiter mode or position hold or Alt hold mode.

Without this, you have to fly the drone on your own.

Alternatively, you can use the optical flow camera that gives you a change in X/Y direction which is used to put the drone in a self-hold position.

*) Payload (if required)

These are the extra component which you want to carry along with the drone like camera, lidar etc.

You should tune the drone with the payload to use it effectively.

Connection Diagram

Straight from the Official page of Ardupilot here is the Connection Diagram attached.

Reference of the image-

https://ardupilot.org/copter/_images/Cubepilot_ecosystem.jpg

As you can see all the necessary connections of ESC, motor, flight controller etc. This is a very good image depicting everything you need to know about the connection.

Still, you want to ask anything related to this, you can comment.

Assembly

🔹 Building the Solid Base Frame:

The foundation of any successful drone assembly is a robust base frame. If you intend to have landing gears, ensure they are included for smooth landings and to keep the drone stable when at rest. For those constructing foldable drones, pay special attention to the joint connections, ensuring they are sturdy and reliable.

I used a T-motor FOC combo that includes Motor+ESC+Propellers.

🔹 Attaching the Motors to the Arms:

Securely attach the motors to the designated arms of the drone frame. Double-check that they are firmly fixed in place to prevent any issues during the flight.

🔹 Fitting the Propellers:

Refer to the provided diagram to correctly fit the propellers onto the motors. It's essential to understand the proper orientation of each propeller to ensure stable flight. However, refrain from connecting the propellers at this stage, as we will perform ESC calibration before the final attachment.

🔹 Connecting the Motor Wires and ESCs:

Now, connect the motor wires to the Power Distribution board and the ESC wires to the Flight Controller's Main Servo pins. This step is crucial in establishing the communication between the motors and the flight controller, allowing for precise control during flight.

Connect the 2-pin wire with Flight Controller in Main-servo connectors serially.

Note-

There are combo packs that include all 3 components - Motor+ESC+Propellers which makes it easy to use without any confusion, Those are known as FOC

🔹 GPS Module Connection:

If you're using the here3 GPS module, connect it using the CAN1 port designated for GPS connectivity. A properly functioning GPS is vital for accurate positioning and navigation capabilities during flight.

source-

https://docs.cubepilot.org/user-guides/here-3/here-3-manual

This is a very good guide to study to understand different types of connectors and their pin configurations.

🔹 Radio Telemetry Setup:

Connect the Radio Telemetry to the designated serial connector on the Pixhawk flight controller. This connection enables communication between the drone and your ground station, providing real-time telemetry data during flights.

Connector - UART1/Serial1 in flight controller board

The above picture also shows the Telemetry connection.

🔹 Battery Power Module:

Next, connect the Battery Power Module to the flight controller. A well-configured power supply is essential for a consistent and reliable power source during flight operations.

source-

https://ardupilot.org/copter/docs/common-3dr-power-module.html

🔹 Leveling Motors with Carbon Fiber Rods:

If you're using round carbon fiber rods, take the time to level the motors and securely fasten them in place. Properly aligned motors ensure smooth flight and prevent any instability issues during operation. Avoid the temptation to connect the propellers before thoroughly securing the motors to prevent future complications.

A better way to level is to connect the propellers and place your drone at a horizontal level. Measure the distance from the ground to the tip of the propeller on both sides and make it perfectly the same.

This way you can level the motors easily and most efficiently.

Practical Scenario - Troubleshooting Rotational Issues:

In some instances, when your drone is just above the ground and begins rotating either in a clockwise (CW) or counterclockwise (CCW) direction, there are two possible culprits:

ESC Calibration:

Firstly, check if the Electronic Speed Controllers (ESCs) are correctly calibrated. ESC calibration is vital in ensuring that all motors spin at the same speed, providing balanced thrust during flight.

Proper Motor Leveling:

If ESC calibration doesn't resolve the rotational issue, then examine the motor levelling. Ensure that all motors are level with each other and securely fastened. Misaligned motors can lead to erratic behaviour and instability during flight.

Getting Started

Once all the connections are done. Then go to an empty open space and do the followings-

1) Radio Calibration.

*) Open Mission Planner on a laptop.

*) Power on the drone and let the Device be connected (select Buadrate 57600 and /dev/ttyusb) from the top right corner.

*) Go to the "Mandatory-hardware" tab and then the Radio Calibration option and do the steps that are been asked.

For more reference-

https://ardupilot.org/copter/docs/common-radio-control-calibration.html

2) ESC Calibration.

*) Remove the propellers before performing ESC calibration.

*) Go to the ESC calibration section and click on the button.

*) After that remove the power of the drone and power it again.

*) After it boots up, you will hear the beep sounds that represent the ESCs calibrated.

*) You can check the motor rotation for each motor with your stick.

For more reference-

https://ardupilot.org/plane/docs/common-esc-calibration.html

3) Compass Calibration.

Remember to connect the GPS pointing direction should be the same to as Flight Controller Pointing Direction as both will be oriented in the same direction.

*) Go to the "Mandatory-hardware " tab and select Compass calibration

*) Please check your external GPS is displayed there.

*) Click on Compass Calibration and perform all axis rotations.

*) It will display the calibrated values after done.

For more reference-

https://ardupilot.org/copter/docs/common-compass-calibration-in-mission-planner.html

First Flight

This crucial stage of the setup process requires careful attention to detail to ensure a smooth takeoff and successful flight. In this article, we will provide you with a step-by-step checklist, along with tips and recommendations to make your maiden flight a success.

🔹 Power On and Check QGroundControl:

Begin by powering your drone and launching QGroundControl on your laptop. QGroundControl is chosen over Mission Planner for its user-friendly interface and a clear indication of your drone's readiness for flight. As a beginner, it's vital to rely on the software to verify if all sensors are correctly calibrated before takeoff. If the software indicates that your drone is "Ready to Fly" you can proceed confidently. Otherwise, carefully review any error messages and address the necessary adjustments.

There can be several issues like-

EKF related -> make the drone stable for a few mins to get it rectified automatically.

GPS Lock -> Loiter/Alt hold mode will not get used without GPS Lock.

🔹 Selecting the Right Flight Mode:

In Ardupilot Software, various flight modes are available, each serving different purposes. While the documentation may suggest starting in Stabilised Mode, i recommend using Loiter Mode for your first flight. This mode provides a more forgiving flight experience, making it easier for beginners to control the drone and execute manoeuvres with greater stability.

***Using Self-Centered stick in Radio Controller***

Whenever you are flying a drone, you have to control both sticks in the radio to control the throttle and roll-pitch-yaw of the drone.

For a beginner, it will be difficult to do that and I am sure you will end up crashing your drone.

Hence you need to fly the drone in a way where you don't need to control the throttle and just roll and pitch ("Loiter Mode").

But for Loiter Mode, your stick needs to be in the centre after you armed your drone. Then you can make it fly up/down by moving your throttle stick up from the centre/down from the centre.

Thus if your stick is self-centred, then you just release it after arming and you need not worry about its placement. But if you are using a non-self-centred stick, then you have to manually put it in the middle which needs very preciseness and smooth finger movement.

I hope you got it now why Self-Centered Stick is a better option to use for throttling the drone.

🔹 Performing the First Flight:

Once you've selected Loiter Mode, perform a test flight by flying your drone approximately one meter above the ground. Observe its behaviour and stability for a few seconds before initiating a controlled landing. This preliminary flight will allow you to assess if your drone is functioning correctly and if any adjustments are needed.

🔹 Troubleshooting Motor Rotation:

If your drone topples in the ROLL or PITCH direction, it may indicate incorrect motor rotation or improperly connected motors. In such a case, double-check the motor rotation directions and correct any incorrect connections.

🔹 Identifying Leveling Issues:

Should your drone start rotating excessively in one direction without toppling, it may suggest an imbalance in motor levels. To address this, carefully check and adjust the motors' positioning to ensure a balanced configuration.

🔹 Calibrating ESCs for Yaw Stability:

If your drone exhibits undesired rotation in the YAW direction and remains at a specific angle, it indicates an issue with the Electronic Speed Controller (ESCs) calibration. To resolve this, perform an ESC calibration to ensure smooth and stable YAW control.

🔹 Radio Calibration for Optimal Responsiveness:

If you notice sluggish response in the ROLL or PITCH direction while your drone reacts quickly in other directions, your radio may require calibration. To rectify this, remove the propellers and recalibrate the radio, ensuring precise and consistent control inputs.

🔹 Analyzing Flight Logs:

Once you've safely landed your drone, take the time to review the message logs in the Ground Station. Analyzing these logs will provide valuable insights into your drone's behaviour during the flight. This analysis can help you identify any issues that might have gone unnoticed during the flight and aid in making necessary adjustments for future flights.

Note:

If you are done with the above steps that is a happy moment but don't think that your Drone is now ready to fly... Tuning is still left and believe me that is very much important before flying a drone repeatedly in Air because if you encountered sudden GUST then your drone should be well-tuned to be stable.

*******************************************************************

Thank you for joining me on this journey of drone DIY. I hope this comprehensive guide has empowered you to unleash your creativity and passion for drones. Whether you're a seasoned drone enthusiast or a newcomer to the world of UAVs, building your drone is a fulfilling and rewarding experience.

Feel free to share this guide with friends, colleagues, or anyone who might find it helpful.! 🚀🛩️📸

I am making another blog for the following topics if you want to learn more then be in touch and let me know in the comments.

-> How ESC works and makes the motor run.

-> Drone Tuning.

-> Payload Integration and tune.

-> Auto Mission.

-> Companion Computer Integration.

-> Dronecode.

-> Different types of Propellers and how to choose.

-> Different types of batteries and how to choose.

Till then Happy Droning😊.

This is my first blog so if there is any mistake in this blog, let me know in the comments...I will be happy to rectify it.

Rahul Sharma

LinkedIn

#DIYDrones #DroneEnthusiast #UAV #DroneBuilding #DroneTech #DroneLife #DroneCommunity #TechInnovation #DroneLovers #AerialPhotography #DroneFlight #DroneCreators #TechDIY #Makers #TechTrends #AerialAdventures #TechEnthusiast

Did you find this article valuable?

Support Build your Drone from Scratch by becoming a sponsor. Any amount is appreciated!