Jump to content

[TIP] [Automation] When a negative result is positive


Recommended Posts

This tip may help some new players starting out with making more advanced automated controls. I think most people that have played for a while knows this already.

Say you have a liquid buffer like the below. And you only want to pump from it if all these conditions are met:

1) water in the top is less than 500kg/tile
2) water in the bottom is more than 500kg/tile
3) temperature is less than 30C
image.thumb.png.f7af08903b0a80269fbaa9f608ea7550.png

So you build an automation with two AND gates for that. Ensuring that only if all 3 conditions are met the pump turns on. Like this.

image.thumb.png.fe4dfab9f920bbb5910d401db09f9c05.png

But hold on. You could also make it like this with OR and NOT gates and have the same result.

image.thumb.png.8f35f417b6296818e57762f6893f1500.png

Here's where it starts to get interesting as the OR gates aren't needed at all here. If two automation output share a wire it is effectively the same as an OR gate. So we can make this and still have the same result:

image.thumb.png.b5418b7632b01c1ac5b6c855ed57df1f.png 

Then we're back to using the same space and materials as with AND gates, although we have a bit more freedom in where to place the logic gates with NOT gates. Notice however the NOT gates on the sensors. What if we just said the output of the sensors should be true with the opposite result of what we originally said then we can eliminate all but one NOT gate. Like this:

image.thumb.png.8a7ebb9780dcd57b47baaa0e541b7f09.png 

And that is my tip. Sometimes it is better to have a negative result than a positive one when it comes to automation.

 

NB: I know the top images show an atmo sensor and not a temp sensor but it's not really important for illustration if it's one or the other. And yes, I didn't have to drag the automation wires out into the insulated tiles on the last image but it's done for better illustrating the connections.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...