Actions

Difference between revisions of "Solar Logic Circuits Guide"

From Unofficial Stationeers Wiki

(said logic g should be set to 1.5 to covert 180 degrees to 100% when(obviously) 180/1.5 doest equal 100 so it has been changed to say 1.8 (the ratio between 180 and 100))
m (Fixed broken links)
(17 intermediate revisions by 10 users not shown)
Line 17: Line 17:
  
 
== 10-chip 2-sensor 2-axis Solar Tracking ==
 
== 10-chip 2-sensor 2-axis Solar Tracking ==
βˆ’
'''Author:''' Eearslya, Neouni, π•½π–˜π–†πŸ—πŸ• and everyone of the #logic-circuit-discussion (most recently Enthaply Guy)<br>
+
'''Author:''' Eearslya, Neouni, π•½π–˜π–†πŸ—πŸ• and everyone of the #logic-circuit-discussion (guide most recently revised by Enthaply Guy, ThunderGod97)<br>
 
'''Stationeers Version:''' 0.2.2261.10316 and up<br>
 
'''Stationeers Version:''' 0.2.2261.10316 and up<br>
 
'''Number of Components:''' 12
 
'''Number of Components:''' 12
 +
  
 
=== Design ===
 
=== Design ===
Line 29: Line 30:
 
This is a fairly minimalistic 2-axis control setup.  You'll need the sensors to be in Mode 1 (horizontal) and Mode 2 (vertical), both facing up. The cable can point in any direction, as the vertical sensor doesn't care and we're already compensating for the horizontal sensor.
 
This is a fairly minimalistic 2-axis control setup.  You'll need the sensors to be in Mode 1 (horizontal) and Mode 2 (vertical), both facing up. The cable can point in any direction, as the vertical sensor doesn't care and we're already compensating for the horizontal sensor.
  
βˆ’
To set the sensors, you will need to use a [[Kit (Logic I/O)|Logic Writer]] and a [[Kit (Logic Memory)|Logic Memory]]. Set the memory to 1, and set the writer to write to the first sensor's Mode variable. Then set the Writer to write to the second Sensor, and set the memory to 2 (in that order!). The sensors should say "Mode Horizontal" and "Mode Vertical". Once you have them set, you can deconstruct and re-use the I/O and memory units. They do not need to be left in place to keep the mode set.
+
To set the sensors, you will need to use a [[Kit (Logic I/O)|Logic Writer]] and a [[Kit (Logic Memory)|Logic Memory]]. Set the memory to 1, and set the writer to write to the first sensor's Mode variable. Then set the Writer to write to the second Sensor, and set the memory to 2 (in that order!). The sensors should say "Mode Horizontal" and "Mode Vertical". Once you have them set, you can deconstruct or re-use the I/O and memory units. They do not need to be left in place to keep the mode set.
  
βˆ’
[[File:2-Axis Solar Logic Control.png|full|Screenshot of logic gate control setup for 2-axis tracking for solar panels]]
+
[[File:Stationeers 2x2 logic circuit guide rev3.png|2 sensor and 2 axis solar logic circuit guide by ThunderGod97]]
  
 
=== Notes ===
 
=== Notes ===
βˆ’
* Network 1 should have a steady source of power.  Ideally, an APC that's fed by the solar panels.
+
* The Network should have one power source, ideally an APC with battery backup powered by the solar panels. The Network should hook up to all ports on all logic chips (only one necessary for memory) and both sensors. Solar Panels should be deployed with separate data and power ports, and only the data port of each solar panel should be hooked up to the Network of the logic circuit. The power port of the solar panels should feed a separate network from the logic network.
βˆ’
* Network 2 is connected to Logic A and E input, and Logic D and J outputsIt needs to hold solar panel power/data ports and both daylight sensors.
+
 
 +
* Reader A: Reads Solar Angle from the Vertical Sensor
 +
* Math B (Subtract): Memory H minus Reader E
 +
* Math C (Subtract): Memory J minus Math F
 +
* Batch Writer D: Reads from Math C, and writes to Vertical field for all Solar Panels.
 +
* Reader E: Reads Solar Angle from the Horizontal Sensor
 +
* Math F (Divide): Reader A divided by Memory I
 +
* Batch Writer G: Reads from Math B and writes to Horizontal field for all Solar Panels.
 +
* Memory H: should be one of 0, 90, 180, or 270.  We're using it to compensate for horizontal sensor orientation.  If the sensor cable points the same direction as the solar panels power port, set it to 90.  Add 90 for every rotation counterclockwise, and use 0 instead of 360.
 +
* Memory I: Set to 1.5.  It's used to scale from 180Β° but panels can only do 15-165Β° in percentages so divide by 1.5 and adjust later .
 +
* Memory J: Set to 50This is to keep the panel at 0Β° or % longer because it can't do 0-15Β°.
 +
 
 +
=== Horizontal sensor orientation ===
 +
Orientation of the data-port on the horizontal sensor matters! Depending on where the data-port points, the solar-panels will will do a horizontal reorientation at either midnight (north, 000), dawn (east, 090), noon (south, 180), or dusk (west, 270).
 +
The worst position is to have the data-port pointing south, as efficiency drops from 99% to ~70% during the transition. North is the position with the least impact, because the solar panels aren't generating any power when the panels transition.
  
βˆ’
* Logic A (reader) reads SolarAngle from daylight sensor in Horizontal mode.
+
The reason for this transition is that the horizontal angle goes from -179 degrees to +180 degrees. As the sun moves from +180 to -179 degrees, the solar panels do a time-consuming -359 degree move instead of an efficient +1 degree move.
βˆ’
* Logic B (math unit) subtracts Logic A from Logic C.  Note that it must be upside down!
+
this set up does not work on Europa at all.
βˆ’
* Logic C (memory) should be one of 90, 180, 270 or 360.  We're using it to compensate for horizontal sensor orientation.  If the sensor cable points the same direction as the solar panels power port, set it to 90.  Add 90 for every rotation counterclockwise.
 
βˆ’
* Logic D (batch writer) reads from Logic B, and writes to Horizontal field for all Solar Panels.
 
βˆ’
* Logic E (reader) reads SolarAngle from the sensor in Vertical mode.
 
βˆ’
* Logic F (math unit) divides Logic E by Logic G.
 
βˆ’
* Logic G (memory) is set to 1.8.  It's used to scale from 180Β° that the sensor reports to the 100% that the solar panels use.
 
βˆ’
* Logic H (math unit) subtracts Logic F from Logic I.  Note that the ''right'' input must be Logic F, and the ''left'' input must be Logic I!
 
βˆ’
* Logic I (memory) is set to 50.  The vertical reader reports 0Β° at midday and 90Β° at sunrise/sunset, but we need the panels to be at 50% at midday and 0% at sunrise/sunset.
 
βˆ’
* Logic J (batch writer) reads from Logic H and writes to Vertical field for all Solar Panels.
 
  
 
<small>Credit for alternatives: PoolSharkFOG</small>
 
<small>Credit for alternatives: PoolSharkFOG</small>
  
βˆ’
This setup can be also programmed in an IC10 chip which saves power because you need only 5 chips instead of 8.
+
This setup can be also programmed in an IC10 chip which saves power because you need only 5 chips instead of 10.
  
 
'''Required:'''<br>
 
'''Required:'''<br>
Line 164: Line 171:
  
 
=== Notes ===
 
=== Notes ===
βˆ’
* The [[Daylight Sensor]] MUST be facing East (Sunrise), but its rotation doesn't matter.
+
* The Daylight [[Sensor]] MUST be facing East (Sunrise), but its rotation doesn't matter.
 
* Solar panels should be rotated such as that 0% VERTICAL rotation faces East/Sunrise, and 100% VERTICAL faces West/Sunset.  
 
* Solar panels should be rotated such as that 0% VERTICAL rotation faces East/Sunrise, and 100% VERTICAL faces West/Sunset.  
βˆ’
* The [[Area Power Control]] is necessary for the circuit to stay powered during the night. It also hides all the modules from the rest of your system.
+
* The Area [[Power Control]] is necessary for the circuit to stay powered during the night. It also hides all the modules from the rest of your system.
 +
* Make sure that the math unit is set to "Divide" operation.
 
* Importantly, the solar input power doesn't directly connect to any of the logic writers. This not only ensures your system doesn't lose power but also prevents short-circuiting that would burn cables.
 
* Importantly, the solar input power doesn't directly connect to any of the logic writers. This not only ensures your system doesn't lose power but also prevents short-circuiting that would burn cables.
 
* Using 1.7 instead of 1.8 reduces the average error of this design to 6.5Β° and increases overall power generation, particularly in the afternoon.
 
* Using 1.7 instead of 1.8 reduces the average error of this design to 6.5Β° and increases overall power generation, particularly in the afternoon.
 
</translate>
 
</translate>
βˆ’
 
  
 
== [[Solar Logic Cable Golf]] ==
 
== [[Solar Logic Cable Golf]] ==

Revision as of 23:30, 21 November 2020

Other languages:
English

Disclaimer

Due to the frequency of game updates, all solutions are subject to change and may or may not be functional.

Geometry Of Solar Panels and Daylight Sensors

10-chip 2-sensor 2-axis Solar Tracking

Author: Eearslya, Neouni, π•½π–˜π–†πŸ—πŸ• and everyone of the #logic-circuit-discussion (guide most recently revised by Enthaply Guy, ThunderGod97)
Stationeers Version: 0.2.2261.10316 and up
Number of Components: 12


Design

This is a fairly minimalistic 2-axis control setup. You'll need the sensors to be in Mode 1 (horizontal) and Mode 2 (vertical), both facing up. The cable can point in any direction, as the vertical sensor doesn't care and we're already compensating for the horizontal sensor.

To set the sensors, you will need to use a Logic Writer and a Logic Memory. Set the memory to 1, and set the writer to write to the first sensor's Mode variable. Then set the Writer to write to the second Sensor, and set the memory to 2 (in that order!). The sensors should say "Mode Horizontal" and "Mode Vertical". Once you have them set, you can deconstruct or re-use the I/O and memory units. They do not need to be left in place to keep the mode set.

2 sensor and 2 axis solar logic circuit guide by ThunderGod97

Notes

  • The Network should have one power source, ideally an APC with battery backup powered by the solar panels. The Network should hook up to all ports on all logic chips (only one necessary for memory) and both sensors. Solar Panels should be deployed with separate data and power ports, and only the data port of each solar panel should be hooked up to the Network of the logic circuit. The power port of the solar panels should feed a separate network from the logic network.
  • Reader A: Reads Solar Angle from the Vertical Sensor
  • Math B (Subtract): Memory H minus Reader E
  • Math C (Subtract): Memory J minus Math F
  • Batch Writer D: Reads from Math C, and writes to Vertical field for all Solar Panels.
  • Reader E: Reads Solar Angle from the Horizontal Sensor
  • Math F (Divide): Reader A divided by Memory I
  • Batch Writer G: Reads from Math B and writes to Horizontal field for all Solar Panels.
  • Memory H: should be one of 0, 90, 180, or 270. We're using it to compensate for horizontal sensor orientation. If the sensor cable points the same direction as the solar panels power port, set it to 90. Add 90 for every rotation counterclockwise, and use 0 instead of 360.
  • Memory I: Set to 1.5. It's used to scale from 180Β° but panels can only do 15-165Β° in percentages so divide by 1.5 and adjust later .
  • Memory J: Set to 50. This is to keep the panel at 0Β° or % longer because it can't do 0-15Β°.

Horizontal sensor orientation

Orientation of the data-port on the horizontal sensor matters! Depending on where the data-port points, the solar-panels will will do a horizontal reorientation at either midnight (north, 000), dawn (east, 090), noon (south, 180), or dusk (west, 270). The worst position is to have the data-port pointing south, as efficiency drops from 99% to ~70% during the transition. North is the position with the least impact, because the solar panels aren't generating any power when the panels transition.

The reason for this transition is that the horizontal angle goes from -179 degrees to +180 degrees. As the sun moves from +180 to -179 degrees, the solar panels do a time-consuming -359 degree move instead of an efficient +1 degree move. this set up does not work on Europa at all.

Credit for alternatives: PoolSharkFOG

This setup can be also programmed in an IC10 chip which saves power because you need only 5 chips instead of 10.

Required:
1 IC10 Chip plus IC housing
2 sensors setup as shown above
2 memory
2 Batch Writers that read from memory

Connect Sensor1 to d0, Sensor2 to d1, Memory1 to d2, Memory2 to d3. BatchWriter Horizontal should read from Memory1 and BatchWriter Vertical should read from Memory2 and both ofcourse write to the solar panels. Use the same setup for the power connector directions as shown above. You do not have to write the mode, this is done in code.

Here is the code for the ic10 chip: Simulator @ stationeering.com

9-chip 1-sensor 1-axis Solar Tracking

Authors: Wooodiii, Corvus_bkgk, Enfantcool, Baksch
Properties: Accurate (average error 1.3Β°), Auto-reset (variant), Power conserving (variant)
Number of Components: 10-12
Math Formula: f(x) = min((x-min(x,15))/1.5, 100) where x is the solar angle.

Note: With the introduction of ecliptic solar angles, this setup no longer works well on worlds such as Vulkan and Europa which have the sun at an angle. This setup will still work on the Moon and in Space, and will be acceptable on Mars and Loulan.

This setup is accurate, giving 495-500W throughout the day, with lower output only when the sun is lower than the panels can physically aim at.

This setup adjusts for the fact that solar panels rotate through only 150 degrees. Instead of converting using 180/100, this setup converts by doing 150/100. It then clips the value at the edges, where the prior calculation would give elevations that are negative or greater than 100 (representing the fact that we would prefer the panel to track past 0 or 100, aiming all the way down to the horizon instead of stopping 15Β° short). The listed average error is nonzero only because of this completely unavoidable portion; the error is 0 throughout the 15Β°-165Β° portion of the day.

This setup produces the equivalent of 274W averaged over a whole day/night cycle.

Link to IC Programm : [1]

Design

  • The Daylight Sensor should face the sunrise.
  • Solar panels should be rotated such that 0% vertical faces the sunrise.


Component (Name) Settings Explanation
Logic Reader (A) Daylight sensor, Solar angle Sun's angle above the horizon
Memory (15) 15 True angle of solar panels at 0 elevation
Memory (1.5) 1.5 150/100, the conversion constant from solar angle (range:15-165, i.e. 150) to panel elevation (range:0-100)
Min/Max Unit (B) min(A,15) Adjustment amount: 15, unless that would take A-B negative, in which case only enough to reach 0 (low edge case). Equivalent to min(A-B,0) but doesn't require storing 0.
Math Unit (C) A-B Adjusted solar angle
Math Unit (D) C/1.5 Conversion from solar angle to panel elevation
Memory (100) 100 Maximum possible panel elevation
Min/Max Unit (E) min(D,100) Cap elevation to 100 for solar angles past 165Β° (high edge case). Equivalent to doing min(A-B,165) before step D, but 100 is easier to set in memory than 165.
Batch Writer E -> Solar panels, Vertical angle Send elevation to solar panels

Accurate Solar Control.png

Auto-Reset Variant

For panels that automatically reset their facing upon sunset, use two more components, and adjust the final min/max unit:

Component (Name) Settings Explanation
Logic Reader (L) Daylight sensor, Activation 1 while daytime, 0 while nighttime
Math Unit (F) 100*L Maximum panel elevation, now 100 during day and 0 at night
(from above) Min/Max Unit (E) min(D,F) Adjusted panel elevation (high edge adjustment)

Power-Conserving Variant

To conserve power, it's possible to avoid running the entire circuit at night. A transformer can be controlled to power the main logic network above. In this way, only the two new components need to remain powered at all times.

Component (Name) Settings Explanation
Logic Reader (L) Daylight sensor, Activation As in the auto-reset variant above
Logic Writer L -> Transformer, On Transformer powers main logic network

4-chip 1-sensor 1-axis Approximate Solar Tracking

Author: Evie
Stationeers Version: 0.1.1068.5451
Properties: Simple, Inaccurate (Average error: 7.5Β°)
Number of Components: 5

Note: With the introduction of ecliptic solar angles, this setup no longer works at peak efficiency on worlds such as Mars and Europa which have the sun at an angle. This setup will still work on the Moon and in Space.

This imperfect setup is a common starting point. It starts off at 375w of power in the morning, builds up to 500w at zenith (noon) then back to 375. This is due to the fact that solars rotate through only 150 degrees of elevation and that this setup's math is correct only if they rotated through all 180 degrees of solar angle.

This setup produces the equivalent of 239W averaged over a whole day/night cycle.

Design

Solar Setup Diagram
A super compact version

Notes

  • The Daylight Sensor MUST be facing East (Sunrise), but its rotation doesn't matter.
  • Solar panels should be rotated such as that 0% VERTICAL rotation faces East/Sunrise, and 100% VERTICAL faces West/Sunset.
  • The Area Power Control is necessary for the circuit to stay powered during the night. It also hides all the modules from the rest of your system.
  • Make sure that the math unit is set to "Divide" operation.
  • Importantly, the solar input power doesn't directly connect to any of the logic writers. This not only ensures your system doesn't lose power but also prevents short-circuiting that would burn cables.
  • Using 1.7 instead of 1.8 reduces the average error of this design to 6.5Β° and increases overall power generation, particularly in the afternoon.

Solar Logic Cable Golf

An interesting engineering challenge is to wire up the logic with the minimum amount of cabling. The goal would be to get solar tracking (or whatever) working as early as possible by minimizing the amount of copper that must be gathered and smelted.

The rules of Cable Golf are:

  • The score is the number of Cable Coils used to correctly wire the functionality. (Straight and corner count as 1 cable; T and + count as 2 cables)
  • Chips may be placed in any orientation (upside-down math chips might conserve cables)
  • The single-plane category requires all the chips to be on coplanar faces of all frames. The multi-plane category allows the chips to be on frame faces that are at different angles (crossing an edge or surrounding a corner).
  • The number of frames needed to mount the components is part of the category (2-frame scores are separate from 3-frame scores)
  • If a component that can not be placed on the edge of a lone frame is placed on the edge between two frames, both those frames must be counted in the category.
  • If a component must be placed on a frame, that frame's surface is part of its category, even if the frame is removed afterward.
  • There must be a connection to the feed from the Power Controller, but the cables leading from the power controller (to a *single* connection point; once it branches the junction and cables are counted) that are not required for the logic to function are not counted. This power feed connection will almost certainly be a T or +, since a corner or straight section is strictly a feed and not needed to connect the logic components.
  • Cables needed to propagate the output of the Batch/Logic Writers to the top edge of a frame are counted in the score