Site icon AdaptiveMTBIreland

Hands-Free Gear Shifter

A servo-driven shifter that lets riders with quadriplegia change gear on an adaptive mountain bike, developed in two versions: one controlled by voice, one by sip and puff.

Timeline: Oct – Nov 2026 · Role: Design & build · Part of: Project Mjolnir · adaptive controls

27 Oct · Helmet prototype with the sip-and-puff mouthpiece at the rider’s mouth.

Download the full project portfolio (PDF)

The challenge

A gear lever you can’t press

Adaptive mountain bikes open up trail riding to people with high-level spinal cord injuries, but the drivetrain still assumes a thumb. Standard trigger shifters need a firm, precise press. For a rider with limited or no hand function, that means either riding in one gear or relying on someone else to change it.

The aim was to keep the standard, proven drivetrain and replace only the thumb: a small servo presses the shifter, and the rider tells it when. Riders differ in what they can do reliably on a moving bike, so I developed two ways to give that command.

How it works

One mechanism, two ways in

  1. 01 · Input — Voice or breath: Spoken command, or a sip or puff on a mouthpiece
  2. 02 · Sense — Voice module / pressure sensor: Recognises the command or the pressure change
  3. 03 · Decide — Microcontroller: Turns the input into a shift up or down
  4. 04 · Actuate — Micro servo: Presses the stock trigger shifter
  5. 05 · Shift — Cable & derailleur: Unchanged bike drivetrain

00 · Shared base

1 – 9 Oct · Common to both versions

Proving a servo can do the thumb’s job

Both versions sit on the same actuator, and it was already answering spoken commands in the earliest recorded test on 1 October. The first rig was a 3D-printed frame holding a servo against a printed slider, wired to an Arduino with a Grove shield. I then mounted an off-the-shelf trigger shifter on a printed plate and drove its lever through a short servo linkage, so the bike keeps its normal shifter and cable, and boxed the whole assembly up for handling.


01 · Version

1 – 24 Oct · Voice control

Change gear by speaking

The rider says a command and the bike shifts. It needs nothing in or near the mouth and no physical effort, which makes it the most open option for riders with very limited movement.

1 – 14 Oct · Recognition

1a · A voice module and the first command words

A voice-recognition module handles the speech, so the microcontroller only has to act on a matched command. The first command words were up and down. On 9 October, with the electronics in their first enclosure, I switched to easy and hard, which say what the rider actually wants from the gear.

2 Oct · “Some would say this isn’t real, but watch this.” Up, down, up, down: the derailleur moves on command.

15 – 21 Oct · Helmet mount

1b · Moving the controls to the rider’s head

A microphone works best a few centimetres from the mouth, and the helmet is the one place that reliably travels with the rider. The electronics moved onto a mountain bike helmet: a headset boom microphone, a compact Nano-format controller and a battery on top. The shifter and servo were rehoused in a printed shell shaped to the helmet’s side, and I wore it for first fit tests.

21 – 22 Oct · Wind-noise testing

1c · Can it hear you in the wind?

Wind across the microphone was the obvious worry, and several people raised it. I first used the impeller end of a handheld vacuum cleaner to blow air and motor noise over the mic, then a desk fan. Some words were too close in sound or started too softly to survive the noise, so I settled on climb for easier gears and sprint for harder ones: two words with sharp, distinct starts that riders would use anyway. A lapel mic replaced the boom so it could sit anywhere, even inside a full-face chin bar.

Close to the fan, with a lot of wind on the mic, it missed about two commands out of the ten or twelve I gave. Shifts also came a little slower, because the module has more noise to process.

22 Oct · Climb, sprint, climb, sprint with the fan running behind the lapel mic.

24 Oct · Ride test

1d · On the adaptive bike

With all the hardware still on the helmet and the lapel mic clipped on, I rode the adaptive bike indoors at a relatively slow speed, calling climb and sprint as I went. It got every shift in that section; the only fix needed was a small adjustment to the derailleur itself.

24 Oct · Riding the adaptive bike and shifting by voice.

02 · Version

26 Oct – 17 Nov · Sip and puff

Change gear with a breath

Sip and puff is a familiar control for people with quadriplegia. A puff on the tube shifts to an easier gear and a sip shifts to a harder one. Because there are no words to recognise, there are no mis-shifts from misheard commands, and the pressure needed to trigger a shift can be set to suit each rider.

26 – 27 Oct · Breath input

2a · Pressure sensor and mouthpiece

The change from the voice version was small: swap the voice module for a pressure sensor and add a length of tubing. Each tube end carries a small hydrophobic filter that costs a few cents and can be swapped out if it gets dirty. Tubing runs along a gooseneck to a mouthpiece, using the same helmet platform as the voice version. Both inputs could even run on the same shifter.

27 Oct · Sipping and puffing on the gooseneck mouthpiece to move the derailleur.

28 – 29 Oct · Rethink

2b · Taking weight off the head

By the end of the wind tests I already wanted the box and battery off the helmet, in a pouch or on a chest mount. With sip and puff, only the tube has to reach the rider. After testing against a real rear derailleur, I used quick cardboard mock-ups to try other layouts for a separate box.

2 – 7 Nov · Shifter box

2c · A dedicated shifter box

The mechanism now lives in its own printed enclosure: battery, controller, pressure sensor, servo and shifter laid out in one curved tray. I used Autodesk’s AI tools to place the mounting bosses, which took some prompting but saved a lot of time. The tray was printed on a Bambu Lab printer and assembled the next day. From the printed version I refined the shell in CAD, tightening it around the parts and adding a clear control button.

3 Nov · Printing the curved base tray, mounting posts first.

2 – 9 Nov · Ride test

2d · Shifting with a breath on the bike

I mounted the sip-and-puff unit on the bike, checked it on the stand, then rode it indoors with the electronics in a small enclosure cable-tied to the helmet and the tube close to my mouth. It went through most of the gears with no problems. I had the sensor set light, and it can be made firmer so normal breathing on a hard trail doesn’t change gear.

“Simple sip and puff and gears are changing. It’s really, really cool.”

Nov · Riding and shifting through the gears by sip and puff, with a close-up of the derailleur.

26 Oct – 17 Nov · Wireless design · Design

2e · Splitting it into two wireless units

The next step is to cut the cable between the rider and the shifter. I designed a two-unit version: a small mouthpiece unit holding the pressure sensor, and a shifter unit holding the servo, each on its own Seeed XIAO ESP32-C3 board and 1S LiPo battery, talking over ESP-NOW. The shifter unit runs from an Adafruit PowerBoost 1000C, and the mouthpiece uses a small 5 V boost board just for the sensor, with a 10 kΩ divider bringing its output down to the XIAO’s 3.3 V input. Each message carries a counter, so a repeated message can never cause a second shift, and if the link drops the shifter simply does nothing.

Nov · System diagram: the mouthpiece unit (left) sends one message per sip or puff; the shifter unit (right) moves the servo once.

Each unit is laid out hole by hole on a small perfboard, about 5 × 3.3 cm for the mouthpiece and 4.6 × 3.3 cm for the shifter, with an interactive 3D view to check every part and wire before soldering. The shifter switches the PowerBoost’s enable pin rather than the battery lead, because a small slide switch can’t carry servo current, and a 470–1000 µF capacitor at the servo header stops start-up spikes from resetting the board. Sourcing caught one mistake early: the first “10k” resistors were actually 10 Ω, which would have shorted the sensor’s output. The fourth colour band is the quick check: red for 10 kΩ, gold for 10 Ω.

17 Nov · Mouthpiece board in the 3D view: sensor, small boost board and divider, turning to show the underside wiring.
17 Nov · Shifter board in the 3D view: servo, PowerBoost 1000C and battery.

I also modelled a 3D-printable test jig for each board in OpenSCAD. The board sits 14 mm up on corner posts with an open window underneath for meter probes, held by two snap clips, with pockets for the battery, the PowerBoost and the servo, and the base is engraved with the board’s orientation. At this point everything was designed and drawn only; building started on 16 November, and the wireless code was still to write (it was working by 19 November, in 2g).

16 – 18 Nov · Wireless build · In progress

2f · Two boards on the bench

On 16 November the wireless version moved off the screen and onto the bench. I started soldering the first perfboard in a pair of helping hands: capacitors in, leads attached and the first links run on the underside. The next day I printed a simple stand, a flat frame with four corner posts, that holds the board up off the bench with its underside open, so joints can be checked and probed as the build goes on. The XIAO and the rest of the parts are still to go on.

By the evening of 17 November the shifter unit was together: the XIAO ESP32-C3 sits in header sockets on a 40 × 60 mm perfboard, with the slide switch, the large capacitor and a three-pin plug for the servo, and the PowerBoost wired alongside. The board is screwed to its printed stand. On 18 November I soldered headers onto the second XIAO and started the mouthpiece board on a matching stand: two rows of sockets for the XIAO, then the power links run on the underside.

On the evening of 18 November the shifter unit was switched on from its own battery for the first time, with no USB cable. It ran the first ESP32 test sketch, which sweeps the servo from centre to one side, back, and to the other, and the servo moved as it should. Earlier that day I was showing the 3D view of the boards to a visitor, which is what I’ve been building from: “I was able to use Claude to help me make three-dimensional versions of what I was trying to achieve with all the wiring.”

18 Nov · Walking a visitor through the 3D view used to build the boards.
18 Nov · First power-up on battery: the shifter unit sweeps the servo.

19 – 20 Nov · Wireless build · Bench

2g · The two units talk, and a dashboard to tune them

On 19 November the mouthpiece board got its components: the divider resistors, a small capacitor and the socket rows for the second XIAO. That evening both units were wired up together on the bench, the mouthpiece board with the MPXV7002DP pressure sensor on its purple breakout and the silicone tube pushed onto its port, and the shifter unit with its servo and battery. Then I switched them on and tried it: a sip or puff into the tube moved the servo on the other unit, with no wire between them. It worked first time on battery power, and in a range check the two units kept talking about 10 metres apart.

The reason for the split is weight on the helmet. As I put it in the video that night: “there’s going to be a lot of weight in the helmet for any rider that might be wanting to use this”, so the servo and its battery can sit elsewhere and only the small mouthpiece unit needs to be near the rider. I only started soldering on the Monday of that week; this was the Thursday.

19 Nov · The first wireless test: sip and puff move the servo on the other unit.

On 20 November the shifter gained a way to tune it. It now serves a small Mjolnir-styled dashboard that opens in a phone or laptop browser at 192.168.4.1. It has four parts: Shift, with Easier and Harder buttons that shift exactly like a sip or a puff, a gauge of the servo position and a count of shifts in each direction; Breath, a live trace of the pressure with the trigger lines marked; Servo, with the centre and press angles, how long to hold the lever and the pause between presses, each saved as it changes; and Mouthpiece, the trigger level stored in the mouthpiece (0.30 kPa in the test). In the screen recordings the shift counters climb past 90 each way, the servo returning to its 80° centre every time.

As I said in the update video: “we can adjust all the parameters around the input that will affect the output”, and so the shifter can be set up for a rider without opening the box. The next step is getting both units into enclosures to mount on the bike.

20 Nov · Clicking Easier and Harder moves the servo.
20 Nov · Quick update: the dashboard and the tube both shift the servo.

Comparison

Two versions side by side

Version 01Voice controlVersion 02Sip and puff
Rider actionSay climb (easier) or sprint (harder)Puff (easier) or sip (harder)
SensingVoice-recognition module; boom mic, then lapel micPressure sensor, tubing and replaceable filters
On the helmetMic, controller, battery, shifter and servoMouthpiece and tube; mechanism moved to a separate box
StrengthsNothing in the mouth, no physical effortNo misheard commands; sensitivity set per rider; a control many riders already know
Watch-outsStrong wind: about 2 missed in 10–12 commands at the fanMouthpiece must stay in reach; heavy breathing if set too light
Stage reachedRidden indoors on the adaptive bikeRidden indoors; shifter box printed and refined in CAD; wireless two-unit version built and working on the bench: sip and puff shifts the servo with no wire between the units, tuned from a browser dashboard

Build

What’s inside

Off-the-shelf parts wherever possible, so the system stays cheap, repairable and easy to adapt to other bikes.

Electronics

One small board, two ways to listen

Both versions run on the same classic Arduino Nano. I moved to it from an Uno with a Grove shield by 8 October, because it is small enough to live on a helmet or in the shifter box. It runs at 5 V, which suits the voice module and the pressure sensor directly.

The voice module is speaker-dependent: it only recognises words trained in the rider’s own voice, and it can hold seven trained recordings ready at once. The pressure sensor reads breath as a small change either side of air pressure. At rest it sits mid-scale, a puff pushes the reading up and a sip pulls it down, and one step of the Nano’s converter is about 5 pascals.

Everything shares one 5 V rail and a common ground. A 470–1000 µF capacitor near the servo smooths the current surge each time it moves.

Nano pinConnected toJob
D2VR3 TXDReceives recognised words (software serial, 9600 baud)
D3VR3 RXDSends commands to the module
D9Servo signalDrives the shift: home 90°, out and back
A0MPXV7002DP outBreath pressure, ±2 kPa (Version 02)
5V · GNDModule, servo, sensorShared supply rail

Voice: Elechouse VR3. Trained through a serial-monitor tool. Records stay stored when the power is off, but the module forgets which ones are loaded if it resets.

Breath: MPXV7002DP. Differential sensor on a small breakout. Tube to port P1, P2 open to air, with a 0.2 µm hydrophobic PTFE filter keeping moisture out.

Air path. Mouthpiece, 3 mm bore silicone tube, filter, sensor. I modelled printed luer-to-barb adapters in OpenSCAD to join the tube to the filter.

Code

The code, sketch by sketch

The code changed every time the bike taught me something: wind on the mic, a module that went quiet, a shift that came too late. Each sketch below is a dated file from the build, and each one says how far it was proven.

Evidence key: [Ridden] used on the bike; [Bench] tested on the desk; [Simulated] compiled and checked in a simulation before the hardware existed

  1. Early Oct (not kept) — First prototype on an Uno. Two trained words, a Grove servo and a Grove shield. The sketch from this stage was not saved. [Bench]
  2. 8 Oct (V2–V3) — Moved to the Nano. A recognition test that only prints what the module hears, then the first prototype: up swings the servo from 90° to 180°, down to 0°, holds 500 ms and returns home. A training tool adapted from the library example followed on 14 Oct (V1). [Ridden]
  3. 19–21 Oct (V4–V5) — Training for the wind. Wind across the mic on the bike broke recognition, so I trained each word again with wind blowing: a second set, then a third for strong wind. Six recordings, which uses six of the module’s seven slots. [Bench]
  4. 22 Oct (V6–V8) — Fixing the silent module. After a few commands the device would stop responding. Two suspects, two fixes: every 5 s the sketch checks the module still has its words loaded and reloads them if it reset after a power dip, and the servo now connects only while it moves, so its timer can’t corrupt the serial data from the module. Each word now shifts twice, because adaptive riders mostly want the easiest or hardest gears. [Ridden]
  5. 23 Oct (V9–V10) — Adding breath. A calibration sketch plots the sensor live so thresholds can be set per rider. A combined sketch then accepts voice and sip/puff together: a soft breath gives one shift, a hard one two, and a single switch builds it with or without voice. [Simulated]
  6. 24 Oct (V11–V13) — An A/B test, and a spin-off. A one-set version of the voice sketch to test whether multiple recordings per word were causing the dropouts, changed to one shift per word. A puff-controlled throttle also came out of this day as a separate idea, for the bench only. [Simulated]
  7. 26 Oct (V14–V16) — Sip and puff only, and fast. Voice removed. One shift per breath, with the trigger halved to about 100 Pa. The last change made the response fast: instead of waiting for the breath to end, it shifts once the pressure has held past the trigger for 30 ms, then waits for release so a long puff still gives one shift. In simulation the servo starts about 57 ms into a puff. This is the current file, and the sip-and-puff demo and ride tests came after it. [Ridden]
  8. 18 Nov (ESP32 · test 3) — First code on the wireless shifter. A servo sweep test for the XIAO ESP32-C3 using the ESP32Servo library: signal on pin D2, a standard 50 Hz signal, and a slow sweep between 60°, 90° and 120°, kept well inside the servo’s range so nothing binds. Written before it had been compiled, it was then uploaded and proven on the bench that evening: the shifter unit swept the servo on its own battery, as in the videos. [Bench]
  9. 20 Nov (ESP32 · two units) — Wireless sip and puff, with a dashboard. Sketches for both units: the mouthpiece reads the pressure sensor and sends a sip or puff to the shifter, which presses the lever and returns to centre. The shifter also hosts a web dashboard at 192.168.4.1 with shift buttons, a live breath trace, and settings for the centre and press angles, hold and pause times and the trigger level, each saved as it changes. The wireless link first worked on 19 Nov; the dashboard appears in the 20 Nov videos and screen recordings. [Bench]

Still open: the voice dropouts are not confirmed fixed (the A/B test is ready to run), and the 300 ms servo hold may need lengthening if a gear doesn’t fully engage.

Next

Where it goes from here

Exit mobile version