Free · no signup to try · runs on Chromebooks

Balancing Robot Lab

A two-wheeled robot cannot stand on its own. Left alone it tips over in under a second, so it only stays up if its program keeps driving the wheels under it. Balancing Robot Lab gives every student one of these robots, a tilt graph and a program editor in Blocks or Python. They run nothing and watch it fall, then write the rule that catches it: drive toward the lean. Each level adds one idea a real balancing robot needs, from how hard to push, to how fast it is tipping, to a gyro that drifts, to a push from the side. The robot is sized from a published classroom robot, so the numbers a student tunes are the numbers a real one has.

This is the whole app, opening on Level 1 with the starter program ready. Press the round play button and watch the robot fall.

Open it full screen

Using this with a class? Make a free class and add your students yourself: each gets a username and password, with no email or Google account needed. Or give them one join code. Using Google Classroom? Post the link there; with a free class, the link also puts each student in your class, so you see their work. mytekDev is also available from the Google Workspace Marketplace, so your school's Google admin can install it for everyone.A first lesson: Open it on the projector at Level 1 and press play. The starter program does nothing, and the robot tips over in under a second. Ask the class what the program would have to do to stop it. Take the answer that sounds like "drive the wheels toward the way it is leaning" and type it in as Level 2. Then ask: how hard should it push? Level 3 lets them find out by turning one number.

Set up a free class Share to Google Classroom
Put this on your class site

Students can use Balancing Robot Lab right on your page, with no account. What they make stays on that page; to keep their work, they make a free account.

Google Sites: Insert, then Embed, then By URL, and paste this address.

https://mytekdev.com/try/balancingrobotlab?embed=1

Canvas, a blog, or any page that takes HTML: paste this code where you edit the page as HTML.

<iframe src="https://mytekdev.com/try/balancingrobotlab?embed=1" width="100%" height="640" style="border:0" allow="fullscreen" title="Balancing Robot Lab demo from mytekDev"></iframe>

What a student actually does

Level 1 runs a starter program that does nothing. The student presses play and watches the robot tip over, then makes it taller in the Configurator and runs it again. A taller robot falls more slowly, which is why a broom is easier to balance than a pencil.

Levels 2 and 3 ask the robot to stand for 3 seconds and then 10. The first rule is the obvious one: if it leans forward, drive forward; if it leans back, drive back. The second is to drive as hard as it leans, and the student turns one number up and down and watches the tilt graph. Too small and it still falls. Too large and it shakes.

Level 4 starts the robot already leaning 8 degrees and asks it to stand calmly for 15 seconds. The lean alone is not enough here, because by the time the lean is big the robot is already falling fast. Adding how fast it is tipping calms it. That is a PD controller, and the student gets there by looking at a graph.

Level 5 asks the robot to stay within 10 cm of a cross. Catching a lean rolls the robot away, and nothing in the program knows where the wheels have gone, so the student adds the wheel speed and the distance. From Level 6 on the robot has a gyro, which reports how fast it is tipping with a small error in it. Adding it up drifts, so the student measures the error first and subtracts it.

Level 7 slows the loop to every 50 milliseconds, and the numbers that worked now overshoot. Levels 8 and 9 drive to a line and turn to face the whiteboard, both on top of the balancing. Level 10 taps the robot from behind with a soft mallet, harder every 3 seconds, until the motors cannot catch it any more. Levels 11 to 13 add a 400 g box that moves the balance point, a ramp and a slippery patch, and a cup of water to carry around a corner. Level 14 is a course the student builds.

Between runs the student can open the Configurator and change the robot's height, wheel size, gearing, battery position and colors, and the numbers at the top (its mass, its no-load speed, how long it stays up with no program) update from the same model. A slow-motion replay shows the last 3 seconds at an eighth of the speed, and the tuning sheet keeps the build and each level's result in one place.

What they are learning while they work

Nothing here is presented as a lesson. This is what the levels are made of.

What the student doesWhat it is
Watches a robot fall, then makes it taller and watches again Instability. An upright body on two wheels is like a pencil on its tip. A small lean grows by itself, and a taller body grows it more slowly.
Drives the wheels toward the lean Feedback. The program reads the tilt and acts to reduce it, hundreds of times a second. Nothing in the program plans the standing. It only reacts.
Turns one number up and down and reads the tilt graph Proportional control. A bigger lean gets a bigger push. Too small a number cannot catch the fall, and too large a number overshoots and shakes.
Adds how fast the robot is tipping to the program Derivative (tilt speed). The lean says where the robot is. The tilt speed says where it is going. Pushing against both calms what the lean alone cannot.
Adds the wheel speed and the distance so the robot stays on the mat Controlling more than one thing. Catching a lean rolls the robot away. To roll back, the robot has to lean back first, so the correction works through the thing it is balancing.
Measures the gyro's error before the run and subtracts it Sensor noise, bias and calibration. A gyro reports how fast the robot is tipping, with a small constant error. Added up over a minute, that error becomes an angle that is plainly wrong.
Slows the loop to every 50 milliseconds and retunes Sampling rate. With a slower loop each push lasts longer, so the numbers that worked at 10 milliseconds overshoot. Gentler numbers fix it.
Reads the tilt graph at each tap of the push test Saturation. The motors have a limit. A gentle tap is caught, a hard enough one is not, and the graph shows power pinned at 100 percent while the lean keeps growing.
Carries a 400 g box that sits ahead of the middle Balance point. A load moves where the robot balances. A program that assumed zero was upright is now leaning, and one that keeps correcting finds the new balance by itself.
Drives up a ramp, over a slippery patch and around a corner Disturbances and traction. The ground tilts, the grip changes and the course turns. A program tuned on a flat mat has to cope with all three.

How to tell whether it landed

Ask, and let them show you on the robot. A student who has understood it can answer these in one sentence.

Use it in your subject

Not a technology class? Then the app is how students show what they learned in your unit. More projects for every subject.

Physical science and physics (NGSS MS-PS2-2, HS-PS2-1)

An unstable body, a push whose size depends on the lean, mass and height changed one at a time, and a motor with a force limit. High school adds the pendulum model and reading force and acceleration from the graphs.

Computer science (CSTA 2-AP-12, 2-AP-17, 3A-AP-15)

A loop that reads a sensor and acts, tested and refined against a graph, with the loop's timing and a sensor's error as things the program has to allow for.

Engineering and robotics (NGSS HS-ETS1-3)

Trading off height, wheel size, gearing and battery position in the Configurator, and judging each build against the same levels.

Practical notes

For classes without a robotics budget

A balancing robot kit needs a controller, a gyro board, motors and a battery for every pair, and the first hour goes to wiring and a robot that falls off the table. Here every student has one running at once, can break it as often as they like, and sees the graph that explains why. A class that later builds a real one starts from a program it already understands.

Common questions

Is it free?

Yes. Balancing Robot Lab has no paid tier, and it can be tried right on this page without an account. Saving needs a free account.

Does it work on a Chromebook?

Yes. It runs in the browser with nothing to install.

Do students need to know how to code?

No. Level 1 runs a starter program, and the Blocks tab is drag and drop. Python is there for students who want it, and Start from my blocks turns their blocks into the same Python.

Do students need to know the physics?

No. Levels 1 to 3 need only the idea that a bigger lean gets a bigger push. The pendulum model, the motor numbers and the tilt graph are there for classes that want to go deeper.

Are the numbers real?

The robot is sized from a published classroom balancing robot: a 0.6 kg body, 27 cm tall, with its center of mass 12 cm above the axle, on wheels 4 cm across, and the motor numbers from the same paper. The Configurator changes the height, wheels, gearing and battery position from there.

What does it simplify?

The robot only tips forward and back, never sideways, and the floor is flat until Level 12. The motors are ideal unless real motors are switched on, which adds a dead zone and makes one motor weaker. Nothing breaks and nobody rides it.

Can students see each other's work?

Only if they share a project. Typed words in a shared project, its name, the robot's name and the program, pass the platform's filter.

Still have a question? Ask us, and a person will write back.

Where to go next

Start with Balancing Robot Lab

Trying it costs nothing and takes about five minutes. An account is what makes the work last.

Balancing Robot Lab is one of the making apps on the platform. Every level runs on one model of the robot, so the fall a student watches in Level 1 is the one their program has to catch.
Page last reviewed November 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.