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.
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
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
What an incredible series.
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!
Thank You! From Frisco, TX
Thank you! Really helpful!
perfect tutorial. Thank you and thank you
Thank you!
Ich habe die gesamte Serie studiert. Das ist einzigartig, einmalig, genial und VOLLSTÄNDIG!
(Sie brauchen keine WAYPOINT! LOL!)
you created beautiful drone~ Carbonaeronautics- ))
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.
please continue the series with adding autonomous flight mode to the code
Please can you add a video on camera module setup in drone?
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
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
Please upload the next video in this series
We need gps module part 😢 please!!!!!!!!!
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
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
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 :)
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
Please add a video explaining how to add a gps
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.
i can't find the full code on github please someone help
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.
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.
@@romaninlviv3761how did it fly ??? Is it stable than the 3 vision,share your code i can also provide help.
Do you mind sharing your code? Ive been trying to make mine fly as well, but I cant seem to get it to work
@@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.
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
I am also facing the same issue. Did you found any solutions yet ?
@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
@@priyanshuwaghdhare5458 Are you able to perform altitude hold by the author's PID values ? Thanks a lot for such a valuable response.
@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 👍
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
why do y'all ask him questions, he literally never answers lol
PLEASE DO A VIDEO ABOUT CONTROLLING THE DRONE USING ARDUINO CODE, MAKE IT AUTONOMOUS! amazing vids! thanks!
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?
Can it be replaced using an Arduino nano?
oil up
Can you sir please make a video how to add gps and camera and vtx parts and program it pleaaase