HomeExperiments
Autonomous Warehouse Robot — The Alvik Capstone
Robotics

Autonomous Warehouse Robot — The Alvik Capstone

Combine line following, obstacle detection, colour recognition and a servo arm into one autonomous robot that collects colour-coded packages and delivers each to the right bay.

120 min (set-up 45 min)
Robotics Projects

What students learn

Students integrate four separately-tested subsystems into a single robot governed by a state machine. They learn that system integration is mostly about deciding what the robot should be doing at any moment, and about designing behaviour that survives when a sensor is wrong.

The science behind this experiment

  • A finite state machine gives the robot exactly one active behaviour at a time, plus explicit rules for when to switch — this is how almost all autonomous robots are structured.
  • Subsystems that work perfectly alone often fail together, because each one assumes conditions the others disturb: line following assumes the robot is moving, colour scanning assumes it is still.
  • Taking several readings and using the majority is the cheapest form of sensor fusion, and it removes most single-sample noise.
  • Safe robots have a defined behaviour for "I do not know" — stopping is almost always better than guessing.
  • A servo is commanded by position, not speed: you send an angle and internal feedback holds the arm there, which is different from the DC drive motors.
  • Adding sensors adds failure modes as well as capability, so every new input needs a rule for what happens when it is wrong.

Key relation: Cycle time = t_follow + t_scan + t_deliver + t_return. Success rate = completed deliveries ÷ attempted deliveries × 100%.

Equipment used

  • Arduino® Alvik robot
  • Servo motor from the Arduino Student Kit, on a 3-pin servo header
  • LEGO Technic parts for the arm and package holders (school sourced, not included in LAB-002)
  • Black tape for the track loop
  • Red, green and blue card for the bay markers
  • Three small colour-coded packages (blocks or card boxes)
  • Paper for the state machine diagram and failure log

Questions for students

  • Your robot completes 7 out of 10 deliveries. For a real warehouse that is unusable. Identify the three failures and decide for each whether the fix is better hardware, better software, or a change to the environment.
  • Two Alviks now share the same loop. What would need to change so they never collide, and what is the simplest rule that would work without letting them talk to each other?

What to expect

The robot follows the loop, detects each coloured bay, stops safely for obstacles, actuates the arm and completes a delivery cycle. Most failures come from the transitions between states rather than from any single subsystem. An autonomous robot is a state machine wrapped around imperfect sensors. Each subsystem here was proven separately in earlier experiments, yet almost every remaining failure lives in the transitions between them — which is why professional robotics spends far more effort on integration, redundancy and defined behaviour under uncertainty than on any individual sensor.

Run this experiment in your classroom

This experiment is part of ATP Volta — a self-contained mobile science lab that turns an ordinary classroom into a working STEM laboratory, with over 200 experiments in physics, chemistry, biology, robotics and engineering. Gali, the AI tutor built into ATP Connect, guides students through each step and answers their questions at the bench.

See the ATP Volta mobile science labTalk to our team

The full experiment library

Eighty-six guided experiments across physics, chemistry and biology — each with learning goals, equipment, background theory and questions for students. Browse the library

Physics 42
Chemistry and biology 44