Balancing chests in series

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
aggie09_272
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Oct 01, 2020 12:54 am
Contact:

Balancing chests in series

Post 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?
MassiveDynamic
Filter Inserter
Filter Inserter
Posts: 272
Joined: Sun Sep 16, 2018 10:44 pm
Contact:

Re: Balancing chests in series

Post 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.
mmmPI
Smart Inserter
Smart Inserter
Posts: 4629
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: Balancing chests in series

Post by mmmPI »

seriesplit.png
seriesplit.png (174.34 KiB) Viewed 1867 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.
Koub
Global Moderator
Global Moderator
Posts: 7955
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Balancing chests in series

Post 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 ?
Koub - Please consider English is not my native language.
User avatar
disentius
Filter Inserter
Filter Inserter
Posts: 694
Joined: Fri May 12, 2017 3:17 pm
Contact:

Re: Balancing chests in series

Post by disentius »

I thought the same, koub. A MadZuri-like solution should do it. i'll test it after work.
MassiveDynamic
Filter Inserter
Filter Inserter
Posts: 272
Joined: Sun Sep 16, 2018 10:44 pm
Contact:

Re: Balancing chests in series

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

Return to “Gameplay Help”