This board is to show, discuss and archive useful combinator- and logic-creations.
Smart triggering, counters and sensors, useful circuitry, switching as an art , computers.
Please provide if possible always a blueprint of your creation.
Since I saw this I wanted to create an automatic process for the Centrifuge to keep 40 U-235 in the loop while outputting just the converted U-238.
Made it as compact as possible and surrounded it by beacons to speed up the process.
The system uses an SR-Latch to switch between the inserters when the chest is empty or it has the needed U-235(40) to begin the conversion.
Mostly because I don't use a lot of mods. Just Warehousing, Blueprint String and Advanced Logistics Network. Two of which have been replaced by the update.
Enjoyed making this build, tho last night I realized that if I "chain" them the centrifuges down the line tend to hold up on extra U-235 instead of keeping just the needed 40.
Fixed that by outputting the converted uranium directly into provider chests or belts.
I actually discussed this with a few coworkers on how to best get it to work. I initially planned on doing something crazy with timers, but in the end came up with a pretty simple state machine approach.
Haven't gotten around to compact it yet, but i will see what i can do there tomorrow.
To start the whole process in the first place, 40 U235 are placed in the steel box just below the centrifuge. U238 is picked up from the left side belt.
After the enrichment process, the residual U238 is disposed to the top via filter inserter and reinserted. The belt content on the top is read and fed to the inserter on the left, which only activates if the top belt is empty. This prevents U238-clogging on the output side
The resulting 41 U235 from the enrichment are dropped to the right (2 Inserters for better visuals, just my style)
The bottom inserter system consists of 2 stack inserters for reinsertion and 2 fast inserters for dropping out the single overflow U235.
Green Wire reads bottom box content (bx1) and transfers info to both blue inserters (b#1 above it and b#2 left of it) as well as the two stack inserters (s#1 next to belt, s#2 next to centrifuge) resupplying the centrifuge.
The red wire goes from upper box (bx2) to b#2
b#1 is set to stack size 1 and activation if bx1 contains zero U235
s#1 is set to activation if bx1 contains 1 or more U235
s#2 is set to activation if bx1 contains zero U235
b#2 is set to activation, if the sum of bx1 and bx2 equals 41 U235 (the values get summed since both red and green wires are connected to b#2)
consider all boxes empty and the centrifuge spitting out its first product of 41 U235.
b#1 and s#2 are currently active, but since bx2 is empty s#2 cant do anything.
b#1 will grab the first U235 and drop it into bx1, consequently disabling itself and s#2, but activating s#1.
s#1 will start taking all U235 on the belt (40 left) and drop them into bx2.
once all residual U235 is in bx2, the overall count in boxes reaches 41, activating b#2.
b#2 empties bx1 and the single U235 is piped out of the system to wherever.
since bx1 is now empty again, b#1 and s#2 are activated (first step of this procedure), but now bx2 has 40 U235, which are now transferred back into the centrifuge.
I hope this explanation is somewhat clear
made it more compact and stackable. Process is the same, but box1 got replaced by a belt and b#1 and s#1 are now the unloaders.
The combinator is set to U-235 < 40, with the output looped to the input, and acts as a counter. The inserter to the right of it is active as long as the count is 0, with a stack size of 1. The combinator receives pulsed information from the belt. That's it as far as circuitry goes. The only real important detail is that the belt reading is done after the inserter. I tried it on the same square, but it disables the inserter before it has a chance to grab one.
When the filter stack inserter begins unloading the 235, the fast inserter picks up a single 235 and places it on the output belt. Almost immediately the remaining 235 begins passing through the scanner and the 235 count starts to increase, disabling the inserter. When 40 have passed through, the counter goes back to 0, and the inserter turns back on now that the remaining 235 have passed out of reach. The yellow inserter (stack size 1) is to slow down how quickly 238 can be taken from the supply belt to ensure it doesn't overwhelm the filter inserter that removes the old 238 (there's enough 238 on the belt that this doesn't slow down the refilling). Both 235 and 238 are shoved back in by the same stack inserter where the belts merge.
This was done in factorissimo, but a medium power pole can be placed in the corner as shown, leaving 1 square free for a light or something
This setup is pretty small time, but gets the job done while keeping a minimum of U-235 in the cycle.
Bottom purple inserter has stack size 1, runs when more than 40 U-235 is in the lower box. This is where the setup requires manual priming with 41 or more U-235. I run down the line throwing a half stack in each one, the purple inserter trims it down to 40.
Top set of combinators is a S/R latch, set to trigger on U-235 > 40, and reset at U-235 = 0.
Bottom set of combinators evaluates the two part condition for the center recycling filter stack inserter. Left combinator evaluates if latch is set (green > 0). Middle is set to U-235 less than 41. Right side one evaluates true if both conditions are met, outputs 1 U-235 signal to the filter inserter to start moving the 235 back to the input. Constant combinator gives the recycling inserter a 238 signal as well so it'll recycle the 238 back into the process as well.
Top right inserter just runs to keep 5 U-238 in the input box.
More combinator heavy than some setups, but it tiles well and has a simple input/output setup with pure 238/235 after being primed.
I've been working on this a bit - I have a circuit heavy design, and the layout isn't particularly compact, however I have a system that self-primes. You can lay down multiple of these in a row, set up the input U238 belt (top), input U235 belt (bottom), and it will self prime each centrifuge in turn. It keeps exactly 40 U235 in each centrifuge's system - while this doesn't allow it to restart the process as fast as possible, it does let it self-prime as fast as possible and get multiple going. There is a gate on the in/out U235 belt so it won't let U235 past each centrifuge until it's primed.
This is also robust in terms of keeping track of extra U235. If the output U235 belt backs up and stalls the system, the system will accumulate a bunch of extra U235 internally, then when the bottleneck is gone it will correctly eject all U235 back down to keeping just 40 in the system. In addition, the U238 is gated so it never becomes a bottleneck.
I'm pretty happy with this, would appreciate any feedback/improvements.
Made my own version that is really simple.
Since you require 40 to start and it produces 41 you can abuse the even/odd numbers with inserter stack sizes.
Pass the u235 between two centrifuges using a chest, then use the stack size of inserter by placing 2 at a time in the chest, to skim the extra 1 to a belt. if stack in chest >=2 pass them to the other centrifuge, if stack in chest = 1, pass it to a belt.
Just need to prime the 2 centrifuges once to get it looping.