πŸ“ž +91-7667918914 | βœ‰οΈ ijireeice@gmail.com
International Journal of Innovative Research in Electrical, Electronics, Instrumentation and Control Engineering
International Journal of Innovative Research in Electrical, Electronics, Instrumentation and Control Engineering A monthly Peer-reviewed & Refereed journal
ISSN Online 2321-2004ISSN Print 2321-5526Since 2013
IJIREEICE meets the suggestive parameters outlined in the latest University Grants Commission (UGC) for peer-reviewed journals, ensuring high standards of research integrity, publication ethics, and academic excellence.
← Back to VOLUME 14, ISSUE 4, APRIL 2026

Design and Implementation of a High- Precision STM32-Based 2D CNC Plotter with Real-Time G-Code Control

Rutuja Pathak, Abdulhadi Chogle, Sudarshan Shelke, Dr. Tusharika S. Banerjee

πŸ‘ 1 viewπŸ“₯ 0 downloads
Share: 𝕏 f in ✈ βœ‰
Abstract: Low-cost CNC plotters are a common entry point for students exploring motion control, yet most of them rely on 8-bit Arduino boards and plain Cartesian gantries that struggle past modest feed rates. This paper presents a 2D CNC plotter built around a custom controller board that uses an STM32F411CE (β€œBlackpill”) as the real-time motion core and an ESP32 as a user-interface co-processor. The mechanical platform is a CoreXY belt arrangement on a 3030 aluminum-extrusion frame driven by NEMA 17 stepper motors and TMC2209 silent-step drivers configured over UART. An SG90 micro-servo raises and lowers the pen. The controller PCB also routes a dedicated PWM channel and power connector for a 15 W diode laser module, which is supported in firmware and reserved for a future engraving extension but is not integrated in the present prototype. Firmware written with the STM32 HAL parses G-code line by line, performs trapezoidal acceleration planning, and produces coordinated pulse trains through hardware timers and DMA. Across repeated tests the plotter held positional deviation within roughly Β±0.1 mm over a 100 mm square and repeatability within a 0.12 mm radius, while the TMC2209 drivers kept the machine quiet enough for classroom use. The results suggest that a dual-MCU architecture paired with silent stepper drivers offers a practical path to upgrading hobby-grade CNC hardware without discarding the ease of use that draws students to Arduino in the first place.

Keywords: CoreXY kinematics, G-code interpreter, laser engraving, STM32 microcontroller, TMC2209 silent stepper driver.

How to Cite:

[1] Rutuja Pathak, Abdulhadi Chogle, Sudarshan Shelke, Dr. Tusharika S. Banerjee, β€œDesign and Implementation of a High- Precision STM32-Based 2D CNC Plotter with Real-Time G-Code Control,” International Journal of Innovative Research in Electrical, Electronics, Instrumentation and Control Engineering (IJIREEICE), DOI: 10.17148/IJIREEICE.2026.14458

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