All paths

Build a space habitat controller

Keep a Mars crew alive on one Uno: CO2 and its scrubber, cabin pressure and leaks, an interlocked airlock and alarms that latch.

Arduino Uno R3Free6 lessons5 h3 chapters1,777 XPMaker · Intermediate+150 XP

0 of 6 done

Start the course freeAir in a sealed roomBuild it as a kitRetails for about $71, free on Mokxi.Lesson plan for teachers
What you will build

2 projects, built step by step

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

Chapter 1 project

Pressure

Read the cabin pressure, catch a leak from how fast it falls, and learn why oxygen is a share of the pressure, not a percentage.

Open it in the simulator
Chapter 2 project

Alarms

CAUTION and WARNING levels, alarms that latch until someone acknowledges them, and the worst problem always at the top.

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

The air we bring

CO2, the scrubber that removes it, and the pressure that holds it all in.

  1. Open205 XP

    Air in a sealed room

    Count the CO2 in a cabin with an SCD41, learn why 5000 ppm is the limit, and work out how long a crew takes to reach it.

    0 of 5 steps

  2. Locked205 XP

    CO2 scrubbing

    Pull CO2 out of the air with a scrubber fan, switched by two thresholds so it never chatters, and work out the chemistry a mission has to carry.

    0 of 5 steps

  3. ProjectLocked410 XP

    Pressure

    Read the cabin pressure, catch a leak from how fast it falls, and learn why oxygen is a share of the pressure, not a percentage.

    0 of 5 steps

5 questions, graded as you go.
Chapter 2

Doors and alarms

An airlock that cannot be opened wrong, and alarms that get heard.

  1. Locked236 XP

    Airlock logic

    Two doors that are never open together: an interlock in one function, a state machine for pumping and filling, and the relay that runs the pump.

    0 of 6 steps

  2. ProjectLocked472 XP

    Alarms

    CAUTION and WARNING levels, alarms that latch until someone acknowledges them, and the worst problem always at the top.

    0 of 6 steps

4 questions, graded as you go.
Chapter 3

A Mars hab panel

Put it all together into one panel worth sharing.

  1. Locked249 XP

    Project: a Mars hab panel

    Put it all together: CO2, pressure, the scrubber, the airlock and the alarms on one panel that keeps a crew alive.

    0 of 7 steps

3 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

The air we bring

  1. Air in a sealed roomCount the CO2 in a cabin with an SCD41, learn why 5000 ppm is the limit, and work out how long a crew takes to reach it.
  2. CO2 scrubbingPull CO2 out of the air with a scrubber fan, switched by two thresholds so it never chatters, and work out the chemistry a mission has to carry.
  3. PressureRead the cabin pressure, catch a leak from how fast it falls, and learn why oxygen is a share of the pressure, not a percentage.
Chapter 2

Doors and alarms

  1. Airlock logicTwo doors that are never open together: an interlock in one function, a state machine for pumping and filling, and the relay that runs the pump.
  2. AlarmsCAUTION and WARNING levels, alarms that latch until someone acknowledges them, and the worst problem always at the top.
Chapter 3

A Mars hab panel

  1. Project: a Mars hab panelPut it all together: CO2, pressure, the scrubber, the airlock and the alarms on one panel that keeps a crew alive.
Keep going

The next course on your track

Build a space habitat controller is part of the maker track, a ladder of courses from zero to expert.

Next course

Build a split-flap display

The clacking departure board: 40 flaps on a 28BYJ-48, 51.2 steps a flap kept exact, hall sensor homing, a character map, and four modules on shift registers.

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.

The kit for this course

Space Habitat Kit

An Uno, a CO2 sensor (SCD41) and a pressure, humidity and temperature sensor (BME280): a life support panel that keeps a crew alive.

Open the kit
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 a space habitat controller

Is Build a space habitat controller free?

Yes. All 6 lessons of Build a space habitat controller 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 a space habitat controller take?

About 5 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: Pressure and Alarms.

Where do I start?

With "Air in a sealed room", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.