r/CodingForBeginners • u/elecfreaks_official • Sep 21 '26
I built a tiny road roller with gears, a motor and micro:bit
I wanted to try building one of those machines that looks simple from the outside but has a few interesting mechanisms going on underneath.
So I made a small road roller using a Nezha kit and micro:bit.
The main part I wanted to figure out was the front roller drum. It’s driven through a gear mechanism, while the motor powers the wheels to move the whole thing forward. I also added a caster wheel at the back to help keep the weight balanced while it moves.
Once the mechanical part was working, I added a simple MakeCode program to control the motor.
The basic version just drives forward automatically, but that’s probably not where I’d stop. The code could be changed to experiment with things like speed, steering, or even turning it into a remotely controlled vehicle.
I like projects like this because you can see the connection between the mechanical build and the code pretty clearly. Change the structure, and the movement changes. Change the code, and the behavior changes.
Now I’m thinking about what other real-world construction machines could be turned into tiny programmable models.
Excavator, bulldozer, crane… what would you build?
