12 | Program a PID controller to stabilize a drone

  Рет қаралды 22,375

Carbon Aeronautics

Carbon Aeronautics

Күн бұрын

In this video, you will learn how you can stabilise your quadcopter drone using a PID controller. The controller that will be used will stabilise the drone based on its roll, pitch and yaw rotation rates
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.
Full code available on GitHub: github.com/Car...

Пікірлер: 11
@CTIN--NguyenQuyHaoNhien
@CTIN--NguyenQuyHaoNhien Жыл бұрын
I love these videos and the way you explain everything so thoroughly
@sandeeppatra4
@sandeeppatra4 Жыл бұрын
GREAT WORK SIR its a very good video which inspire me thank u
@eraydurakk
@eraydurakk Жыл бұрын
I am using derivative from measurement on my project. Because derivative from error generates "D kick" when setpoint changes rapidly. U should try. And u didnt mention that d term has to filtered properly with something like notch filter in order to not burn your motors and fly nice. 250 Hz PID loop really slow for any size of drone. Increase it to 500 Hz and use oneshot125 ESC. Great work.
@P0K0
@P0K0 Жыл бұрын
How can I filter d term ? What does it mean ?
@carbonaeronautics
@carbonaeronautics Жыл бұрын
Indeed, in part IV I explain that you need to use a low pass filter for the gyro measurement. The filter is set to 10 Hz in register 1A of the MPU6050. I did not try to filter the D term separately because the I did not yet experience motor or ESC issues, probably because the measurement itself is already filtered and the D term is not excessively big.
@gajakpop9493
@gajakpop9493 Жыл бұрын
​@@carbonaeronautics I couldn't find the code with the link provided below can you help me out with it
@HoangMinhNguyen-0307
@HoangMinhNguyen-0307 4 ай бұрын
same problem, if derivative the error, when quad nearly reach the setpoint, its will be divergence, but i dont know why.
@fuhadrock6370
@fuhadrock6370 Жыл бұрын
Can you please tell me... That my drone just spinning when i increase the throttle.... So whats that means.. And what should do in pid controll
@thorverhoeven3426
@thorverhoeven3426 4 ай бұрын
i can't find the full code on github please someone help
@thorverhoeven3426
@thorverhoeven3426 4 ай бұрын
i can't find the full code on github please someone help
@rokasbarasa1
@rokasbarasa1 2 ай бұрын
Skip to the next episode, the linked repo has the code there
13 | This 170-line Arduino code is a drone flight controller
8:02
Carbon Aeronautics
Рет қаралды 26 М.
PID Controller Implementation in Software - Phil's Lab #6
20:06
Phil’s Lab
Рет қаралды 210 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 25 МЛН
DC motor PID speed control
15:29
Curio Res
Рет қаралды 237 М.
Real time Kalman filter on an ESP32 and sensor fusion.
23:40
T.J Moir
Рет қаралды 13 М.
PID Balance+Ball | full explanation & tuning
13:13
Electronoobs
Рет қаралды 746 М.
What is a PID Controller? | DigiKey
22:19
DigiKey
Рет қаралды 81 М.
YMFC-3D part 5 - Quadcopter PID controller and PID tuning.
15:47
Joop Brokking
Рет қаралды 392 М.
8 | Control a brushless motor with a Teensy
6:32
Carbon Aeronautics
Рет қаралды 15 М.
U.S. vs. China: The Design and Technology Behind Military Drones | WSJ
6:36
The Wall Street Journal
Рет қаралды 753 М.
Arduino drone - Part1 Flight Controller
9:18
Electronoobs
Рет қаралды 343 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26