## Abstract

The cause of the rapid growth and enhancement in the dynamics of unmanned aerial vehicles (UAVs) is due to its vast utilization in every-day application. The major advantage of UAVs is no risk of human life with secure and suitable surveillance. The UAV facilitates in live video streaming and wide aerial coverage for monitoring. In this project, a type of UAV named quadcopter has been developed. The work mainly consists of design of the quadcopter frame, interfacing of the brushless DC motors and bluetooth module with the microcontroller, and adjustment of the roll, pitch, and yaw for keeping the smooth flight dynamics by flight controller board containing MEMS sensors, i.e., gyroscope, accelerometer, magnetometer, and pressure sensors. The repeated simulation and testing has been carried out in MATLAB for the mathematical modeling of the dynamics of the system, i.e., Euler method for solving differential equation for finding system states, computation of the rotation matrix R and functions to convert from an angular velocity vector w to the derivatives of roll, pitch, and yaw. The improvement in the parameters of the flight dynamics and removing the errors to gain stability in the frame are the main core issues which have been achieved by the several iterations. A closed-loop control system, i.e., PID controller, has been simulated and carefully designed for stabilizing the actual angle from the sensors and desired angle from the pilot. The reduced error rate of 0.05 degrees after every 10 s was achieved.