Actions

Difference between revisions of "Sensors"

From Unofficial Stationeers Wiki

m (Category:Solar power)
(SolarAngle in horizontal mode has the oppsite value of the horizontal parameter (for some reason...))
 
(9 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
<translate>{{Itembox
 
<translate>{{Itembox
 
  | name        = Kit (Sensors)
 
  | name        = Kit (Sensors)
  | image      =  {{{image|[[File:ItemSensorKit.png]]}}}
+
  | image      =  {{{image|[[File:ItemKitSensor.png]]}}}
  | stacks      = 5x
+
  | stacks      = 5
  | constructs  = Daylight, Motion or Gas Sensor
+
  | constructs  = Daylight, Motion, Gas, Occupancy or Proximity Sensor
 
  | createdwith = [[Electronics Printer]], [[Hydraulic Pipe Bender]]
 
  | createdwith = [[Electronics Printer]], [[Hydraulic Pipe Bender]]
 
  | cost        = 3g [[Iron]], 1g [[Gold]], 1g [[Copper]] <br><small>Hydraulic Pipe Bender has an altered recipe 1g iron instead of 3g</small>
 
  | cost        = 3g [[Iron]], 1g [[Gold]], 1g [[Copper]] <br><small>Hydraulic Pipe Bender has an altered recipe 1g iron instead of 3g</small>
Line 13: Line 13:
 
  | name            = Daylight Sensor
 
  | name            = Daylight Sensor
 
  | prefab_hash      = 1076425094
 
  | prefab_hash      = 1076425094
  | image            = [[File:Daylight_sensor.jpg]]  
+
| prefab_name      = StructureDaylightSensor
 +
| power_usage      = 10W
 +
  | image            = [[File:StructureDaylightSensor.png]]
 
  | placed_with_item = [[Kit (Sensors)]]
 
  | placed_with_item = [[Kit (Sensors)]]
 
  | placed_on_grid  = Small Grid, On Frames
 
  | placed_on_grid  = Small Grid, On Frames
Line 23: Line 25:
 
  | name            = Motion Sensor
 
  | name            = Motion Sensor
 
  | prefab_hash      = -1713470563
 
  | prefab_hash      = -1713470563
 +
| prefab_name      = StructureMotionSensor
 +
| power_usage      = 0W
 
  | image            = [[File:ItemMotionSensor.png]]  
 
  | image            = [[File:ItemMotionSensor.png]]  
 
  | placed_with_item = [[Kit (Sensors)]]
 
  | placed_with_item = [[Kit (Sensors)]]
Line 33: Line 37:
 
  | name            = Gas Sensor
 
  | name            = Gas Sensor
 
  | prefab_hash      = -1252983604
 
  | prefab_hash      = -1252983604
 +
| prefab_name      = StructureGasSensor
 +
| power_usage      = 1W
 
  | image            = [[File:ItemGasSensor.png]]  
 
  | image            = [[File:ItemGasSensor.png]]  
 
  | placed_with_item = [[Kit (Sensors)]]
 
  | placed_with_item = [[Kit (Sensors)]]
Line 43: Line 49:
 
  | name            = Occupancy Sensor
 
  | name            = Occupancy Sensor
 
  | prefab_hash      = 322782515
 
  | prefab_hash      = 322782515
  | image            = Need an image uploaded
+
| prefab_name      = StructureOccupancySensor
 +
| power_usage      = 0W
 +
  | image            = [[File:StructureOccupancySensor.png]]
 +
| placed_with_item = [[Kit (Sensors)]]
 +
| placed_on_grid  = Small Grid, On Frames
 +
| decon_with_tool1 = [[Hand Drill]]
 +
| item_rec1        = [[Kit (Sensors)]]
 +
}}
 +
 
 +
{{Structurebox
 +
| name            = Proximity Sensor
 +
| prefab_hash      = 568800213
 +
| prefab_name      = StructureProximitySensor
 +
| power_usage      = 0W
 +
| image           = [[File:StructureProximitySensor.png]]
 
  | placed_with_item = [[Kit (Sensors)]]
 
  | placed_with_item = [[Kit (Sensors)]]
 
  | placed_on_grid  = Small Grid, On Frames
 
  | placed_on_grid  = Small Grid, On Frames
Line 54: Line 74:
  
  
 
+
Sensors are used to detect various parameters of their surroundings. <br/>
[[Sensors]] are used to detect different conditions of the world. They can be read by the [[Logic]] [[Computer]]s as well as used when correctly configured by some devices, such as a [[Console]] with a [[Circuitboard (Airlock Control)]].
+
Only the [[Sensors#Daylight_Sensor|Daylight Sensor]] can be accessed directly by pointing at it. The other sensors require a [[Handheld Tablet]] with a [[Cartridge#Configuration|Configuration Cartridge]] to be accessed manually.<br/>
 +
Their outputs can also be accessed using a [[Kit_(Logic_I/O)#Logic_Reader|Logic Reader]] or an [[Integrated Circuit (IC10)|Integrated Circuit]] inserted in an [[Kit (IC Housing)|IC Housing]].
  
 
<gallery>
 
<gallery>
Line 66: Line 87:
 
= <big>Daylight Sensor</big> = <!--T:2-->
 
= <big>Daylight Sensor</big> = <!--T:2-->
  
The daylight sensor reports whether the sun hits the large grid the sensor is in, as well as the solar angle. Looking at the sensor will provide a tool-tip readout of this information, even when not connected to the network. The orientation of the daylight sensor is important, it will read different angle values depending on the orientation.
+
The daylight sensor reports whether the sun hits the large grid the sensor is in, as well as the solar angle. Looking at the sensor will provide a tool-tip readout of this information, even when not connected to the network. The orientation of the daylight sensor is important, it will read different angle values depending on the orientation.
 
 
'''Update''': While the <kbd>Mode</kbd> and <kbd>SolarAngle</kbd> properties described below are still available, they are being deprecated in favor of <kbd>Horizontal</kbd> and <kbd>Vertical</kbd> data properties, returning the same as their <kbd>Mode</kbd> counterparts.
 
 
 
The daylight sensor has a <kbd>Mode</kbd> property which can be set with logic writer and memory chip, 0 = default, 1 = horizontal, 2 = vertical. Other values will throw an index-out-of-range error in console if you mouse-over the sensor. Each mode defines a specific behavior for how the solar angle is calculated.
 
 
 
== Modes ==
 
In default mode, the sensor will return the absolute value of the angle formed by the source of light and the normal vector of the sensor (towards which the grey/green part is facing). 0 means the source of light is facing to the sensor, 90 means it is aligned with the surface the sensor was laid on, and 180 means the source of light is in the back of the sensor. The angle is always a positive value between 0 and 180.
 
 
 
[[File:Daylight sensor horizontal.png|200x150px|thumb|daylight sensor in horizontal mode]]
 
In horizontal mode, the sensor returns the angle from the position of the source of light parallel to the surface of the sensor. The angle can be negative, ranging between -180 and +180.
 
 
 
[[File:Daylight sensor vertical.png|200x150px|thumb|daylight sensor in vertical mode]]
 
In vertical mode, the sensor measures the angle from the position of the light source perpendicular to the surface of the sensor.
 
 
 
 
<gallery>
 
<gallery>
File:Daylight sensor horizontal.png|Horizontal mode
+
File:Daylight sensor horizontal.png|Horizontal parameter
File:Daylight sensor vertical.png|Vertical mode
+
File:Daylight sensor vertical.png|Vertical parameter
 
</gallery>
 
</gallery>
 
+
== Modes ==
 
+
{{warning|While the <kbd>Mode</kbd> and <kbd>SolarAngle</kbd> properties described below are still available, they are being deprecated in favor of <kbd>Horizontal</kbd> and <kbd>Vertical</kbd> data properties.
 
+
While <kbd>Vertical</kbd> and <kbd>Vertical mode</kbd> have the same value, '''<kbd>Horizontal</kbd> and <kbd>Horizontal mode</kbd> have opposite values''' (inverted sign).}}
=== Notes ===
+
The daylight sensor has a <kbd>Mode</kbd> property which can be set with [[Kit_(Logic_I/O)#Logic_Writer|Logic Writer]] and  [[Kit_(Logic_Memory)|Memory chip]], or with an [[Integrated Circuit (IC10)|Integrated Circuit]]:
 
 
Solar panel work using clockwise reference angles, which means depending of the situation you may have to invert the values returned by sensors' horizontal or vertical modes.
 
 
 
The sensor always reports an angle to a logic reader at all times.
 
 
 
See https://stationeers-wiki.com/Solar_Logic_Circuits_Guide for more solar panel logic discussion.
 
 
 
=== Examples ===
 
On the moon/space :
 
* If the daylight sensor is fixed on the floor, it will report 90 degrees at sunrise, up to 0 degrees at noon, back to 90 degrees at sunset, to 180 degrees at midnight, and back to 90 at sunrise.
 
* If fixed on a ceiling the cycle will be opposite, i.e.: 90 -> 180 -> 90 -> 0 -> 90.
 
* If fixed to an east facing wall, the cycle from sunrise is: 0 -> 90 -> 180 -> 90 -> 0.
 
* If fixed to a west facing wall, the cycle is opposite, i.e.: 180 -> 90 -> 0 -> 90 -> 180.
 
* If fixed to a north or south facing wall it will stay at 90 degrees all the time.
 
 
 
Other :
 
* If you lay a sensor on the ground, facing upwards, connector towards south,configured in horizontal mode, it will work like a compass with 0 = north, 90 = east, 180 = south and -90 = west
 
 
 
{{Data Network Header}}
 
 
 
{{Data Parameters}}
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Parameter Name !! Data Type !! Description
+
! Value !! Name !! Description
 
|-
 
|-
| Mode || || 0 = Default, 1 = Horizontal, 2 = Vertical (Warning! In IC Horizontal and Vertical are the other way around for some reason.)
+
| 0 || Default || The sensor will return the absolute value of the angle formed by the source of light and the normal vector of the sensor (towards which the grey/green part is facing). 0 means the source of light is facing to the sensor, 90 means it is aligned with the surface the sensor was laid on, and 180 means the source of light is in the back of the sensor. The angle is always a positive value between 0 and 180.
 
|-
 
|-
| Activate || ||
+
| 1 || Horizontal || Returns the angle from the position of the source of light parallel to the surface of the sensor. The angle can be negative, ranging between -180 and +180.
 
|-
 
|-
| On || ||
+
| 2 || Vertical || The sensor measures the angle from the position of the light source perpendicular to the surface of the sensor.
 
|}
 
|}
  
{{Data Outputs}}
+
<gallery>
{| class="wikitable"
+
File:Daylight sensor horizontal mode.png|Values of SolarAngle in Horizontal mode
|-
+
File:Daylight sensor vertical.png|Values of SolarAngle in Vertical mode
! Output Name !! Data Type !! Description
+
</gallery>
|-
+
=== Examples ===
| Mode || || 0 = Default, 1 = Horizontal, 2 = Vertical (Warning! In IC Horizontal and Vertical are the other way around for some reason.)
+
* If you lay a sensor on the ground, facing upwards, connector towards south,configured in horizontal mode, it will work like a compass with 0 = north, 90 = east, 180 = south and -90 = west
|-
+
 
| Horizontal || || Same as <kbd>SolarAngle</kbd> reported for <kbd>Horizontal</kbd> mode
+
* On the Moon/space : <br/> '''Note: these values are approximation and may vary slightly because of realistic orbital simulation'''
|-
+
** If the daylight sensor is fixed on the floor, it will report 90 degrees at sunrise, up to 0 degrees at noon, back to 90 degrees at sunset, to 180 degrees at midnight, and back to 90 at sunrise.
| Vertical || || Same as <kbd>SolarAngle</kbd> reported for <kbd>Vertical</kbd> mode
+
** If fixed on a ceiling the cycle will be opposite, i.e.: 90 -> 180 -> 90 -> 0 -> 90.
|-
+
** If fixed to an east facing wall, the cycle from sunrise is: 0 -> 90 -> 180 -> 90 -> 0.
| Activate || || 0 = Sensor not in sunlight, 1 = Sensor in sunlight
+
** If fixed to a west facing wall, the cycle is opposite, i.e.: 180 -> 90 -> 0 -> 90 -> 180.
|-
+
** If fixed to a north or south facing wall it will stay at 90 degrees all the time.
| SolarAngle || || Probably soon deprecated in favor of <kbd>Horizontal</kbd> and <kbd>Vertical</kbd>
 
|-
 
| On || ||
 
|}
 
  
= <big>Motion Sensor</big> =
+
== Solar tracking ==
  
The motion sensor activates when a player or object enters the large grid square where the sensor is, and it will deactivate when no more players or objects are in the area.
+
Tracking the sun using a Daylight Sensor allow [[Solar_Panel|Solar Panels]] to be more efficient by making them perpendicular to the light rays. <br/>
 +
However, the orientation of the Daylight Sensor and Solar Panels must be taken into account and a [[Kit_(Logic_Processor)#Math_Unit|Math Unit]] may be required to correct the offset. <br/>
 +
This [[Solar_Logic_Circuits_Guide|guide]] explains in detail how to set up a solar tracking circuit for solar panels.
  
 
{{Data Network Header}}
 
{{Data Network Header}}
 +
{{Data Parameters|
 +
{{Data Parameters/row|Mode|Integer|w=1|SolarAngle mode|multiple=3|0|Default|1|Horizontal|2|Vertical}}
 +
{{Data Parameters/row|Activate|Boolean|w=1|1 if the device is running, 0 otherwise}}
 +
{{Data Parameters/row|Horizontal|Float|w=1|Same absolute value <kbd>SolarAngle</kbd> reported for <kbd>Horizontal</kbd> mode but with an inverted sign}}
 +
{{Data Parameters/row|Vertical|Float|w=1|Same as <kbd>SolarAngle</kbd> reported for <kbd>Vertical</kbd> mode}}
 +
{{Data Parameters/row|SolarAngle|Float|w=0|See [[Sensors#Modes|Modes]] above. Probably soon deprecated in favor of <kbd>Horizontal</kbd> and <kbd>Vertical</kbd>}}
 +
{{Data Parameters/row|On|Boolean|w=1|0 if Off, 1 if On}}
 +
{{Data Parameters/row|PrefabHash|Integer|w=0|The hash of the structure}}
 +
{{Data Parameters/row|SolarIrradiance|Float|w=0|The current solar irradiance (in W/m²)}}
 +
{{Data Parameters/row|ReferenceId|Integer|w=0|Unique Reference Identifier for this object}}
 +
{{Data Parameters/row|NameHash|Integer|w=0|Provides the hash value for the name of the object as a 32 bit integer}}
 +
}}
  
{{Data Parameters}}
+
= <big>Motion Sensor</big> =
{| class="wikitable"
 
|-
 
! Parameter Name !! Data Type !! Description
 
|}
 
  
{{Data Outputs}}
+
The motion sensor is activates when a player or a non static object (such as a thrown item or a portable device) enters the large grid cube where the sensor is located, and deactivates when there are no more players or objects. Despite its name, the sensor will stay activated even if the entity does not move inside the cube.<br/>
{| class="wikitable"
+
This sensor can be useful to build systems that activate when the player is in a specific position (such as automatic doors for example). To check an entire room or area, see [[Sensors#Occupancy_Sensor|Occupancy Sensor]] and [[Sensors#Proximity_Sensor|Proximity Sensor]].
|-
 
! Output Name !! Data Type !! Description
 
|}
 
  
 +
{{Data Network Header}}
 +
{{Data Parameters|
 +
{{Data Parameters/row|Activate|Boolean|w=1|1 if an entity is detected, 0 otherwise. Even though the game consider it writable, trying to write this variable won't actually its value.}}
 +
{{Data Parameters/row|Quantity|Integer|w=0|Number of detected entities}}
 +
{{Data Parameters/row|On|Boolean|w=1|0 if Off, 1 if On (has no effect)}}
 +
{{Data Parameters/row|PrefabHash|Integer|w=0|The hash of the structure}}
 +
{{Data Parameters/row|ReferenceId|Integer|w=0|Unique Reference Identifier for this object}}
 +
{{Data Parameters/row|NameHash|Integer|w=0|Provides the hash value for the name of the object as a 32 bit integer}}
 +
}}
  
 
= <big>Gas Sensor</big> =
 
= <big>Gas Sensor</big> =
  
The gas sensor will report information about the gas in the current atmosphere, such as pressure, contents and temperature.
+
The gas sensor will report information about the gas in the current atmosphere, such as pressure, temperature and gases ratio.<br/>
 +
''Note: Temperature is given in Kelvin, while your suit gives a readout in Celsius. To convert, use Celsius + 273.15 = Kelvin''
  
Note: Temperature is given in Kelvin, while your suit gives a readout in Celsius.
+
{{Data Network Header}}<br/>
 +
'''The gas sensor has no Input parameters, it's a read only device.'''
 +
{{Data Parameters|
 +
{{Data Parameters/row|Pressure|Float|w=0|In kPa}}
 +
{{Data Parameters/row|Temperature|Float|w=0|In Kelvin}}
 +
{{Data Parameters/row|Combustion|Boolean|w=0|1 if the atmosphere is on fire, 0 otherwise}}
 +
{{Data Parameters/row|RatioOxygen|Boolean|w=0|Ratio of gaseous [[Oxygen]] in the atmosphere}}
 +
{{Data Parameters/row|RatioHydrogen|Boolean|w=0|Ratio of gaseous Hydrogen in the atmosphere (Hydrogen is deprecated and has been replaced by [[Volatiles]])}}
 +
{{Data Parameters/row|RatioCarbonDioxide|Boolean|w=0|Ratio of gaseous [[Carbon Dioxide]] in the atmosphere}}
 +
{{Data Parameters/row|RatioNitrogen|Boolean|w=0|Ratio of gaseous [[Nitrogen]] in the atmosphere}}
 +
{{Data Parameters/row|RatioPollutant|Boolean|w=0|Ratio of gaseous [[Pollutant]] in the atmosphere}}
 +
{{Data Parameters/row|RatioVolatiles|Boolean|w=0|Ratio of gaseous [[Volatiles]] in the atmosphere}}
 +
{{Data Parameters/row|RatioNitrousOxide|Boolean|w=0|Ratio of gaseous [[Nitrous Oxide]] in the atmosphere}}
 +
{{Data Parameters/row|RatioSteam|Boolean|w=0|Ratio of gaseous [[Water]] in the atmosphere}}
  
Celsius + 273.15 = Kelvin
+
{{Data Parameters/row|RatioLiquidOxygen|Boolean|w=0|Ratio of liquid [[Oxygen]] in the atmosphere}}
 +
{{Data Parameters/row|RatioLiquidHydrogen|Boolean|w=0|Ratio of liquid Hydrogen in the atmosphere (Hydrogen is deprecated and has been replaced by [[Volatiles]])}}
 +
{{Data Parameters/row|RatioLiquidCarbonDioxide|Boolean|w=0|Ratio of liquid [[Carbon Dioxide]] in the atmosphere}}
 +
{{Data Parameters/row|RatioLiquidNitrogen|Boolean|w=0|Ratio of liquid [[Nitrogen]] in the atmosphere}}
 +
{{Data Parameters/row|RatioLiquidPollutant|Boolean|w=0|Ratio of liquid [[Pollutant]] in the atmosphere}}
 +
{{Data Parameters/row|RatioLiquidVolatiles|Boolean|w=0|Ratio of liquid [[Volatiles]] in the atmosphere}}
 +
{{Data Parameters/row|RatioLiquidNitrousOxide|Boolean|w=0|Ratio of liquid [[Nitrous Oxide]] in the atmosphere}}
 +
{{Data Parameters/row|RatioWater|Boolean|w=0|Ratio of liquid [[Water]] in the atmosphere}}
 +
{{Data Parameters/row|RatioPollutedWater|Boolean|w=0|Ratio of liquid [[Polluted Water]] in the atmosphere}}
 +
 
 +
{{Data Parameters/row|PrefabHash|Integer|w=0|The hash of the structure}}
 +
{{Data Parameters/row|ReferenceId|Integer|w=0|Unique Reference Identifier for this object}}
 +
{{Data Parameters/row|NameHash|Integer|w=0|Provides the hash value for the name of the object as a 32 bit integer}}
 +
}}
  
{{Data Network Header}}
+
= <big>Occupancy Sensor</big> =
  
=== Data Parameters ===
+
The Occupancy Sensor detects the presence of a player when placed within a defined room. A defined room is when the game detects the space is entirely closed off from the rest of the world with walls, doors, etc. These do not need to be in the finished state to count as sealing a room.<br/>
The gas sensor has no Input parameters, it's a read only device.
+
''Note: You can determine if a room is define by using the [[Cartridge#Atmos_Analyzer|Atmos Analyzer]] [[Cartridge]] with the [[Handheld_Tablet|tablet]]. If the top says "Room #" the room is sufficiently closed in.''<br/>
  
{{Data Outputs}}
+
Unlike to the [[Sensors#Motion_Sensor|Motion Sensor]], the Occupancy Sensor does not detect other entities such as thrown items or portable devices.<br/>
{| class="wikitable"
+
The Occupancy Sensor can be configured with a [[Cartridge#Atmos_Analyzer|Access Controller]] [[Cartridge]] in a [[Handheld_Tablet|tablet]] to only detect and report players equipped with a specific [[Access Card]].<br/>
|-
 
! Output Name !! Data Type !! Description
 
|-
 
| Pressure || Float || In kPa
 
|-
 
| Temperature || Float || In Kelvin
 
|-
 
| RatioOxygen || Float || The ratio of oxygen in the atmosphere. A value between 0 (no oxygen at all, or 0%) and 1 ( pure oxygen atmosphere, or 100%)
 
|-
 
| RatioCarbonDioxide || Float ||
 
|-
 
| RatioNitrogen || Float ||
 
|-
 
| RatioNitrousOxide || Float ||
 
|-
 
| RatioPollutant || Float ||
 
|-
 
| RatioVolatiles || Float ||
 
|-
 
| RatioWater || Float ||
 
|-
 
|Combustion
 
|}
 
  
 +
This sensor can be great for systems that need to be activated when a player enters or leaves a room, such as lighting and other machines to preserve energy.<br/>
 +
To detect players outside of a base or in a certain part of room only, the [[Sensor#Motion_Sensor|Motion Sensor]] and the [[Sensor#Proximity_Sensor|Proximity Sensor]] can be used.
  
= <big>Occupancy Sensor</big> =
+
{{Data Network Header}}<br/>
 +
'''The occupancy sensor has no Input parameters, it's a read only device.'''
 +
{{Data Parameters|
 +
{{Data Parameters/row|Activate|Boolean|w=0|1 if a player is detected, 0 otherwise}}
 +
{{Data Parameters/row|Quantity|Integer|w=0|Number of players detected}}
 +
{{Data Parameters/row|PrefabHash|Integer|w=0|The hash of the structure}}
 +
{{Data Parameters/row|ReferenceId|Integer|w=0|Unique Reference Identifier for this object}}
 +
{{Data Parameters/row|NameHash|Integer|w=0|Provides the hash value for the name of the object as a 32 bit integer}}
 +
}}
  
The occupancy sensor will detect the presence of a player when placed within a defined room. A defined room is when the game detects the space is entirely closed off from the rest of the world with walls, doors, etc. These do not need to be in the finished state to count as sealing a room.
+
= <big>Proximity Sensor</big> =
  
Note: You can determine if a room is define by using the atmos analyzer chip with the tablet. If the top says "Room #" the room is sufficiently closed in.
+
The Proximity Sensor will detect players inside a spherical zone with a radius set by the <code>Setting</code> parameter. This value can be up to 250m and can be set using the dial on the sensor. <br/>
 +
''Note: By pressing the Quantity Change key, you can increment by 10 instead of 1 when using the dial.''<br/>
  
{{Data Network Header}}
+
Like the [[Sensors#Occupancy_Sensor|Occupancy Sensor]], the Proximity Sensor can be configured with a [[Cartridge#Atmos_Analyzer|Access Controller]] [[Cartridge]] in a [[Handheld_Tablet|tablet]] to only detect and report players equipped with a specific [[Access Card]].<br/>
 +
Unlike to the [[Sensors#Motion_Sensor|Motion Sensor]], the Proximity Sensor does not detect other entities such as thrown items or portable devices.<br/>
  
=== Data Parameters ===
+
{{Data Network Header}}<br/>
The gas sensor has no Input parameters, it's a read only device.
+
{{Data Parameters|
 +
{{Data Parameters/row|Activate|Boolean|w=0|1 if a player is detected, 0 otherwise}}
 +
{{Data Parameters/row|Setting|Float|w=1|Range of the sensor in meter (0 to 250}}
 +
{{Data Parameters/row|Quantity|Integer|w=0|Number of players detected}}
 +
{{Data Parameters/row|PrefabHash|Integer|w=0|The hash of the structure}}
 +
{{Data Parameters/row|ReferenceId|Integer|w=0|Unique Reference Identifier for this object}}
 +
{{Data Parameters/row|NameHash|Integer|w=0|Provides the hash value for the name of the object as a 32 bit integer}}
 +
}}
  
{{Data Outputs}}
 
{| class="wikitable"
 
|-
 
! Output Name !! Data Type !! Description
 
|-
 
| Activate || Bool || Whether a player is detected in the room. 0 means no one present, 1 means at least one player present
 
|-
 
| Quantity || Float || Unknown
 
|-
 
| PrefabHash || Float || Returns the Hash of the Occupancy Sensor (322782515)
 
|}
 
 
</translate>
 
</translate>

Latest revision as of 00:44, 9 September 2024

Other languages:
English
Kit (Sensors)
ItemKitSensor.png
Constructing Options Daylight, Motion, Gas, Occupancy or Proximity Sensor
Properties
Stacks Yes (5)
Recipe
Created With Electronics Printer, Hydraulic Pipe Bender
Cost 3g Iron, 1g Gold, 1g Copper
Hydraulic Pipe Bender has an altered recipe 1g iron instead of 3g


Daylight Sensor
StructureDaylightSensor.png
Operation
Power Usage 10W
Prefab Hash 1076425094
Prefab Name StructureDaylightSensor
Construction
Placed with Kit (Sensors)
Placed on Small Grid, On Frames
Stage 1
Deconstruction
Deconstructed with Hand Drill
Item received Kit (Sensors)



Motion Sensor
ItemMotionSensor.png
Operation
Power Usage 0W
Prefab Hash -1713470563
Prefab Name StructureMotionSensor
Construction
Placed with Kit (Sensors)
Placed on Small Grid, On Frames
Stage 1
Deconstruction
Deconstructed with Hand Drill
Item received Kit (Sensors)



Gas Sensor
ItemGasSensor.png
Operation
Power Usage 1W
Prefab Hash -1252983604
Prefab Name StructureGasSensor
Construction
Placed with Kit (Sensors)
Placed on Small Grid, On Frames
Stage 1
Deconstruction
Deconstructed with Hand Drill
Item received Kit (Sensors)



Occupancy Sensor
StructureOccupancySensor.png
Operation
Power Usage 0W
Prefab Hash 322782515
Prefab Name StructureOccupancySensor
Construction
Placed with Kit (Sensors)
Placed on Small Grid, On Frames
Stage 1
Deconstruction
Deconstructed with Hand Drill
Item received Kit (Sensors)



Proximity Sensor
StructureProximitySensor.png
Operation
Power Usage 0W
Prefab Hash 568800213
Prefab Name StructureProximitySensor
Construction
Placed with Kit (Sensors)
Placed on Small Grid, On Frames
Stage 1
Deconstruction
Deconstructed with Hand Drill
Item received Kit (Sensors)



Description[edit]

Sensors are used to detect various parameters of their surroundings.
Only the Daylight Sensor can be accessed directly by pointing at it. The other sensors require a Handheld Tablet with a Configuration Cartridge to be accessed manually.
Their outputs can also be accessed using a Logic Reader or an Integrated Circuit inserted in an IC Housing.


Daylight Sensor[edit]

The daylight sensor reports whether the sun hits the large grid the sensor is in, as well as the solar angle. Looking at the sensor will provide a tool-tip readout of this information, even when not connected to the network. The orientation of the daylight sensor is important, it will read different angle values depending on the orientation.

Modes[edit]

Warning Warning: While the Mode and SolarAngle properties described below are still available, they are being deprecated in favor of Horizontal and Vertical data properties. While Vertical and Vertical mode have the same value, Horizontal and Horizontal mode have opposite values (inverted sign).

The daylight sensor has a Mode property which can be set with Logic Writer and Memory chip, or with an Integrated Circuit:

Value Name Description
0 Default The sensor will return the absolute value of the angle formed by the source of light and the normal vector of the sensor (towards which the grey/green part is facing). 0 means the source of light is facing to the sensor, 90 means it is aligned with the surface the sensor was laid on, and 180 means the source of light is in the back of the sensor. The angle is always a positive value between 0 and 180.
1 Horizontal Returns the angle from the position of the source of light parallel to the surface of the sensor. The angle can be negative, ranging between -180 and +180.
2 Vertical The sensor measures the angle from the position of the light source perpendicular to the surface of the sensor.

Examples[edit]

  • If you lay a sensor on the ground, facing upwards, connector towards south,configured in horizontal mode, it will work like a compass with 0 = north, 90 = east, 180 = south and -90 = west
  • On the Moon/space :
    Note: these values are approximation and may vary slightly because of realistic orbital simulation
    • If the daylight sensor is fixed on the floor, it will report 90 degrees at sunrise, up to 0 degrees at noon, back to 90 degrees at sunset, to 180 degrees at midnight, and back to 90 at sunrise.
    • If fixed on a ceiling the cycle will be opposite, i.e.: 90 -> 180 -> 90 -> 0 -> 90.
    • If fixed to an east facing wall, the cycle from sunrise is: 0 -> 90 -> 180 -> 90 -> 0.
    • If fixed to a west facing wall, the cycle is opposite, i.e.: 180 -> 90 -> 0 -> 90 -> 180.
    • If fixed to a north or south facing wall it will stay at 90 degrees all the time.

Solar tracking[edit]

Tracking the sun using a Daylight Sensor allow Solar Panels to be more efficient by making them perpendicular to the light rays.
However, the orientation of the Daylight Sensor and Solar Panels must be taken into account and a Math Unit may be required to correct the offset.
This guide explains in detail how to set up a solar tracking circuit for solar panels.

Data Network Properties[edit]

These are all Data Network properties of this device.

Data Parameters[edit]

These are all parameters that can be written with a Logic Writer, Batch Writer, or Integrated Circuit (IC10), and can be read with a Logic Reader, Batch Reader, or Integrated Circuit (IC10).

Click here to see/hide all the data network properties
Parameter Name Data Type Access Value Description
Mode Integer
Read Write
0 Default SolarAngle mode
1 Horizontal
2 Vertical
Activate Boolean
Read Write
1 if the device is running, 0 otherwise
Horizontal Float
Read Write
Same absolute value SolarAngle reported for Horizontal mode but with an inverted sign
Vertical Float
Read Write
Same as SolarAngle reported for Vertical mode
SolarAngle Float
Read
See Modes above. Probably soon deprecated in favor of Horizontal and Vertical
On Boolean
Read Write
0 if Off, 1 if On
PrefabHash Integer
Read
The hash of the structure
SolarIrradiance Float
Read
The current solar irradiance (in W/m²)
ReferenceId Integer
Read
Unique Reference Identifier for this object
NameHash Integer
Read
Provides the hash value for the name of the object as a 32 bit integer


Motion Sensor[edit]

The motion sensor is activates when a player or a non static object (such as a thrown item or a portable device) enters the large grid cube where the sensor is located, and deactivates when there are no more players or objects. Despite its name, the sensor will stay activated even if the entity does not move inside the cube.
This sensor can be useful to build systems that activate when the player is in a specific position (such as automatic doors for example). To check an entire room or area, see Occupancy Sensor and Proximity Sensor.

Data Network Properties[edit]

These are all Data Network properties of this device.

Data Parameters[edit]

These are all parameters that can be written with a Logic Writer, Batch Writer, or Integrated Circuit (IC10), and can be read with a Logic Reader, Batch Reader, or Integrated Circuit (IC10).

Click here to see/hide all the data network properties
Parameter Name Data Type Access Value Description
Activate Boolean
Read Write
1 if an entity is detected, 0 otherwise. Even though the game consider it writable, trying to write this variable won't actually its value.
Quantity Integer
Read
Number of detected entities
On Boolean
Read Write
0 if Off, 1 if On (has no effect)
PrefabHash Integer
Read
The hash of the structure
ReferenceId Integer
Read
Unique Reference Identifier for this object
NameHash Integer
Read
Provides the hash value for the name of the object as a 32 bit integer


Gas Sensor[edit]

The gas sensor will report information about the gas in the current atmosphere, such as pressure, temperature and gases ratio.
Note: Temperature is given in Kelvin, while your suit gives a readout in Celsius. To convert, use Celsius + 273.15 = Kelvin

Data Network Properties[edit]

These are all Data Network properties of this device.
The gas sensor has no Input parameters, it's a read only device.

Data Parameters[edit]

These are all parameters that can be written with a Logic Writer, Batch Writer, or Integrated Circuit (IC10), and can be read with a Logic Reader, Batch Reader, or Integrated Circuit (IC10).

Click here to see/hide all the data network properties
Parameter Name Data Type Access Value Description
Pressure Float
Read
In kPa
Temperature Float
Read
In Kelvin
Combustion Boolean
Read
1 if the atmosphere is on fire, 0 otherwise
RatioOxygen Boolean
Read
Ratio of gaseous Oxygen in the atmosphere
RatioHydrogen Boolean
Read
Ratio of gaseous Hydrogen in the atmosphere (Hydrogen is deprecated and has been replaced by Volatiles)
RatioCarbonDioxide Boolean
Read
Ratio of gaseous Carbon Dioxide in the atmosphere
RatioNitrogen Boolean
Read
Ratio of gaseous Nitrogen in the atmosphere
RatioPollutant Boolean
Read
Ratio of gaseous Pollutant in the atmosphere
RatioVolatiles Boolean
Read
Ratio of gaseous Volatiles in the atmosphere
RatioNitrousOxide Boolean
Read
Ratio of gaseous Nitrous Oxide in the atmosphere
RatioSteam Boolean
Read
Ratio of gaseous Water in the atmosphere
RatioLiquidOxygen Boolean
Read
Ratio of liquid Oxygen in the atmosphere
RatioLiquidHydrogen Boolean
Read
Ratio of liquid Hydrogen in the atmosphere (Hydrogen is deprecated and has been replaced by Volatiles)
RatioLiquidCarbonDioxide Boolean
Read
Ratio of liquid Carbon Dioxide in the atmosphere
RatioLiquidNitrogen Boolean
Read
Ratio of liquid Nitrogen in the atmosphere
RatioLiquidPollutant Boolean
Read
Ratio of liquid Pollutant in the atmosphere
RatioLiquidVolatiles Boolean
Read
Ratio of liquid Volatiles in the atmosphere
RatioLiquidNitrousOxide Boolean
Read
Ratio of liquid Nitrous Oxide in the atmosphere
RatioWater Boolean
Read
Ratio of liquid Water in the atmosphere
RatioPollutedWater Boolean
Read
Ratio of liquid Polluted Water in the atmosphere
PrefabHash Integer
Read
The hash of the structure
ReferenceId Integer
Read
Unique Reference Identifier for this object
NameHash Integer
Read
Provides the hash value for the name of the object as a 32 bit integer


Occupancy Sensor[edit]

The Occupancy Sensor detects the presence of a player when placed within a defined room. A defined room is when the game detects the space is entirely closed off from the rest of the world with walls, doors, etc. These do not need to be in the finished state to count as sealing a room.
Note: You can determine if a room is define by using the Atmos Analyzer Cartridge with the tablet. If the top says "Room #" the room is sufficiently closed in.

Unlike to the Motion Sensor, the Occupancy Sensor does not detect other entities such as thrown items or portable devices.
The Occupancy Sensor can be configured with a Access Controller Cartridge in a tablet to only detect and report players equipped with a specific Access Card.

This sensor can be great for systems that need to be activated when a player enters or leaves a room, such as lighting and other machines to preserve energy.
To detect players outside of a base or in a certain part of room only, the Motion Sensor and the Proximity Sensor can be used.

Data Network Properties[edit]

These are all Data Network properties of this device.
The occupancy sensor has no Input parameters, it's a read only device.

Data Parameters[edit]

These are all parameters that can be written with a Logic Writer, Batch Writer, or Integrated Circuit (IC10), and can be read with a Logic Reader, Batch Reader, or Integrated Circuit (IC10).

Click here to see/hide all the data network properties
Parameter Name Data Type Access Value Description
Activate Boolean
Read
1 if a player is detected, 0 otherwise
Quantity Integer
Read
Number of players detected
PrefabHash Integer
Read
The hash of the structure
ReferenceId Integer
Read
Unique Reference Identifier for this object
NameHash Integer
Read
Provides the hash value for the name of the object as a 32 bit integer


Proximity Sensor[edit]

The Proximity Sensor will detect players inside a spherical zone with a radius set by the Setting parameter. This value can be up to 250m and can be set using the dial on the sensor.
Note: By pressing the Quantity Change key, you can increment by 10 instead of 1 when using the dial.

Like the Occupancy Sensor, the Proximity Sensor can be configured with a Access Controller Cartridge in a tablet to only detect and report players equipped with a specific Access Card.
Unlike to the Motion Sensor, the Proximity Sensor does not detect other entities such as thrown items or portable devices.

Data Network Properties[edit]

These are all Data Network properties of this device.

Data Parameters[edit]

These are all parameters that can be written with a Logic Writer, Batch Writer, or Integrated Circuit (IC10), and can be read with a Logic Reader, Batch Reader, or Integrated Circuit (IC10).

Click here to see/hide all the data network properties
Parameter Name Data Type Access Value Description
Activate Boolean
Read
1 if a player is detected, 0 otherwise
Setting Float
Read Write
Range of the sensor in meter (0 to 250
Quantity Integer
Read
Number of players detected
PrefabHash Integer
Read
The hash of the structure
ReferenceId Integer
Read
Unique Reference Identifier for this object
NameHash Integer
Read
Provides the hash value for the name of the object as a 32 bit integer