ESP32 quadcopter

I built a transmitter for a Logitech gamepad and used it to fly my F450 quadcopter outdoors.

Takeoff and hover in the browser flight demo.
Simulation Takeoff and hover in the browser flight demo.Hardware clip in progress
Overhead view of a quadcopter with red propellers, red and white arms and exposed central electronics on a table.
My F450 with an ESP32 flight controller, A2212 motors and 40 A ESCs.
Assembled quadcopter leaning against a white wall, with red propellers and wiring around the central electronics board.
My assembled quadcopter, showing the central electronics and wiring.
Explore the F450 in 3D
Interactive model

Try it

Choose Fly it, then arm at low throttle. Press W or push the left stick up to climb.

Rendered F450 model above a simulator landing pad

Simplified simulation of my F450, not my flight firmware.

Inside the build

Rendered 3D model of my assembled F450 quadcopter
Move the slider to separate the parts. Drag or use the arrow keys to turn the model. Hover or tap a part for its name.

Role
Personal projectElectricalSoftware
Timeline
Jul - Aug 2026
Tools
C++, Arduino IDE, EspUsbHost, Betaflight Configurator
Pilot link
Logitech F310 into an ESP32-S3, eight channels over ESP-NOW to the ESP32 flight controller
Made by me
Flight-controller wiring, esp-fc setup, ESP32-S3 gamepad transmitter, ESC calibration
Status
I took off, hovered and flew manually with self-level stabilization. I also flew with barometer altitude hold.

Main components

  • F450 · 1045 propsFour A2212 brushless motors, approximately 1000 KV
  • 3S LiPoFlight power · capacity
  • Four 40 A ESCsOne speed controller per arm
  • ESP32Runs esp-fc on the aircraft
  • ESP32-S3Hosts the F310 and transmits commands
  • BMP280Pressure input for altitude hold

How it's built

I wired the F450 and configured esp-fc on the flight controller. I wrote the software on the gamepad end of the radio link and the tool I used to calibrate the speed controllers.

My pilot control was a Logitech F310. It has two thumbsticks and a USB plug, while the flight controller expects receiver channels for roll, pitch, throttle, yaw and mode switches. I built an ESP32-S3 transmitter to translate between them. On the aircraft I used esp-fc for stabilization, motor mixing and barometer altitude hold. That split let me work on the feel of the sticks and check the transmitted commands on the bench before flying.

The spring on the throttle stick shaped the design as much as the radio did. Release a conventional throttle lever and it stays where it was. Release the F310 and it comes back to the middle. In manual flight that position requests about half throttle. In altitude hold the same centre position asks the controller to hold height. My transmitter handles both meanings, including the moment when the pilot switches between them.

Radio channels per packet
8
Transmitter send interval
20 ms
Flight battery
3S
Hardware demo · in progress

F450 airframe and propulsion

Following power out to the arms

I assembled the F450 with four A2212 brushless motors, one on each arm, and fitted 1045 propellers. The front view shows the wiring around the centre plate between the four arms. Follow any arm out from that plate and the wiring leads to a speed controller and then a motor. The motors and frame were bought parts. My work on the aircraft was assembly, wiring, configuration and testing the finished system.

A 3S LiPo supplies the aircraft and each motor has a 40 A electronic speed controller. That number is the rating printed on the controllers. The flight controller sends a command to each ESC and the ESC supplies its motor from the battery. The processor can therefore change the relative thrust of the four corners without carrying the motor current through its own output pins.

The exploded view above lets you separate the frame, propulsion and centre electronics. The assembled front view is a better reference for following the real wiring. Both views give the four motor positions a physical meaning. A correctly moving roll channel on the receiver screen can only produce the intended response if the motor outputs also correspond to the correct arms.

Top view of the F450 with the four ESC outputs and propeller rotation directions.
Motor numbers follow the esp-fc QUADX mixer with normal yaw. Rotation is viewed from above.

Flight controller and pilot link

From the USB report to the motor mixer

The F310 plugs into the native USB port on my ESP32-S3. The transmitter reads a gamepad report containing stick bytes and button bits. It translates these into eight RC channels and sends them over ESP-NOW with EspNowRcLink. Using the packet format understood by the receiver in esp-fc meant that I could inspect the result in Betaflight Configurator’s receiver monitor. Each stick movement could be checked by name before a motor was involved.

The ESP32 on the centre plate runs esp-fc. An MPU-6500 supplies inertial measurements, a BMP280 supplies pressure and a QMC5883L supplies magnetic measurements over I2C. The receiver tells the controller what the pilot wants. The sensors describe the motion of the aircraft. esp-fc uses those inputs to stabilize the aircraft and mix its output across the motors. I configured this firmware for the F450 and wrote the transmitter software at the other end of the link.

Gamepad to USB host to ESP-NOW receiver to motor outputs.
The ESP32-S3 prepares the pilot commands. The ESP32 on the frame closes the flight-control loop.
F450 quadcopter with central electronics, arm-mounted ESCs and their wiring.
My F450 with the flight-controller electronics and ESC wiring exposed.
Hardware photo · in progress

Gamepad response and flight testing

A gentler centre on a gamepad stick

A raw F310 axis is a byte, with a nominal centre of 127. My mapping function treats displacements of fewer than eight counts from that centre as zero. On either side, it normalizes the remaining displacement against the distance to the corresponding end of the input range. A cubic blend then softens the middle of the response. Finally a rate multiplier sets the maximum excursion on the channel.

I chose a rate of 0.6 and an expo blend of 0.55 for roll and pitch. Yaw uses a rate of 0.8 and an expo blend of 0.45. The figure shows what those choices do over the entire input range. Around centre a small thumb movement produces little change. At full stick, yaw reaches further from neutral than roll does. Pitch uses the roll settings with its direction inverted to match the controller’s input convention.

The plotted values came from compiling the mapping functions saved with my transmitter sketch and evaluating every input byte. That makes it possible to compare the two endpoints, the centre plateau and the shape between them directly with the code. The vertical axis is the requested receiver-channel value. It describes what the transmitter sends before the flight controller applies any stabilization.

Roll and yaw outputs across the input range of the F310.
Running my transmitter’s mapping functions for every raw stick byte gives these roll and yaw commands. The centre plateau is the dead zone.
Cubic stick response · transmitter firmware
float applyExpo(float x, float e) {
  return x * ((1.0f - e) + e * x * x);
}

Arming and changing altitude mode

The arm control combines a button with a stick position. I have to pull throttle down and press the right bumper before the transmitter will request arming. The left bumper disarms, and unplugging the gamepad also clears the arm state. The transmitter sends the arm switch as its own channel, so I could inspect the switch and the throttle independently in the receiver monitor.

The right trigger toggles barometer altitude hold. If I engage it with the throttle stick away from centre, the transmitter first sends a centred command and waits for me to bring the stick back. Once it is centred I can push up to request a climb, release to hold, or pull down to descend. The code also limits the change in the throttle command from one transmitted frame to the next. The state transition matters because the same physical stick position has a different meaning on the two sides of the switch.

Transmitter state transitions from disarmed through manual and altitude hold.
Transmitter state transitions from disarmed through manual and altitude hold.
Gamepad transitions in the flight-tested ESP32-S3 sketch.
  1. Disarmed · wait for the low-throttle and arm-button combination.
  2. Manual · map the sprung stick to a throttle command.
  3. Altitude hold selected · command centre until the stick returns to centre.
  4. Altitude hold active · send a climb, hold or descend request.
Screen recording · in progress

Testing on the bench and in flight

I wrote a calibration sketch for all four ESCs. Before flight I checked the F310 inputs and arm and disarm states in the receiver monitor, calibrated the ESCs and checked motor mapping and spin direction. The monitor check tested the command path from my hands to the receiving processor. Calibrating the controllers and checking the motor positions covered the remaining path from the flight controller out to the arms.

Cutting the wireless link stopped all four motors. That check exercises a different failure from unplugging the gamepad. In the first case the aircraft stops receiving the transmitter’s packets. In the second the transmitter can still communicate, but the USB device supplying pilot inputs has gone away. The distinction matters when reading a successful arm or disarm indication on the bench.

I took off, hovered and flew outdoors under manual gamepad control with self-level stabilization. I also flew with barometer altitude hold. The repository contains a separate Arduino controller with a complementary filter, cascaded PID and a quad-X mixer. That implementation has not flown. The aircraft shown here used esp-fc for its flight-control loop throughout the reported flights.

On the bench the radio link was cut and all four motors stopped.
The test record gives the event order. The interval between the last received packet and motor stop was not measured in that record.
Cropped Betaflight Setup tab with attitude readouts and an aircraft model.
Betaflight Setup shows the attitude estimate. I checked stick inputs separately on the Receiver tab.