Page 1 of 1

Balancing chests in series

Posted: Thu Oct 01, 2020 12:57 am
by aggie09_272
I need help with circuits to balance chests.

I have input from left, into chest 1 which inputs into chest 2, into 3, into 4.

I need a circuit that will read between chest 1 and 2 and if 2 has less that 1 will run the inserter. If 3 has less than 2 it will run the inserter. If 4 has less than 3 it will run.

Can anyone help with this?

Re: Balancing chests in series

Posted: Thu Oct 01, 2020 1:29 am
by MassiveDynamic
Do exactly what you said. Use arithmetic combinators. You could connect a red or green wire from a chest to an arithmetic combinator set to input * + 0 output A (input amount).
Do this for each chest and change the output to B,C,D respectively.
Then use decider combinators to check D<C , C<B , B<A and connect the outputs to the inserters.
Pretty simple and straightforward.

Exit... but they will just fill up in series without any circuitry.

Re: Balancing chests in series

Posted: Thu Oct 01, 2020 1:42 am
by mmmPI
seriesplit.png
seriesplit.png (174.34 KiB) Viewed 1868 times
take quantities in chest 1 => negative quantity in chest 1
take negative quantity in chest 1 + quantity in chest 2
If sum is negative, inserter is active.

It will end up balancing in serie but the first chest will have 1 inserter swing less material than the others.

Re: Balancing chests in series

Posted: Thu Oct 01, 2020 5:32 am
by Koub
I don't know if averaging things is easy with combinators, but what about activating the inserters only when the chest they are feeding is lower than the average ?

Re: Balancing chests in series

Posted: Thu Oct 01, 2020 6:48 am
by disentius
I thought the same, koub. A MadZuri-like solution should do it. i'll test it after work.

Re: Balancing chests in series

Posted: Thu Oct 01, 2020 4:43 pm
by MassiveDynamic
I don't know why you need it,but here it is as I described.



Here it is using the average instead (NOTE: set N in the constant combinator to the number of chests to average)


If you want to load/unload a train to/from equalized chests, try this one...