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

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

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

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

    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.

  • @hoanganh_.207
    @hoanganh_.207 ปีที่แล้ว +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 ?

  • @lambospanos7883
    @lambospanos7883 5 หลายเดือนก่อน +1

    my drone motors do not turn nor do I hear the ESC. when I plug just the ESC to the receiver all motors work fine. The code is the exact same. What may be an issue?

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

      I got the same issue. did you manage to solve it?

  • @youtubepremium-wk1tj
    @youtubepremium-wk1tj 7 หลายเดือนก่อน

    Hi ! I have a question. How can I change the rotation of the motors if I have alerady soldered them ?

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

    I got a issue where after I bend the gyroscope it stops working any inputs

  • @yoyolebg6380
    @yoyolebg6380 ปีที่แล้ว +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 !

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

      Same question here !

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

      Instead of trying to control the motors with PulsePosition library, use the Servo library. It works with ESCs. You can use the write function to send pwm signals to the esc to spin the motor at different speeds. You can set the range to 1000-2000 in the attach method and then write values between 0 and 180 to the servo object

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

    @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 ปีที่แล้ว

    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?!

  • @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 ปีที่แล้ว +2

      @@Tom-wd2ee Ohh I see, thanks

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

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

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

      @@steve00alt70 mathematical relation between frequency and the period

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

    awesome tutorial
    very detailed and informative,
    thanks 👍👌

  • @srijitmandal6853
    @srijitmandal6853 4 วันที่ผ่านมา

    Hi! Can anyone please explain me why are the motor inputs multiplied by 1.024? I know 1024 is the range of 10-bit resolution but sir is saying that this multiplication converts it into 12-bit. 😮😮. Man!! And, I don't get to know from any equation in the world 🌍 that 1.024 i.e. 1024/1000 multiplied by your motor inputs in microseconds will result in a 12-bit resolution.

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

    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 ปีที่แล้ว

      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.

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

    awesome. Keep doing similar😃

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

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

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

      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 2 ปีที่แล้ว +1

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

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

    hi can i use arduino uno to do the codes?

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

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

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

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

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

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

  • @rogobil6897
    @rogobil6897 3 หลายเดือนก่อน +2

    please use a class for all of this instead of having 3 long difficult to follow lines in the same area

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

    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  2 ปีที่แล้ว

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

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

      @@carbonaeronautics thanks

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

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