Actions

Difference between revisions of "Solar Logic Circuits Guide"

From Unofficial Stationeers Wiki

(Updated the outdated IC Version with proper instruction and new code.)
(Add links)
 
(31 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Tutorials]]
+
[[Category:Tutorials]][[Category:Solar power]]
 
<languages />
 
<languages />
<translate>
 
 
 
== Disclaimer ==
 
== Disclaimer ==
  
 
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.
  
== Geometry Of Solar Panels and Daylight Sensors ==
+
The designs on this page are valid as of v0.2.3304.16432 (2022-06-06)
 +
 
 +
While this specific Guide calls out the sensor being place a specific direction(north), its 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 Panel|Solar Panels]] and [[Sensors#Daylight Sensor|Daylight Sensors]] ==
  
 
<gallery>
 
<gallery>
Line 16: Line 20:
 
</gallery>
 
</gallery>
  
== 10-chip 2-sensor 2-axis Solar Tracking ==
+
==Solar tracking using Logic Chips ==
'''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>
 
'''Number of Components:''' 12
 
 
 
 
 
=== Design ===
 
* 2 [[Sensors|Kit (Sensors)]]
 
* 4 [[Kit (Logic I/O)]]
 
* 3 [[Kit (Logic Memory)]]
 
* 3 [[Kit (Logic Processor)]] ("Math Unit")
 
 
 
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 or re-use the I/O and memory units. They do not need to be left in place to keep the mode set.
 
 
 
[[File:Stationeers 2x2 logic circuit guide rev3.png|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.
 
 
 
<small>Credit for alternatives: PoolSharkFOG, Elusid1</small>
 
 
 
This setup can be also programmed in an IC10 chip which saves power because you need only 5 chips instead of 10.
 
 
 
'''Required:'''<br>
 
1 IC10 Chip plus IC housing<br>
 
2 sensors setup as shown above<br>
 
2 memory<br>
 
2 Batch Writers that read from memory<br>
 
<br>
 
Connect '''VertSensor''' to '''d0''', '''HozSensor''' to '''d1''', '''VertMemory''' to '''d2''', '''HozMemory''' to '''d3'''.
 
BatchWriter Horizontal should read from '''HozMemory''' and BatchWriter Vertical should read from '''VertMemory''' and both of course 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.
 
<br><br>
 
Here is the code for the ic10 chip: [https://stationeering.com/tools/ic/_krYJiSu7PV]
 
 
 
<small>Code rewritten for newer update by Elusid1</small>
 
 
 
== 9-chip 1-sensor 1-axis Solar Tracking ==
 
'''Authors:''' Wooodiii, Corvus_bkgk, Enfantcool, Baksch<br>
 
'''Properties:''' Accurate (average error 1.3°), Auto-reset (variant), Power conserving (variant)<br>
 
'''Number of Components:''' 10-12
 
<br>'''Math Formula:''' <code>f(x) = min((x-min(x,15))/1.5, 100)</code> 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.
+
=== 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.
  
This setup produces the equivalent of 274W averaged over a whole day/night cycle.
+
'''What you need:'''
 
+
* [[Kit (Logic I/O)]] x4
=== Design ===
+
* [[Kit (Logic Processor)]]
* 1 [[Sensors |Kit (Sensors)]] ("Daylight Sensor")
+
* [[Kit (Logic Memory)]]
* 2 [[Kit (Logic I/O)]] (1 "Logic Reader", 1 "Batch Writer")
+
* [[Sensors|Kit (Sensor)]] > [[Sensors#Daylight Sensor|Daylight Sensor]]
* 3 [[Kit (Logic Memory)]]
 
* 4 [[Kit (Logic Processor)]] (2 "Math Unit", 2 "Min/Max Unit")
 
 
 
* The [[Sensors#Daylight_Sensor|Daylight Sensor]] should face the sunrise.
 
* Solar panels should be rotated such that 0% vertical faces the sunrise.
 
  
 +
Place the Daylight Sensor facing up, with the Data Port facing north.
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Component (Name) !! Settings !! Explanation
+
! '''Horizontal'''
 
|-
 
|-
| Logic Reader (A) || Daylight sensor, Solar angle || Sun's angle above the horizon
+
! '''Chip''' !! '''Chip label''' !! '''IN''' !! '''VAR''' !! '''OUT'''
 
|-
 
|-
| Memory (15) || 15 || True angle of solar panels at 0 elevation
+
| Logic Reader || Horizontal Reader || Daylight Sensor || Horizontal ||  
 
|-
 
|-
| 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)
+
| Batch Writer || Horizontal Writer || Horizontal Reader || Horizontal || Solar Panel
 
|-
 
|-
| 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.
+
! '''Vertical'''
|-
 
| 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
 
|}
 
 
 
[[File: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:
 
{| class="wikitable"
 
 
|-
 
|-
! Component (Name) !! Settings !! Explanation
+
! '''Chip''' !! '''Chip label''' !! '''IN''' !! '''VAR''' !! '''OUT'''
 
|-
 
|-
| Logic Reader (L) || Daylight sensor, Activation || 1 while daytime, 0 while nighttime
+
| Logic Reader || Vertical Reader || Daylight Sensor || Vertical ||  
 
|-
 
|-
| Math Unit (F)  || 100*L || Maximum panel elevation, now 100 during day and 0 at night
+
| Batch Writer || Vertical Writer || Vertical Correction Math || Vertical || Solar Panel
 
|-
 
|-
| (from above) Min/Max Unit (E) || min(D,'''F''') || Adjusted panel elevation (high edge adjustment)
+
! '''Chip''' !! '''Chip label''' !! '''Value'''
|}
 
 
 
=== 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.
 
 
 
{| class="wikitable"
 
 
|-
 
|-
! Component (Name) !! Settings !! Explanation
+
| Logic Memory || Vertical Correction Memory || 90
 
|-
 
|-
| Logic Reader (L) || Daylight sensor, Activation || As in the auto-reset variant above
+
! '''Chip''' !! '''Chip label''' !! '''IN 1''' !! '''IN 2''' !! '''OUT'''
 
|-
 
|-
| Logic Writer || L -> Transformer, On  || Transformer powers main logic network
+
| Logic Math || Vertical Correction Math || Vertical Reader || Vertical Correction Memory || Add
 
|}
 
|}
  
=== IC Chip Version ===
+
[[File:2022-10-02 Two-axis solar tracking.png|Accurate two-axis solar tracking]]
* 1 [[Kit (IC Housing)]]
 
* 1 [[Kit (Logic I/O)]] ("Batch Writer")
 
* 1 [[Sensors |Kit (Sensors)]] ("Daylight Sensor")
 
Daylight Sensor should point at sunrise, Batch Writer's input is IC Housing, Output is to all Solar Panels, Output Variable is Vertical.
 
<br>
 
IC Housing's pins are set with "00" being set to the Daylight Sensor.
 
 
 
Link to IC Code: [https://stationeering.com/tools/ic/_mqEw2BuZ5y [1<nowiki>]</nowiki>]
 
 
 
  
----
+
The panels should align themselves to the sun if you make sure to put the Power Port on the panels facing 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.
  
== 4-chip 1-sensor 1-axis Approximate Solar Tracking ==
+
== Solar tracking using Integrated Circuits ==
'''Author:''' Evie<br>
+
This is the most powerful way to track the sun, but the implementation might be a bit daunting at first.
'''Stationeers Version:''' 0.1.1068.5451<br>
 
'''Properties:''' Simple, Inaccurate (Average error: 7.5°)<br>
 
'''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.'''
+
'''What you need:'''
 +
* [[Integrated Circuit (IC10)]]
 +
* [[Kit (IC Housing)]]
 +
* [[Sensors|Kit (Sensor)]] > [[Sensors#Daylight Sensor|Daylight Sensor]]
  
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.
+
And if you don't already have one set up:
 +
* [[Kit (Computer)]]
 +
* [[Motherboard (IC Editor)|IC Editor Motherboard]]
  
This setup produces the equivalent of 239W averaged over a whole day/night cycle.
+
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.
  
=== Design ===
+
A simple code example can be found here: https://stationeering.com/tools/ic/_2FpmwojGnBq<br>
* 1 [[Sensors |Kit (Sensors)]]
+
This code is considered "inefficient" since it's hard-coded to spam all types of solar panels, even if you don't have them.
* 2 [[Kit (Logic I/O)]]
 
* 1 [[Kit (Logic Memory)]]
 
* 1 [[Kit (Logic Processor)]] ("Math Unit")
 
  
[[File:Evie's Solar Circuit Setup.jpg|none|Solar Setup Diagram]]
+
A better code example can be found here: https://stationeering.com/tools/ic/_2FpoBEcd3QK<br>
[[File:Stationeers-compact solar logic.png|none|A super compact version]]
+
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
  
=== 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.
 
</translate>
 
  
== [[Solar Logic Cable Golf]] ==
+
''Note : as of 12 July 2024 neither of these links seem to work (they both result in a 'Network Error' reported by stationeering.com with no code being displayed), and the security certificate for the server has expired which means that your browser will likely complain that statoneering.com server is unsafe. You can continue visiting the links through Internet Archive at the links below.''
  
{{cable Golf Rules}}
+
* [https://web.archive.org/web/20240524184233/https://stationeering.com/tools/ic#eyJwcm9ncmFtIjoiYWxpYXMgc2Vuc29yIGQwXHJcblxyXG5hbGlhcyBhbmdsZV92IHIwXHJcbmFsaWFzIGFuZ2xlX2ggcjFcclxuYWxpYXMgY29ycl9hbmdsZSByMlxyXG5cclxuI2RlZmluZSBkaXJlY3Rpb25zIG9mIHNlbnNvciBhbmQgcGFuZWwgcG93ZXIgcG9ydHNcclxuZGVmaW5lIHNlbnNvcl9kYXRhX2FuZ2xlIDBcclxuZGVmaW5lIHBhbmVsX3Bvd2VyX2FuZ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eyJpbyI6W3siVmVydGljYWwiOi0yMCwiSG9yaXpvbnRhbCI6ODcuMjM5NzMsIkFjdGl2YXRlIjoxfSx7fSx7fSx7fSx7fSx7fSx7IlNldHRpbmciOjB9XSwiaW9Db25uZWN0ZWQiOlt0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlXSwiaW50ZXJuYWwiOls2My4zMzMzMzMzMzMzMzMzMzYsODcuMjM5NzMsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMF0sImlvU2xvdCI6W3t9LHt9LHt9LHt9LHt9LHt9LHt9XSwiaW9SZWFnZW50Ijpbe30se30se30se30se30se30se31dfSwicnVuQWZ0ZXJSZWdpc3RlckNoYW5nZSI6ZmFsc2UsInJ1bldpdGhFcnJvcnMiOmZhbHNlfQ== Simple code example]
* Cables needed to propagate the output of the Batch/[[Logic Writer]]s to the top edge of a frame are counted in the score
+
* [https://web.archive.org/web/20240524184237/https://stationeering.com/tools/ic#eyJwcm9ncmFtIjoiYWxpYXMgU2Vuc29yIGQwICMgS2l0IChTZW5zb3IpID4gRGF5bGlnaHQgU2Vuc29yXHJcbiMgUGxhY2Ugc2Vuc29yIGZhY2luZyBVUCwgbm90IGluIGFuIGVuY2xvc2VkIHNwYWNlXHJcbmFsaWFzIERpc3BsYXkgZDEgIyBPcHRpb25hbCwgS2l0IChDb25zb2xlKVxyXG5hbGlhcyBQYW5lbFR5cGUxIGQyICMgQW55IGNvbnRyb2xsYWJsZSBTb2xhciBQYW5lbFxyXG5hbGlhcyBQYW5lbFR5cGUyIGQzICMgT3B0aW9uYWxcclxuXHJcbmFsaWFzIEFuZ2xlVmVydGljYWwgcjBcclxuYWxpYXMgQW5nbGVIb3Jpem9udGFsIHIxXHJcbmFsaWFzIENvcnJlY3Rpb25BbmdsZSByMlxyXG5hbGlhcyBQYW5lbDFIYXNoIHIzXHJcbmFsaWFzIFBhbmVsMkhhc2ggcjRcclxuYWxpYXMgUGFuZWxP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VsVHlwZTIgcGFuZWxkaXNwbGF5XHJcbmxiIFBhbmVsT3V0cHV0MiBQYW5lbDJIYXNoIENoYXJnZSBTdW1cclxuYWRkIFBhbmVsT3V0cHV0MSBQYW5lbE91dHB1dDEgUGFuZWxPdXRwdXQyXHJcblxyXG5wYW5lbGRpc3BsYXk6XHJcbnMgRGlzcGxheSBTZXR0aW5nIFBhbmVsT3V0cHV0MVxyXG5cclxucGFuZWxtb3ZlOlxyXG5zYiBQYW5lbDFIYXNoIFZlcnRpY2FsIEFuZ2xlVmVydGljYWxcclxuc2IgUGFuZWwxSGFzaCBIb3Jpem9udGFsIEFuZ2xlSG9yaXpvbnRhbFxyXG5iZG5zIFBhbmVsVHlwZTIgc3RhcnRcclxuc2IgUGFuZWwySGFzaCBWZXJ0aWNhbCBBbmdsZVZlcnRpY2FsXHJcbnNiIFBhbmVsMkhhc2ggSG9yaXpvbnRhbCBBbmdsZUhvcml6b250YWxcclxuXHJcbmogc3RhcnQiLCJyZWdpc3RlcnMiOnsiaW8iOlt7fSx7fSx7fSx7fSx7fSx7fSx7fV0sImlvQ29ubmVjdGVkIjpbdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZV0sImludGVybmFsIjpbMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDBdLCJpb1Nsb3QiOlt7fSx7fSx7fSx7fSx7fSx7fSx7fV0sImlvUmVhZ2VudCI6W3t9LHt9LHt9LHt9LHt9LHt9LHt9XX0sInJ1bkFmdGVyUmVnaXN0ZXJDaGFuZ2UiOmZhbHNlLCJydW5XaXRoRXJyb3JzIjpmYWxzZX0= Better code example]

Latest revision as of 07:23, 2 August 2024

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.3304.16432 (2022-06-06)

While this specific Guide calls out the sensor being place a specific direction(north), its 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 you need:

Place the Daylight Sensor facing up, with the Data Port facing north.

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 if you make sure to put the Power Port on the panels facing 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


Note : as of 12 July 2024 neither of these links seem to work (they both result in a 'Network Error' reported by stationeering.com with no code being displayed), and the security certificate for the server has expired which means that your browser will likely complain that statoneering.com server is unsafe. You can continue visiting the links through Internet Archive at the links below.