Skip to content

Hoverboard firmware hack FOC

  • Software
  • Microcontrollers and firmware tools
  • Firmware

Replacement firmware for stock hoverboard mainboards that adds Field Oriented Control for smoother, quieter, more efficient motor operation. Several control modes and input variants are supported.

Source on GitHub: github.com/EFeru/hoverboard-firmware-hack-FOC (opens in a new tab). Facts read at commit 4f141cb (opens in a new tab).

Licenses

Code
GPL-3.0-only (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (GPL-3.0-only) at commit 4f141cb (opens in a new tab), on 22 Oct 2026.

Commercial use
Yes

Copyleft: Modified source must be published.

What it does

  • Implements Field Oriented Control as an alternative to commutation, reducing noise, vibration and energy use.
  • Offers commutation, sinusoidal and FOC control types, selectable in config.h.
  • FOC has voltage, speed and torque modes, suited to robotics, constant-speed and seated-rider uses.
  • Provides field weakening to extend the usable speed range, disabled by default.
  • Includes many input variants: potentiometers, serial, Wii Nunchuk, RC PPM/PWM/iBUS, pedals, sideboards, skateboard.
  • Parameters are fixed-point values in BLDC_controller_data.c, tuned with a separate Fixed-Point Viewer tool.

Written by Robotheca from the project's README (opens in a new tab) at commit 4f141cb.

Getting started

Difficulty
Intermediate

Maintenance

Status
Maintained: a commit in the last 12 months
Newest commit
4 Jul 2026 on main
Latest release
None published on GitHub

Checked on GitHub on 22 Oct 2026.

Robots that can run it

No robot on Robotheca is linked to it yet. Links come from a robot's robot.yaml, from its dependency files read as text, or from Robotheca's editors.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.