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

Day 272 of 365 · Pro · Month 9: Logistics and greenhouse

Pro final project: outpost

Pro final project: an outpost with batteries and backup power, greenhouse with Harvie, food store and a collective alarm with priorities – all in one chip.

Project 60 min Week 39

What you learn today

  • Energy, greenhouse and storage of an outpost
  • Collective alarm

An outpost far away from the main base: a few batteries with a backup generator, a small greenhouse and a fridge with supplies. Nobody is there all the time. A chip keeps everything running and tells you at a glance whether you need to fly out.

The setup

DevicePrefabName
Station batteriesStructureBattery“Akku”
Solid fuel generatorStructureSolidFuelGenerator“Notstrom”
Gas sensorStructureGasSensor“Gewaechshaus”
Wall heaterStructureWallHeater“Gewaechshaus”
Hydroponics deviceStructureHydroponicsTrayData“Beet”
HarvieStructureHarvie“Ernter”
FridgeStructureFridgeBig“Vorrat”
Wall lightStructureWallLight“Sammel”
LED displaysStructureConsoleLED5“Vorrat”, “Alarm”

The rules

  1. Energy: generator on below 30 %, off from 90 %. Without a battery value it runs.
  2. Greenhouse: heater on below 20 °C, off above 24 °C. The Harvie harvests with a free arm when Mature = 1.
  3. Store: the display “Vorrat” shows the quantity in all 15 slots.
  4. Collective alarm: the display “Alarm” shows the most important code, the light “Sammel” is on for any alarm:
CodeCondition
1batteries below 10 % or missing
2greenhouse below 15 °C or sensor missing
3stock below 10 pieces

Milestones

  1. The generator keeps the batteries up with hysteresis.
  2. Heater and Harvie work in the greenhouse.
  3. The stock display counts all slots.
  4. The collective alarm shows the most important code.
  5. If batteries or sensor fail, the plant goes into the safe state and reports it.

This is the biggest chip of the level. Plan the registers first, then the sections. Each section is a building block you have already written this week.

Tip

The collective alarm needs values from all other sections. So put it at the end and do not read anything anew there: level, temp and stock are still in their registers.

Warning

The loop over the fridge uses tmp. If you need a value across the loop, it belongs in a register of its own.

Project task

Task

Build the outpost following the four rules above. The defines and aliases are already there.

Milestones

  1. Milestone 1: generator with hysteresis
  2. Milestone 2: heater and Harvie
  3. Milestone 3: counting the stock
  4. Milestone 4: collective alarm with priority
  5. Milestone 5: failures

Hints

Hint 1

Generator: hysteresis as usual, then snan tmp level and or gen gen tmp.

Hint 2

Stock: loop over SLOTS with lbns … Quantity Sum.

Hint 3

Alarm: set code 3, then 2, then 1 with select – the most important comes last.

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