If you frequently use a 3D printer for your projects then you may experience issues calculating the material weight and length usage. If so, then you might be interested in this project using Arduino.
An organized microcontroller project is a happy microcontroller project.