The firmware can be found in the Releases page for the MCU project.

Prerequisites

Flashing

  1. Download the latest firmware from Releases page.
  2. Connect the USB-C Port on the BlackPill to the computer.
  3. Press the BOOT0 button on the BlackPill, then reset it to enter bootloader mode.
  4. Launch STM32CubeProgrammer.
  5. On the right-hand side of the window, the drop-down menu shows ST-LINK. Change it to USB and click Connect.
  6. Select Erasing & Programming from the left side of the window (arrow pointing to a device icon).
  7. Click Browse in the middle of the window and locate the firmware file (.elf).
  8. Press Start Programming.
  9. Wait for the firmware to be flashed.
  10. Close STM32CubeProgrammer and reset the BlackPill.
  11. A click sound should be heard from the relay module.

Next Steps

If there are no plans to modify the firmware, skip to the ChassisTuner section.