Sunday, 1 March 2026

Configuring LiteWing ESP32 Drone with Betaflight – Complete Beginner Guide

Configuring LiteWing ESP32 Drone to Betaflight

LiteWing is an open-source ESP32-S3 based drone designed for experimentation, learning, and custom drone development. By default, LiteWing runs modified Crazyflie firmware, but it can also be configured using Betaflight, one of the most popular flight control platforms used in FPV and racing drones.

In this LiteWing ESP32 Betaflight Drone project, we configure the LiteWing drone using Betaflight firmware, transforming it into a fully tunable and performance-optimized drone. With Betaflight integration, users gain access to advanced features such as PID tuning, flight modes, receiver configuration, motor setup, and real-time flight diagnostics.

This ESP32 Betaflight setup guide walks through the complete process of flashing firmware, configuring hardware, and tuning flight performance. Once completed, your LiteWing drone becomes highly customizable and suitable for both beginners and advanced drone developers.

What You’ll Learn

  • Flashing ESP32 Betaflight firmware
  • Setting up Betaflight Configurator
  • GPIO pin configuration using CLI
  • IMU orientation correction
  • ExpressLRS receiver setup
  • Flight mode configuration
  • PID tuning for brushed motors
  • Blackbox flight data analysis

Hardware & Software Requirements

Hardware

  • LiteWing ESP32-S3 Drone
  • ExpressLRS (ELRS) Receiver
  • ELRS Transmitter (pre-bound)
  • USB Data Cable
  • LiPo Battery

Software

  • Betaflight Configurator v10.10
  • ESP32 Betaflight firmware binary
  • Chrome or Edge browser for flashing

Step 1: Flash ESP32 Betaflight Firmware

Before configuration, the LiteWing drone must be flashed with ESP32 Betaflight firmware.

Process overview:

  1. Download ESP32-S3 firmware binary.
  2. Connect LiteWing via USB.
  3. Open the ESP web flashing tool.
  4. Select COM port and connect.
  5. Upload firmware at address 0x0000.
  6. Program and wait for completion.

After flashing, the drone becomes compatible with Betaflight Configurator.

Step 2: Install Betaflight Configurator

Download Betaflight Configurator v10.10.0

Install Betaflight Configurator on your computer and enable:

Show All Serial Devices

Then connect the LiteWing drone using the detected COM port.

Step 3: Configure Hardware Pins

Default Betaflight pin mapping does not match LiteWing hardware.
Using the CLI tab, GPIO pins are reassigned to correctly control:

  • Motors
  • UART communication
  • IMU sensors
  • Battery monitoring

After entering CLI commands, save and reboot the drone.

Step 4: Correct IMU Orientation

If the 3D drone model moves incorrectly:

  • Open Configuration Tab
  • Go to Board & Sensor Alignment
  • Set Gyro Alignment → CW 270°

This ensures accurate motion tracking and stable flight response.

Step 5: Enable Battery Voltage Monitoring

Configure onboard ADC monitoring:

  • Voltage Source → Onboard ADC
  • Scale → 10
  • Divider → 1
  • Multiplier → 2

This allows real-time battery monitoring inside Betaflight.

Step 6: Configure Motor Protocol

LiteWing uses brushed DC motors, so proper configuration is required:

  • Motor Protocol → Brushed
  • PWM Frequency → 8000 Hz

Save and reboot after applying settings.

Step 7: Setup ExpressLRS Receiver

Connecting ELRS Receiver to LiteWing Drone

ExpressLRS provides ultra-low latency and long-range communication.

Connections:

  • Receiver TX → GPIO18
  • Receiver RX → GPIO17
  • 3.3V & GND → Power

Inside Betaflight:

  • Enable Serial RX
  • Receiver Mode → Serial Based
  • Protocol → CRSF

Stick movement should now appear in the Receiver tab.

Step 8: Configure Flight Modes

Flight modes define drone behavior.

Recommended setup:

Mode         Purpose
ARM         -Enables motors
ANGLE         -Self-leveling flight
ACRO         -Full manual control
BLACKBOX -Flight data logging

Assign transmitter switches and save configuration.

Step 9: PID Tuning

Default PID values are unsuitable for LiteWing due to:

  • Lightweight frame
  • Brushed motors
  • Small propellers
  • Compact structure

Apply optimized PID values and perform short test flights for stable performance.

Step 10: Blackbox Flight Data Logging

Betaflight Blackbox Flight Data Logging

Blackbox records important flight parameters such as:

  • Gyro data
  • Motor output
  • PID response
  • Receiver input

After flight:

  1. Download logs from Betaflight
  2. Analyze using Blackbox Explorer
  3. Fine-tune performance

By integrating Betaflight with the LiteWing ESP32-S3 drone, you unlock professional-level drone tuning and diagnostics on an open-source platform. This setup converts LiteWing from a basic experimental drone into a fully configurable flight system suitable for learning FPV control, tuning algorithms, and embedded flight development.

This project is an excellent introduction to ESP32-based flight controllers, open-source drone firmware, and real-world flight tuning, making LiteWing a good starting point for students, developers, and drone enthusiasts exploring advanced UAV systems.

For more info : LiteWing ESP32 Drone Betaflight: Setup & Configuration Tutorial

 Robotics Projects |Arduino Projects | Raspberry Pi Projects|

ESP32 Projects | AI Projects | IoT Projects