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.

  • 81 views
  • 0 comments
  • 0 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

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

Project tutorial by Team OMEGA D2

  • 36,091 views
  • 15 comments
  • 193 respects

Mind Control Drone

Project tutorial by WesleyCMD

  • 58,492 views
  • 50 comments
  • 202 respects

Arduino GPS Drone RC Boat

Project in progress by maboshi

  • 13,735 views
  • 8 comments
  • 57 respects

Soldering Iron Controller for Hakko 907

Project tutorial by Alexander

  • 36,570 views
  • 22 comments
  • 72 respects

Home Made Arduino Based MPPT Charge Controller

Project tutorial by ElectronicsLovers

  • 29,312 views
  • 8 comments
  • 31 respects
Add projectSign up / Login