Recycling resets science pack durability as of 2.20.25, so might as well put quality on it...
Adjust the timings (on the T / E combinator) for different quality inputs / modules. Toggle the O constant combinator to reset the circuit.

Originally shared on the public FactorioPrints / Factorio School archive (factorioprints.com · factorio.school). Authorship preserved from the public catalog.
Recycling resets science pack durability as of 2.20.25, so might as well put quality on it...
Adjust the timings (on the T / E combinator) for different quality inputs / modules. Toggle the O constant combinator to reset the circuit.