20 | This Arduino code is a vertical velocity drone flight controller

Поділитися
Вставка
  • Опубліковано 9 вер 2024
  • Full code and manual on GitHub: github.com/Car...
    In this video, you will learn how you can program a vertical velocity drone flight controller.
    The purpose of this video series is to learn the basics behind a quadcopter drone and enable you to build one yourself, by dividing this challenging project in several easy-to-understand parts. You use the capable Teensy 4.0 microcontroller together with the easy-to-use Arduino language.

КОМЕНТАРІ • 42

  • @debsarkar4893
    @debsarkar4893 4 місяці тому +10

    Some one give this guy something "The Best Open-Source Project On UA-cam" award or something like that. This guy is an absolute legend, hats off to you man, what and incredible and amazing series

  • @TranKiet-pj9mw
    @TranKiet-pj9mw 22 дні тому

    dear Carbon Aeronautics , your videos is extremely helpful for me, especially insight the fine-turing of algorithms . some equation you bought from physic and statistics is extremely hard to read when it contain matrix and abstract math ,but you make it more understandable by break it into computation topic that most of programmer can understand . because I dont own one device so i have to work on stimulator , one again you make my steps go further than any information found on internet . once again thank you .
    Yours faithfully

  • @thedronedojo
    @thedronedojo 8 місяців тому +7

    What an incredible series.

  • @luisguillermoballesteros1209
    @luisguillermoballesteros1209 7 місяців тому +4

    Hello, greetings from Colombia. Congratulations on the excellent series of videos for your Arduino-programmable and Teensy-controlled quadcopter. From the experience I have so far, yours is the best series on the subject I have seen so far. Not only because of your formidable practical tutorial, but also because of the mathematical foundations that you explain. Is there the possibility of adding GPS (to plan waypoints and autonomy), telemetry (with the transmitter or a ground station) and/or a companion computer (raspberry pi via MavLink and DroneKit)? To support your projects more directly you could continue with the series of videos and tutorials on Patreon, I will be one of the first to join.
    Again, thank you very much!

  • @robertparenton7470
    @robertparenton7470 Рік тому +4

    Thank You! From Frisco, TX

  • @aolremfor2
    @aolremfor2 Рік тому +5

    Thank you! Really helpful!

  • @Auddy_s7395
    @Auddy_s7395 9 місяців тому +3

    perfect tutorial. Thank you and thank you

  • @jogydeep
    @jogydeep Місяць тому +1

    Thank you!

  • @user-ch9jn2qt8r
    @user-ch9jn2qt8r 7 місяців тому

    Ich habe die gesamte Serie studiert. Das ist einzigartig, einmalig, genial und VOLLSTÄNDIG!
    (Sie brauchen keine WAYPOINT! LOL!)

  • @eprohoda
    @eprohoda Рік тому +1

    you created beautiful drone~ Carbonaeronautics- ))

  • @robertparenton7470
    @robertparenton7470 Рік тому +1

    Update! All my components or solder to the boards. When I went to calibrate, the ESC's one motor was shorted out because the screw was too long and touched the motor windings. So I had to place an order for a new motor and ESC. Getting close to finishing my build.

  • @ahmedsherif7732
    @ahmedsherif7732 Рік тому +2

    please continue the series with adding autonomous flight mode to the code

  • @shibbirahmed2524
    @shibbirahmed2524 Рік тому +2

    Please can you add a video on camera module setup in drone?

    • @kevalnakar6269
      @kevalnakar6269 Рік тому +2

      You can use esp32-s cam module.
      By which you can get live video streaming to your smartphone. Videos for that are available on you tube
      Board is available in India at rate of 500₹, nearly 6 USD
      Thank you

  • @ztiger09
    @ztiger09 Рік тому +1

    So i have a question. For each code from your videos do you put them in one single tab and load them to arduino or do you break them up in multiple tabs and download it to the arduino/tensey? Please help me understand

  • @kartikrathore5720
    @kartikrathore5720 Рік тому

    Please upload the next video in this series

  • @Ruvishan09
    @Ruvishan09 11 годин тому

    We need gps module part 😢 please!!!!!!!!!

  • @BAONAMEEVN
    @BAONAMEEVN Рік тому +1

    Dear Teacher! In Vietnam there is no tincy board, I use arduino nano. so can I replace pins 1,2,3,4 with pins A0, A1, A2, A3 to connect to ESC? Thank You Teacher

    • @kevalnakar6269
      @kevalnakar6269 Рік тому +2

      No, A0 to A6 pins are dedicated for analog inputs, you can convert that analog value into digital one, I mean they can be also used as digital input.
      But, they can not be used as output in anyway
      For esc, use digital pins of your nano board.
      Thank you

  • @eddiemiller6909
    @eddiemiller6909 10 місяців тому +1

    Hello, if anyone is having the error "Compilation error: no match for 'operator*' (operand types are 'BLA::Matrix' and 'bool')" when trying to compile the code on Arduino IDE, try installing version 3.7 of the BasicLinearAlgebra library by Tom Stewart. If you install the newest version, you will get this error, and if you install version 3.7, everything will run fine :)

    • @attilasukosd
      @attilasukosd 9 місяців тому

      Or replace Invert() with Inverse(). I believe the API changed, and Invert() now modifies the original Matrix, while Inverse() creates a temporary matrix for that operation

  • @azmath2179
    @azmath2179 7 місяців тому

    Please add a video explaining how to add a gps

  • @islammohamed3954
    @islammohamed3954 Рік тому

    Just a question out of curiosity, how would you design a controller for correcting the altitude measurement rather than the vertical velocity? Given that the motors speed x drone altitude relation is considerably non linear.

  • @thorverhoeven3426
    @thorverhoeven3426 4 місяці тому

    i can't find the full code on github please someone help

  • @romaninlviv3761
    @romaninlviv3761 Рік тому

    Hi, I built my own quadcopter using your code but with some differences. For example, I use a HC-06 bluetooth module instead of a radio and an Arduino NANO instead of a Teensy 4.0. I'm currently on the "third version" of the flight controller, ie the one that uses the barometer. But unfortunately, I can't fly yet, it behaves strangely and hardly stabilizes at all. I think it's because the PID coefficients are not set correctly (I also use my frame, motors, etc.). I don't remember seeing recommendations for their selection in the video, so I installed everything as in the video. On the 4-inch propellers, it ran away too fast and I used the motor shutdown button, and on the 3-inch ones, I noticed that it went into resonance just like the curve when you explained the PID controller. I will be very grateful if you can help me in any way.

    • @romaninlviv3761
      @romaninlviv3761 Рік тому +1

      Update: I went back to version 2 and it's much better, but during testing I broke one of the frame beams, so I'm on the mend now.

    • @vedaantsarda7968
      @vedaantsarda7968 Рік тому

      @@romaninlviv3761how did it fly ??? Is it stable than the 3 vision,share your code i can also provide help.

    • @JesusIsTheWayToHeav3n
      @JesusIsTheWayToHeav3n 6 місяців тому

      Do you mind sharing your code? Ive been trying to make mine fly as well, but I cant seem to get it to work

    • @romaninlviv3761
      @romaninlviv3761 6 місяців тому

      @@JesusIsTheWayToHeav3n It was so long ago that I threw it away, but I can say that there is nothing significantly different in my code than in the author's video. I used the standard XYremote code for bluetooth. Also I changed pc so I don't have access to the old code at the moment. But I am ready to assure you that they are absolutely useless.

  • @priyanshuwaghdhare5458
    @priyanshuwaghdhare5458 6 місяців тому

    hello sir i did exacetly you taught us in the video series but i am using 920 kv motor with 10 inch propellers and the frame i am using is f450
    .but is not stable and some times the motor speed automatically increases .i think its pid peoblem but i dont know how to resolve this please help me

    • @vivek-iit
      @vivek-iit 2 місяці тому

      I am also facing the same issue. Did you found any solutions yet ?

    • @priyanshuwaghdhare5458
      @priyanshuwaghdhare5458 2 місяці тому +1

      @vivek-iit If you are using an f450 frame the pid values I am using for Roll PID:- 0.75, 0.012, 0.0085 and for Yaw PID:- 4.2, 2.8, 0
      Hope this will help you... and you still facing problems make sure to reconfigure PIDs values

    • @vivek-iit
      @vivek-iit 2 місяці тому

      @@priyanshuwaghdhare5458 Are you able to perform altitude hold by the author's PID values ? Thanks a lot for such a valuable response.

    • @priyanshuwaghdhare5458
      @priyanshuwaghdhare5458 2 місяці тому +1

      @vivek-iit No I am still trying to perform a perfect altitude hold but I am not getting perfect PID values.
      Well.. if you figured out any PDI values plz... inform/share me.
      Best of luck for your project 👍

    • @darkonaire
      @darkonaire Місяць тому

      Using different frames and motors requires re-tuning PID values, as the values in the video only apply to this drones' size. Watch my F450 Teensy drone with GPS and optical flow and autonomous function. www.youtube.com/@darkonaire

  • @EmpyreanLightASMR
    @EmpyreanLightASMR Рік тому +1

    why do y'all ask him questions, he literally never answers lol

  • @username_6948
    @username_6948 11 місяців тому

    PLEASE DO A VIDEO ABOUT CONTROLLING THE DRONE USING ARDUINO CODE, MAKE IT AUTONOMOUS! amazing vids! thanks!

  • @charlesbiggs7735
    @charlesbiggs7735 Рік тому

    When I download the code into the Arduino IDE and try to compile it, it returns "'analogWriteFrequency' was not declared in this scope". Is there a video walking through the download to Arduino and compile?

  • @robiprayoga7165
    @robiprayoga7165 10 місяців тому

    Can it be replaced using an Arduino nano?

  • @liner9611
    @liner9611 Місяць тому

    oil up

  • @Holy.7.october
    @Holy.7.october 7 місяців тому +3

    Can you sir please make a video how to add gps and camera and vtx parts and program it pleaaase