How the train simulator for kids works
A free model train simulator that runs in your browser and uses real physics. Kids design a train and a track, see plain-language answers ("Will it get up the hill?"), fix what fails, then 3D-print the exact parts and build a real train that drives over Wi-Fi.
Four steps
- Build. Pick a motor, gears, tyres, wagons, cargo, battery, and options like a cog wheel for mountain track.
- Track. Start from a ready layout or build your own: straights, tight and wide curves, hills, corkscrew spirals, switches, sidings and cog-railway mountains up to 60°.
- Test. The simulator drives the train round twice, once with typical numbers and once with every uncertain number at its unlucky end, and shows green (great), yellow (careful) or red (problem) cards with tips.
- Print and drive. Download STL files for every part, follow the step-by-step 3D picture guide, then drive the real train and let it teach the simulator its true friction.
What kids learn
Plastic wheels slip on plastic rails. Rubber tyres and a few coins over the motor wheels change everything, and the simulator shows by how much.
Bigger gears make the train stronger but slower. Kids see the trade-off as numbers and as a train that does or does not get up the hill.
Why a tall engine flips over backwards on a steep mountain, and how a lower battery or a lighter train fixes it.
Too fast on a tight curve and wagons tip over or climb off the rail. Wide curves let you go faster.
How long a battery lasts, why a motor gets hot, and what "current" means, measured on the real train.
Design, test, fix, then build. Every check says what to try next, and the real train tells the simulator where it was wrong.
The physics inside (for curious grown-ups)
- Motor and gears: a brushed DC motor model from datasheet numbers (stall torque, no-load speed, currents), gear efficiency, and rotor inertia.
- Friction: wheel-rail rolling resistance, axle-bearing friction (steel axle in a printed hole, dry or oiled) and extra drag on curves.
- Grip: how hard the driven wheels can push before they spin, and what happens when they do.
- Safety limits: tipping speed on curves, flange-climb derailment (Nadal's limit), flipping over on steep slopes, gear-tooth and coupler strength.
- Battery: LiPo voltage as it drains, run time, and motor heating.
- Calibration: the real train's wheel encoder, current sensor and motion sensor let the simulator measure your train's actual friction and efficiency.
What you need to build the real train
- A home 3D printer printing PLA (no supports needed). The train and a small loop of track use roughly 0.5–0.7 kg of filament.
- Electronics, typically about US$20–30 online: an N20 gear motor with encoder, ESP32-C3 board, DRV8833 motor driver, INA219 current sensor, MPU6050 motion sensor, a small 1S LiPo battery with a TP4056 charger board, and a switch.
- 3 mm steel rod for axles, O-rings for tyres, thin wire, double-sided tape and a drop of light oil.
Safety notes for parents
- The simulator is just a website: no account, no ads, nothing to install.
- LiPo batteries, charging and soldering need an adult. Never leave a charging battery unattended.
- Small parts are not suitable for children under 3.
Questions
What is the train simulator?
A free, kid-friendly model train simulator in your web browser. You choose the motor, gears, tyres, wagons and track (hills, curves, switches, even cog-railway mountains), drive it, and get simple green, yellow or red answers like "Will it get up the hill?" and "Will it tip over on the curve?".
Can we really 3D-print the train we designed?
Yes. Every part you see is the exact part you download as an STL file: wheels, gears, the engine frame and body, wagons, track pieces, switches and supports. A step-by-step picture guide shows how to put it together.
What else do we need to build the real train?
A small N20 gear motor, an ESP32-C3 board, a motor driver, a current sensor, a motion sensor, a small LiPo battery with a charger board, steel rods for axles and some O-rings. These typically cost about 20 to 30 US dollars online.
Is it safe for kids?
The simulator is just a website. For the real train, an adult should handle the LiPo battery, charging and soldering, and small parts are not suitable for children under 3.
How steep a hill can a toy train climb?
With plastic wheels only a few percent. Rubber tyres and weight over the driven wheels help. For steep mountains the simulator offers a cog railway; even then a tall engine flips over above about 40 to 45 degrees, just like real cog railways stop at about 25 degrees.
What does the real train do with its sensors?
It measures its speed, motor current, slope and turning, and sends them over Wi-Fi. The simulator uses that run to learn your train's real friction and gear efficiency, so its predictions match your train.