Actions

Difference between revisions of "Sensors"

From Unofficial Stationeers Wiki

(Adjusted position of descriptions for horizontal/vertical modes of daylight sensor)
(32 intermediate revisions by 19 users not shown)
Line 1: Line 1:
 
<languages />
 
<languages />
<translate>
+
<translate>{{Itembox
{{Itembox
+
  | name        = Kit (Sensors)
  | name        = Construction Kit (Sensor)
 
 
  | image      =  {{{image|[[File:ItemSensorKit.png]]}}}
 
  | image      =  {{{image|[[File:ItemSensorKit.png]]}}}
 
  | stacks      = 5x
 
  | stacks      = 5x
 
  | constructs  = Daylight, Motion or Gas Sensor
 
  | constructs  = Daylight, Motion or Gas Sensor
  | createdwith = [[Electronics Printer]], [[Fabricator]]
+
  | createdwith = [[Electronics Printer]], [[Hydraulic Pipe Bender]]
  | cost        = 1g [[Copper]], 1g [[Gold]]
+
  | cost        = 3g [[Iron]], 1g [[Gold]], 1g [[Copper]] <br><small>Hydraulic Pipe Bender has an altered recipe 1g iron instead of 3g</small>
 
}}
 
}}
 
{{Structurebox
 
{{Structurebox
  | name = Daylight Sensor
+
  | name             = Daylight Sensor
  | image     = {{{image|[[File:ItemKitSensor.png]]}}}
+
  | prefab_hash     = 1076425094
  | placement = Small Grid, On Frames
+
| image           = [[File:Daylight_sensor.jpg]]  
  | powerusage = 10W
+
  | placed_with_item = [[Kit (Sensors)]]
 +
  | placed_on_grid  = Small Grid, On Frames
 +
  | decon_with_tool1 = [[Hand Drill]]
 +
| item_rec1        = [[Kit (Sensors)]]
 
}}
 
}}
 +
 +
 
{{Structurebox
 
{{Structurebox
  | name = Gas Sensor
+
  | name             = Motion Sensor
  | image {{{image|[[File:ItemGasSensor.png]]}}}
+
  | prefab_hash      = -1713470563
  | placement = Small Grid, On Frames
+
  | image           = [[File:ItemMotionSensor.png]]  
  | powerusage = 10W
+
  | placed_with_item = [[Kit (Sensors)]]
 +
| placed_on_grid  = Small Grid, On Frames
 +
  | decon_with_tool1 = [[Hand Drill]]
 +
| item_rec1        = [[Kit (Sensors)]]
 
}}
 
}}
 
{{Structurebox
 
{{Structurebox
  | name = Motion Sensor
+
  | name             = Gas Sensor
  | image {{{image|[[File:ItemMotionSensor.png]]}}}
+
  | prefab_hash      = -1252983604
  | placement = Small Grid, On Frames
+
  | image           = [[File:ItemGasSensor.png]]  
  | powerusage = 10W
+
  | placed_with_item = [[Kit (Sensors)]]
}}
+
| placed_on_grid  = Small Grid, On Frames
== Description == <!--T:1-->
+
  | decon_with_tool1 = [[Hand Drill]]
 +
| item_rec1        = [[Kit (Sensors)]]
 +
}}  
 +
 
 +
= Description = <!--T:1-->
 +
 
 +
 
 +
 
 
[[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)]].
 
[[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)]].
  
Line 35: Line 49:
 
File:Motion_sensor.jpg|In-game view of motion sensor
 
File:Motion_sensor.jpg|In-game view of motion sensor
 
</gallery>
 
</gallery>
=== Daylight Sensor === <!--T:2-->
+
 
The daylight sensor reports whether the sun hits the atmosphere the sensor is in, as well as the angle (relative to the angle of the sensor).
+
= Daylight Sensor = <!--T:2-->
=== Motion Sensor ===
+
 
The motion sensor activates when a player enters the large grid square where the sensor is, and it will deactivate when no more players are in the area.
+
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.
=== Gas Sensor ===
+
 
 +
'''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 will return the angle formed by the reference vector (opposites the network connector) and the projection of the source of light on the surface the sensor was laid on. Positive values designate angles counter-clockwise when facing 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 between the normal of the surface the sensor was laid on and the position of the sun.
 +
 
 +
=== Notes ===
 +
 
 +
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"
 +
|-
 +
! Parameter Name !! Data Type !! Description
 +
|-
 +
| Mode || || 0 = Default, 1 = Horizontal, 2 = Vertical (Warning! In IC Horizontal and Vertical are the other way around for some reason.)
 +
|-
 +
| Activate || ||
 +
|-
 +
| On || ||
 +
|}
 +
 
 +
{{Data Outputs}}
 +
{| class="wikitable"
 +
|-
 +
! Output Name !! Data Type !! Description
 +
|-
 +
| Mode || || 0 = Default, 1 = Horizontal, 2 = Vertical (Warning! In IC Horizontal and Vertical are the other way around for some reason.)
 +
|-
 +
| Horizontal || || Same as <kbd>SolarAngle</kbd> reported for <kbd>Horizontal</kbd> mode
 +
|-
 +
| Vertical || || Same as <kbd>SolarAngle</kbd> reported for <kbd>Vertical</kbd> mode
 +
|-
 +
| Activate || || 0 = Sensor not in sunlight, 1 = Sensor in sunlight
 +
|-
 +
| SolarAngle || || Probably soon deprecated in favor of <kbd>Horizontal</kbd> and <kbd>Vertical</kbd>
 +
|-
 +
| On || ||
 +
|}
 +
 
 +
= Motion Sensor =
 +
 
 +
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.
 +
 
 +
{{Data Network Header}}
 +
 
 +
{{Data Parameters}}
 +
{| class="wikitable"
 +
|-
 +
! Parameter Name !! Data Type !! Description
 +
|}
 +
 
 +
{{Data Outputs}}
 +
{| class="wikitable"
 +
|-
 +
! Output Name !! Data Type !! Description
 +
|}
 +
 
 +
= Gas Sensor =
 +
 
 
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, contents and temperature.
  
 +
Note: Temperature is given in Kelvin, while your suit gives a readout in Celsius.
 +
 +
Celsius + 273.15 = Kelvin
 +
 +
{{Data Network Header}}
 +
 +
=== Data Parameters ===
 +
The gas sensor has no Input parameters, it's a read only device.
 +
 +
{{Data Outputs}}
 +
{| class="wikitable"
 +
|-
 +
! 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
 +
|}
 
</translate>
 
</translate>

Revision as of 11:36, 31 July 2022

Other languages:
English
Kit (Sensors)
ItemSensorKit.png
Stacks 5x
Constructing Options Daylight, Motion or Gas Sensor
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
Daylight sensor.jpg
Prefab Hash 1076425094
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
Prefab Hash -1713470563
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
Prefab Hash -1252983604
Construction
Placed with Kit (Sensors)
Placed on Small Grid, On Frames
Stage 1
Deconstruction
Deconstructed with Hand Drill
Item received Kit (Sensors)

Description

Sensors are used to detect different conditions of the world. They can be read by the Logic Computers as well as used when correctly configured by some devices, such as a Console with a Circuitboard (Airlock Control).

Daylight Sensor

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 Mode and SolarAngle properties described below are still available, they are being deprecated in favor of Horizontal and Vertical data properties, returning the same as their Mode counterparts.

The daylight sensor has a Mode 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.

daylight sensor in horizontal mode

In horizontal mode, the sensor will return the angle formed by the reference vector (opposites the network connector) and the projection of the source of light on the surface the sensor was laid on. Positive values designate angles counter-clockwise when facing the sensor. The angle can be negative, ranging between -180 and +180.

daylight sensor in vertical mode

In vertical mode, the sensor measures the angle between the normal of the surface the sensor was laid on and the position of the sun.

Notes

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 Properties

These are all Data Network properties of this device.

Data Parameters

These are all parameters, that can be written to with a Logic Writer, Batch Writer, or Integrated Circuit (IC10). The outputs are listed in the order a Logic Writer's "VAR" setting cycles through them.

Parameter Name Data Type Description
Mode 0 = Default, 1 = Horizontal, 2 = Vertical (Warning! In IC Horizontal and Vertical are the other way around for some reason.)
Activate
On

Data Outputs

These are all parameters, that can be read with a Logic Reader or a Slot Reader. The outputs are listed in the order a Logic Reader's "VAR" setting cycles through them.

Output Name Data Type Description
Mode 0 = Default, 1 = Horizontal, 2 = Vertical (Warning! In IC Horizontal and Vertical are the other way around for some reason.)
Horizontal Same as SolarAngle reported for Horizontal mode
Vertical Same as SolarAngle reported for Vertical mode
Activate 0 = Sensor not in sunlight, 1 = Sensor in sunlight
SolarAngle Probably soon deprecated in favor of Horizontal and Vertical
On

Motion Sensor

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.

Data Network Properties

These are all Data Network properties of this device.

Data Parameters

These are all parameters, that can be written to with a Logic Writer, Batch Writer, or Integrated Circuit (IC10). The outputs are listed in the order a Logic Writer's "VAR" setting cycles through them.

Parameter Name Data Type Description

Data Outputs

These are all parameters, that can be read with a Logic Reader or a Slot Reader. The outputs are listed in the order a Logic Reader's "VAR" setting cycles through them.

Output Name Data Type Description

Gas Sensor

The gas sensor will report information about the gas in the current atmosphere, such as pressure, contents and temperature.

Note: Temperature is given in Kelvin, while your suit gives a readout in Celsius.

Celsius + 273.15 = Kelvin

Data Network Properties

These are all Data Network properties of this device.

Data Parameters

The gas sensor has no Input parameters, it's a read only device.

Data Outputs

These are all parameters, that can be read with a Logic Reader or a Slot Reader. The outputs are listed in the order a Logic Reader's "VAR" setting cycles through them.

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