Actions

Difference between revisions of "Solar Logic Circuits Guide"

From Unofficial Stationeers Wiki

(This is a Critical Community page, stop fighting over it.)
(Reverting vandalism)
 
Line 5: Line 5:
 
Due to the frequency of game updates, all solutions are subject to change and may or may not be functional.
 
Due to the frequency of game updates, all solutions are subject to change and may or may not be functional.
  
The designs on this page are valid as of v0.2.5906.26015 (2025-09-25)
+
The designs on this page are valid as of v0.2.5906.26015 (2025-09-16)
  
==Solar tracking using Logic Chips - Moon  ==
+
While this specific Guide calls out the sensor being place in a specific direction (north - 0 degrees), it's not necessary to orient your sensors to a specific direction.
 +
If you find your panels don't point at the sun, you can add either 0, 90, 180 or 270 to the horizontal until they point at the sun. This guide is an attempt
 +
to simplify the setup by removing an extra math, and memory chip (6 chips instead of 8).
  
Solar tracking on the [[Worlds|Moon]] is very minimal and straightforward due to its having a near 0° solar angle.  You will need the following:
+
== Geometry Of [[Solar Panel|Solar Panels]] and [[Sensors#Daylight Sensor|Daylight Sensors]] ==
  
* x1 [[Sensors|Daylight Sensor]]
+
<gallery>
* x1 [[Logic I/O|Logic Reader]]
+
daylight sensor horizontal.png|Geometry of values measured by daylight sensor in horizontal (yaw) mode
* x1 [[Logic I/O|Batch Writer]]
+
daylight sensor vertical.png|Geometry of values measured by daylight sensor in vertical (pitch) mode
* [[Cables|Cable Coil]]s, a [[Wrench]], a [[Screwdriver]], and [[Wire Cutters]] at a minimum
+
solar panel yaw-Horizontal setting.png|Effect of setting horizontal rotation of a solar panel
 +
solar-horiz-formulas.svg|Equations relating horizontal sensor measurements from various orientations to solar panel horizontal rotation
 +
</gallery>
 +
 
 +
==Solar tracking using Logic Chips ==
  
The orientation of the [[Sensors|Daylight Sensor]] is important for any solar logic control circuit.  Since we are only controlling the vertical alignment (0° solar angle negates the need for horizontal control), the direction of the data port does not matter; however, '''the blue solar face of the [[Sensors|Daylight Sensor]] must face either east or west'''.  You will have to manually adjust the angle of the horizontal angle on the [[Solar Panel]] with a [[Wrench]], dependent on the orientation you build the [[Solar Panel]], and whether the [[Sensors|Daylight Sensor]] faces east or west. Simply wait for the sun to be up and adjust until the panel is ~98% efficient.
+
=== Six-chip dual-axis tracking ===
 +
To get a "100%" accurate solar tracker on planets with an offset solar arc, you need to include the Horizontal component to the solar angle.
  
Hook up the logical components as follows:
+
'''What do you need:'''
 +
* [[Kit (Logic I/O)]] x4
 +
* [[Kit (Logic Processor)]]
 +
* [[Kit (Logic Memory)]]
 +
* [[Sensors|Kit (Sensor)]] > [[Sensors#Daylight Sensor|Daylight Sensor]]
 +
 
 +
Place the Daylight Sensor facing up, '''with the Data Port facing north (0 degrees).'''
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! '''Component''' !! '''Port A''' !! '''Connection A''' !! '''Port B''' !! '''Connection B''' !! '''Port C''' !! '''Connection C'''
+
! '''Horizontal'''
 +
|-
 +
! '''Chip''' !! '''Chip label''' !! '''IN''' !! '''VAR''' !! '''OUT'''
 
|-
 
|-
| [[Logic I/O|Logic Reader]] || IN || [[Sensors|Daylight Sensor]] || VAR || Vertical || N/A || N/A
+
| Logic Reader || Horizontal Reader || Daylight Sensor || Horizontal ||  
 
|-
 
|-
| [[Logic I/O|Batch Writer]] || IN || [[Logic I/O|Logic Reader]] || OUT VAR || Vertical || OUT TYPE || [[Solar Panel]]
+
| Batch Writer || Horizontal Writer || Horizontal Reader || Horizontal || Solar Panel
|}
 
 
 
==Solar tracking using Logic Chips - Non-Moon  ==
 
 
 
'''THE FOLLOWING INFORMATION NEEDS TESTING ON A NON-MOON PLANET., I (ERIZAMANU) DON'T HAVE A WORKING NON-MOON SAVE (IM GOING FOR YEAR ACHIEVEMENT ON THE MOON RN) FOLLOWING THE TERRAIN UPDATE, SO IF SOMEONE COULD VERIFY THIS CIRCUIT OFF THE MOON AND DM ME I WOULD BE ETERNALLY GRATEFUL THANKS'''
 
 
 
Solar tracking not on the [[Worlds|Moon]] remains straightforward, however is inherently more complicated due to not having a near 0° solar angle.  You will need the following:
 
 
 
* x1 [[Sensors|Daylight Sensor]]
 
* x2 [[Logic I/O|Logic Reader]]
 
* x2 [[Logic I/O|Batch Writer]]
 
* [[Cables|Cable Coil]]s, a [[Wrench]], a [[Screwdriver]], and [[Wire Cutters]] at a minimum
 
* A [[Labeller]] is recommended to differentiate horizontal/vertical components, but not required
 
 
 
The orientation of the [[Sensors|Daylight Sensor]] is important for any solar logic control circuit.  Since we are controlling both the vertical and horizontal alignments, '''the direction of the data port''' does matter, and '''must face either north or south'''. Additionally, '''the blue solar face of the [[Sensors|Daylight Sensor]] must face either east or west''', and the '''[[Solar Panel]] power port must face east or west'''.  The pairing of the facings is as follows:
 
 
 
{| class="wikitable"
 
 
|-
 
|-
! !! '''Blue Face / [[Solar Panel]] Power Port''' !! '''[[Sensors|Daylight Sensor]] Data Port'''
+
! '''Vertical'''
 
|-
 
|-
| Option 1 || West || South
+
! '''Chip''' !! '''Chip label''' !! '''IN''' !! '''VAR''' !! '''OUT'''
 
|-
 
|-
| Option 2 || East || North
+
| Logic Reader || Vertical Reader || Daylight Sensor || Vertical ||  
|}
 
 
 
Hook up the logical components as follows:
 
 
 
{| class="wikitable"
 
 
|-
 
|-
! '''Component''' !! '''Port A''' !! '''Connection A''' !! '''Port B''' !! '''Connection B''' !! '''Port C''' !! '''Connection C'''
+
| Batch Writer || Vertical Writer || Vertical Correction Math || Vertical || Solar Panel
 
|-
 
|-
| Vertical [[Logic I/O|Logic Reader]] || IN || [[Sensors|Daylight Sensor]] || VAR || Vertical || N/A || N/A
+
! '''Chip''' !! '''Chip label''' !! '''Value'''
 
|-
 
|-
| Vertical [[Logic I/O|Batch Writer]] || IN || Vertical [[Logic I/O|Logic Reader]] || OUT VAR || Vertical || OUT TYPE || [[Solar Panel]]
+
| Logic Memory || Vertical Correction Memory || 90
 
|-
 
|-
| Horizontal [[Logic I/O|Logic Reader]] || IN || [[Sensors|Daylight Sensor]] || VAR || Horizontal || N/A || N/A
+
! '''Chip''' !! '''Chip label''' !! '''IN 1''' !! '''IN 2''' !! '''OUT'''
 
|-
 
|-
| Horizontal [[Logic I/O|Batch Writer]] || IN || Horizontal [[Logic I/O|Logic Reader]] || OUT VAR || Horizontal || OUT TYPE || [[Solar Panel]]
+
| Logic Math || Vertical Correction Math || Vertical Reader || Vertical Correction Memory || Add
 
|}
 
|}
  
== Solar tracking using IC-10 ==
+
[[File:2022-10-02 Two-axis solar tracking.png|Accurate two-axis solar tracking]]
 +
 
 +
The panels should align themselves to the sun, you make sure to '''put the Power Port on the panels facing east (east - 90 degrees).''' If you've already built the panels and logic with the Power Port facing west, swapping the direction of the sensor so that its Data Port faces south will allow the setup to work with no additional changes.
 +
 
 +
== Solar tracking using Integrated Circuits ==
 +
This is the most powerful way to track the sun, but the implementation might be a bit daunting at first.
 +
 
 +
'''What you need:'''
 +
* [[Integrated Circuit (IC10)]]
 +
* [[Kit (IC Housing)]]
 +
* [[Sensors|Kit (Sensor)]] > [[Sensors#Daylight Sensor|Daylight Sensor]]
  
Using the in-game [[IC10]] code is a complicated process that requires learning and/or knowledge of programming in an assembly-level language similar to [https://en.wikipedia.org/wiki/MIPS_architecture MIPS], which IC10 was based upon/inspired by.  Even if you are not proficient at programming, given its simplistic nature, a solar tracking script is a great way to start learning [[IC10]], and the general logic and programming skills required to write even more complicated and advanced [[IC10]] code to automate your systems in Stationeers.
+
And if you don't already have one set up:
 +
* [[Kit (Computer)]]
 +
* [[Motherboard (IC Editor)|IC Editor Motherboard]]
  
If you are unable or prefer not to learn [[IC10]], you can find all sorts of prewritten [[IC10]] code such as [https://steamcommunity.com/sharedfiles/filedetails/?id=1892925984 Tallinu's IC10 Free-form Solar Tracking Script].
+
Place the '''Daylight Sensor''' facing up, note which direction the Data Port is facing, and which direction the solar panel Power Port is facing. These two directions are needed in the code. The '''Daylight Sensor''' is connected to the '''d0''' screw, that's all you need.
  
== Geometry Of [[Solar Panel|Solar Panel]]s and [[Sensors|Daylight Sensors]] ==
+
A simple code example can be found here: https://stationeering.com/tools/ic/_2FpmwojGnBq<br>
 +
This code is considered "inefficient" since it's hard-coded to spam all types of solar panels, even if you don't have them.
  
<gallery>
+
A better code example can be found here: https://stationeering.com/tools/ic/_2FpoBEcd3QK<br>
daylight sensor horizontal.png|Geometry of horizontal values measured by daylight sensor
+
It targets the solar-panel types on '''d2''' and (optionally) '''d3''', so it's less spammy. It also has an option for a display ('''Kit (Console)''') on '''d1''' that shows the sum of power output from both types of panels
daylight sensor vertical.png|Geometry of vertical values measured by daylight sensor
 
solar panel yaw-Horizontal setting.png|Horizontal rotation of a solar panel
 
solar-horiz-formulas.svg|Equations relating horizontal sensor measurements from various orientations to solar panel horizontal rotation
 
</gallery>
 

Latest revision as of 21:09, 29 September 2025

Other languages:
English

Disclaimer[edit]

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

The designs on this page are valid as of v0.2.5906.26015 (2025-09-16)

While this specific Guide calls out the sensor being place in a specific direction (north - 0 degrees), it's not necessary to orient your sensors to a specific direction. If you find your panels don't point at the sun, you can add either 0, 90, 180 or 270 to the horizontal until they point at the sun. This guide is an attempt to simplify the setup by removing an extra math, and memory chip (6 chips instead of 8).

Geometry Of Solar Panels and Daylight Sensors[edit]

Solar tracking using Logic Chips[edit]

Six-chip dual-axis tracking[edit]

To get a "100%" accurate solar tracker on planets with an offset solar arc, you need to include the Horizontal component to the solar angle.

What do you need:

Place the Daylight Sensor facing up, with the Data Port facing north (0 degrees).

Horizontal
Chip Chip label IN VAR OUT
Logic Reader Horizontal Reader Daylight Sensor Horizontal
Batch Writer Horizontal Writer Horizontal Reader Horizontal Solar Panel
Vertical
Chip Chip label IN VAR OUT
Logic Reader Vertical Reader Daylight Sensor Vertical
Batch Writer Vertical Writer Vertical Correction Math Vertical Solar Panel
Chip Chip label Value
Logic Memory Vertical Correction Memory 90
Chip Chip label IN 1 IN 2 OUT
Logic Math Vertical Correction Math Vertical Reader Vertical Correction Memory Add

Accurate two-axis solar tracking

The panels should align themselves to the sun, you make sure to put the Power Port on the panels facing east (east - 90 degrees). If you've already built the panels and logic with the Power Port facing west, swapping the direction of the sensor so that its Data Port faces south will allow the setup to work with no additional changes.

Solar tracking using Integrated Circuits[edit]

This is the most powerful way to track the sun, but the implementation might be a bit daunting at first.

What you need:

And if you don't already have one set up:

Place the Daylight Sensor facing up, note which direction the Data Port is facing, and which direction the solar panel Power Port is facing. These two directions are needed in the code. The Daylight Sensor is connected to the d0 screw, that's all you need.

A simple code example can be found here: https://stationeering.com/tools/ic/_2FpmwojGnBq
This code is considered "inefficient" since it's hard-coded to spam all types of solar panels, even if you don't have them.

A better code example can be found here: https://stationeering.com/tools/ic/_2FpoBEcd3QK
It targets the solar-panel types on d2 and (optionally) d3, so it's less spammy. It also has an option for a display (Kit (Console)) on d1 that shows the sum of power output from both types of panels