Stationeers

Stationeers

View Stats:
Sasquatch Jan 7, 2018 @ 2:18am
Logic chip help
I'm trying to design a circuit that turns a wall cooler on at say 293K and stays on until it cools to say 290K.

It's easy to make something maintain 293K but I do not like the constant on/off.

It's also easy to design this in a computer, but then I have 200w being used constantly. This route may be worth it if I run multiple scripts on one unit however.

I think I need to use compare and select chips, but the select chip confuses me. The compare already provides a true/false, then the select allows a true/false input and has another true/false output?

How would I read and contrast two compare units to turn on/off a wall cooler? I would like one compare to turn the cooler on at greater than 293K, and a compare to turn the cooler off if less than 290K. I am currently only getting ON for both triggers, even if i use a select chip with the 0 set to the compare I want as OFF.

Hope I described this well enough :P
Originally posted by Kiiro:
The way I managed to do this was with a setup like this: https://imgur.com/6PQfkUy

The three memories hold the min and max temperatures and the on/off state.

The reader reads the gas sensor temperature.

1. compare checks reader > max temp.
The select has the state memory on the left input, the 1. compare on the right and uses the 1. compare as the select. This the way the select will output 1 if the memory holds 1 or if the 1. compare outputs 1.

1. writer writes the select output to the state memory.

2. compare checks reader < min temp.

3. compare checks 2. compare < state memory.
2. writer writes the state of 3. compare to the state memory.
This makes sure the state stays on until the temperature is < min temp.

3. writer sets the cooler on and off based on the state memory.
< >
Showing 1-15 of 23 comments
darkSol Jan 7, 2018 @ 3:06am 
Not sure about the select chip either, haven't tried using it.

I have a similar circuit setup for my gas pressure to maintain a canister at 9500 kPa. I have a mem chip set to 9800, that's my upper limit. I have another set to 9500, that's my lower limit. I have one compare between my analyzer and my upper limit, and if it's greater it opens a valve (the state of the chip will turn the valve on, releasing the gas). I use a 2nd compare that turns the pump on if the pressure is less than the lower limit.

For my gas application I also use a backpressure regulator set to 9500 to bleed off the excess, it's not part of the circuit, just on all the time.

For both compare chips I send to a logic writer, which takes the output of the corresponding compare chip, and outputs the result to the ON state of the appropriate device. This may be the step you're missing.
Sasquatch Jan 7, 2018 @ 3:25am 
When I do it that way the cooler shuts off at 292.9 instead of cooling all the way to 290.

I have a hunch I'm really over-thinking this, and it wouldn't be the first time!
Last edited by Sasquatch; Jan 7, 2018 @ 3:32am
darkSol Jan 7, 2018 @ 6:57am 
Since I haven't done anything with temp regulation, I'm not sure what's up. Only thing I can think is it's the difference between the timing between the logic, the sensor and the cooler that are at fault. You should be able just adjust your min value to compensate, unless it's inconsistent.
hyarion Jan 7, 2018 @ 8:15am 
If I've understood correctly, you'll want to figure out how to do an SR Latch with the logic, would be nice if there was something built into logic chips for it, currently I think a setup with just logic might land up using more power than just using a computer.

I've used something similar in Factorio, but not sure how to translate it to stationeers yet. Factorio example:
https://wiki.factorio.com/Tutorial:Circuit-network_Cookbook#SR_latch_-_single_decider_version



Also just wanted to chime in to explain the Select logic since it also stumped me initially.

Think of it like an IF...ELSE logic.

It takes 2 inputs as values, let's call them A and B.
It takes 1 input as the selector, let's call it S.

It then acts like a:
IF (S EQUALS 1)
THEN USE A
ELSE
USE B
Steelhawk Jan 7, 2018 @ 9:30am 
Originally posted by Sacksquatch:
I'm trying to design a circuit that turns a wall cooler on at say 293K and stays on until it cools to say 290K.

It's easy to make something maintain 293K but I do not like the constant on/off.

It's also easy to design this in a computer, but then I have 200w being used constantly. This route may be worth it if I run multiple scripts on one unit however.

I think I need to use compare and select chips, but the select chip confuses me. The compare already provides a true/false, then the select allows a true/false input and has another true/false output?

How would I read and contrast two compare units to turn on/off a wall cooler? I would like one compare to turn the cooler on at greater than 293K, and a compare to turn the cooler off if less than 290K. I am currently only getting ON for both triggers, even if i use a select chip with the 0 set to the compare I want as OFF.

Hope I described this well enough :P
You can create simple logic scheme to turn on and off the computer with your general scheme.
I think it's funny )
Fridge Lord Jan 7, 2018 @ 12:13pm 
Uhh... Can you use a logic writer to set the value of a memory chip?

Make 1 circuit:
IF temp > 293, set memory chip 1.

Make another circuit:
IF temp < 290, set memory chip 0.

Make third circuit using memory chip as input. If memory chip = 1, wall cooler on.
Fridge Lord Jan 7, 2018 @ 6:09pm 
So I've been working on this problem and it's very frustrating because I'm trying to use 2 logic writers to write to a memory. Apparently the game will only recognize 1 logic writer to write to a memory. Once you set what's writing to it, you can't program another logic writer to write to it. This should be changed in coding. You can make the selections of input and output, but the second logic writer will not change the state of the memory unit even if the primary logic writer is off.

Oh yeah, also it eventually just breaks and you can't use either to write to it.
Last edited by Fridge Lord; Jan 7, 2018 @ 6:11pm
Sasquatch Jan 7, 2018 @ 6:23pm 
Yeah I've been messing with it too, in between wife-aggros heh. I'm thinking a min/max is what's needed here to function as an if/else if. I'm about to throw my hands up and set down a computer because it's literally a 30 second setup lol.

I'll report back if I get it to work, along with current draw to see if it's even worth it. I don't know why I have to do things the hard way, but I guess I find fun in it.
Last edited by Sasquatch; Jan 7, 2018 @ 6:25pm
Sasquatch Jan 7, 2018 @ 6:41pm 
Originally posted by hyarion:
If I've understood correctly, you'll want to figure out how to do an SR Latch with the logic, would be nice if there was something built into logic chips for it, currently I think a setup with just logic might land up using more power than just using a computer.

I've used something similar in Factorio, but not sure how to translate it to stationeers yet. Factorio example:
https://wiki.factorio.com/Tutorial:Circuit-network_Cookbook#SR_latch_-_single_decider_version



Also just wanted to chime in to explain the Select logic since it also stumped me initially.

Think of it like an IF...ELSE logic.

It takes 2 inputs as values, let's call them A and B.
It takes 1 input as the selector, let's call it S.

It then acts like a:
IF (S EQUALS 1)
THEN USE A
ELSE
USE B
Ahh ok so it outputs through 0 or 1 depending on what the select input is?
Fridge Lord Jan 7, 2018 @ 6:42pm 
The whole reason I got into logic circuits was because logic computers could tank performance.... Already reported the memory freakouts as a bug. Let me know how things go. :)
Fridge Lord Jan 7, 2018 @ 6:46pm 
I was also just trying to solve the problem by learning how the **** the selector chip works. Turns out the Decider/Controller input for the logic select is actually on the... POWER line! So the power port should read logic selector power & data, not logic selector power.

Put a switch on the logic selector power input line, a Switch Left on input 1 and a Switch Right on input 2. Decider switch in one state, selector outputs Switch Left's true/false (0/1). Decider switch in other state, selector outputs Switch Right's true/false.

Either way I think we are back to the old problem of memory being borked because whatever you do with the selector, once your compare tick goes off (ie. temp changes by .1C), the state will change. We need some way to remember, "hey, hold this value."

Maybe someone can find a workaround.
Last edited by Fridge Lord; Jan 7, 2018 @ 6:47pm
Sasquatch Jan 7, 2018 @ 6:47pm 
Originally posted by BS Fridge Lord:
So I've been working on this problem and it's very frustrating because I'm trying to use 2 logic writers to write to a memory. Apparently the game will only recognize 1 logic writer to write to a memory. Once you set what's writing to it, you can't program another logic writer to write to it. This should be changed in coding. You can make the selections of input and output, but the second logic writer will not change the state of the memory unit even if the primary logic writer is off.

Oh yeah, also it eventually just breaks and you can't use either to write to it.
What about two writers writing to two separate memories? Then you could get a check to look for 0 or 2?
Fridge Lord Jan 7, 2018 @ 6:50pm 
Originally posted by Sacksquatch:
What about two writers writing to two separate memories? Then you could get a check to look for 0 or 2?

http://steamcommunity.com/app/544550/discussions/2/1621726179579077396/

See bug report here ^

:) :) :)

Edit: Oh, wait, maybe I misunderstood you? The problem there I think is as soon as the state of the input device on the logic writer changes, the memory's state will change. I tried a "one time write" to the memory by using another writer to turn the memory's writer on just for a moment, but that is back to the old problem of memory not taking new inputs and then breaking.
Last edited by Fridge Lord; Jan 7, 2018 @ 6:52pm
Sasquatch Jan 7, 2018 @ 6:52pm 
Heh I subscribed to it. Let's see what Dean says. I'm actually relieved to work on something else for a while. My brain literally hurts from this problem.
Last edited by Sasquatch; Jan 7, 2018 @ 6:53pm
Fridge Lord Jan 7, 2018 @ 8:36pm 
Uh yeah so I'm trying to make an SR latch (set-reset) using compare units and memory chips and I'm no circuitry pro. I haven't figured out how to make the compare units hold a value yet.. but uh.. I did make a flashing wall light by tricking the compare units into constantly changing their state. Whee.

Here's a gif
https://imgur.com/a/6XtOD
Last edited by Fridge Lord; Jan 7, 2018 @ 8:45pm
< >
Showing 1-15 of 23 comments
Per page: 1530 50

Date Posted: Jan 7, 2018 @ 2:18am
Posts: 23