From Backdriving to Self-Locking — The Worm Gear Finally Works
After struggling with backdriving in my litter box design, I implemented a worm gear solution. Now the system holds position without power. A simple mechanical fix that transformed stability and reliability.
🐛 Worm Gear Implementation — Eliminating Backdriving
After running into backdriving issues in the litter box mechanism, I redesigned the drivetrain to use a worm gear instead of a pinion + large gear setup.
This post documents the actual fix and why it works.
🧠 Original Problem
Initial setup:
- NEMA 23 → pinion gear
- Pinion → large gear attached to drum
Problem:
- The drum has significant weight
- When the motor stops, gravity applies torque on the large gear
- That torque propagates back through the gear train
- Result: motor rotates backwards (backdriving)
Effects:
- Loss of position
- Unstable resting state
- System cannot hold without power
🔩 Why It Happens
Standard gears are bidirectional:
Motor → Gear → Load
Load → Gear → Motor (backdriving)If load torque > motor holding torque (unpowered), the system moves.
🔧 Solution — Worm Gear
Replaced the pinion system with a worm gear drive.
Property:
- Worm drives gear ✅
- Gear cannot drive worm ❌ (under friction conditions)
Result:
Motor → Worm → Gear → Load ✅
Load → Gear → Worm → Motor ❌📸 Integrated System
🎥 Verification — No Backdriving
Observed:
- Motor drives normally
- System stops → holds position
- No reverse motion
- No holding current required
⚙️ Key Design Notes
1. Self-Locking Condition
Depends on:
- Lead angle
- Friction coefficient
Low lead angle + friction ⇒ self-locking
2. Alignment
Critical:
- Parallel axes
- Correct center distance
Misalignment → binding / wear
3. Friction Tradeoff
- Higher friction → better locking
- Lower friction → better efficiency
In this case: locking > efficiency
4. Structural Stability
Required:
- Rigid motor mount
- Supported worm shaft
- Minimal flex
Flex = poor gear contact
🧪 Result
- Backdriving eliminated
- Holds position without power
- More predictable behavior
- Simpler control logic
🚀 Next
- Rewrite the firmware code for nema 23 motor in order to use faster speed of the motor regardless if its controlled by a webserver.
- Merge it to the Cat litterbox chassi
- Check that the backwards gear is working propertly
