Originally shared on the public FactorioPrints / Factorio School archive (factorioprints.com · factorio.school). Authorship preserved from the public catalog.
Basic collector logic which automatically prevents overflow of specific items in the inventory and on the belt.
Whole belt length on which raw materials are going should be in the circuit network in order to prevent oversaturation by one of the materials (splitters break up belts).