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.
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.
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.
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.
originalrev A
04 Build log
- Teardown and logic analyser capture: the sensors are a handle-side reed pair
- Click-track calibration: the catch comes ~400 ms before the felt beat
- First free rows with the synth and composer on the Pi
- Waiting for LCD dev PCBs