Obstacle Avoidance System for Pixhawk, APM, KK, DJI Naza, Etc.

by psp50 in Workshop > Science

3241 Views, 5 Favorites, 0 Comments

Obstacle Avoidance System for Pixhawk, APM, KK, DJI Naza, Etc.

F5N60VXK8WHGUCR.png
Drone obstacle avoidance.png

In this tutorial, we are going to make Obstacle Avoidance System for Pixhawk, APM, KK, DJI Naza, etc. This technique will work on almost all the flight controllers.

Because Here the receiver is not directly connected to the flight controller. It is connected to the Arduino and the Arduino is connected to the flight controller. and here we are using the ultrasonic sensor module to identify object. Here we are using 6 Ultrasonic sensor modules and this all 6 ultrasonic sensor module is connected to the Arduino.

Supplies

Make Drone

Screenshot 2020-04-12 at 3.50.37 PM.png
Screenshot 2020-04-12 at 3.51.53 PM.png
Screenshot 2020-04-12 at 3.51.30 PM.png
Screenshot 2020-04-12 at 3.51.04 PM.png

First, If you have not make drone make drone using this video.

https://www.youtube.com/watch?v=bVc4P_2EklQ

Configure System for Obstacle Avoidance

Drone obstacle avoidance.png

After making drone please check the drone propely. is it working properly or not if it is not working properly then fix the problem and then after connect this system for Obstacle Avoidance.

As shown in the image connect the receiver of the drone to the Arduino nano and all the ultrasonic sensors to the Arduino nano.

The after Arduino Nano will be connected to the receiver input pin of the Flight controller.

What is the logic here?

Here PWM Signal which comes from the receiver will not directly go to the flight controller.

The receiver will interact with the Arduino Nano. Here all ultrasonic sensors also connected to the Arduino nano. So, Arduino Nano forward the signal to the flight controller as it is. if there are not any obstetrical. If any obstetrical will come then Arduino analyze the both data which is coming from the Receiver and Ultrasonic module. After that Arduino nano forwards the PWM signal to the Flight controller to avoid an obstacle.

Screenshot 2020-04-12 at 3.34.07 PM.png
Screenshot 2020-04-12 at 4.14.05 PM.png
Screenshot 2020-04-12 at 4.14.56 PM.png
Screenshot 2020-04-12 at 4.12.18 PM.png
Screenshot 2020-04-12 at 4.13.03 PM.png
Screenshot 2020-04-12 at 4.13.37 PM.png
Screenshot 2020-04-12 at 4.14.34 PM.png