February 4, 2026

Alexander Miles - LEGO Spike Automatic Door Build

Overview

Build a LEGO robot that opens and closes a door automatically—no hands required. This challenge is inspired by Alexander Miles, the inventor whose automatic elevator door system made buildings safer and helped shape modern cities.

Watch the full build video: https://youtu.be/CT-ELr0o-v0

Best for: Grades 2–6
Kits: LEGO Spike Prime or Spike Essential
Time: 45–60 minutes


Who Was Alexander Miles?

Alexander Miles was an inventor who noticed a serious safety problem in the late 1800s: elevator doors were often left open by mistake, leading to dangerous accidents. After a close call himself, Miles designed an automatic elevator door system that opened and closed on its own. His invention reduced human error and made elevators much safer to use.

Big idea: Automation can protect people by removing dangerous human mistakes.


Real Invention: Key Features

Alexander Miles’s automatic door system needed to:

  • Open and close automatically
  • Stay synchronized with elevator movement
  • Prevent doors from being left open
  • Operate smoothly and safely

These ideas are still used in modern elevators and automatic doors today.


LEGO Robot Challenge

Your mission: Design and program a LEGO door that opens when someone approaches and closes automatically after a short delay.

Build Requirements

  • 1 motor to move the door
  • 1 sensor (distance or color) to detect presence
  • Door opens without touching
  • Door closes automatically

Optional Add-Ons

  • Emergency stop button
  • Sound or light indicator
  • Adjustable open/close timing
  • Two doors that open in opposite directions

Suggested Materials

  • 1 Motor
  • 1 Distance Sensor (or Color Sensor)
  • LEGO beams, connectors, and plates
  • Hub (Spike Prime or Spike Essential)

Programming Concepts

  • Sensors as inputs
  • Motor direction and power
  • Timers / wait blocks
  • Loops

Extension: Add conditionals so the door stays open while someone is detected.


Discussion Questions

  • Why were automatic doors safer than manual ones?
  • What problems could happen if a door didn’t close?
  • Where do you see automatic doors today?
  • How does automation help people with mobility?

Learning Objectives

Students will:

  • Understand how automation improves safety
  • Practice sensor-based programming
  • Explore cause-and-effect logic
  • Connect historical inventions to modern technology

Extensions & Challenges

  • Design an elevator system around the door
  • Compare early elevators to modern smart elevators
  • Test different sensor distances
  • Create a building with multiple automatic doors

Video Connection

🎥 Watch the full build video: https://youtu.be/CT-ELr0o-v0


Part of the Black History LEGO Robotics Series

This build is part of our Black History LEGO Robotics Challenge—exploring inventors, engineers, and innovators through hands-on LEGO robotics.

What will you automate next?

Sprattronics Learning Lab

Maximize your education!
February 6, 2026
Sarah E. Goode LEGO Folding Desk to Bed Build

Overview Design a LEGO build that transforms from a desk into a bed, inspired by Sarah E. Goode’s folding cabinet bed. This challenge highlights how engineers solve real problems—like limited living space—by creating furniture that serves multiple purposes. Watch the full build video: https://youtu.be/h9pIRXLIa8w Best for: Grades 2–6Kits: LEGO Spike Prime or Spike EssentialTime: 45–60 […]

February 4, 2026
Alexander Miles - LEGO Spike Automatic Door Build

Overview Build a LEGO robot that opens and closes a door automatically—no hands required. This challenge is inspired by Alexander Miles, the inventor whose automatic elevator door system made buildings safer and helped shape modern cities. Watch the full build video: https://youtu.be/CT-ELr0o-v0 Best for: Grades 2–6Kits: LEGO Spike Prime or Spike EssentialTime: 45–60 minutes Who […]

February 2, 2026
Garrett Morgan LEGO Traffic Signal Build

Build a working LEGO traffic signal inspired by Garrett Morgan, the inventor whose improved traffic light design helped make roads safer. In this challenge, students design a motorized signal system, learn why timing and clear communication matter, and connect history to real engineering decisions. Watch the Video! Click Here Who Was Garrett Morgan? Garrett Morgan […]

January 31, 2026
Build a Caesar Cipher with LEGO SPIKE Prime (Enigma Machine Challenge)

My gumball machine coins disappeared… and in their place was a secret message. The only way to crack it? Build an Enigma-style cipher machine using LEGO SPIKE Prime. In this challenge, we design and program a LEGO robot that can encode and decode messages using a Caesar Cipher. One motor selects the cipher key, another […]

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram