Skip to content

BX Tacho 2.0.0

Choose a tag to compare

@dazchi dazchi released this 25 Oct 15:31

BX Tacho firmware 2.0.0, for the Beyblade X launcher RPM meter. Web app: https://dazchi.github.io/bx-tacho/

What's new

  • Black and white launchers: a launcher with a white housing reflects far more of the load sensor's light, so one calibration couldn't fit both. Each kind now keeps its own load levels and RPM threshold, and BX Tacho switches between them by itself: it starts on the black launcher's settings, a reading only a loaded white launcher gives switches to white, one only a black launcher gives switches back. status, the diag screen and events show the launcher in use.
  • Steadier load detection: while a top is loaded, the load sensor is sampled with short LED flashes. They were too short for the little light a black launcher reflects and read low, which could drop a loaded top. They now read the same level as a normal reading (load flash shows both).
  • No more spikes on the live RPM: chatter on the slow edges at the end of a spin-down could show for a moment as about 20,000 rpm. The filter now catches it for the whole launch.
  • Console: cal load, rpm thr and rpm scan take black or white (without one, the launcher in use); load flash [n] [settle_us] compares the flash sample with a full reading.
  • File names carry the version (bx-tacho-v2.0.0.bin), and the web app can install the latest release straight from GitHub (Use the latest release, USB or Bluetooth tab), checking its SHA-256.

Updating from 1.x: calibrate again

The calibration layout changed, so 2.0.0 starts the load and RPM calibration and cfg edges from defaults. The display, Bluetooth and light-sleep settings, the shot history and the battery calibration are kept. On each kind of launcher you use:

cal load black empty      (no top)
cal load black loaded     (top attached)
diag on
rpm scan black 5 apply    (turn the launcher slowly)
diag off

and the same with white on a white launcher. Set cfg edges <n> again if yours isn't the default.

Known limitation: after switching on, or moving BX Tacho from a black launcher to a white one, it stays on the black settings until the first top is loaded (or the pin pushed up). Until then the empty white launcher shows LOADED, and inserting the ripcord can start a launch that isn't one.

Files

File For
bx-tacho-v2.0.0.bin Updates. In the web app: USB tab (computer, or Chrome on Android with a USB-C cable) or Bluetooth tab. The shot history and battery calibration are kept (see above for the rest).
bx-tacho-v2.0.0-merged.bin A blank board: everything from address 0x0. Overwrites settings and shot history; the battery calibration is kept.
ota_data_initial.bin A blank otadata (8 KB of 0xFF), only for flashing bx-tacho-v2.0.0.bin by hand (below).
SHA256SUMS.txt Checksums of all three.

Release build, optimised for speed (-O2), ESP-IDF v6.1.

Updating from a firmware before 0.8 (single app slot): update over USB once. That writes the two-slot partition table that Bluetooth updates need. After that, Bluetooth updates work too.

Flashing by hand (esptool):

python -m esptool --chip esp32c3 write-flash 0x10000 bx-tacho-v2.0.0.bin 0x10e000 ota_data_initial.bin
python -m esptool --chip esp32c3 write-flash 0x0 bx-tacho-v2.0.0-merged.bin

The first form writes the app and a blank otadata, so the board boots this app rather than one in the other slot; the web app does that for you. The second is for a blank board.

Licensed under the GPL, version 3 or later (see NOTICE for the additional permission covering extensions).