Enhancing Bed Alignment and Reducing Calibration Time in 3D Printers Using Auto Leveling with PI Control
DOI:
https://doi.org/10.32497/jrm.v21i1.7027Keywords:
3D Printer, 3D Touch, Arduino, auto leveling, PI controlAbstract
Manual bed leveling in fused deposition modeling (FDM) 3D printers is operator-dependent and often produces an uneven nozzle-bed gap, which reduces first-layer adhesion and dimensional repeatability. This study developed a retrofittable auto leveling system based on Proportional-Integral (PI) control for a Cartesian 3D Touch 3D printer at Politeknik ATMI Surakarta. The system combines a 3D Touch probe, three NEMA 17 motorized bed supports, one fixed-jaw reference, DRV8825 drivers, an Arduino Mega 2560, and a Raspberry Pi 4B to measure the bed at nine probing points and physically correct the bed height. Bed deviation was defined as the difference between the maximum and minimum measured height at the bed support reference points. Five Kp-Ki combinations were tested using a 0.05 mm tolerance. The best response was obtained at Kp = 1.0 and Ki = 0.03, completing calibration in 223 s with four iterations and a 0.016 mm deviation. Across five trials, auto leveling reduced the average calibration time from 594.4 s to 255.4 s (57.0%) and reduced the average bed deviation from 0.2228 mm to 0.0232 mm (89.6%) compared with manual leveling. ASTM D638 Type I print validation showed 90% successful squareness. The results demonstrate that PI-controlled physical bed alignment can improve calibration efficiency, repeatability, and first-layer reliability in low-cost FDM printers.
References
[1] L. Zhou, J. Miller, J. Vezza, M. Mayster, M. Raffay, Q. Justice, Z. Al Tamimi, G. Hansotte, L. D. Sunkara, and J. Bernat, Additive manufacturing: A comprehensive review. Sensors. 2024; 24(9): p.2688. doi: 10.3390/s24092668.
[2] A. Cano-Vicent, M. M. Tambuwala, S. S. Hassan, D. Barh, A. A. A. Aljabali, M. Birkett, A. Arjunan, and A. Serrano-Aroca, Fused deposition modelling: current status, methodology, applications and future prospects. Additive Manufacturing. 2021; 47: p. 102378. doi: 10.1016/j.addma.2021.102378.
[3] R. B. Kristiawan, F. Imaduddin, D. Ariawan, Ubaidillah, and Z. Arifin, A review on the fused deposition modeling (FDM) 3D printing: Filament processing, materials, and printing parameters. Open Engineering. 2021; 11(1): pp. 639-649. doi: 10.1515/eng-2021-0063.
[4] L. Sandanamsamy, W. S. W. Harun, I. Ishak, F. R. M. Romlay, K. Kadirgama, D. Ramasamy, S. R. A. Idris, and F. Tsumori, A comprehensive review on fused deposition modelling of polylactic acid. Progress in Additive Manufacturing. 2023; 8(5): pp. 775-799. doi: 10.1007/s40964-022-00356-w.
[5] S. Kumar, R. Singh, T. P. Singh, and A. Batish, Fused filament fabrication: A comprehensive review. Journal of Thermoplastic Composite Materials. 2023; 36(2):, pp. 794-814. doi: 10.1177/0892705720970629.
[6] D. Acierno and A. Patti, Fused deposition modelling (FDM) of thermoplastic-based filaments: Process and rheological properties-an overview. Materials. 2023; 16(24): p. 7664. doi: 10.3390/ma16247664.
[7] A. Dey and N. Yodo, A systematic survey of FDM process parameter optimization and their influence on part characteristics. Journal of Manufacturing and Materials Processing. 2019; 3(3): p. 64. doi: 10.3390/jmmp3030064.
[8] D. Popescu, A. Zapciu, C. Amza, F. Baciu, and R. Marinescu, FDM process parameters influence over the mechanical properties of polymer specimens: a review. Polymer Testing. 2018; 69: pp. 157-166. doi: 10.1016/j.polymertesting.2018.05.020.
[9] G. Gao, F. Xu, J. Xu, G. Tang, and Z. Liu, A survey of the Influence of process parameters on mechanical properties of fused deposition modeling parts. Micromachines. 2022; 13(4): p. 553. doi: 10.3390/mi13040553.
[10] R. Parvanda, P. Kala, and V. Sharma, Bibliometric analysis-based review of fused deposition modeling 3D printing method (1994-2020). 3D Printing and Additive Manufacturing. 2024; 11(1): pp. 383-405. doi: 10.1089/3dp.2021.0046.
[11] M. Spoerk, J. Gonzalez-Gutierrez, J. Sapkota, S. Schuschnigg, and C. Holzer, Effect of the printing bed temperature on the adhesion of parts produced by fused filament fabrication. Plastics, Rubber and Composites. 2018; 47(1): pp. 17-24. doi: 10.1080/14658011.2017.1399531.
[12] D. Croccolo, M. De Agostinis, S. Fini, M. Mele, G. Olmi, and G. Campana, Effects of infill temperature on the tensile properties and warping of 3D-printed polylactic acid. Progress in Additive Manufacturing. 2024; 9: pp. 919-934. doi: 10.1007/s40964-023-00492-x.
[13] R. Mendenhall and B. Eslami, Experimental investigation on effect of temperature on FDM 3D printing polymers: ABS, PETG, and PLA. Applied Sciences. 2023; 13(20): p. 11503. doi: 10.3390/app132011503.
[14] M. Johar, A. A. Rosli, R. K. Shuib, Z. A. A. Hamid, M. K. Abdullah, K. M. K. Ishak, and A. Rusli, Dimensional stability of poly(lactic acid) (PLA) parts fabricated using fused deposition modelling (FDM). Journal of Reinforced Plastics and Composites. 2025; 41(2). doi: 10.1177/14777606241262882.
[15] D. S. Chiniwar, H. Alva, V. R. Varada, M. Balichakra, and S. Hiremath, Investigation of automatic bed levelling system for fused deposition modelling 3D printer machine. International Journal of Modern Manufacturing Technologies. 2022; 14(1): pp. 23-32. doi: 10.54684/ijmmt.2022.14.1.23.
[16] B.-C. Kim, Development of optical leveling system using quarter photodetector. Journal of the Korean Society of Manufacturing Process Engineers. 2018; 17(6): pp. 111-116. doi: 10.14775/ksmpe.2018.17.6.111.
[17] C. Hofbauer, A. Aburaia, K. Stuja, and M. Aburaia, Automatic print bed leveling for industrial robot systems. Proceedings of the 34th DAAAM International Symposium. pp. 0435-0447. 2023. doi: 10.2507/34th.daaam.proceedings.057.
[18] A. Ariantono and D. U. Suwarno, Auto-level system on 3D printer bed using arduino and 3D touch probe sensor. In 1st International Conference on Science and Technology Innovation (ICoSTEC). 2022. doi: 10.35842/icostec.v1i1.3.
[19] M. Moretti and A. Rossi, Closed-loop filament feed control in fused filament fabrication. 3D Printing and Additive Manufacturing. 2023; 10(3): pp. 500-513. doi: 10.1089/3dp.2021.0236.
[20] S. Behseresht, A. Love, O. A. Valdez Pastrana, and Y. H. Park, Enhancing fused deposition modeling precision with serial communication-driven closed-loop control and image analysis for fault diagnosis-correction. Materials. 2024; 17(7): p. 1459. doi: 10.3390/ma17071459.
[21] A. De La Rosa, A. Armani, and M. Golmohamadi, Defect detection and closed-loop feedback using machine learning for fused filament fabrication. Procedia CIRP. 2024; 126: pp. 603-608. doi: 10.1016/j.procir.2024.08.247.
[22] C. Liu, A. C. C. Law, D. Roberson, and Z. J. Kong, Image analysis-based closed loop quality control for additive manufacturing with fused filament fabrication. Journal of Manufacturing Systems. 2019; 51: pp. 75-86. doi: 10.1016/j.jmsy.2019.04.002.
[23] G. D. Goh, N. M. B. Hamzah, and W. Y. Yeong, Anomaly detection in fused filament fabrication using machine learning. 3D Printing and Additive Manufacturing. 2023; 10(3): pp. 428-437. doi: 10.1089/3dp.2021.0231.
[24] H. He, Z. Zhu, Y. Zhang, Z. Zhang, T. Famakinwa, and R. Yang, Machine condition monitoring for defect detection in fused deposition modelling process: a review. The International Journal of Advanced Manufacturing Technology. 2024; 132: pp. 3149-3178. doi: 10.1007/s00170-024-13630-8.
[25] J. R. Read, J. E. Seppala, F. Tourlomousis, J. A. Warren, N. Bakker, and N. Gershenfeld, Online measurement for parameter discovery in fused filament fabrication. Integrating Materials and Manufacturing Innovation,. 2024; 13: pp. 541-554. doi: 10.1007/s40192-024-00350-w.
[26] S. Rooney, E. Pitz, and K. Pochiraju, AutoML-driven diagnostics of the feeder motor in fused filament fabrication machines from direct current signals. Journal of Intelligent Manufacturing. 2025; 36: pp. 1999-2016. doi: 10.1007/s10845-024-02332-3.
[27] M. Katsigiannis, M. Pantelidakis, K. Mykoniatis, and G. Purdy, Current monitoring for a fused filament fabrication additive manufacturing process using an Internet of Things system. Manufacturing Letters. 2023; 35: pp. 933-939. doi: 10.1016/j.mfglet.2023.08.013.
[28] M. J. Hossain, B. T. Tabatabaei, M. Kiki, and J.-W. Choi, Additive manufacturing of sensors: a comprehensive review. International Journal of Precision Engineering and Manufacturing-Green Technology. 2025; 12: pp. 277-300. doi: 10.1007/s40684-024-00629-5.
[29] S. Raja, M. Jayalakshmi, M. A. Rusho, V. K. Selvaraj, J. Subramanian, S. Yishak, and T. A. Kumar, Fused deposition modeling process parameter optimization on the development of graphene enhanced polyethylene terephthalate glycol. Scientific Reports. 2024; 14: p. 30744. doi: 10.1038/s41598-024-80376-4.
[30] A. Sapkota, S. K. Ghimire, and S. Adanur, Fused deposition modeling (FDM) process parameter optimization for mechanical properties of 3D-printed woven fabric structures using Taguchi method. Journal of Industrial Textiles. 2025; 55. doi: 10.1177/15280837251339124.
[31] S. Pawar and D. Dolas, Analyzing and optimizing fused deposition modeling parameters for dimensional accuracy of microturbine impellers. Journal of Micromanufacturing. 2025; 8(1): pp. 60-72. doi: 10.1177/25165984241307129.
[32] A. Panico, A. Corvi, L. Collini, and C. Sciancalepore, Multi objective optimization of FDM 3D printing parameters set via design of experiments and machine learning algorithms. Scientific Reports. 2025; 15: p. 16753. doi: 10.1038/s41598-025-01016-z.
[33] J. K. Sahu, R. K. Sahu, J. K. Katiyar, and P. S. Kiran, Optimisation of process parameters for dimensional stability in FDM. Proceedings of the Institution of Mechanical Engineers, Part B: Journal of Engineering Manufacture. 2023. doi: 10.1177/09544089231206800.
[34] G. Tian, K. Wu, S. Gao, G. Zeng, and J. Liu, Experimental investigations of process parameters on dimensional accuracy for FDM printed CF/PETG parts. Journal of Reinforced Plastics and Composites. 2025. doi: 10.1177/09673911251379825.
[35] M. S. Kumar, M. U. Farooq, N. S. Ross, C.-H. Yang, V. Kavimani, and A. A. Adediran, Achieving effective interlayer bonding of PLA parts during the material extrusion process with enhanced mechanical properties. Scientific Reports. 2023; 13: p. 6800. doi: 10.1038/s41598-023-33510-7.
[36] M. Faizaan, S. S. Baloor, S. Nunna, R. Mallya, S. R. Udupi, C. R. Kini, S. R. Kada, and C. Creighton, A study on the overall variance and void architecture on MEX-PLA tensile properties through printing parameter optimisation. Scientific Reports. 2025; 15: p. 3103. doi: 10.1038/s41598-025-87348-2.
[37] A. Corvi, L. Collini, C. Sciancalepore, and A. Lutey, Influence of process parameters on temperature field and residual strain in FFF-printed parts. Journal of Mechanical Science and Technology. 2023; 37(11): pp. 5521-5527. doi: 10.1007/s12206-023-2302-8.
[38] R. Pang, M. K. Lai, H. H. Teo, and T. C. Yap, Influence of temperature on interlayer adhesion and structural integrity in material extrusion: a comprehensive review. Journal of Manufacturing and Materials Processing. 2025; 9(6): p. 196. doi: 10.3390/jmmp9060196.
[39] F. Lambiase, S. Liparoti, F. Pace, and S. I. Scipioni, A multidisciplinary approach to investigate the influence of process parameters on interlayer adhesion in material extrusion additive manufacturing. The International Journal of Advanced Manufacturing Technology. 2024; 133: pp. 5553-5570. doi: 10.1007/s00170-024-14079-5.
[40] J. C. Antolin-Urbaneja, R. Pacheco Goni, N. Alberdi Olaizola, and A. I. Luengo Pizarro, Robotized 3D scanning and alignment method for dimensional qualification of big parts printed by material extrusion. Robotics. 2024; 13(12): p. 175. doi: 10.3390/robotics13120175.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Andreanto Wongsoatmojo, Fransiskus Arjuna Davin Pratama, Ign. R. Haryosuprobo, Alexander Ariantono Nugroho, Bondan Wiratmoko Budi Santoso, Mardiatno

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Copyright of articles that appear in Jurnal Rekayasa Mesin belongs exclusively to Penerbit Jurusan Teknik Mesin Politeknik Negeri Semarang. This copyright covers the rights to reproduce the article, including reprints, electronic reproductions, or any other reproductions of similar nature.


