HK V2.1Altitude Hold with arduino and sonar/ping sensor

Yes i have to admit it: last time i tried to take off just with goggles, it crashed. 🙁
It was frustrating also for the poor #4 motor that lost all the small balls of the shaft bearing, consequently grinded within magnet and coils: corps everywhere. didn’t cry, yet.

Well after this occasion, i though it would be better to be assisted by something while i take off, just the time of putting on my goggles, or as i wonder activating some altitude holding mode while still on the floor, having to setup a fixed variable rapresenting the minimum altitude to be held in the arduino loop.

First of all: CONNECTION.
We want eventually to completely hijack the signal coming from the rx receiver that should go on the throttle input channel on our flight controller. so at the end we will have

RX CHAN3 -> Arduino -> Flight controller throttle input channel

ALSO
we need an auxiliary channel in order to tell arduino when to start taking over on the throttle channel, so we need at least 5 channels, better 6.

FURTHERMORE
Arduino will be powered up by the 5V current coming from the receiver.

To be continued soon (next weekend 🙂 ) Comments are welcome. 

(Visited 2,033 times, 1 visits today)

Author: Giuseppe Urso

Giuseppe lives in Haarlem now with his shiny dog, Filippa In 1982 received his first home computer, a Commodore 64, followed by Datasette and a 1541 Floppy Disk Drive. In 1999 he installed his first Linux distro (LRH6). In 2006 he switched to Debian as favourite OS. Giuseppe Urso actively sustains the Free Software Fundation and his founder Richard Mattew Stallman, he speaks to people trying to convince them to join the fight now, and about how important is to use Free Software only. He has a job as Infra Specialist at Hippo Enterprise Java Cms an Open Source Enterprise class Content Management System, one of the coolest company ever, in Amsterdam. He's always ready to install Debian on other people computers for free.

One thought on “HK V2.1Altitude Hold with arduino and sonar/ping sensor”

  1. hallo,
    i’m sandy. right now i still working for making alt hold with sonar ultrasonic. can you give your complete code to control the quadcopter?

    thank you very much

    regards,

    sandy kurnawan

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.