Author - Harsh Dokania a.k.a HTG
link for Part-I : • Simple Altitude_Hold using KK flight contr...
Download the code from here: https://github.com/htgdokania/Drone_a...
In this video i have used a
1.kk flight controller along with
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)
channel link : / macpuffdog
2. Electronoobs channel (arduino drone playlist)
Link : / @electronoobs
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.