Here I have controlled the speed of the BLDC motor based on the distance of obstacle from the UAV measured using an ultrasonic sensor. A detailed Explanation of the Project is attached to the report.
1.https://www.watelectronics.com/ultrasonic-sensor/
2.https://www.tytorobotics.com/blogs/articles/how-brushless�motors-wor