All paths

Build an elevator

A four-floor model lift on a stepper: calls and the elevator algorithm, a state machine, homing a lead screw hoist, doors with an eye, a safety chain, and a rush hour to measure it.

Arduino Uno R3Free6 lessons6 h3 chapters1,876 XPRobotics · Intermediate+150 XP

0 of 6 done

What you will build

3 projects, built step by step

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

Chapter 1 project

A state machine

IDLE, MOVING and DOORS_OPEN, and the events that move between them: a call, an arrival, a dwell that runs out, a call that comes in while the doors are open, and a call at the floor the car is already on.

Open it in the simulator
Chapter 2 project

Doors

Doors that open on arrival, dwell and close; an infrared eye across the doorway that reopens them; nudging after three tries; and the dwell time set for the people using the lift.

Open it in the simulator
Chapter 3 project

Project: a four-floor model

The whole lift in service: home it, call it from the buttons, run a scripted rush hour that measures floors traveled and waiting times, then switch to first come first served and compare.

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

Calls and states

Latched calls, the elevator algorithm and its direction preference, and a state machine that says what it is doing.

  1. Open205 XP

    Floors and calls

    Four call buttons on a model lift: calls that are remembered until served, stops made on the way, the elevator algorithm against first come first served, and why a car going up finishes going up.

    0 of 5 steps

  2. ProjectLocked410 XP

    A state machine

    IDLE, MOVING and DOORS_OPEN, and the events that move between them: a call, an arrival, a dwell that runs out, a call that comes in while the doors are open, and a call at the floor the car is already on.

    0 of 5 steps

4 questions, graded as you go.
Chapter 2

The hoist and the doors

Steps per millimeter, homing and a top limit, and doors that reopen and nudge.

  1. Locked298 XP

    Steppers and homing

    A stepper hoist on an 8 mm lead screw: steps per millimeter and a floor table, refusing to move blind, homing to a bottom switch with a backoff and a slow touch, a drift check, and a normally closed top limit.

    0 of 8 steps

  2. ProjectLocked410 XP

    Doors

    Doors that open on arrival, dwell and close; an infrared eye across the doorway that reopens them; nudging after three tries; and the dwell time set for the people using the lift.

    0 of 5 steps

4 questions, graded as you go.
Chapter 3

Safety and the project

Inhibits, the safety chain, faults and a watchdog, then the whole lift in a rush hour.

  1. Locked205 XP

    Safety

    The rules that come before the logic: no motion with the doors open, a normally closed safety chain that stops the car dead, a fault that only a person can clear, overtravel, and a watchdog on every move.

    0 of 5 steps

  2. ProjectLocked348 XP

    Project: a four-floor model

    The whole lift in service: home it, call it from the buttons, run a scripted rush hour that measures floors traveled and waiting times, then switch to first come first served and compare.

    0 of 4 steps

4 questions, graded as you go.
Syllabus

Every lesson in the course

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

Chapter 1

Calls and states

  1. Floors and callsFour call buttons on a model lift: calls that are remembered until served, stops made on the way, the elevator algorithm against first come first served, and why a car going up finishes going up.
  2. A state machineIDLE, MOVING and DOORS_OPEN, and the events that move between them: a call, an arrival, a dwell that runs out, a call that comes in while the doors are open, and a call at the floor the car is already on.
Chapter 2

The hoist and the doors

  1. Steppers and homingA stepper hoist on an 8 mm lead screw: steps per millimeter and a floor table, refusing to move blind, homing to a bottom switch with a backoff and a slow touch, a drift check, and a normally closed top limit.
  2. DoorsDoors that open on arrival, dwell and close; an infrared eye across the doorway that reopens them; nudging after three tries; and the dwell time set for the people using the lift.
Chapter 3

Safety and the project

  1. SafetyThe rules that come before the logic: no motion with the doors open, a normally closed safety chain that stops the car dead, a fault that only a person can clear, overtravel, and a watchdog on every move.
  2. Project: a four-floor modelThe whole lift in service: home it, call it from the buttons, run a scripted rush hour that measures floors traveled and waiting times, then switch to first come first served and compare.
Keep going

The next course on your track

Build an elevator is part of the maker track, a ladder of courses from zero to expert.

Next course

Build an ocean data buoy

Build the buoy oceanographers moor in a bay: water temperature, significant wave height, position, solar power and compact LoRa telemetry.

Open the next course
Track

Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.

See every course on the track
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 Build an elevator

Is Build an elevator free?

Yes. All 6 lessons of Build an elevator 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 Build an elevator take?

About 6 hours: 6 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: A state machine, Doors and Project: a four-floor model.

Where do I start?

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