Stationeers

Stationeers

评价数不足
Greenhouse Atmospheric Regulation
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
227.043 KB
6 月 7 日 上午 5:53
1 项改动说明 ( 查看 )

订阅以下载
Greenhouse Atmospheric Regulation

描述
# Greenhouse Atmospheric Regulation

## Overview

This IC10 script is the **greenhouse version** of my original "**Atmospheric Regulation on Site**" (https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3494420520). I simply inverted the O2 and CO2 logic to optimize the atmosphere for plant growth instead of human habitation.

**Key Changes from Living Spaces Version:**
- **CO2** is now the main gas (55-60%) to feed plants
- **O2** is now filtered (3-5%) when produced in excess by photosynthesis
- **Lower pressures** optimized for greenhouse environments (80-95 kPa)

The system operates in 3 progressive phases based on pressure, automatically managing CO2, O2, and N levels for optimal plant growth.

**⚠️ IMPORTANT**: This code has not been fully tested. In case of problems or malfunctions, please send me a message!

## Required Devices

- 1x IC10 Housing + IC10 Chip
- 1x Gas Sensor
- 1x Active Vent (suction fan)
- 1x Gas Filter O2 (to remove excess oxygen from plants)
- 1x Gas Pump CO2 (to feed plants)
- 1x Gas Pump N (filler gas)

## Hardware Connections

Connect devices to IC10 Housing:
- **d0**: Gas Sensor
- **d1**: Active Vent (set to InWard mode)
- **d2**: No device connected
- **d3**: Gas Filter O2
- **d4**: Gas Pump CO2
- **d5**: Gas Pump N

## Current Settings

```
Pressure Thresholds:
- Initial Phase: ≤ 80 kPa
- Intermediate: 80-90 kPa
- Steady State: > 90 kPa
- Overpressure: > 95 kPa (emergency vent)
- Target: 93 kPa

Gas Ratios:
- CO2: 55-60% (optimal for plant growth)
- O2: 3-5% (controlled photosynthesis output)
- N: Filler gas (balance)
```

## Operating Phases

### Phase 1: Initial (≤ 80 kPa greenhouse pressure)
- **Purpose**: Fast greenhouse filling
- **Action**: Both CO2 and N pumps always active
- **Control**: None

### Phase 2: Managed Filling (80-90 kPa greenhouse pressure)
- **Purpose**: Coarse CO2 balancing
- **Logic**: If CO2 > 55% → only N pump, otherwise only CO2 pump
- **Control**: CO2 ratio only

### Phase 3: Steady State (> 90 kPa greenhouse pressure)
- **Purpose**: Optimal plant atmosphere maintenance
- **Controls**: Fine pressure, CO2 and O2 management
- **Target**: 93 kPa, CO2 55-60%, O2 3-5%

## ⚙️ Key Features

**Priority Controls:**
1. **Overpressure** (> 95 kPa) → Emergency vent activation
2. **High O2** (> 5%) → O2 filter removes photosynthesis excess
3. **Low CO2** → CO2 pump feeds plants
4. **High CO2** → N pump dilutes concentration

**Smart Timer System:**
- 60-cycle timers (~3 seconds) for filter and vent operations
- Renewable timers based on gas conditions
- Prevents oscillations and ensures stable operation

**Safety Features:**
- NaN value handling for disconnected sensors
- Absolute overpressure priority
- Always maintains plant-optimal atmosphere

## Agricultural Benefits

- **Maximized Growth**: 55-60% CO2 for optimal plant development
- **Photosynthesis Control**: Removes excess O2 automatically
- **24/7 Automation**: No manual intervention required
- **Efficient Resource Use**: Smart pump management saves gas

**Perfect for automated greenhouse operations and intensive agriculture!**

**Compatibility**: Works with all Stationeers plant varieties. Automatically adapts to different growth phases and photosynthesis rates.

---
*Based on "Atmospheric Regulation on Site" - adapted for greenhouse use. Created for the Stationeers community.*​