Skip to main content

Command Palette

Search for a command to run...

Configure LiteWing ESP32 Drone with Betaflight Step-by-Step

A complete beginner-friendly guide to flash firmware, set up Betaflight, integrate ExpressLRS, tune PID, and unlock full control of your LiteWing ESP3

Published
4 min read
Configure LiteWing ESP32 Drone with Betaflight Step-by-Step

How to Configure the LiteWing ESP32 Drone for Betaflight

Wondering how to unlock the full potential of your open-source LiteWing ESP32 drone using Betaflight? This comprehensive guide walks you through every step — from flashing the firmware to fine-tuning flight performance — in a clear, practical way that’s perfect for beginners and experienced makers alike.

🚀 What You’ll Achieve

By the end of this tutorial you will be able to:

  • Install Betaflight firmware on your LiteWing’s ESP32-S3 controller

  • Connect and configure Betaflight Configurator

  • Correct hardware pin mappings

  • Integrate and set up an ExpressLRS receiver

  • Configure flight modes, PID, battery monitoring, and Blackbox logging

  • Troubleshoot common issues for smoother flying


🧰 Before You Begin: Requirements

Hardware

You’ll need:

  • LiteWing ESP32-S3 based drone fully assembled

  • ExpressLRS (ELRS) receiver + compatible transmitter (pre-bound)

  • USB data cable to connect drone to your computer

  • 1S LiPo battery for power

Software

  • Betaflight Configurator (v10.10.0 recommended) installed on your PC

  • Web browser (Chrome or Edge) for flashing the firmware

  • ESP32 Betaflight firmware binary file for the ESP32-S3 controller


🛠️ Step-by-Step Setup Guide

Step 1: Flash Betaflight Firmware to LiteWing

LiteWing runs on an ESP32-S3 chip, which means you must flash a compatible Betaflight firmware before configuration.

  1. Visit the ESP-FC GitHub repository and download the Betaflight firmware for ESP32-S3.

  2. Open the Espressif ESP Tool in your web browser.

  3. Plug your LiteWing into your PC using a USB cable.

  4. Select the correct COM port and upload the firmware file.

  5. Set the flash address to 0x0000 and click Program.

  6. Wait until the upload completes — do not disconnect mid-flash.


Step 2: Install and Configure Betaflight Configurator

Now that your ESP32 controller has Betaflight firmware:

  1. Install Betaflight Configurator from the official GitHub releases page.

  2. Open it and enable “Show All Serial Devices” in the options tab.

  3. Select the correct COM port and click Connect.

  4. You should now see your drone’s status and telemetry in the Configurator.


Step 3: Match Hardware Pins Using Betaflight CLI

Since the default pin setup won’t match the LiteWing hardware:

  1. Open the CLI (Command Line Interface) tab.

  2. Enter the predefined commands to correctly map motor outputs, UART, I2C, ADC (battery), etc.

  3. Type save and press Enter to apply.

  4. Reboot your drone in Betaflight.

🧠 This step ensures real-time updates and controls behave correctly in the Configurator.


Step 4: Align the IMU Orientation

The IMU (Inertial Measurement Unit) on the LiteWing might not align with Betaflight’s default orientation. Go to Configuration → Board & Sensor Alignment and set the gyro orientation (e.g., CW 270°) to match physical motion with the 3D model.


Step 5: Enable Battery Voltage Monitoring

To track battery levels in-software:

  1. Choose Onboard ADC as the voltage meter source.

  2. Set scale and divider values based on your hardware (e.g., scale = 10, divider = 1).

  3. Save settings and reboot.


Step 6: Configure Motors for Brushed DC

LiteWing uses brushed DC motors — so in Configuration → Motors:

  • Set motor protocol to Brushed

  • Set PWM frequency to 8000 Hz

  • Save and reboot.


Step 7: Integrate ExpressLRS Receiver

ExpressLRS delivers fast, reliable control:

  1. Connect the ELRS receiver wires (power, TX, RX) to your LiteWing flight controller.

  2. In Betaflight’s Ports tab enable Serial RX for the UART you used.

  3. Go to Receiver and pick Serial + CRSF protocol.

  4. You should now see stick movements live in Betaflight.


Step 8: Set Flight Modes

Head to the Modes tab and assign switches for:

  • ARM — safely enables motors

  • ANGLE — self-leveling mode

  • ACRO — full manual control

  • BLACKBOX — flight data recording

These modes help you tailor your drone’s behavior during different flight styles.


Step 9: PID Tuning for Stable Flight

Tweaking PID values ensures your drone flies smoothly:

  • Use recommended LiteWing PID settings tailored for its lightweight frame and brushed motors.

  • Start with those values, test, then fine-tune if needed.


Step 10: Use Blackbox for Data Analysis

Blackbox logs flight data like motor output and gyro behavior:

  1. Join a short flight session.

  2. Download logs via Betaflight.

  3. Analyze in Blackbox Explorer to refine flight performance.

🏁 Final Thoughts

Integrating Betaflight with your LiteWing ESP32 Betaflight drone transforms it into an advanced, tunable machine with full FPV-ready capabilities. This step-by-step process not only helps you configure the drone but also gives you deeper insight into flight controllers, firmware, receivers, and flight tuning.To explore more real-world examples and inspiration for your next microcontroller build, check out the extensive collection of ESP32 projects.