44 Lessons for the Engineering Behind Robots

An open, bilingual course book on physical AI: ten parts and a capstone, a runnable experiment in every lesson, and a rule that no number appears unless a run or a primary source backs it.

There is no shortage of good material on building with models. There is very little on the part where the model has to move something: a frame that is rotated the wrong way, a controller that oscillates, a policy that works in simulation and falls over on the table.

Physical AI Engineering from Scratch is my attempt at that missing layer — an open course book, in English and Turkish, of 44 lessons in ten parts and a capstone, in strict prerequisite order.

What it teaches, and what it refuses to

It does not re-teach general maths, machine learning, deep learning or the basics of reinforcement learning. Each lesson links the matching lesson of the free AI Engineering from Scratch course under Learn first, and then teaches the robotics-specific part on top of it.

What is left is the chain itself: simulation; spatial maths; kinematics; dynamics and control; perception and estimation; planning and optimal control; learning from demonstration; reinforcement learning for robots; sim-to-real; and foundation models and agents. Then a capstone that uses them together. Three robots keep coming back — the SO-101 arm, the Franka Panda and the Unitree Go2, all from MuJoCo Menagerie — so the same machine is seen from ten angles instead of ten robots being introduced once each.

Every lesson has the same shape

The problem, the core idea, an experiment, break it, on the real robot, check yourself, then takeaways and sources. Thirty to ninety minutes each.

The step I care most about is "break it". Reading that a timestep must be small enough is nothing; watching the simulation explode when you double it, on your own machine, is the lesson. So almost every experiment runs on a laptop CPU or in Colab with MuJoCo, and the handful that need a GPU or the real arm say so in their metadata rather than wasting your afternoon.

git clone https://github.com/fport/physical-ai-from-scratch.git
cd physical-ai-from-scratch
uv sync
uv run python experiments/02-timestep/experiment.py
uv run pytest        # the tests of physai/, the library you build through the lessons

That last line is the other half of the format: the lessons build a small library as they go, and it has tests, so what you wrote in lesson 9 is still working in lesson 30.

The rule about numbers

Every number in the book comes either from an experiment in experiments/, with its exact output saved next to it, or from a linked primary source. Nothing that was not run is presented as a result, and hardware steps that have not been performed on a real arm are labelled as such.

It sounds obvious and it is the hardest rule to keep. It is also why I trust the book more than my own notes: a sentence that cannot point at a run or a source does not get to stay.

Learning it with an agent

npx skills add fport/physical-ai-from-scratch

That installs four skills into a coding agent that reads SKILL.md — Claude Code, Codex, Cursor: start-learning (a short placement quiz, then a study plan written to PHYSICAL-AI-LEARNING.md), learn (one lesson per session: intuition, a diagram, the code, a prediction you commit to before running, the experiment on your machine, exercises), check-understanding (a quiz on a part) and course-guide (where a topic is taught and what to read first).

The prediction step is the one that makes it work. Guessing the result out loud and being wrong is what makes the number stick.

Where it lives

The book is a website and a repository; Turkish sits next to English in tr/, and the Turkish short series Koddan Kasa summarises lessons on video. Code is MIT, the lesson text is CC BY 4.0, and the robot models keep their own licences.

The lesson format, and the "raw version before the framework" principle it is built on, come from Rohit Ghumare and contributors' AI Engineering from Scratch, which is also the prerequisite course. If you want to see where this ends up on real hardware, the tic-tac-toe arm is parts 7 and 9 of it on my own table.

44 Lessons for the Engineering Behind Robots | Furkan Portakal