DESAIN DAN IMPLEMENTASI SISTEM KONTROL MOTOR STEPPER BERBASIS MIKROKONTROLER DENGAN METODE PID UNTUK APLIKASI CNC MINIATUR
DOI:
https://doi.org/10.61722/jipm.v4i5.2875Keywords:
Miniature CNC, Stepper Motor, ESP32 microcontroller, PID Control, Ziegler-Nichols, Closed-loopAbstract
This control system is designed to overcome the problems of vibration, missed steps, and movement instability in stepper motors on miniature CNC machines, which often limit the accuracy of the machining process. This research utilizes the NodeMCU ESP32 as the main controller, an A4988 driver, a NEMA17 stepper motor, and an incremental encoder as a feedback sensor for real-time position measurement. The control method applied is the Proportional-Integral-Derivative (PID) algorithm, with parameter tuning conducted via the continuous oscillation Ziegler-Nichols method. The tuning process yielded the optimal control parameters of Kp=3.0, Ki=3.0, and Kd=0.75. Simulation testing of the system's transient response demonstrated a Rise Time of 0.82 seconds, a Peak Time of 1.24 seconds, a Settling Time of 2.15 seconds, and a maximum Overshoot of 5.10%. Furthermore, mechanical accuracy testing across various setpoint targets ranging from 20 mm to 300 mm resulted in an extremely small average position error of only 0.25 mm. The implementation of this closed-loop PID control algorithm on the stepper drive system has proven highly effective, reducing positioning errors by more than 90% and substantially improving system stability while damping transient vibrations compared to traditional open-loop configurations.
References
A. Prasetyo and S. Nugroho, "Perancangan sistem kontrol motor stepper berbasis mikrokontroler untuk mesin CNC 3 axis," Jurnal Teknik Mesin Indonesia, vol. 9, no. 1, pp. 33-41, 2020.
L. Sasmoko and B. Hartanto, "Rancang bangun mini CNC berbasis mikrokontroler dengan peningkatan akurasi gerak," Jurnal Riset Instrumentasi, vol. 6, no. 1, pp. 45-53, 2020.
J. Park and H. Kim, "Real-time control of stepper motors in CNC applications using embedded PID algorithms," IEEE Access, vol. 10, pp. 45103-45112, 2022.
S. Choi and K. Lee, "Development of PID-based microController system for precision stepper motor control in CNC machining," Int. J. Adv. Manuf. Technol., vol. 107, pp. 233-241, 2020.
A. Mohamed and M. Farouk, "MicroController-based position control of hybrid stepper motors using PID," IEEE Trans. Ind. Electron., vol. 68, no. 7, pp. 6552-6561, 2021.
R. Siregar and T. Utomo, "Penerapan metode Ziegler-Nichols pada sistem kendali PID motor DC," Jurnal Otomasi Kontrol Indonesia, vol. 12, no. 2, pp. 89-98, 2021.
T. Budiman and M. Shidiq, "Analisis getaran mekanis pada motor stepper penggerak sumbu mesin CNC desktop," Jurnal Teknik Elektro dan Komputer, vol. 15, no. 3, pp. 167-175, 2022.
H. Handoko and F. Rohman, "Optimasi sistem kendali posisi loop tertutup menggunakan mikrokontroler ESP32," Jurnal Rekayasa Teknologi, vol. 8, no. 2, pp. 112-120, 2019.
Y. Chen and L. Wang, "Design of high-precision closed-loop stepper motor control system based on ARM Cortex-M4," IEEE Trans. Instrum. Meas., vol. 70, pp. 1-12, 2021.
W. Wibowo, S. Setiawan, and H. Kusuma, "Desain mekanik dan elektronik miniatur CNC router menggunakan motor stepper NEMA 17," Jurnal Teknik Mesin S-1, vol. 11, no. 2, pp. 201-210, 2023.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 JURNAL ILMIAH PENELITIAN MAHASISWA

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.











