Abstract
Teaching Programmable Logic Controllers (PLCs) requires both theory and hands-on practice, yet traditional training setups are often costly and unengaging. This paper presents a novel, cost-effective approach using a PLC-controlled pinball machine. A BRX PLC handles game logic, sensors, and flippers via ladder logic, while Python integration through Modbus enables real-time data analysis. A self-playing AI mode further enhances learning. The system design bridges PLC theory and application, exposing students to automation, data analytics, and Industry 4.0 practices.