13 | This 170-line Arduino code is a drone flight controller

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2022
  • Full code available on GitHub: github.com/CarbonAeronautics/...
    In this video, you will explore the full flight control code that stabilises your quadcopter drone.
    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.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 30

  • @one_bone_4_life647
    @one_bone_4_life647 หลายเดือนก่อน

    You may not see this, but thank you for developing a safe system. Avoiding integral windup and having a cut-off throttle value has probably kept me out of dangerous situations while learning PID with a larger Quad Copter.

  • @RahulKumar-jm4yw
    @RahulKumar-jm4yw ปีที่แล้ว +2

    awesome tutorial
    very detailed and informative,
    thanks 👍👌

  • @anilsuha5301
    @anilsuha5301 ปีที่แล้ว +2

    awesome. Keep doing similar😃

  • @hoanganh_.207
    @hoanganh_.207 7 หลายเดือนก่อน +2

    So awesome videos , but i have a question is why you use analogWrite for the brushless instead of using servo.write in servo.h , that can transmit the PPM to the motor ?

  • @AbdelrahmanSalah
    @AbdelrahmanSalah 6 หลายเดือนก่อน

    @carbonaeronautics appreciate the well organized and detailed approach you took in this project, the sheer amount of time & effort is admirable.
    I have a question regarding the values you choose for the clamping saturation limit for the integral, 400 & -400, how did you calculate this value? are those specific to the motors you use?
    Thanks in advance

  • @salaheddinemoujane9446
    @salaheddinemoujane9446 10 หลายเดือนก่อน

    First i want to thank you for all of this efforts, i just wanna ask about when you wanted to convert from deg/sec to micro sec you multiplied motorinputs with 1.O24 and i don't know from where did it comes?!

  • @sandeeppatra4
    @sandeeppatra4 ปีที่แล้ว +1

    really apricate ur work
    u got another subscriber and a true fan

  • @yoyolebg6380
    @yoyolebg6380 8 หลายเดือนก่อน +1

    Hi, I am using an Arduino Nano instead of the teensy. When I try the code, the IDE tell me that the function analogWriteFrequency and analogResolution are out of the scope. Is this due to the fact that the PulsePosition Library suits for Teensy only ? And if yes, how should I change my code to change the PWM frequency to 250 [Hz] for the Arduino Nano ?
    Thank you in advance and awesome video !

  • @karlam8687
    @karlam8687 7 หลายเดือนก่อน

    Could one disable the throttle and roll of a drone controlling system to make something move using just two degrees of freedom instead of 4?

    • @karlam8687
      @karlam8687 7 หลายเดือนก่อน

      I'm sorry if the question sounds a bit basic. I just need the info because toy car controllers have a very small distance range for the application.

  • @maximebiloa6071
    @maximebiloa6071 ปีที่แล้ว

    Hi sir, i'm using ESP32-S. It's bad for this project ?

  • @rajasriram6578
    @rajasriram6578 6 หลายเดือนก่อน

    hi can i use arduino uno to do the codes?

  • @satyananda4389
    @satyananda4389 ปีที่แล้ว +1

    Cool project sir👍, I want to ask something. Where did you know the length of one iteration time in your loop is 4 ms (for Ts value of I and D term)? and also how to calculate it?

    • @Tom-wd2ee
      @Tom-wd2ee ปีที่แล้ว +2

      guess he just set the loop time as most ESCs run at 250Hz
      And T=1/f

    • @satyananda4389
      @satyananda4389 ปีที่แล้ว +1

      @@Tom-wd2ee Ohh I see, thanks

    • @steve00alt70
      @steve00alt70 8 หลายเดือนก่อน

      ​​@@Tom-wd2eewhat is T=1/f mean?

    • @mohamedbensalem6236
      @mohamedbensalem6236 5 หลายเดือนก่อน

      @@steve00alt70 mathematical relation between frequency and the period

  • @thorverhoeven3426
    @thorverhoeven3426 5 วันที่ผ่านมา

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

  • @EugenePham
    @EugenePham ปีที่แล้ว +1

    Hi sir! Can i use Arduino Uno R3 instead of Teensy

    • @carbonaeronautics
      @carbonaeronautics  ปีที่แล้ว +1

      Yes that is possible with some small changes to the code, however it might be easier to use the Arduino nano in order to avoid cable connections as much as possible. Also know that the Arduino uno or nano are not powerful enough for the more complex flight controllers we will see later on.

    • @EugenePham
      @EugenePham ปีที่แล้ว +1

      @@carbonaeronauticsThank you very much for your kind comments, best of luck to you 😁

  • @priyanshuwaghdhare5458
    @priyanshuwaghdhare5458 6 หลายเดือนก่อน

    Can we replace brushless motor with brushed motor and esc with mosfets for controlling brushed motors without changing the code

  • @farisalfianto01
    @farisalfianto01 ปีที่แล้ว

    i use the teensy 3.2 output the motor it only works on pins 3 and 4, can other pwm pins really not work on teensy 3.2 ?

    • @carbonaeronautics
      @carbonaeronautics  ปีที่แล้ว

      You can use pins 9 and 10 if you want to use teensy 3.2, instead of pins 1 and 2!

    • @farisalfianto01
      @farisalfianto01 ปีที่แล้ว

      @@carbonaeronautics thanks