Robotics Portfolio Coach

The example robot

Why a made-up robot

Every example in this guide comes from one invented robot, Tern, and the invented team that built it. Tern's numbers, tests and failed first attempt are made up. They stay consistent from page to page, so you can follow one decision from the first test to the final portfolio.

A sentence about Tern's lift is no use in your portfolio. That's deliberate. You can see what a strong section contains without being handed text to copy, and the content still has to come from your own robot.

One continuous story also shows something separate snippets can't: a single real piece of engineering usually gives evidence for several criteria at once.

Tern doesn't play any particular season's game. We left out anything that would depend on this season's field or scoring rules. Tern and its team aren't based on any real team.

The robot

Tern has a mecanum drivetrain, a roller intake at the front, and a two-stage linear slide lift with a claw on the carriage. It has six control components: five sensors and one piece of control software.

Mecanum drivetrain Lift motor encoder Control Hub (built-in IMU) Odometry pod (1 of 2) Carriage and claw Two-stage slide Lift limit switch Intake distance sensor Intake rollers
Figure 4. Tern from the side, labeled the way a portfolio labels a robot photo. The five sensors are orange. The sixth control component, the lift position controller, is software and doesn't show up in a photo.

Tern's team put this labeled photo on page 3 of their portfolio. Each label is only a name. A name covers Control Required 1(A) for that part and nothing more.

All page numbers in this guide are physical pages in Tern's 16-page portfolio PDF, counting the cover as page 1.

The first attempt

Week 2. The lift ran on a timer. The driver pressed a button, the lift motor ran at full power for 0.9 seconds, and the carriage rose from its rest height of 4.0 in toward the scoring height of 28.0 in.

Before building the lift, the team tested drops by hand and found the claw releases a game element cleanly within 0.75 in of 28.0 in. That window, 27.25 to 28.75 in, became the target.

In the first practice session the lift sometimes stopped short and sometimes slammed into the top stop.

Why it failed, measured

Week 3. The team ran the lift 20 times on one battery, from fully charged at 13.6 V down to 12.4 V, and measured the carriage height after every run.

Battery voltage Runs Height reached Inside the window
13.6 to 13.0 V 7 28.9 to 29.6 in 0 of 7
12.9 to 12.7 V 6 27.3 to 28.6 in 6 of 6
12.6 to 12.4 V 7 26.2 to 27.4 in 2 of 7

8 of 20 runs landed in the window. Heights spread across 3.4 in.

Two causes showed up in the data. The motor turns more slowly as battery voltage drops, so the same 0.9 seconds moved the carriage less on a tired battery. And the carriage didn't always return fully to rest: in some runs it started up to 0.8 in high, and the timer added its travel on top of wherever the carriage began.

The voltage math predicts about 2.3 in of spread from voltage alone. The measured spread was 3.4 in, and the start-height error accounts for most of the difference.

The options compared

Week 4. The team compared three fixes.

Option What it measures Test Result Decision
1. Scale the timer by battery voltage Battery voltage only 10 runs 26.9 to 29.0 in, 6 of 10 in the window Rejected. Corrects for voltage but still misses when the carriage starts high
2. Motor encoder, plus a limit switch at the bottom Spool rotation; the switch resets the count at rest Built in week 5 See below Chosen
3. Distance sensor on the carriage, pointing down Carriage height directly Bench test Reading jumped 3 to 6 in whenever a game element passed underneath Rejected

The lift motor already had a built-in encoder, so option 2 added only one part, the limit switch. The encoder can't detect the string stretching or slipping on the spool. The limit switch handles that by resetting the count to zero every time the carriage reaches the bottom.

The second attempt

Week 5. The lift now drives to an encoder target of 2,738 counts. A controller sets motor power from how far the lift still has to go, then applies a small hold power to keep the carriage up.

The first gain the team tried, 0.010, overshot by 1.4 in and bounced twice before settling. A gain of 0.0044 overshot by 0.2 in.

The team repeated the week 3 test: 20 runs over the same 13.6 to 12.4 V range.

Version Height reached Inside the window Time to scoring height
Timer (week 3) 26.2 to 29.6 in 8 of 20 0.9 s
Encoder and limit switch (week 5) 27.7 to 28.3 in 20 of 20 1.1 s

The new lift is 0.2 seconds slower, because the controller slows down as it nears the target. The team kept it anyway: a missed drop costs a whole scoring cycle, which is far longer than 0.2 seconds.

The math behind the decision

The slide is rigged so the carriage rises 1 in for every inch of string the spool winds in.

Counts per inch. The spool is 1.50 in in diameter, so one turn winds in π × 1.50 = 4.712 in of string. The motor's encoder reads 537.7 counts per turn of the output shaft.

537.7 ÷ 4.712 = 114.1 counts per inch

Encoder target. From rest at 4.0 in to 28.0 in is 24.0 in of travel.

24.0 × 114.1 = 2,738 counts

Why the timer drifted. Motor speed scales roughly with voltage. 13.6 V ÷ 12.4 V = 1.097, so a fresh battery moves the carriage about 9.7% farther in the same time.

9.7% × 24.0 in = 2.3 in of expected spread

Controller gain. The team wanted full power when the carriage is 2.0 in or more from the target.

2.0 in × 114.1 = 228 counts, and 1 ÷ 228 = 0.0044 power per count

Hold power. With a game element in the claw, the team raised hold power in steps of 0.02. At 0.10 the carriage slid down. At 0.12 it held.

The control components

This is the component table from page 10 of the team's second draft. The first draft had two blank cells, shown in Figure 1.

Component Challenge it solves What it does
Lift motor encoder The timed lift missed scoring height as the battery drained Counts spool rotation at 114.1 counts per inch
Lift limit switch String stretch and slip make the encoder count drift from the real height during a match Resets the encoder count to zero whenever the carriage reaches the bottom
Lift position controller (software) The carriage has to stop at 28.0 in without overshooting and stay there with an element loaded Sets power at 0.0044 per count of remaining distance, plus 0.12 hold power
IMU in the Control Hub In autonomous, contact with another robot knocked Tern off its heading Reports heading; autonomous turns keep correcting until heading is within 2° of the target
Odometry pods (2) Mecanum wheels slip, so the drive motor encoders overstated distance by up to 9% in testing Unpowered omni wheels with encoders track the robot's x and y position
Intake distance sensor From the far side of the field, the driver couldn't see whether an element was fully in the intake A reading under 2.0 in for 100 ms stops the rollers and rumbles the driver's controller

Where this story shows up in Think and Control

Criterion Where it is in Tern's story Portfolio page
Think (A) engineering process A dated problem, a test, three options, a rebuild, a retest 4 to 7
Think (B) lessons applied The timer failed on a tired battery, so the lift moved to encoder control 7, 14
Think (C) choices compared Three options, each with a test result and a reason 6
Think (D) math in a decision Counts per inch, the encoder target, the voltage spread, the gain 6
Control Required 1 Six components, each with its challenge and function 10
Control Required 2 The encoder and limit switch correct the lift; odometry and the IMU correct autonomous 7, 11