1. Introduction
The novelty of this study lies in treating a low-cost ESP32 quadrotor not as an assembly prototype, but as a reproducible safety-aware diagnostic testbed with explicit packet semantics, firmware-level safety states, and blackbox-supported tuning.
Low-altitude autonomous mobility has become an important
direction in the development of unmanned aerial systems, low-altitude economy,
and future three-dimensional transportation services. Although many studies
emphasize advanced navigation, cooperative routing, aerial task allocation, or
mission-level autonomy, these higher-level functions still depend on dependable
experimental platforms at the lower levels of sensing, control, communication,
safety response, and diagnostic feedback. Even when the immediate research
objective is modest, such as controlled hovering, short-range maneuvering, or
subsystem validation, the underlying vehicle must remain safe, repeatable, and
interpretable under repeated experiments.
This requirement creates a practical tension for researchers and
educators. Commercial flight controllers are mature and reliable for
operational use, but they often hide low-level implementation details behind
closed firmware, predefined telemetry interfaces, or highly abstract
configuration tools. As a result, they are not always suitable when the
research question concerns firmware timing, packet-level communication,
embedded safety logic, or blackbox-based diagnosis. A researcher may observe
whether a flight succeeds or fails, but may not be able to inspect the complete
chain from sensor readings, command validation, and control computation to
safety shutdown and post-flight logging.
Open-source autopilot ecosystems partly address this limitation
by providing source code, broad hardware support, estimator integration,
mission services, and rich communication interfaces. Platforms such as large
autopilot stacks are indispensable for advanced autonomy research and field
robotics. However, their strength can also become a limitation for early-stage
low-altitude laboratory studies. Their configuration complexity, hardware
dependencies, large code bases, and feature breadth may exceed what is
necessary when the goal is to study a compact interaction among IMU sensing,
PID stabilization, motor actuation, wireless command packets, safety state
transitions, and embedded logging. In this context, the present work does not
attempt to replace mature autopilot systems. Instead, it proposes a smaller and
more inspectable testbed for controlled experiments in which firmware behavior,
communication semantics, safety logic, and diagnostic data can be directly
observed and modified.
Low-cost microcontroller-based UAV platforms offer a promising
alternative for this purpose, but low cost alone does not make a platform
research-ready. Many low-cost quadrotor prototypes emphasize assembly, basic
hovering, or controller demonstration, while leaving several reproducibility
questions insufficiently addressed. For example, communication packet formats
may not be standardized, safety thresholds may be embedded as scattered
conditional statements, tuning histories may remain hidden in flash memory, and
flight behavior may be interpreted mainly through subjective visual
observation. These limitations make it difficult to compare repeated builds,
diagnose abnormal behavior, or teach students how engineering assumptions
influence flight safety.
The ESP32 microcontroller is attractive for such a testbed
because it provides low cost, sufficient embedded processing capability,
flexible I/O, wireless communication, and a large developer ecosystem.
Nevertheless, building a quadrotor around an ESP32 does not automatically
produce a reproducible or safe research platform. Low-cost inertial sensors are
vulnerable to vibration, bias, and drift; wireless command loss can cause
unsafe command persistence; and PID tuning decisions can become opaque when they
are based only on pilot perception. Therefore, an ESP32-based quadrotor should
be designed as a complete cyber-physical experimental system rather than as a
simple collection of inexpensive components.
This paper presents a reproducible safety-aware ESP32-based
quadrotor testbed for low-altitude autonomous mobility experiments. The
platform combines an ESP32 flight controller, an ESP32 remote controller,
IMU-based attitude estimation, PID stabilization, PWM motor actuation, ESP-NOW
communication, telemetry feedback, parameter synchronization, safety-state
indication, and blackbox-supported diagnosis. The focus is not maximum flight
performance or fully autonomous mission execution. Instead, the goal is to
provide a compact, low-cost, and experimentally transparent platform in which
sensing, control, communication, safety, and diagnosis can be inspected as an
integrated system.
The main contributions of this work are as follows:
A reproducible ESP32-based quadrotor testbed is developed for
indoor and near-ground low-altitude validation, with explicit documentation of
hardware components, communication packets, task organization, parameter
handling, and staged test procedures.
A firmware-level safety architecture is integrated into the
platform, including arming protection, throttle initialization checks,
communication fail-safe, low-voltage warning, ESC-calibration isolation, visual
state indication, and tilt/collision shutdown.
A blackbox diagnostic workflow is embedded into the control
process to record runtime variables such as battery voltage, compensation
factors, attitude angles, PID outputs, offsets, motor commands, communication
status, loop timing, and logging overhead.
The platform architecture and safety workflow are formalized
using UML diagrams to improve the clarity, traceability, and reproducibility of
the firmware and operational logic.
The testbed is validated through staged ground checks and
conservative indoor low-altitude hover trials, demonstrating short-duration
hovering within approximately ±5° in pitch and roll, end-to-end control
response of about 50–80 ms, indoor ESP-NOW latency of about 20–40 ms, and a
prototype cost below approximately USD 200.
The remainder of this paper is organized as follows.
Section 2 reviews related work on quadrotor control, low-cost UAV
platforms, open-source autopilot ecosystems, safety-aware flight operation, and
blackbox-supported diagnosis.
Section 3 describes
the platform architecture and reproducibility strategy.
Section 4 presents the safety-aware control design and diagnostic
workflow.
Section 5 explains the experimental setup and evaluation metrics.
Section 6 reports the validation results.
Section 7 discusses
implications, limitations, and positioning relative to commercial and
open-source alternatives.
Section 8 concludes
the paper and outlines future work.