Detecting/avoiding brownouts caused by accumulator discharge rate limit?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
foamy
Filter Inserter
Filter Inserter
Posts: 432
Joined: Mon Aug 26, 2019 4:14 am
Contact:

Re: Detecting/avoiding brownouts caused by accumulator discharge rate limit?

Post by foamy »

I'm aware this is an old thread, but it deserves a boot because it contains by far the most reliable measure to detect brownouts: measure the accumulator discharge rate.

An edge-detection circuit, which is a single arithmetic combinator, feeding into a rolling-average circuit (three arithmetic combinators and a decider for a latch) will provide that number to whatever degree of smoothing you want.

You can then take the discharge rate and do whatever logic processes you wish to it from there, such as detecting near misses (i.e. accumulators discharging @ 90%+ of their maximum), turning back up power on or off, triggering latches, and so on. This will work even when the combinators themselves are in brownout as the reduced tick rate will result in a greater-than-expected discharge rate, so you don't need to put them on a separate grid. It recovers automatically from full blackout, too.

Post Reply

Return to “Gameplay Help”