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](/proxy/?url=https://content.instructables.com/FAJ/113F/KW4YVR13/FAJ113FKW4YVR13.png&filename=F5N60VXK8WHGUCR.png)
![Drone obstacle avoidance.png](/proxy/?url=https://content.instructables.com/F7D/E77Q/K8WHGTAX/F7DE77QK8WHGTAX.png&filename=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
Ultrasonic Module: https://www.flyrobo.in/ultrasonic_module_hc_sr04_distance_measuring_sensor?tracking=instructables
Arduino Nano: https://www.flyrobo.in/arduino_nano_r3_board_with_ch340_chip?tracking=instructables
Buy Full Drone kit : https://www.flyrobo.in/hexacopter-drone-combo-with-apm?tracking=instructables
Make Drone
![Screenshot 2020-04-12 at 3.50.37 PM.png](/proxy/?url=https://content.instructables.com/F4O/OHGI/K8WHGTKY/F4OOHGIK8WHGTKY.png&filename=Screenshot 2020-04-12 at 3.50.37 PM.png)
![Screenshot 2020-04-12 at 3.51.53 PM.png](/proxy/?url=https://content.instructables.com/FNX/9JQH/K8WHGTL1/FNX9JQHK8WHGTL1.png&filename=Screenshot 2020-04-12 at 3.51.53 PM.png)
![Screenshot 2020-04-12 at 3.51.30 PM.png](/proxy/?url=https://content.instructables.com/F3S/S16M/K8WHGTL2/F3SS16MK8WHGTL2.png&filename=Screenshot 2020-04-12 at 3.51.30 PM.png)
![Screenshot 2020-04-12 at 3.51.04 PM.png](/proxy/?url=https://content.instructables.com/FYR/B1DK/K8WHGTL5/FYRB1DKK8WHGTL5.png&filename=Screenshot 2020-04-12 at 3.51.04 PM.png)
First, If you have not make drone make drone using this video.
Configure System for Obstacle Avoidance
![Drone obstacle avoidance.png](/proxy/?url=https://content.instructables.com/F0H/LAPB/K8WHGTPW/F0HLAPBK8WHGTPW.png&filename=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.
Downloads
![Screenshot 2020-04-12 at 3.34.07 PM.png](/proxy/?url=https://content.instructables.com/F5N/60VX/K8WHGUCR/F5N60VXK8WHGUCR.png&filename=Screenshot 2020-04-12 at 3.34.07 PM.png)
![Screenshot 2020-04-12 at 4.14.05 PM.png](/proxy/?url=https://content.instructables.com/FQU/O6HQ/K8WHGUD2/FQUO6HQK8WHGUD2.png&filename=Screenshot 2020-04-12 at 4.14.05 PM.png)
![Screenshot 2020-04-12 at 4.14.56 PM.png](/proxy/?url=https://content.instructables.com/FOO/083R/K8WHGUD3/FOO083RK8WHGUD3.png&filename=Screenshot 2020-04-12 at 4.14.56 PM.png)
![Screenshot 2020-04-12 at 4.12.18 PM.png](/proxy/?url=https://content.instructables.com/FQP/4KDG/K8WHGUD5/FQP4KDGK8WHGUD5.png&filename=Screenshot 2020-04-12 at 4.12.18 PM.png)
![Screenshot 2020-04-12 at 4.13.03 PM.png](/proxy/?url=https://content.instructables.com/FSM/X08O/K8WHGUD7/FSMX08OK8WHGUD7.png&filename=Screenshot 2020-04-12 at 4.13.03 PM.png)
![Screenshot 2020-04-12 at 4.13.37 PM.png](/proxy/?url=https://content.instructables.com/FMB/70F8/K8WHGUDA/FMB70F8K8WHGUDA.png&filename=Screenshot 2020-04-12 at 4.13.37 PM.png)
![Screenshot 2020-04-12 at 4.14.34 PM.png](/proxy/?url=https://content.instructables.com/FHN/EGGE/K8WHGUDC/FHNEGGEK8WHGUDC.png&filename=Screenshot 2020-04-12 at 4.14.34 PM.png)