boland.dev
● 28 SPM

ErgoRhythm-16

Turning a rowing machine into a SNES-era rhythm game.

A render of the ErgoRhythm-16 LCD dev board, tilted: a green board shaped like the console's original, with a row of 24 silver pads for the LCD, two rows of plated holes for a Raspberry Pi Pico 2 W's sockets, and connectors labelled REEDS and POWER.
fig.0 The first ErgoRhythm-16 board: a drop-in for the console’s original, made to map its LCD (render; boards on order).
  1. 00 Why?
  2. 01 The rower
  3. 02 Reading reeds
  4. 03 Next

00 Why?

I have a rowing machine from Decathlon that was gathering dust. Literally, see the photo. Rowing is a good workout but it's far from fun. The machine I have is the 'Domyos Essential 120', which has no smart features, it just shows distance or strokes per minute (SPM). I don't actually want a smart rowing machine connected to the internet, I just want a fun one.

A dusty rowing machine, with a segment LCD and a single MODE button.
fig.1 The rowing machine: dusty, with a simple LCD display.

ErgoRhythm-16 is a replacement PCB for my rowing machine that turns it into a rhythm game that you row to. The music follows your strokes and builds up as you get into a groove. I wanted it to look and sound like something you could order from a catalogue in the early '90s, using the original LCD and case. All the music is produced in time on-device with a 16-bit synth that sounds like a Super Nintendo.

There are specific rhythms for rowing. At first there's a 1:2 ratio of drive and recovery, which in music terms is 3/4 time. Pulling the handle (the catch) lands on beat one, with recovery filling beats two and three. As the pace picks up, the rhythm moves to 1:1, and the music adjusts too. I used video game music, going from a slow waltz in the overworld through to battle music when the intensity picks up.

01 The rower

The rower's console is very simple, it's an LCD screen that connects to the rest of the machine via two paired sensor cables (see fig.2). The enclosure is snap-fit with no screws and inside is a simple PCB with a single chip under a blob and two 2-pin connectors for the sensors, CON1 and CON2. The plan is to swap this board out with a PCB with an identical profile, and the same contacts for the LCD, but with a microcontroller reading the sensors and driving an audio out interface or speaker.

The console lifted off its mount, showing its battery bay and two thin cables running from it down into the rower's frame. Two small 2-pin connectors on black and black-and-white cables, where the sensor wiring comes out of the rower's frame below the console mount.
fig.2 Lifted off its mount, the console has just two thin cables running down into the frame. Their 2-pin connectors are where the Pi taps in.

For the current prototype, everything is running on a Raspberry Pi wired to the rower’s two sensor cables, playing through headphones. This was enough to write the firmware and nail down the music timing and get the 'feel' right, what's left is packaging the game inside the original console unit.

02 Reading the reeds

I imagined the sensors would count flywheel revolutions, with inertia continuing to trigger them as the flywheel spins. I tested this theory with a logic analyser and found I was wrong. CON1 and CON2 appear to be two reed switches mounted side by side that track the handle strap, and trigger early in the drive. When the magnet passes the switches, they close one after the other, and which one closes first indicates the direction the handle is moving. Pulling the handle and holding it didn't show the inertia I'd expected, ruling out the flywheel assumption.

▼ catch · drive recovery ▼ catch · drive recovery ▼ catch · drive recovery THREE STROKES AT ~21 SPM · 1 MHz CAPTURE reed Areed B 0 s 1 s 2 s 3 s 4 s 5 s 6 s 7 s 8 s A first = drive · B first = recovery ZOOM: A DRIVE PASS handle moving out, 160 ms window AB 39 ms A closes first ZOOM: A RECOVERY PASS handle moving back in, 160 ms window AB 31 ms B closes first
fig.3 The rower’s two reed switches on a logic analyser, during three easy strokes. Each stroke has 2–3 magnet passes each way, most likely one magnet on a pulley that turns a few times per stroke. On the drive (teal) reed A closes first on every pass; on the recovery (purple) the order flips. In the drive zoom the gap is 39 ms; just after the catch it’s over 100 ms, because the handle is still slow.

These sensor positions turn out to be better for a rhythm game than on the flywheel. The catch, the start of the drive, is the moment when the rower should strike on the beat and we can measure it directly. Having the two sensors to indicate direction is also useful as we should be able to track whether the recovery is off-pace even before the beat is missed, making the game even more responsive.

When is the beat?

At first, I tried rowing in time with a click track to get a sense of any latency or timing issues. This surprised me, as my drives were happening about 400 ms before the click I meant to hit. I was anticipating the beat. Imagine if there was a drum being hit by the oars, they would have to move first to then strike, which it turns out was my natural mental model for this. Many years ago I wrote a paper on how differently people entrain to the same rhythm, so this likely needs a per-player calibration, Guitar Hero style.

03 Next

I want the LCD display to help show the rhythm the rower needs to hit. In order for my new board to drive it, I need to map its pinout to work out which segment each pin drives. This was a good opportunity to order a simple PCB matching the original's profile and LCD pads, with a socket for an MCU to drive each pin and work out the mapping (fig.4).

I'm currently waiting for this PCB to be shipped, and then I can use it to prototype the rest of this project, before designing the complete PCB.

The rower's original console board, photographed with a ruler across it: a green board with five holes along the top, a row of 24 grey contacts for the LCD's zebra strip, and a tab at the bottom holding the MODE button switch. A render of the new dev board at the same scale and angle as the photo: the same outline, holes and 24 pads, with two rows of header holes for a Raspberry Pi Pico 2 W and connectors labelled REEDS and POWER. originalrev A
fig.4 Drag to compare: the console’s original board and a render of the dev board I’ve ordered.

04 Build log

  1. Teardown and logic analyser capture: the sensors are a handle-side reed pair
  2. Click-track calibration: the catch comes ~400 ms before the felt beat
  3. First free rows with the synth and composer on the Pi
  4. Waiting for LCD dev PCBs