fm1buddy

Switch the M-VAVE FM-1's firmware, and play it from USB and Bluetooth MIDI controllers, with no computer.

Open source on GitHubFree, GPL-3.0: read it, change it, build it yourself.

Looking for the latest release…

A Freenove ESP32-S3 touch screen (a "CYD" with an ESP32-S3: the 2.8", the 3.5" or the 4") with an SD card: it lists the firmwares on its card and on mutant.cloud (with what each one is), downloads them over Wi-Fi, and installs them on the FM-1. Its USB-C port is a USB host, so a controller on a hub with the FM-1 plays it; Bluetooth MIDI keyboards, phones and computers join in. Nothing to put together.

Only need to swap firmware or rescue a bricked FM-1? lilfm1buddy is a lighter alternative: a cheaper board with no screen, using the FM-1's own screen and controls. Have an M5 Cardputer? cardbuddy does the same on it, with its keyboard and the same SD card.

You need

  • the Freenove ESP32-S3 Display, in any of its three touch sizes: 2.8" (FNK0104B; the A has no touch), 3.5" (FNK0104N) or 4" (FNK0104S). The 3.5"'s firmware is new: not tried on one here yet
  • a USB-C OTG adapter with a charging port (USB-C plug; a USB-A socket and a USB-C charging socket) that passes charging and data at the same time. Look for one sold for the Chromecast with Google TV: it's the same situation, a device that is the USB host while it's powered through that port. Many 3-port "splitters" can't: they say "does not support charging and data at the same time".
    Or a hub with a power input made for the Chromecast or Fire TV (USB-C plug, USB-A ports, a charging port): the adapter and the hub in one.
  • a small USB hub (the adapter powers it)
  • a USB-C charger or a power bank
  • a microSD card (FAT32)
  • Optional: a flat 3.7 V LiPo for the battery case, up to 70 × 51 mm under the 2.8" (86 × 55 under the 3.5", 96 × 62 under the 4"), any thickness: a 3000 mAh cell like MakerFocus's 4-pack (65 × 36 × 10 mm, 1.25 mm plug). Any plug is fine: the board comes with a cable for its BAT socket, with bare wires
  • Chrome or Edge on a computer, and a USB-C cable that carries data

Install

  1. Plug the board into the computer, straight in (not through the adapter). If it has an older fm1buddy on it, hold its BOOT button (on its back, next to the USB-C) while you plug it in.
  2. Install: pick your board's screen, press the button, pick the board's port (USB JTAG/serial debug unit, or usbmodem), and confirm.
    This browser can't: use Chrome or Edge on a computer (or download the .bin for esptool: esptool.py --chip esp32s3 write_flash 0x0 fm1buddy-cyd-s3.bin). The page must be opened over https.

    To update it later, plug it into the computer and install again: on a computer it's a serial port, no BOOT button needed.

  3. The SD card (FAT32): put it in. Firmwares go into its fm1 folder: the board downloads them there itself, or copy .fwsc packages there on a computer.
  4. Wi-Fi: on the board, tap the gear, then Wi-Fi, pick your network and type its password. Wi-Fi is only on while it downloads.
  5. Plug in: the adapter into the board, a hub into the adapter's USB-A, a charger or power bank into its charging port, and the FM-1 and your controller into the hub.
    controller ─┐
                ├─ USB hub ── OTG adapter ── CYD-S3
    FM-1 ───────┘                 │
                      charger ────┘ (its charging port)

Use it

  • Firmware (the download icon): SD card lists the firmwares on the card, Hub the Firmware Hub's (filter them by kind, sort them by date or name). Tap one for what it is; Save to SD downloads it, Install (tap it twice) installs it on the FM-1; with no backup of the FM-1 on the SD card yet, it says so first, with a button to make one. Keep the FM-1 plugged in until it says Installed. Each download is checked (its size, sha256 and identity) before it's kept.
  • SLOOP (in Manager, the folder icon, with an FM-1 running SLOOP 2.3 or later): Back it up saves everything on it in SLOOP's own file, in sloop on the SD card (its web editor opens them, and its backups go there too). Tap a backup to restore all of it (the FM-1 is backed up first) or load one of its projects. Load .wav files puts a folder of them from sloop/samples into one of its sample slots, each file a key zone named by its root note (bass_C2.wav). For other firmware, Sounds says what it can do, and what to install for more.
  • MIDI (the note icon): what's on the hub, each with a light when it plays. Whatever one plays, the others hear, unless midimap.txt on the SD card says otherwise: rules like from nanokey -> to fm-1 ch 2 or from launchkey cc 1 -> to fm-1 cc 74 (the file explains how, and the MIDI page says if a line doesn't read). Mapping lists them in plain words, deletes them, and adds new ones by touch: a device onto its own channel, a keyboard split at any key, transposed, at a fixed or scaled velocity. Clock, arp sends MIDI clock at a tempo (tap it, start and stop) or follows a device's, and has an arpeggiator and chord memory for the controllers' notes. Touch controller makes the screen a controller of its own, Touch: an X/Y pad (each of two fingers sends two CCs, and can play notes along a scale) or 16 pads, as hard as you hit them (harder at a pad's top). Rules like from touch -> to fm-1 ch 2 work on it; the channel at its top switches quickly (so with a rule for each channel, one tap moves it to other sounds or controls), and its gear picks the CCs, the scale and the notes. Bluetooth MIDI is off until you turn it on there: phones, tablets and computers connect to fm1buddy, and Bluetooth MIDI keyboards and synths around are listed: tap one to connect it (it's remembered).
  • Manager (the folder icon), for the FM-1's files: Record audio records the FM-1's own sound over USB to WAV files in recordings on the SD card, with a meter for each side and a warning when it clips (turn the FM-1 down then: its USB level follows MASTER). It needs firmware that sends USB audio: Felucca, and those built on it like SLOOP. A class-compliant USB microphone or sound card works too. Back up the FM-1 saves all of its flash to the SD card. Unbrick is for an FM-1 that won't start any more: pick a firmware or a backup, switch the FM-1 off, plug it straight into the adapter instead of the hub (keep the charger in), tap Start, and switch the FM-1 on. fm1buddy wakes the boot loader in its chip (no firmware can break it), saves its flash as it was, and writes the firmware back. While it backs up or unbricks, the FM-1's own screen shows how far along it is, in your theme's colors. Record SysEx keeps the SysEx dumps it sends as .syx files.
  • Settings (the gear): Wi-Fi, the color theme, what it starts on (firmware, MIDI, the mapping or the touch controller), the brightness, and calibrating the touch screen. USB disk shows the SD card to a computer as a drive. On a computer: plugged straight into a computer, the board is its serial port (for flashing), or with USB MIDI a MIDI device, fm1buddy, in any music app: the touch controller, the clock and Bluetooth MIDI devices play it, and it plays them. To flash it then, hold BOOT as you plug it in.

A case

The case for the CYD-S3

Print the base open side up and the lid flat side down, without supports (PLA or PETG). The lid snaps on and holds the board down. The SD card goes in at the side.

The 3.5"'s case is made from its board's drawing, and not printed yet: tell us how it fits (an issue, with a photo).

With a battery, it goes under the board, on its BAT socket (MX1.25, 2 pins). Pick yours, or type its size (the cell's own, from its listing: room is added), and the base is made for it, here in your browser. Red must go to + on the board: some batteries come wired the other way, so check before plugging it in. It stays connected, so it charges whenever the charger is in, and the board can sleep by itself when nothing is going on: pick how soon in Settings > Sleep (it's off at first), and touch the screen to wake it.

× × mm

What it can't do

  • Up to 4 USB MIDI devices on the hub: the FM-1 and 3 controllers, say.
  • The hub needs the charger. The board can't power its USB-C port itself, so the hub and what's on it get their power from the adapter's charging port. A battery keeps the screen and Bluetooth MIDI going without it, not the hub.
  • Bluetooth stops while Wi-Fi is on (they don't both fit in its memory), and starts again after.

Good to know

  • The FM-1 only takes firmware over USB, so installing goes through the board's USB host (or a computer).
  • Installing firmware is at your own risk. If the FM-1 won't start, hold OCT- while switching it on (the USB rescue), and install again.
  • If a controller sends back everything it receives ("MIDI thru" or "echo" in its settings), turn that off, or messages go round in circles.