What the course teaches
Robot kinematics is seven lessons on the Uno, in three chapters:
- Wheeled robots: the world frame and the robot frame, the rotation that moves a point between them, atan2 and angle wrapping, range and bearing, a sensor reading carried through two frames; differential drive both ways (wheel speeds to v, omega and a turning radius, and an arc to two wheel speeds), pivots and wheel speed limits; odometry by the midpoint method, compared with where the car really is, and a Monte Carlo of wheel slip that shows its error growing like distance to the 1.5.
- Arms: forward kinematics on a two-link arm, the Jacobian's first idea and the workspace; inverse kinematics with both elbow solutions, reach and joint limits and a round trip; joint and Cartesian moves, a cubic time scaling and a singularity.
- Boss build: a four-servo desktop arm on a PCA9685 that holds a pen and draws lines, a square and a circle by solving three joints every 5 mm.
Each chapter ends in a short quiz. Open it from /learn.
The circuits
Every lesson runs a sketch written for the course:
- Kinematics rover (
kinrover): the 2WD chassis on an L9110 (left motor on pins 5 and 6, right on 9 and 10), its slot encoders on the interrupt pins, left on 3 and right on 2. The sketch counts both edges of each slot: 40 a wheel turn, 5.105 mm of floor each. - Two-link arm (
kinarm): a 180 degree shoulder servo on pin 5 and a 270 degree elbow servo on pin 6, on their own 5 V supply. The links are 100 mm and 80 mm. Each servo's live value is its joint angle. - An arm that draws (
kindraw): the gallery's four-servo arm on a PCA9685 (SDA A4, SCL A5), base, shoulder, elbow and claw on channels 0 to 3.
The sketches take commands typed into the Serial Monitor. Type an unknown word to see the list. The checks read the chassis's speed, each joint servo's angle, the claw, and what the sketch prints.
Troubleshooting
- The rover keeps driving. wheels and arc run until you type stop.
- The odometry does not match the car. It should not quite: the heading moves in 2.25 degree steps, one encoder edge. Click the chassis to read its true pose.
- ik says every solution needs a joint past its limit. The target is in reach but needs the shoulder below 0 or the elbow past 135 degrees. Pick a point above the shoulder.
- The drawing arm will not draw. Type grip first, and keep targets between about 70 and 130 mm from the base.
Related
Stepper motion planning for the machines that move in straight lines, and Servos, solenoids and actuators for the servos themselves.