Bluejay

Also known as: Bluejay ESC firmware

On this page 7

Bluejay is a free, open-source firmware for 8-bit electronic speed controllers that originally shipped with BLHeli_S, adding bidirectional DShot, motor RPM telemetry and selectable PWM frequencies to hardware that would otherwise lack them. In drone hardware, it is one of the most common ways to give older or budget ESCs the features that modern flight controller filtering depends on.

Bluejay is written in assembly for Silicon Labs EFM8 microcontrollers and builds directly on the BLHeli_S code base. It is maintained by the open-source community and is widely used on tiny whoops, toothpicks and budget 5-inch FPV drones with BLHeli_S-class 4-in-1 ESCs.

How Bluejay ESC firmware drives the motor

Bluejay ESC firmware performs sensorless commutation of a three-phase brushless motor: it detects the back electromotive force on the unpowered phase to determine rotor position and switches the MOSFETs in the correct sequence. The flight controller sends a throttle command for each motor, and Bluejay converts it into a pulse-width modulated drive signal at a chosen PWM frequency.

The key addition over stock BLHeli_S is bidirectional DShot. On the same signal wire, the ESC answers each DShot frame with a short reply that carries the measured electrical RPM of the motor. The flight controller converts that value to mechanical RPM using the motor pole count and feeds it to the RPM filter, which tracks motor noise far more precisely than static notch filters.

The table below summarizes the main functional blocks of Bluejay and what each one contributes to flight performance.

FunctionWhat it doesBenefit in flight
Bidirectional DShotReturns eRPM on the signal wireEnables the RPM filter
Selectable PWM frequencySets switching rate of the MOSFETsTrades smoothness against heat
Startup power limitsCaps current during motor startReduces desync and burned motors
Turtle mode supportAllows reversed motor direction on commandFlips a crashed drone upright
Startup melodiesPlays custom tones on armingIdentifies the aircraft by sound
Main functions of Bluejay firmware

Supported hardware and firmware targets

Bluejay runs only on ESCs built around EFM8BB1 and EFM8BB2 microcontrollers, the chips used by BLHeli_S hardware. Each ESC design has a layout code that describes how the MOSFETs, comparator and signal pins are wired, and the correct Bluejay file must match both that layout and the MCU type. Flashing the wrong target can leave the ESC unresponsive or damage the power stage.

Bluejay releases are offered in builds that differ mainly in PWM frequency options and dead-time settings. Older releases used separate files for 24, 48 and 96 kHz, while later releases allow the frequency to be selected in the configurator. The following table shows typical trade-offs between these frequencies.

PWM frequencyMotor feelHeat and efficiencyCommon use
24 kHzStrong low-end torqueHighest efficiencyHeavier 5-inch builds
48 kHzBalanced and smoothModerate heatGeneral freestyle
96 kHzSmoothest, quietest responseMore switching lossesTiny whoops and micros
Typical effect of PWM frequency in Bluejay

These are general tendencies, not fixed rules. The actual result depends on motor KV, propeller load, battery voltage and the quality of the MOSFETs on a given ESC.

Bluejay compared with other ESC firmware

Bluejay is one of several firmware options for multirotor ESCs, and the right choice depends mostly on the ESC microcontroller. Stock BLHeli_S runs on the same 8-bit hardware but lacks bidirectional DShot. JESC added that feature earlier as a paid, licensed firmware, while BLHeli_32 and AM32 target 32-bit ARM ESCs instead.

The comparison below places Bluejay next to the firmware families most often seen on FPV drones.

FirmwareTarget hardwareBidirectional DShotLicense model
Bluejay8-bit EFM8 BLHeli_S ESCsYesFree and open source
BLHeli_S8-bit BLHeli_S ESCsNoFree, closed development
JESC8-bit BLHeli_S ESCsYesPaid license per ESC
BLHeli_3232-bit ARM ESCsYesProprietary, development ended
AM3232-bit ARM ESCsYesFree and open source
Comparison of common ESC firmware

A practical rule follows from this table: 8-bit ESCs move to Bluejay, and 32-bit ESCs move to AM32 when the manufacturer supports it. Bluejay cannot be flashed onto 32-bit hardware, and AM32 cannot run on EFM8 chips.

Flashing and configuring Bluejay

Bluejay is normally installed through flight controller passthrough: the ESC configurator connects to the flight controller over USB, and the flight controller relays the bootloader traffic to each ESC on its signal wire. A web-based ESC configurator reads the current firmware, identifies the layout and offers matching Bluejay releases.

  1. Remove the propellers and connect a battery, ideally through a smoke stopper or current-limited supply.
  2. Read the ESCs and note the layout code and MCU type of each one.
  3. Select the matching Bluejay release and flash all ESCs, then read them again to confirm.
  4. Set motor direction, startup power and PWM frequency in the configurator.
  5. In the flight controller firmware, enable bidirectional DShot, set the motor pole count and verify RPM readings.

After flashing, the RPM values shown in the flight controller should be stable and plausible with props off. Error rates that stay high usually point to a wiring, timing or DShot speed problem rather than to the firmware itself.

Limitations and common problems

Bluejay cannot add capabilities that the hardware lacks. 8-bit ESCs have no current sensor for full ESC telemetry in most designs, a limited processing budget, and power stages that vary widely in quality. Bluejay therefore improves features and filtering, but it does not turn a weak ESC into a strong one.

The troubleshooting table lists the issues that appear most often after switching to Bluejay.

SymptomLikely causeFix
ESC not detected after flashWrong layout or MCU targetReflash with the matching target
High RPM error rateDShot speed too high or noisy wiringLower DShot rate, check signal wiring
Motor stutter on startupStartup power too low or highAdjust startup power setting
Hot motors after flightsFiltering or PWM frequency mismatchReview RPM filter and frequency choice
Common Bluejay issues and fixes

Explained without jargon

Every motor on a small racing drone has a tiny controller that decides exactly when to push electricity through its coils. Bluejay is free replacement software for that controller. It does the same basic job as the original software, but it also reports how fast each motor is spinning, many times per second.

The drone’s main computer uses that speed report to ignore motor vibration and focus on real movement. The key point is that a cheap drone can fly smoother and cooler with a simple software update, without new parts.

A typical use case

A hobbyist owns a 65 mm tiny whoop with a 1S brushless setup and an all-in-one board whose ESC section still runs stock BLHeli_S. The quad flies, but the motors come down noticeably warm and the video shows faint jello, because the flight controller can only use static filters without motor speed data.

The pilot removes the propellers, connects through the flight controller, reads the ESCs and confirms an EFM8BB21 layout. After flashing the matching Bluejay release, selecting 96 kHz PWM and enabling bidirectional DShot with a motor pole count of 12, the flight controller shows clean RPM values with an error rate close to zero.

With the RPM filter active, the pilot reduces the static gyro filtering. The result after a few test packs is cooler motors, smoother footage and slightly longer flight time, all on the same hardware.