stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. IC10 academy
  3. Day 55

Day 55 of 365 · Beginner · Month 2: Order and data network

Project: pressure guard

Project: a pressure guard for a habitat module – watch pressure and oxygen, lock the door on underpressure, warning light and klaxon, safe state on sensor failure.

Project 35 min Week 8

What you learn today

  • Monitor room pressure and oxygen
  • Lock the door on low pressure
  • Warning light and sound

A meteor hits the habitat module, a piece of wall is gone. The corridor in front still has air. Whoever opens the door without thinking now loses the corridor too – and stands in vacuum without a helmet. The pressure guard prevents that.

The devices

DeviceNameJob
gas sensor“Modul”pressure and oxygen in the module
composite door“Modultuer”door from the corridor into the module
LED display“Moduldruck”pressure in the module
flashing light“Modulwarnung”warning
klaxon“Modulalarm”sound Sound.Danger

The rules

  • Underpressure: module pressure below 80 kPa. Then the door is closed and locked.
  • Oxygen shortage: oxygen partial pressure below 16 kPa. The door stays usable, but there is a warning.
  • On underpressure or oxygen shortage: warning light on, klaxon on, display red. Otherwise display green.
  • Sensor gone: like underpressure – door closed and locked, alarm. Whoever does not know whether there is air behind it does not open.
  • Once everything is fine again, the door is released. You open it yourself.

The core

slt under press MINPRESS
snan tmp press
or under under tmp           # no sensor counts as underpressure
mul po2 press share
slt low po2 MINO2
or alarm under low

For the door it is enough to write both values on under: Open 0 and Lock 1. Without underpressure you write Lock 0 and leave Open alone – otherwise you would slam the door in the face of anyone walking through.

Milestones

  1. All fine: door free, no alarm, display green.
  2. Underpressure: door closed and locked.
  3. Underpressure: warning light, klaxon and red display.
  4. Oxygen shortage: alarm, but the door stays free.
  5. Recovery: lock and alarm disappear.
  6. Sensor gone: door closed and locked, alarm.
Tip

Only write Open when you really want to close the door. A sbn … Open 0 every tick turns a door into a wall.

Project task

Task

Build the pressure guard from the lesson. Devices: gas sensor “Modul”, composite door “Modultuer”, LED display “Moduldruck”, flashing light “Modulwarnung”, klaxon “Modulalarm”.

  • Underpressure (below 80 kPa) or sensor gone: door Open 0 and Lock 1. Otherwise Lock 0, leave Open alone.
  • Alarm on underpressure or oxygen partial pressure below 16 kPa: warning light, klaxon (Sound.Danger), display red; otherwise green.
  • The display shows the pressure.

Milestones

  1. Milestone 1: all fine
  2. Milestone 2: underpressure – door closed and locked
  3. Milestone 3: underpressure – alarm
  4. Milestone 4: oxygen shortage – alarm, door free
  5. Milestone 5: recovery – all free
  6. Milestone 6: sensor gone – locked and alarm

Hints

Hint 1

Underpressure: slt, plus snan with or – no sensor counts as underpressure.

Hint 2

Alarm = underpressure or low oxygen: or alarm under low.

Hint 3

Door: always write Lock, Open 0 only on underpressure – skip past it with beqz under start.

Quiz

2 questions. You pass from 60 % – the server does the grading.

Complete the day

  • Passed all milestones of the project
  • Passed the quiz with at least 60 %

Without an account progress is saved in this browser only.

Report a mistake in this lesson

Please sign in to report. Sign in

Esc
↑ ↓ selectEnter open/ opens search anywhere