Actions

Editing Sensors

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
[[Category:Solar power]]
 
[[Category:Solar power]]
 
<languages />
 
<languages />
<translate>{{Itembox
+
<translate>
 +
{{Itembox
 
  | name        = Kit (Sensors)
 
  | name        = Kit (Sensors)
 
  | 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]], [[Hydraulic Pipe Bender]]
+
  | createdwith = [[Electronics Printer]], [[Fabricator]], [[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>
 
}}
 
}}
 
 
{{Structurebox
 
{{Structurebox
 
  | name            = Daylight Sensor
 
  | name            = Daylight Sensor
| prefab_hash      = 1076425094
+
  | image            = [[File:ItemKitSensor.png]]
  | image            = [[File:Daylight_sensor.jpg]]  
 
 
  | 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 19: Line 18:
 
  | item_rec1        = [[Kit (Sensors)]]
 
  | item_rec1        = [[Kit (Sensors)]]
 
}}
 
}}
 
 
{{Structurebox
 
{{Structurebox
  | name            = Motion Sensor
+
  | name            = Gas Sensor
| prefab_hash      = -1713470563
+
  | image            = [[File:ItemGasSensor.png]]
  | image            = [[File:ItemMotionSensor.png]]  
+
| power_usage      = 10W
 
  | 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 29: Line 27:
 
  | item_rec1        = [[Kit (Sensors)]]
 
  | item_rec1        = [[Kit (Sensors)]]
 
}}
 
}}
 
 
{{Structurebox
 
{{Structurebox
  | name            = Gas Sensor
+
  | name            = Motion Sensor
| prefab_hash      = -1252983604
+
  | image            = [[File:ItemMotionSensor.png]]
  | image            = [[File:ItemGasSensor.png]]  
+
| power_usage      = 10W
 
  | placed_with_item = [[Kit (Sensors)]]
 
  | placed_with_item = [[Kit (Sensors)]]
 
  | placed_on_grid  = Small Grid, On Frames
 
  | placed_on_grid  = Small Grid, On Frames
 
  | decon_with_tool1 = [[Hand Drill]]
 
  | decon_with_tool1 = [[Hand Drill]]
 
  | item_rec1        = [[Kit (Sensors)]]
 
  | item_rec1        = [[Kit (Sensors)]]
}}  
+
}}
 
 
{{Structurebox
 
| name            = Occupancy Sensor
 
| prefab_hash      = 322782515
 
| image            = Need an image uploaded
 
| placed_with_item = [[Kit (Sensors)]]
 
| placed_on_grid  = Small Grid, On Frames
 
| decon_with_tool1 = [[Hand Drill]]
 
| item_rec1        = [[Kit (Sensors)]]
 
}}
 
 
 
 
 
= Description = <!--T:1-->
 
 
 
 
 
  
 +
== 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 62: Line 45:
 
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 large grid the sensor is in, as well as the solar angle (relative to the normal axis of the sensor; the direction perpendicular to the sensor's face). Looking at the sensor will provide a tool-tip readout of this information. The sensor turns green when sunny.
  
 +
The daylight sensor now has a mode property which can be set with logic writer and memory chip, 0 = default (same as vertical), 1 = horizontal, 2 = vertical. Other values will throw an index-out-of-range error in console if you mouse-over the sensor.
  
= <big>Daylight Sensor</big> = <!--T:2-->
+
The orientation of the daylight sensor is important, it will read different angle values depending on the orientation. Placing a sensor on a wall towards sunrise (East) will always result in a linear increasing 0-180 angle output thru the day, and decreasing 180-0 angle thru the night. This can be utilized as a daytime sensor, for alarm or clock functions.
  
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.
+
Placing a sensor (default/vertical mode) on the 'floor' (any direction) will report the angular difference from zenith (straight up) towards the sun. 90 subtracted by this value will convert this into an angle of horizon/altitude.
  
'''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.
+
Placing a sensor (horizontal mode 1) on the 'floor' will report the angular difference from a fixed horizon point, depending on orientation, towards the actual azimuth of the sun. This value will decrease thru the day. But a properly tracking panel requires increasing values (opposite direction of rotation). You must take some multiple of 90 degrees, depending on solar panel orientation, and subtract this horizontal angle to get a proper azimuth angle towards the sun, for feeding to solar panel tracking.
  
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.
+
Alternatively, placing a (horizontal) sensor on the ceiling (aka upside-down) will result in the correct rotation of values. Rotate the sensor power wire 90 degrees clockwise from the direction of the solar panel's power port. (N-> E, E->S, S->W, W->N)
  
== Modes ==
+
The sensor always reports an angle to a logic reader at all times, but the tooltip will not display the angle if the sensor does not have sunlight.
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>
 
File:Daylight sensor horizontal.png|Horizontal mode
 
File:Daylight sensor vertical.png|Vertical mode
 
</gallery>
 
 
 
 
 
 
 
=== 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.
 
See https://stationeers-wiki.com/Solar_Logic_Circuits_Guide for more solar panel logic discussion.
  
=== Examples ===
+
Examples (on the moon/space):
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 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 on a ceiling the cycle will be opposite, i.e.: 90 -> 180 -> 90 -> 0 -> 90.
Line 103: Line 68:
 
* If fixed to a west facing wall, the cycle is opposite, i.e.: 180 -> 90 -> 0 -> 90 -> 180.
 
* 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.
 
* 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 Network Header}}
Line 113: Line 75:
 
|-
 
|-
 
! Parameter Name !! Data Type !! Description
 
! 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 || ||
 
 
|}
 
|}
  
Line 125: Line 81:
 
|-
 
|-
 
! Output Name !! Data Type !! Description
 
! 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 || ||
 
 
|}
 
|}
  
= <big>Motion Sensor</big> =
+
=== 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.
 +
=== Gas Sensor ===
 +
The gas sensor will report information about the gas in the current atmosphere, such as pressure, contents and temperature.
  
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.
+
Note: Temperature is given in Kelvin, while your suit gives a readout in Celsius.
 +
 
 +
Celsius + 273.15 = Kelvin
  
 
{{Data Network Header}}
 
{{Data Network Header}}
Line 158: Line 107:
  
  
= <big>Gas Sensor</big> =
+
=== 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 Header}}
 
{{Data Network Header}}
  
=== Data Parameters ===
+
{{Data Parameters}}
The gas sensor has no Input parameters, it's a read only device.
 
 
 
{{Data Outputs}}
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Output Name !! Data Type !! Description
+
! Parameter 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
 
 
|}
 
|}
 
 
= <big>Occupancy Sensor</big> =
 
 
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.
 
 
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.
 
 
{{Data Network Header}}
 
 
=== Data Parameters ===
 
The gas sensor has no Input parameters, it's a read only device.
 
  
 
{{Data Outputs}}
 
{{Data Outputs}}
Line 213: Line 121:
 
|-
 
|-
 
! Output Name !! Data Type !! Description
 
! 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>

Please note that all contributions to Unofficial Stationeers Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Unofficial Stationeers Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)