Jump to content

comparator


Recommended Posts

On 9/26/2018 at 2:57 PM, Saturnus said:

2 sensors (I assume one in each separate environment) will only give a binary output so no comparison possible. However, if you use more than one sensor in each environment you can start making (rather crude) comparisons. 

With enough sensors in each environment you could make pretty sophisticated comparisons ;)

Link to comment
Share on other sites

I present to you the 3 bit ONI thermometer - it can measure a temperature range in 7 increments.    Add a logic comparator and voila... you can compare temperatures.  For every additional bit of precision, double the number of sensors + 2 - so for 4 bit precision (15 increments) you would need 30 sensors.

In the screenshot it is set up to measure 10-79.9°C in 10°C increments.  The water temperature is 59,8°C so we get an output of 5.  If the temperature is outside of the range, it outputs 0.

Probably not very practical...

5baf58f2a7267_ScreenShot2018-09-29at12_44_26.thumb.png.6783f3a847eb00c940fbda87f5292a48.png

5baf590fe5594_ScreenShot2018-09-29at12_44_41.thumb.png.23bcd800765740b6a4e5efdcfa0bb4c8.png

Link to comment
Share on other sites

You don't need to use that many temp sensors though. To measure an absolute range you only need the number of intervals +1 sensors. Or if you're fine with an open range (the two outer intervals being just more than and less than) you only need the number of intervals -1 sensors.

The practical limit for temp sensors would be what would fit inside a temp shift plate range while still allowing for wires to be actually routed to them.

Link to comment
Share on other sites

On 9/26/2018 at 7:41 PM, QRDL_rus said:

How to compare temperature from two different sensors?

Uh, by eyes, of course, click at first sensor, see the temperature, then click at the second sensor, see the temperature, then compare them.

If you want 100% time efficient, pause the game while comparing.

Link to comment
Share on other sites

31 minutes ago, tranoze said:

Uh, by eyes, of course, click at first sensor, see the temperature, then click at the second sensor, see the temperature, then compare them.

ёптыть, нахрена вообще датчики, можно ткнуть мышкой в газ и узнать температуру, вот ведь долбодятлы

( google translate: **** sensors at all, you can poke a mouse into the gas and find out the temperature )

Link to comment
Share on other sites

1 hour ago, Saturnus said:

You don't need to use that many temp sensors though. To measure an absolute range you only need the number of intervals +1 sensors. Or if you're fine with an open range (the two outer intervals being just more than and less than) you only need the number of intervals -1 sensors.

The practical limit for temp sensors would be what would fit inside a temp shift plate range while still allowing for wires to be actually routed to them.

Thank you, here is an improved version using an 8-3 priority encoder.

5baf7a4697d04_ScreenShot2018-09-29at15_08_45.thumb.png.048c95df5648ad5e5ef12b5a1dc7f6a7.png5baf7a56a9f87_ScreenShot2018-09-29at15_08_59.thumb.png.0f38e4800c7f5c39d9c0db83208cbe9b.png

 

Link to comment
Share on other sites

29 minutes ago, thejams said:

@Saturnus The OR gates are needed to ensure the signal doesn't feed back to the other input lines.  I cant think of a better way to do it.

Well, for one you don't need the 3 OR gates to the right as the output of the first set of OR gates already isolates the output from the input. 

Link to comment
Share on other sites

thank you for the enlightened discussion folks! I am lost. This seems significant and/or important. I completely don't get what I'm looking at. Could someone lay out a use by example, please? Thank-you. What is all this supposed to do? How could I utilize this knowledge to improve my game? ty, again.

omg you have ceiling light indicators, now i am truly intrigued.

but what do they indicate? I see now it's a 7-point thermostat of sorts..why only 3 lights?

Link to comment
Share on other sites

3 hours ago, Slvrsrfr said:

but what do they indicate? I see now it's a 7-point thermostat of sorts..why only 3 lights?

It's condensed to 3 bits.

What can you use it for? Well, a 3 bit sensor output is probably overkill for what most people needs in the game but let's say you have two water tanks that you use for a metal refinery cooling. Both tanks are being cooled but each time the metal refinery runs you want to dump the water in the tank with the lowest temperature. That's what you could use a comparator for (although not a terribly good example). You take the absolute value the sensor above would give and compare it to another absolute value.

In any case it's mostly just goofing around just like making 7-segment displays when automation update first came out. Not much of an in-game value but just fun to play around with.

Link to comment
Share on other sites

4 hours ago, Slvrsrfr said:

and that thing is kinda' enormous at 14x14. excellent example, ty.

Lol, and I thought it was a pretty elegant implementation :)

But yeah, the whole world is kinda small compared to how unwieldy the wiring and logic gates are.  For example, the next step in this exercise - the comparator itself would probably be a beast in comparison.

Link to comment
Share on other sites

On 9/29/2018 at 9:29 AM, thejams said:

The OR gates are needed to ensure the signal doesn't feed back to the other input lines.  I cant think of a better way to do it.

You can use a double NOT gate - it will act like a diode. Signals only propagate in one direction across the logic gates, so you'll preserve signal state and isolation.

Link to comment
Share on other sites

6 hours ago, The Plum Gate said:

You can use a double NOT gate - it will act like a diode. Signals only propagate in one direction across the logic gates, so you'll preserve signal state and isolation.

I did say I couldn't think of a better way. :D

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...