All paths

Robot kinematics

The geometry of robots that move: frames and transforms, differential drive and odometry on a 2WD rover, forward and inverse kinematics on a two-link arm, trajectories, and an arm that draws.

Arduino Uno R3Free7 lessons7 h3 chapters2,516 XPRobotics · Advanced+250 XP

0 of 7 done

What you will build

2 projects, built step by step

7 lessons in 3 chapters, about 7 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

Odometry

Count encoder edges into a pose with the midpoint method. Drive and turn by odometry, compare it with where the car really is, close a square, and watch a Monte Carlo of wheel slip show error growing faster than the distance.

Open it in the simulator
Chapter 2 project

Trajectories

Getting from here to there: a joint-space move that bows 36 mm off the line, a Cartesian move that stays within a tenth of a millimeter, a cubic time scaling that starts and ends at rest, and a singularity where the joints have to race.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

Wheeled robots

Frames and angles, two wheels turned into a speed and a turn rate, and a pose counted from encoder edges.

  1. Open288 XP

    Frames and angles

    The world frame and the robot frame, and the rotation that moves a point between them. atan2 instead of atan, angles wrapped to plus or minus 180, range and bearing to a target, and a sensor reading carried through two frames to the floor.

    0 of 6 steps

  2. Locked288 XP

    Differential drive

    Two wheels and no steering: wheel speeds to a forward speed and a turn rate, a spin on the spot, the turning radius, and the other way around, an arc turned into two wheel speeds, a pivot, and what to do when the outer wheel cannot go that fast.

    0 of 6 steps

  3. ProjectLocked500 XP

    Odometry

    Count encoder edges into a pose with the midpoint method. Drive and turn by odometry, compare it with where the car really is, close a square, and watch a Monte Carlo of wheel slip show error growing faster than the distance.

    0 of 5 steps

5 questions, graded as you go.
Chapter 2

Arms

Joint angles to the claw and back, both elbows, the workspace, and moves that draw the line.

  1. Locked288 XP

    Forward kinematics

    A two-link arm of two servos: joint angles to the claw by adding two vectors, the closest the claw can come with joint limits, and the Jacobian’s first idea, how far the claw moves for one degree at each joint.

    0 of 6 steps

  2. Locked288 XP

    Inverse kinematics

    Say where the claw should go and solve for the joints: the law of cosines for the elbow, both elbow solutions, targets out of reach and too close, targets that only break a joint limit, and a round trip through forward kinematics.

    0 of 6 steps

  3. ProjectLocked500 XP

    Trajectories

    Getting from here to there: a joint-space move that bows 36 mm off the line, a Cartesian move that stays within a tenth of a millimeter, a cubic time scaling that starts and ends at rest, and a singularity where the joints have to race.

    0 of 5 steps

5 questions, graded as you go.
Chapter 3

Boss build

A four-servo arm that holds a pen and draws on the table.

  1. Locked364 XP

    Boss: an arm that draws

    The gallery’s four-servo arm on a PCA9685 holds a pen and draws on the table: the base angle from above, two-link IK from the side, a line solved every 5 mm, the edge of the workspace, a circle of chords, and a whole drawing.

    0 of 8 steps

3 questions, graded as you go.
Syllabus

Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Wheeled robots

  1. Frames and anglesThe world frame and the robot frame, and the rotation that moves a point between them. atan2 instead of atan, angles wrapped to plus or minus 180, range and bearing to a target, and a sensor reading carried through two frames to the floor.
  2. Differential driveTwo wheels and no steering: wheel speeds to a forward speed and a turn rate, a spin on the spot, the turning radius, and the other way around, an arc turned into two wheel speeds, a pivot, and what to do when the outer wheel cannot go that fast.
  3. OdometryCount encoder edges into a pose with the midpoint method. Drive and turn by odometry, compare it with where the car really is, close a square, and watch a Monte Carlo of wheel slip show error growing faster than the distance.
Chapter 2

Arms

  1. Forward kinematicsA two-link arm of two servos: joint angles to the claw by adding two vectors, the closest the claw can come with joint limits, and the Jacobian’s first idea, how far the claw moves for one degree at each joint.
  2. Inverse kinematicsSay where the claw should go and solve for the joints: the law of cosines for the elbow, both elbow solutions, targets out of reach and too close, targets that only break a joint limit, and a round trip through forward kinematics.
  3. TrajectoriesGetting from here to there: a joint-space move that bows 36 mm off the line, a Cartesian move that stays within a tenth of a millimeter, a cubic time scaling that starts and ends at rest, and a singularity where the joints have to race.
Chapter 3

Boss build

  1. Boss: an arm that drawsThe gallery’s four-servo arm on a PCA9685 holds a pen and draws on the table: the base angle from above, two-link IK from the side, a line solved every 5 mm, the edge of the workspace, a circle of chords, and a whole drawing.
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Robot kinematics

Is Robot kinematics free?

Yes. All 7 lessons of Robot kinematics are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Robot kinematics take?

About 7 hours: 7 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Odometry and Trajectories.

Where do I start?

With "Frames and angles", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.