Project tutorial
Drone Altitude Hold Using KK Flight Controller and Arduino

Drone Altitude Hold Using KK Flight Controller and Arduino © GPL3+

I have used a 1.kk flight controller along with an Arduino Nano and an ultrasonic sensor to add the feature of altitude hold.

  • 13,198 views
  • 2 comments
  • 23 respects

Components and supplies

Apps and online services

About this project

I always wanted to make a Drone . So, when the right time came I got myself all the required hardware set along with KK Flight controller.

The reasons for which I choose KK are:

1. It is cheapest compared to other stable versions.

2. Easy to use and setup (On Screen Display available).

3. Great Flight controller for beginners

Although it is really stable and fun to fly using kk flight controller, there is no altitude hold feature available, therefore it is tough to keep it maintained at a fixed height.

First I searched online for ways I could add this feature. Since I didn't get such video I decided to try it out on my own

Here, I have used a

1. kk flight controller,

2.An arduino nano and

3.An ultrasonic sensor

to add the feature of altitude hold using the concept of PID control system.

First challenge was to accurately read the radio receiver's pwm signal for which I referred to

1.Joop Brokking's channel (the ultimate source to make drones using arduino)

2. Electronoobs channel (arduino drone playlist)

Next, I tried using different sensors like a BMP180, BMP280 to read height....but ultimately ended up using an ultrasonic sensor which was the easiest to handle with reliable and accurate data.

That was all the extra hardware required to implement Altitude hold.I also used an extra channel(chn5) to toggle between normal mode and Altitude Hold mode.

I have made a tutorial in Two parts :

1. In part 1 I have showed the drone in action(Altitude hold mode) and also explained all the hardware connections.

2. In part 2 I have explained the code :

Link to download the code : https://github.com/htgdokania/Drone_altitude_hold-

I hope this helps out others and better version for the same is developed in future.

Code

Schematics

connections for ultrasonic sensor
ultrasonic_sensor_pic_b3p5Al18Kc.webp

Comments

Similar projects you might like

Direction_Control using KK flight controller & Arduino

Project tutorial by harsh dokania

  • 3,297 views
  • 0 comments
  • 5 respects

AR DRONE and 1SHEELD - Discover the world around your drone

Project tutorial by Team OMEGA D2

  • 44,159 views
  • 15 comments
  • 198 respects

Mind Control Drone

Project tutorial by WesleyCMD

  • 83,278 views
  • 58 comments
  • 247 respects

Autopilot Drone

Project in progress by suhaskd

  • 62,116 views
  • 191 comments
  • 170 respects

GPS Distance altitude and Speed Logger

Project tutorial by wrighi

  • 4,394 views
  • 9 comments
  • 4 respects

Arduino Robot With PS2 Controller (PlayStation 2 Joystick)

Project tutorial by Igor Fonseca Albuquerque

  • 56,451 views
  • 25 comments
  • 116 respects
Add projectSign up / Login