Build Your Own Quadcopter Flight Controller
Robotics course in designing a Drone Flight Controller from scratch using STM32. Configure ESCs, read IMU data, integrate RC Joystick, and implement PID control—no libraries, just clean code, and complete understanding.
Enroll Now
Highly Practical
What you'll learn
✔ DC Motor Control: Theory and Implementation
✔ PID Controller: Theory and Implementation
✔ Mastering Embedded STM32 Microcontrollers programming (SPI, Timers, PWM, Interrupts, etc.)
✔ Working with incremental encoders for position/velocity estimation
✔ Using an IMU sensor (gyroscope, accelerometer, and magnetometer) to compute Euler angles
✔ Linear Quadratic Regulator: Theory and Implementation
✔ PCB Design of the Balancing Robot
Course Content
-
CH0 - Balancing Robot Course Introduction
5 lessons- 1 - Welcome to the course!
- 2 - Slides used in this Course
- 3 - Prerequisites
- 4 - Hardware of the course
- 5 - How to ask questions and other important remarks
-
CH1 - DC Motor Control
7 lessons- 1 - Motor Control Fundamentals: Part 1
- 2 - Motor Control Fundamentals: Part 2
- 3 - Unveiling the STSPIN240 Motor Driver
- 4 - PWM Signal generation using the Timer of the STM32 MCU
- 5 - PWM Testing
- 6 - STSPIN840 Motor Driver and Custom Hardware
- 7 - Motor Driver Library Integration
-
CH2 - STM32 Timer Encoder Mode
8 lessons- 1 - Incremental encoders theory
- 2 - STM32 Timer Encoder CubeMx Configuration
- 3 - Timer Encoder Mode Test
- 4 - STM32 SWV Configuration
- 5 - Timer Update Interrupt
- 6 - Timer Overflow demo
- 7 - Timer Encoder Library Integration
- 8 - Timer Encoder Library Test
-
CH3 - Proportional-Integral-Derivative (PID) Controller
5 lessons- 1 - Why do we need PID?
- 2 - PID Explanation
- 3 - PID Library Integration
- 4 - Main File edition for PID Testing
- 5 - Tuning a PID Controller
-
Ch4 - Moving Average Filter
4 lessons- 1 - Moving Average Filter Introduction
- 2 - Library Integration
- 3 - Testing the library
- 4 - Updating the encoder library
-
5 - RC Joystick Integration
5 lessons- 1 - Introduction to the RC Joystick
- 2 - Timers Configuration for capturing input PWM signals
- 3 - Adding the callback function to capture interrupts
- 4 - Testing the RC Joystick
- 5 - Motor Control using the RC Joystick
-
6 - Tilt Angle estimation
37 lesson- Introduction to the Attitude estimation
-
Attitude Estimation Course Excerpt CH1
- 2 - STM32 CubeIde Project creation
- 3 - Using SWV for printf function
- 4 - Using SWV to plot variables
- 5 - SPI theory
- 6 - SPI Configuration using STM32CubeMx
- 7 - SPI wirings
- 8 - Reading ‘Who am I’ register
- 9 - Sending data through SPI
-
Attitude Estimation Course Excerpt CH2
- 1 - First version of the library
- 2 - Testing the library
- 3 - How to read the magnetometer?
- 4 - Magnetometer update 1
- 5 - Magnetometer update 2
- 6 - Testing a new version of the library
- 7 - DMA Theory
- 8 - DMA configuration
-
Attitude Estimation Course Excerpt CH3
- 1 - Removing gyroscope biases
- 2 - Magnetometer bias explanation
- 3 - Timer Update Interrupts
- 4 - Magnetometer bias removal
- 5 - Normalization and scaling of IMU data
- 6 - ARM MATH Library Installation
- 7 - Library Integration
- 8 - A notion of frame
- 9 - Testing the library
-
Attitude Estimation Course Excerpt CH4
- 1 - Attitude estimation, slides
- 2 - A notion of frame in detail
- 3 - 2D rotation
- 4 - Euler angles and Rotation Matrix
- 5 - Using the accelerometer to obtain pitch and Roll angles
- 6 - Using the magnetometer to obtain the Yaw angle
- 7 - Using the gyroscope to obtain the Euler angles
- 8 - Library Integration
- 9 - Complementary Filter
- 10 - Testing the libraries
-
Attitude Estimation, final library integration
- 2 - Tilt angle estimation: Final library integration
-
7 - Linear Quadratic Regulator
7 lessons- 1 - State-Space Design
- 2 - Technical Article Introduction
- 3 - Matlab Script
- 4 - Library Integration and LQR Implementation
- 5 - Testing
- 6 - Sign Explanation
- 7 - Rotation Problem
-
8 - Rotational Drift and Final Joystick Integration
2 lessons- 1 - The rotational drift and how to eliminate it
- 2 - Controlling the robot by joystick
Target audience
Built For Engineers Like You
➜ Who wants to understand every part of a complete robot— from sensors to control loops.
➜ Embedded developers ready to dive deep into flight controller firmware using STM32.
➜ Robotics enthusiasts who love experimenting with sensors, PID control, and motor drivers.
➜ Makers who want to build a robot that flies *because of their own code*, not prebuilt libraries.
Additional Benefits
Discount for students and a money-back guarantee
Students can get a 30% discount on this course. Contact [email protected] with valid student proof to claim your offer!
I'm sure you'll enjoy this course! However, if it doesn't meet your expectations, no problem—you can receive a full refund within 14 days, with no questions asked.
Requirments
WHAT you'll need
✔ Or, your custom Hardware
✔ Basic knowledge of programming STM32 MCUs
✔ Motivation